/* ==========================================================================
   upinaweek — unified design system
   ONE :root. Canonical token names from the offer page (System A).
   System B aliases (--accent/--fg/--bg/--light/--border) are mapped onto
   these so ported markup keeps working during the migration. New markup
   should use the canonical names.
   ========================================================================== */

:root {
  /* Type */
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --head: "Montserrat", system-ui, sans-serif;

  /* Canonical colour tokens (offer page names) */
  --orange: #ff5c00;
  --orange-dark: #e04d00;
  --orange-soft: #ffe7d9;
  --ink: #1a1a1a;
  --ink-2: #333333;
  --muted: #6b6b6b;
  --line: #e0ddd6;
  --paper: #f5f4f2;
  --paper-2: #efede8;
  --white: #ffffff;
  --green: #1b8c4e;
  --green-soft: #f0faf4;
  --green-line: #c6e9d4;
  --red: #c63b1e;

  /* System B aliases → canonical. Lets ported pages 13–18 keep their
     class markup unchanged. Note: B's --bg was #fafaf8, A's --paper is
     #f5f4f2; we standardise on --paper. B's --light (#f0efeb) maps to
     --paper-2 (#efede8), close enough to unify. */
  --accent: var(--orange);
  --accent-dark: var(--orange-dark);
  --fg: var(--ink);
  --bg: var(--paper);
  --light: var(--paper-2);
  --border: var(--line);

  /* Elevation + shape */
  --shadow-1:
    0 1px 2px rgba(26, 26, 26, 0.06), 0 8px 24px rgba(26, 26, 26, 0.06);
  --shadow-2:
    0 2px 4px rgba(26, 26, 26, 0.06), 0 24px 48px rgba(26, 26, 26, 0.1);
  --radius: 12px;
  --radius-lg: 14px;
  --maxw: 1240px; /* offer-page content width */
  --maxw-narrow: 1140px; /* System B container width, kept for ported pages */
}

/* ==========================================================================
   Reset + base
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: var(--head);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

/* Shared containers. .container = System B (1140), .shell = offer (1240). */
.container {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 0 24px;
}
.shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibility: visible focus + reduced motion (quality floor) */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons — merged. Offer page: .btn / .btn.sm / .btn.dark.
   System B: .btn-primary / .btn-secondary / .btn-call / .btn-white / .cta-sm.
   All kept so ported markup works; all reference canonical tokens.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(255, 92, 0, 0.28);
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(255, 92, 0, 0.36);
}
.btn:active {
  transform: translateY(0);
}
.btn .arrow {
  transition: transform 0.15s;
}
.btn:hover .arrow {
  transform: translateX(3px);
}
.btn.sm {
  padding: 10px 18px;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(255, 92, 0, 0.28);
}
.btn.dark {
  background: var(--ink);
  box-shadow: none;
}
.btn.dark:hover {
  background: var(--orange);
}
.btn:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  font-family: var(--head);
  box-shadow: 0 4px 20px rgba(255, 92, 0, 0.25);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 92, 0, 0.35);
}
.btn-secondary {
  padding: 16px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}
.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--sans);
  text-decoration: none;
}
.btn-call:hover {
  background: var(--ink);
  color: var(--white);
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 18px 36px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--head);
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.btn-white:hover {
  background: var(--orange);
  color: white;
  transform: translateY(-2px);
}

/* ==========================================================================
   Logo wordmark — shared everywhere
   ========================================================================== */
.logo {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.logo span {
  color: var(--orange);
}

/* ==========================================================================
   Nav — System B canonical (used by 5 of 6 pages). Includes dropdown.
   The offer page's simpler header uses header.site (below).
   ========================================================================== */
nav.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 244, 242, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
nav.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links > a:hover,
.nav-links > a.active {
  color: var(--ink);
}
.nav-links > a.active {
  font-weight: 600;
}
nav.site .cta-sm {
  background: var(--ink);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--sans);
}
nav.site .cta-sm:hover {
  background: var(--orange);
}
.nav-phone {
  display: none;
}

/* Nav dropdown (Guides menu) */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-toggle {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--sans);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-dropdown-toggle.active {
  color: var(--ink);
  font-weight: 600;
}
.nav-dropdown-toggle:hover,
.nav-dropdown:hover .nav-dropdown-toggle {
  color: var(--ink);
}
.nav-dropdown-toggle .chev {
  font-size: 0.65rem;
  transition: transform 0.25s;
  margin-top: 2px;
}
.nav-dropdown:hover .nav-dropdown-toggle .chev {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  padding: 8px;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.22s ease;
  z-index: 200;
}
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 18px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  transition: background 0.18s;
}
.nav-dropdown-item:hover {
  background: var(--paper-2);
}
.nav-dropdown-item .ndi-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff0e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 1px;
}
.nav-dropdown-item .ndi-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--head);
  line-height: 1.3;
}
.nav-dropdown-item .ndi-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}
.nav-dropdown-all {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--orange);
  padding: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.nav-dropdown-all:hover {
  color: var(--orange-dark);
}

