/* === CSS RESET & NORMALIZE === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after { box-sizing: inherit; }
body {
  background: #F4F6F8;
  color: #23374D;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

img, video {
  max-width: 100%;
  display: block;
}
a { color: inherit; text-decoration: none; }
ul, ol { margin-left: 24px; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 12px 16px; text-align: left; }
th { background: #23374D; color: #fff; font-weight: 600; }
tr:nth-child(even) td { background: #ecf0f2; }

/* ==== BRAND FONTS ==== */
@import url('https://fonts.googleapis.com/css?family=Oswald:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .02em;
  color: #23374D;
}
h1 { font-size: 2.7rem; margin-bottom: 20px; line-height: 1.1; }
h2 { font-size: 2rem; margin-bottom: 20px; line-height: 1.15; }
h3 { font-size: 1.25rem; margin-bottom: 12px; letter-spacing: .06em; }
h4 { font-size: 1.1rem; margin-bottom: 10px; }
h5, h6 { font-size: 1rem; margin-bottom: 8px; }
p, ul, ol, li, dl, dd { font-family: 'Roboto', Arial, sans-serif; font-size: 1rem; }
strong { font-weight: 700; }

/* === STRUCTURED LAYOUT === */
.container {
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 32px -8px rgba(35,55,77,0.12);
}
section.accent {
  background: #F4F6F8;
  box-shadow: none;
}

/* === HEADER & NAV ==== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 2px solid #E0E7EF;
  box-shadow: 0 3px 18px -8px rgba(35,55,77,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 18px 20px 18px 20px;
  min-height: 70px;
}
header img[alt="Steel Rift Autoservice"] {
  height: 38px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.main-nav a {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background .18s, color .19s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #2B8F60;
  color: #fff;
}
.button.primary {
  background: #2B8F60;
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 1.1rem;
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 18px -6px rgba(43,143,96,0.18);
  cursor: pointer;
  transition: background .18s, transform .16s;
  display: inline-block;
  margin-left: 16px;
}
.button.primary:hover, .button.primary:focus {
  background: #23374D;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
}
/* === Hamburger Menu Button === */
.mobile-menu-toggle {
  display: none;
  background: #2B8F60;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  padding: 6px 16px;
  margin-left: 18px;
  cursor: pointer;
  transition: background .16s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #23374D;
}

/* === Mobile Menu === */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #23374D;
  transform: translateX(-100%);
  transition: transform 0.38s cubic-bezier(.85,0,.18,1);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 22px 18px 8px 26px;
  align-self: flex-end;
  cursor: pointer;
  transition: color .16s;
  z-index: 130;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #2B8F60;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  align-items: flex-start;
  padding: 24px 34px 24px 38px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 10px 0;
  border-radius: 0 16px 16px 0;
  transition: background .18s, color .18s, padding .19s;
  width: 100%;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #2B8F60;
  color: #fff;
  padding-left: 11px;
}

@media (max-width: 1024px) {
  .main-nav { gap: 17px; }
}
@media (max-width: 900px) {
  .main-nav { gap: 10px; }
  header .container { padding-left: 13px; padding-right: 13px; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .button.primary { display: none; }
  .mobile-menu-toggle { display: inline-block; }
}

/* === HERO SECTIONS === */
.hero {
  background: #23374D;
  color: #fff;
  padding: 64px 0 64px 0;
  margin-bottom: 60px;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 18px 30px -12px rgba(35,55,77,0.13);
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero h1 {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.08;
}
.hero p {
  color: #e1e7ee;
  font-size: 1.18rem;
  margin-bottom: 24px;
}
.hero .button.primary {
  margin-left: 0;
  background: #2B8F60;
}
.hero .button.primary:hover {
  background: #fff;
  color: #23374D;
}


/* === CONTENT & STRUCTURE === */
.features, .services, .values, .contact, .confirmation, .about-preview, .pricing { margin-bottom: 60px; }
.features .container, .benefits-grid, .feature-grid {
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 800px) {
  .feature-grid, .benefits-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
  }
  .feature-grid > div, .benefits-grid > div {
    flex: 1 1 288px;
    min-width: 280px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 3px 18px -7px rgba(43,143,96,.11);
    padding: 24px 20px 20px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-bottom: 5px solid #2B8F60;
    transition: box-shadow .13s, transform .13s;
  }
  .feature-grid > div:hover, .benefits-grid > div:hover {
    box-shadow: 0 9px 32px -10px rgba(43,143,96,0.17);
    transform: translateY(-3px) scale(1.01);
  }
}
.feature-grid > div img, .benefits-grid > div img {
  height: 50px;
  margin-bottom: 8px;
  align-self: flex-start;
}
.feature-grid > div h3, .benefits-grid > div h3 {
  font-size: 1.1rem;
  color: #2B8F60;
  margin-bottom: 8px;
}
.features h2,
.benefits-grid h2 {
  font-size: 2rem;
  color: #23374D;
  margin-bottom: 24px;
}

.highlighted-checks ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 0 18px;
}

