/* =========================================================
  GLOBAL DESIGN SYSTEM
========================================================= */

:root {
  --bg: #f6f1e8;
  --bg-soft: #fffaf2;
  --bg-warm: #eee3d2;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.74);
  --surface-dark: #111111;
  --surface-charcoal: #1b1b1b;

  --text: #161616;
  --text-soft: #504a43;
  --text-muted: #777068;
  --text-light: #ffffff;
  --text-light-soft: #d9d1c7;

  --accent: #f47b20;
  --accent-light: #ff9e4d;
  --accent-dark: #bd560d;
  --accent-soft: #fff0df;

  --border: rgba(22, 22, 22, 0.12);
  --border-strong: rgba(22, 22, 22, 0.2);
  --border-light: rgba(255, 255, 255, 0.16);

  --shadow-xs: 0 8px 18px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 14px 35px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 22px 55px rgba(0, 0, 0, 0.13);
  --shadow-lg: 0 35px 90px rgba(0, 0, 0, 0.24);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 44px;

  --container: 1180px;

  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Oswald", system-ui, sans-serif;
}

/* =========================================================
  RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(244, 123, 32, 0.12), transparent 28rem),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 42%, var(--bg-warm) 100%);
  font-family: var(--font-body);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
picture {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  padding-left: 1.2rem;
}

::selection {
  color: #111111;
  background: var(--accent);
}

/* =========================================================
  ACCESSIBILITY
========================================================= */

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: 0.8rem 1rem;
  color: #111111;
  background: var(--accent);
  border-radius: 999px;
  font-weight: 900;
}

.skip-link:focus {
  top: 1rem;
}

/* =========================================================
  GLOBAL LAYOUT
========================================================= */

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: clamp(4rem, 7vw, 7.5rem) 0;
}

.section-cream {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.6), rgba(255, 255, 255, 0.72));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.split-heading h2,
.final-cta h2,
.local-section h2,
.warranty-band h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.section-heading p,
.split-heading p,
.local-section p,
.final-cta p,
.warranty-band p {
  color: var(--text-soft);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

/* =========================================================
  BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.9rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #111111;
  background:
    linear-gradient(135deg, #ffb066 0%, var(--accent) 65%, #df6818 100%);
  box-shadow: 0 16px 35px rgba(244, 123, 32, 0.32);
}

.btn-primary:hover {
  color: #111111;
  box-shadow: 0 20px 45px rgba(244, 123, 32, 0.45);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(18px);
}

.btn-secondary:hover {
  color: var(--text);
  background: #ffffff;
  border-color: rgba(244, 123, 32, 0.4);
}

.btn-dark {
  color: #ffffff;
  background: #111111;
  border-color: #111111;
}

.btn-dark:hover {
  color: #ffffff;
  background: #242424;
}

.btn-light {
  color: #111111;
  background: #ffffff;
  border-color: #ffffff;
}

.btn-light:hover {
  color: #111111;
  background: #fff4e9;
}

.btn-secondary-dark {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary-dark:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

/* =========================================================
  GLOBAL HEADER / NAVIGATION
========================================================= */

.site-header {
  position: relative;
  z-index: 1000;
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid rgba(31, 28, 24, 0.1);
  box-shadow: 0 14px 45px rgba(31, 28, 24, 0.08);
  backdrop-filter: blur(18px);
}

/* Top black strip */
.topbar {
  color: #ffffff;
  background: linear-gradient(90deg, #111111, #1a1715);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  min-height: 36px;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.topbar__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.topbar__links a {
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.topbar__links a:hover {
  color: var(--accent);
}

/* Main header area */
.main-header {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(255, 250, 242, 0.9));
}

.main-header__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 112px;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

/* Brand / logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand__logo-frame {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 34%),
    linear-gradient(135deg, #151515, #2a211a);
  border: 2px solid rgba(244, 123, 32, 0.5);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(244, 123, 32, 0.16);
}

.brand__logo {
  display: block;
  width: 126%;
  height: 126%;
  object-fit: contain;
  padding: 0;
  transform: scale(1.12);
}

.brand__copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.brand__copy strong {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}

.brand__copy span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Navigation */
.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.7rem;
  color: var(--text-soft);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.site-nav__link:hover,
.site-nav__link--active {
  color: var(--text);
  background: rgba(244, 123, 32, 0.12);
}

.site-nav__link--button {
  margin-left: 0.25rem;
  color: #111111;
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(244, 123, 32, 0.22);
}

.site-nav__link--button:hover {
  color: #111111;
  background: #ff9440;
  transform: translateY(-1px);
}

/* Mobile nav button */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  background: #151515;
  border: 1px solid rgba(244, 123, 32, 0.35);
  border-radius: 16px;
  cursor: pointer;
}

.nav-toggle__line {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 999px;
}

.nav-toggle {
  gap: 5px;
}

/* =========================================================
  HEADER RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
  .main-header__inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 1rem;
    background: rgba(255, 250, 242, 0.98);
    border-bottom: 1px solid rgba(31, 28, 24, 0.1);
    box-shadow: 0 24px 45px rgba(31, 28, 24, 0.14);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0.8rem 1rem;
    border-radius: 16px;
  }

  .site-nav__link--button {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .topbar__text {
    display: none;
  }

  .topbar__links {
    width: 100%;
    justify-content: center;
  }

  .main-header__inner {
    min-height: 92px;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    gap: 1rem;
  }

  .brand__logo-frame {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  .brand__copy strong {
    font-size: 1.28rem;
  }

  .brand__copy span {
    font-size: 0.64rem;
  }
}

@media (max-width: 430px) {
  .brand {
    gap: 0.65rem;
  }

  .brand__logo-frame {
    width: 50px;
    height: 50px;
  }

  .brand__copy strong {
    font-size: 1.12rem;
  }

  .brand__copy span {
    max-width: 170px;
    font-size: 0.58rem;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

/* =========================================================
  FOOTER
========================================================= */

.site-footer {
  color: var(--text-light);
  background:
    radial-gradient(circle at top left, rgba(244, 123, 32, 0.18), transparent 28rem),
    linear-gradient(135deg, #101010 0%, #1e1712 100%);
  border-top: 6px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) minmax(230px, 0.9fr);
  gap: 2rem;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.brand--footer {
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.brand--footer:hover {
  color: #ffffff;
}

.footer-brand p,
.footer-column p {
  max-width: 36rem;
  margin: 0;
  color: var(--text-light-soft);
}

.footer-column h2 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a {
  color: var(--text-light-soft);
  font-weight: 750;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-column--cta {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.footer-column--cta .btn {
  width: 100%;
  margin-top: 1.2rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

/* =========================================================
  RESPONSIVE GLOBAL
========================================================= */

@media (max-width: 1120px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 1002;
  }

  .site-nav {
    position: fixed;
    top: 122px;
    left: 1rem;
    right: 1rem;
    z-index: 1001;
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    background: rgba(255, 250, 242, 0.98);
    border: 1px solid var(--border);
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 180ms ease,
      visibility 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav__link {
    justify-content: center;
    min-height: 50px;
  }

  .site-nav__link--quote {
    margin-left: 0;
  }
}

@media (max-width: 900px) {
  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .topbar__text {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-column--cta {
    grid-column: 1 / -1;
  }

  .footer-bottom__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .section {
    padding: 3.75rem 0;
  }

  .nav-shell__inner {
    min-height: 74px;
  }

  .brand__logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .brand__text strong {
    font-size: 1.22rem;
  }

  .brand__text span {
    font-size: 0.64rem;
  }

  .site-nav {
    top: 114px;
  }

  .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