/* Offer-page sticky header variant (translucent, sits in flow with sticky) */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
header.site .nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}
header.site .nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ==========================================================================
   Section scaffolding — shared labels/titles/subs
   ========================================================================== */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 12px;
  font-family: var(--sans);
}
.section-title {
  font-size: 2.6rem;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 56px;
}
/* Offer-page section head cluster */
section.block {
  padding: 84px 0;
}
section.alt {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left {
  margin-left: 0;
  text-align: left;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

/* ==========================================================================
   Footer — the FULL offer-page multi-column footer, now global.
   ========================================================================== */
footer.site {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 0 28px;
}
footer.site .f-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
footer.site .f-brand .logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 14px;
}
footer.site .f-brand p {
  font-size: 14px;
  max-width: 300px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}
footer.site .f-brand .f-hull {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}
footer.site .f-col h5 {
  color: #fff;
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}
footer.site .f-col a,
footer.site .f-col button.f-link {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 0;
  font-size: 14px;
  text-decoration: none;
  background: none;
  border: none;
  font-family: var(--sans);
  cursor: pointer;
  text-align: left;
}
footer.site .f-col a:hover,
footer.site .f-col button.f-link:hover {
  color: var(--orange);
}
footer.site .f-copy {
  max-width: var(--maxw);
  margin: 24px auto 0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   WhatsApp FAB — shared
   ========================================================================== */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.25s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: white;
}
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-family: var(--sans);
}
.whatsapp-fab:hover .whatsapp-tooltip {
  opacity: 1;
}

/* ==========================================================================
   FAQ — two variants merged.
   Offer page: <details class="faq">. System B: .faq-item + JS toggle.
   Both retained.
   ========================================================================== */
.faqs {
  max-width: 780px;
  margin: 0 auto;
}
details.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}
details.faq summary {
  padding: 20px 24px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--orange);
  font-weight: 400;
  transition: transform 0.2s;
}
details.faq[open] summary::after {
  content: "−";
}
details.faq .body {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.faq-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.faq-q {
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
  font-family: var(--sans);
}
.faq-q:hover {
  background: var(--paper-2);
}
.faq-q .toggle {
  font-size: 1.4rem;
  color: var(--muted);
  transition: transform 0.3s;
  font-weight: 300;
}
.faq-item.open .faq-q .toggle {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ==========================================================================
   Animations — shared reveal system (both files use .animate + delays)
   ========================================================================== */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.2s;
}
.delay-3 {
  animation-delay: 0.3s;
}
.delay-4 {
  animation-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  .animate {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Shared responsive rules for global chrome
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links > a:not(.cta-sm),
  .nav-dropdown {
    display: none;
  }
  footer.site .f-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }
  .nav-phone {
    display: flex;
  }
  nav.site .cta-sm.get-started {
    display: none;
  }
  .whatsapp-fab {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-fab svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-tooltip {
    display: none;
  }
  footer.site .f-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  footer.site .f-copy {
    flex-direction: column;
  }
}

/* ──────────────────────────────────────────────────────────────
   PORTFOLIO MODAL (shared)
   Moved out of home.css so both the homepage and the offer page can
   use the lightbox. Paste this block into main.css and DELETE the
   matching "── PORTFOLIO MODAL ──" block from home.css.
   Depends on globals: --white --line --orange --ink --paper-2
   ────────────────────────────────────────────────────────────── */
.portfolio-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-modal-overlay.active {
  display: flex;
  opacity: 1;
}
.portfolio-modal {
  background: var(--white);
  border-radius: 12px;
  max-width: 1600px;
  width: 100%;
  height: 92vh;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.portfolio-modal-overlay.active .portfolio-modal {
  transform: scale(1);
}
.portfolio-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
}
.portfolio-modal-close:hover {
  background: var(--white);
  border-color: var(--orange);
  color: var(--orange);
  transform: rotate(90deg);
}
.portfolio-modal-iframe-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--white);
  overflow: hidden;
  border-radius: 12px;
}
.portfolio-modal-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 900px) {
  .portfolio-modal {
    max-width: 100%;
    height: 94vh;
    border-radius: 10px;
  }
  .portfolio-modal-iframe-container {
    border-radius: 10px;
  }
}
@media (max-width: 600px) {
  .portfolio-modal-overlay {
    padding: 10px;
  }
  .portfolio-modal {
    height: 96vh;
    border-radius: 8px;
  }
  .portfolio-modal-close {
    width: 40px;
    height: 40px;
    top: 10px;
    right: 10px;
    font-size: 1.4rem;
  }
  .portfolio-modal-iframe-container {
    border-radius: 8px;
  }
}