.section, section, .about-preview, .contact, .values, .confirmation, .pricing {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section ul,
.text-section ol {
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.text-section h3 {
  color: #23374D;
  margin: 10px 0 6px 0;
}

.cta {
  background: #2B8F60;
  color: #fff;
  border-radius: 18px;
  margin-bottom: 60px;
  box-shadow: 0 6px 32px -10px rgba(43,143,96, 0.16);
}
.cta .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.cta h2 {
  color: #fff;
  font-size: 2rem;
}
.cta p {
  color: #eafff2;
  font-size: 1.08rem;
}
.cta .button.primary {
  background: #fff;
  color: #2B8F60;
  margin-top: 8px;
}
.cta .button.primary:hover {
  background: #23374D;
  color: #fff;
}

/* --- CARD & TESTIMONIAL STYLES --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 18px -7px rgba(43,143,96,.11);
  padding: 28px 22px 22px 22px;
  min-width: 250px;
  max-width: 350px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 5px 24px -7px rgba(35,55,77,.10);
  min-width: 220px;
  max-width: 345px;
  border-left: 5px solid #2B8F60;
  margin-bottom: 20px;
  transition: box-shadow .14s, transform .12s;
}
.testimonial-card p {
  color: #23374D;
  font-size: 1.07rem;
  font-style: italic;
  line-height: 1.35;
  margin-bottom: 8px;
}
.testimonial-card strong {
  font-family: 'Oswald', Arial, sans-serif;
  color: #2B8F60;
  font-size: 1.01rem;
  font-style: normal;
}
.testimonial-card:hover {
  box-shadow: 0 10px 32px -8px rgba(43,143,96,0.14);
  transform: translateY(-2px) scale(1.01);
}

/* --- FEATURE ITEMS --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border-radius: 10px;
  background: #fff;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 18px -7px rgba(43,143,96,.09);
}
.feature-item h3 {
  font-size: 1.15rem;
  color: #2B8F60;
  margin-bottom: 8px;
}

/* --- PRICING CARDS/TABLES --- */
.pricing table {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px -4px rgba(35,55,77,0.06);
  overflow: hidden;
}
.pricing td, .pricing th { font-size: 1.06rem; }
.pricing tr td:last-child {
  color: #2B8F60;
  font-weight: 700;
}

/* === LIST & DL === */
dt { font-weight: bold; color: #23374D; margin-top: 12px; }
dd { margin-bottom: 10px; }

/* === MAP PLACEHOLDER === */
.map-placeholder {
  border: 2.5px dashed #2B8F60;
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
  background: #f7faf9;
  text-align: center;
  color: #23374D;
  font-style: italic;
}

/* === FOOTER === */
footer {
  background: #23374D;
  color: #fff;
  padding: 32px 0 22px 0;
  border-radius: 24px 24px 0 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 1rem;
}
.footer-main-nav, .footer-legal-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-main-nav a, .footer-legal-nav a {
  color: #fff;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: .04em;
  margin-bottom: 0;
  padding: 2px 0;
  border-radius: 4px;
  transition: background .15s, color .17s;
}
.footer-main-nav a:hover, .footer-legal-nav a:hover {
  color: #2B8F60;
  background: #fff;
}
.footer-contact address {
  font-style: normal;
  color: #F4F6F8;
  margin-right: 10px;
}
.footer-contact a { color: #2B8F60; font-weight: 600; }
.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-social img { height: 42px; }

/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 9000;
  background: #23374D;
  color: #fff;
  padding: 28px 20px 18px 20px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 18px;
  box-shadow: 0 -4px 28px -9px rgba(35,55,77,0.22);
  font-size: 1rem;
  animation: cookieAppear .8s cubic-bezier(.8,0,.15,1);
}
@keyframes cookieAppear {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner p {
  flex: 2 1 270px;
  margin-right: 18px;
  color: #fff;
  font-size: 1.04rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner button, .cookie-banner .button {
  border: none;
  border-radius: 8px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 19px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background .18s, color .18s, transform .11s;
}
.cookie-banner .accept {
  background: #2B8F60;
  color: #fff;
}
.cookie-banner .reject {
  background: #fff;
  color: #23374D;
  border: 2px solid #2B8F60;
}
.cookie-banner .settings {
  background: transparent;
  color: #2B8F60;
  border: 2px solid #2B8F60;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #1a7c50;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #2B8F60;
  color: #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #23374D;
  color: #fff;
  border-color: #fff;
}

/* === COOKIE MODAL === */
.cookie-modal {
  background: #fff;
  color: #23374D;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalIn .43s cubic-bezier(.6,0,.19,1);
}
@keyframes cookieModalIn {
  0% { opacity: 0; transform: scale(.95); }
  100% { opacity: 1; transform: scale(1); }
}
.cookie-modal .modal-content {
  background: #F4F6F8;
  border-radius: 18px;
  box-shadow: 0 8px 46px -13px rgba(35,55,77,.30);
  padding: 42px 36px 26px 36px;
  width: 95vw;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.cookie-modal .modal-content h2 {
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #23374D;
}
.cookie-modal .modal-content ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 0;
}
.cookie-modal .modal-content ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal .toggle-switch {
  width: 36px;
  height: 22px;
  background: #e0e8ef;
  border-radius: 18px;
  position: relative;
  margin-left: auto;
}
.cookie-modal .toggle-switch input {
  display: none;
}
.cookie-modal .toggle-slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px;
  height: 18px;
  background: #2B8F60;
  border-radius: 50%;
  transition: transform .18s;
}
.cookie-modal .toggle-switch input:checked + .toggle-slider {
  transform: translateX(14px);
  background: #23374D;
}
.cookie-modal button, .cookie-modal .button {
  margin-top: 14px;
  border: none;
  background: #2B8F60;
  color: #fff;
  padding: 11px 24px;
  border-radius: 8px;
  font-family: 'Oswald', Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background .19s;
}
.cookie-modal button:hover {
  background: #23374D;
}

/* === SECTION SPACING === */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* === RESPONSIVE === */
@media (max-width: 1023px) {
  .container { max-width: 98vw; }
  .hero h1 { font-size: 1.95rem; }
  .hero { padding: 44px 0; border-radius: 0 0 18px 18px; }
  .cta, .pricing, .about-preview, .confirmation, .contact { padding: 28px 6px; }
}
@media (max-width: 800px) {
  .footer-social { display: none; }
  .container { max-width: 100vw; }
  .card, .feature-grid > div, .benefits-grid > div { min-width: 90vw; max-width: 98vw; }
}
@media (max-width: 630px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.2rem; }
  header .container { flex-direction: row; gap: 9px; }
  .footer-contact address { font-size: .92rem; }
}
@media (max-width: 768px) {
  .content-wrapper { gap: 14px; }
  .feature-grid, .benefits-grid, .card-container, .testimonial-cards {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .benefits-grid > div {
    min-width: unset;
    max-width: unset;
    width: 100%;
    padding: 19px 10px 17px 15px;
  }
  .testimonial-card { padding: 16px 14px; }
  .section, .about-preview, .contact, .pricing, .cta, .confirmation { padding: 25px 5px; }
  .hero { padding: 32px 0 36px 0; }
  .text-image-section { flex-direction: column; gap: 16px; }
  .map-placeholder { padding: 10px; font-size: .97rem; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 18px; font-size: .96rem; }
}

/* === UI GEOMETRIC FLARE === */
.section,
.card,
.feature-item,
footer,
.cta,
.map-placeholder,
.about-preview,
.confirmation {
  border-radius: 16px;
  box-shadow: 0 2px 16px -9px rgba(35,55,77,0.09);
}
hr {
  border: none;
  border-top: 2px solid #2B8F60;
  margin: 30px 0;
}
/* --- ANGULAR BUTTONS --- */
.button, button, .cookie-banner button, .cookie-banner .button {
  border-radius: 8px 20px 8px 20px;
}

/* === MICRO-INTERACTIONS === */
a, button, .button, .card, .feature-item, .testimonial-card {
  transition: box-shadow .14s, background .13s, color .14s, border-color .13s, transform .13s;
}
.button:active, button:active {
  transform: scale(0.97);
}

/* === FOCUS STATES === */
a:focus, .button:focus, button:focus {
  outline: 3px solid #2B8F60;
  outline-offset: 2px;
  background: #ecfff3;
}

/* === Z-INDEX STABILITIES === */
header { z-index: 100; }
.mobile-menu, .mobile-menu.open { z-index: 120; }
.cookie-banner { z-index: 9000; }
.cookie-modal { z-index: 9999; }

/* === MISCELLANEOUS === */
::-webkit-scrollbar {
  width: 10px;
  background: #E0E7EF;
}
::-webkit-scrollbar-thumb {
  background: #2B8F60;
  border-radius: 6px;
}


/* --- PRINT SIMPLIFY --- */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
  body { background: #fff; }
  .section, .about-preview, .pricing, .cta, .confirmation, .contact, .values { box-shadow: none !important; background: #fff !important; }
}
