/* Wivvies site. Brand colours and type match the brochures and videos. */
:root {
  --blue: #0076a3; --deep: #00455f; --night: #062e3f; --orange: #ea8d00; --ink: #1d2b33;
  --muted: #5a6b75; --pale: #eef6fa; --line: #d5e4ec; --sand: #fdf3e3; --white: #ffffff;
  --ok: #1f7a4d; --err: #b3261e;
  --radius: 14px; --wrap: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); }
h1, h2, h3, h4, .brand-font { font-family: 'Nunito', 'Inter', sans-serif; color: var(--deep); line-height: 1.15; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 21px; font-weight: 800; }
p + p { margin-top: 12px; }
a { color: var(--blue); }
img, video { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow { color: var(--orange); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.lead { font-size: 19px; color: var(--ink); max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
section { padding: 88px 0; scroll-margin-top: 72px; }
section.tint { background: var(--pale); }
section.dark { background: var(--deep); color: #d7ebf3; }
section.dark h2, section.dark h3 { color: #fff; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 17px;
       padding: 13px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--orange); color: #fff; }
.btn.primary:hover { background: #d27e00; }
.btn.ghost { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn.light { background: #fff; color: var(--deep); }
.btn svg { width: 20px; height: 20px; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.top .logo img { height: 34px; width: auto; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { text-decoration: none; color: var(--deep); font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--blue); }
.top nav > a { position: relative; padding: 4px 0; transition: color .2s; }
.top nav > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 2px;
                      background: var(--orange); transform: scaleX(0); transition: transform .25s ease; }
.top nav > a.active { color: var(--blue); }
.top nav > a.active::after { transform: scaleX(1); }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang a { padding: 4px 11px; font-size: 13px !important; font-weight: 700 !important; }
.lang a[aria-current="true"] { background: var(--deep); color: #fff !important; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; color: var(--deep); }
.menu-btn svg { width: 28px; height: 28px; }

/* hero */
.hero { padding: 72px 0 64px; background: linear-gradient(180deg, #fff 0%, var(--pale) 100%); }
.hero .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.hero h1 { margin: 6px 0 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-card { background: var(--deep); color: #d7ebf3; border-radius: 20px; padding: 32px; box-shadow: 0 18px 50px rgba(0,69,95,.25); }
.hero-card h3 { color: #fff; margin-bottom: 14px; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 12px 0 12px 34px; border-top: 1px solid rgba(255,255,255,.12); position: relative; }
.hero-card li:first-child { border-top: 0; }
.hero-card li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 14px; height: 8px;
                        border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
.hero-card li b { color: #fff; display: block; font-family: 'Nunito', sans-serif; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.stat { border-left: 4px solid var(--orange); padding: 2px 0 2px 18px; }
.stat .num { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 38px; color: var(--orange); line-height: 1.05; }
.stat p { font-size: 15px; color: var(--muted); margin-top: 6px; }
.stat .who { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }
section.dark .stat p, section.dark .stat .who { color: #bcdbe8; }

/* cards */
.cards { display: grid; gap: 22px; margin-top: 36px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
section.tint .card { border-color: transparent; }
.card .ico { width: 40px; height: 40px; color: var(--blue); margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }
.card ul { margin-top: 12px; padding-left: 0; list-style: none; }
.card li { position: relative; padding-left: 20px; margin-top: 6px; color: var(--ink); font-size: 15.5px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.card.svc { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card.svc header { padding: 22px 26px; color: #fff; display: flex; align-items: center; gap: 14px; }
.card.svc header h3 { color: #fff; margin: 0; }
.card.svc header .ico { color: #fff; margin: 0; width: 34px; height: 34px; }
.card.svc .body { padding: 8px 26px 26px; }

/* value / pricing */
.value { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 36px; }
.value .box { border-radius: 20px; padding: 36px; }
.value .box.a { background: var(--orange); color: #fff; }
.value .box.a h3 { color: #fff; }
.value .box.b { background: #fff; color: var(--ink); }
.value .box h3 { font-size: 26px; margin-bottom: 12px; }
.value .box .ico { width: 44px; height: 44px; margin-bottom: 16px; }
.value .box.b .ico { color: var(--orange); }
.value .box p { font-size: 17px; }
.value .box.b ul { margin-top: 14px; list-style: none; }
.value .box.b li { padding-left: 28px; position: relative; margin-top: 8px; }
.value .box.b li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px;
                           border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }

/* method */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 44px; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 4px; background: linear-gradient(90deg, var(--blue), var(--orange)); }
.step { text-align: center; position: relative; }
.step .n { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px; background: #fff; border: 4px solid var(--blue); color: var(--blue);
           display: flex; align-items: center; justify-content: center; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 22px; position: relative; }
.step.hot .n { background: var(--orange); border-color: var(--orange); color: #fff; }
.step b { display: block; font-family: 'Nunito', sans-serif; color: var(--deep); font-size: 18px; }
.step p { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

/* video */
.video-frame { margin-top: 32px; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 18px 50px rgba(0,0,0,.35); aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; }

/* downloads */
.dl { display: flex; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.dl:hover { border-color: var(--blue); transform: translateY(-2px); }
.dl .pdf { flex: none; width: 58px; height: 72px; border-radius: 8px; background: var(--deep); color: #fff; display: flex; align-items: flex-end; justify-content: center;
           font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14px; padding-bottom: 10px; position: relative; }
.dl .pdf::before { content: ""; position: absolute; top: 0; right: 0; border-width: 0 16px 16px 0; border-style: solid; border-color: var(--pale) var(--pale) var(--orange) var(--orange); }
.dl h3 { font-size: 19px; }
.dl p { color: var(--muted); font-size: 15px; }
.dl .go { margin-left: auto; color: var(--blue); flex: none; }
.dl .go svg { width: 26px; height: 26px; }
.other-lang { margin-top: 18px; font-size: 15px; }

/* forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 15px; color: var(--deep); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line);
       border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,118,163,.15); }
textarea { min-height: 170px; resize: vertical; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; border: 0; }
.types legend { font-weight: 600; font-size: 15px; color: var(--deep); margin-bottom: 8px; }
.type { position: relative; }
.type input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.type span { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
             font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--deep); font-size: 17px; transition: border-color .15s, background .15s; }
.type span svg { width: 26px; height: 26px; color: var(--blue); }
.type input:checked + span { border-color: var(--orange); background: var(--sand); }
.type input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0,118,163,.25); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); font-weight: 400; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.form-msg.ok { display: block; background: #e6f4ec; color: var(--ok); }
.form-msg.err { display: block; background: #fbeceb; color: var(--err); }
.form-card { background: #fff; border-radius: 20px; padding: 36px; box-shadow: 0 10px 40px rgba(0,69,95,.08); margin-top: 32px; }
.sub-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-top: 26px; }
section.dark label { color: #fff; }
section.dark .consent { color: #bcdbe8; }
section.dark input[type=text], section.dark input[type=email] { border-color: transparent; }

/* contact info + footer */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 36px; align-items: start; }
.info { background: var(--deep); color: #d7ebf3; border-radius: 20px; padding: 32px; }
.info h3 { color: #fff; margin-bottom: 14px; }
.info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15.5px; }
.info dt { color: #9cc9dc; }
.info dd { color: #fff; overflow-wrap: anywhere; }
.info a { color: #fff; }
.info .qr { margin-top: 22px; background: #fff; border-radius: 12px; padding: 12px; width: 170px; text-align: center; color: var(--deep); font-size: 13px; font-weight: 600; }
footer { background: var(--night); color: #9cc9dc; padding: 36px 0; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer img { height: 28px; width: auto; }
footer a { color: #cfe6f0; }
.sources { font-size: 13px; color: var(--muted); margin-top: 26px; }

/* responsive */
@media (max-width: 980px) {
  .hero .grid, .value, .contact-grid { grid-template-columns: 1fr; }
  .cards.c3, .cards.c4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .steps::before { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  h2 { font-size: 26px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .menu-btn { display: block; }
  .top nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start;
             padding: 16px; gap: 14px; border-bottom: 1px solid var(--line); }
  .top nav.open { display: flex; }
  .stats, .cards.c2, .cards.c3, .cards.c4, .form-grid, .types, .sub-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-card, .value .box, .hero-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .dl, .top nav > a::after { transition: none; } }

/* video at the top of the front page */
.hero-video { margin-top: 0; }
.hero-card.wide { margin-top: 48px; }
.hero-card.wide ul { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.hero-card.wide li { border-top: 0; padding: 0 0 0 30px; font-size: 15px; }
.hero-card.wide li::before { top: 6px; }
@media (max-width: 980px) { .hero-card.wide ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .hero-card.wide ul { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(38px, 5vw, 60px); }

/* privacy policy page */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 6px 0 12px; }
.legal h2 { font-size: 24px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink); }
.legal ul { margin: 10px 0 0 22px; }
.legal li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { background: var(--pale); color: var(--deep); font-weight: 600; }
.legal .updated { color: var(--muted); font-size: 15px; }
.legal .box { background: var(--pale); border-radius: var(--radius); padding: 20px 24px; margin-top: 16px; }
.top .back { font-weight: 600; font-size: 15px; text-decoration: none; color: var(--deep); }
.top .right { display: flex; align-items: center; gap: 22px; }
.policy-link { font-size: 14.5px; margin-top: 10px; }
section.dark .policy-link a { color: #ffd28a; }
@media (max-width: 760px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }
.top .right .lang a { text-decoration: none; color: var(--deep); }
@media (max-width: 760px) {
  .top .back { font-size: 0; }
  .top .back::before { content: "←"; font-size: 22px; }
  .legal td:first-child { font-weight: 700; color: var(--deep); font-family: 'Nunito', sans-serif; font-size: 17px; }
}

/* service card link (Architecture → gallery) */
.card.svc .body { flex: 1; display: flex; flex-direction: column; }
.card.svc .more { margin-top: auto; padding-top: 20px; }
.card.svc .more .btn { font-size: 15.5px; padding: 10px 20px; }

/* 3D gallery page */
.g-hero { padding: 56px 0 28px; background: linear-gradient(180deg, #fff 0%, var(--pale) 100%); }
.g-hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 6px 0 14px; }
#gallery { padding: 0 0 72px; scroll-margin-top: 68px; }
.g-bar { position: sticky; top: 68px; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.g-nav { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: thin; }
.g-chip { flex: none; text-decoration: none; color: var(--deep); font-weight: 600; font-size: 14.5px; padding: 6px 14px;
          border: 1.5px solid var(--line); border-radius: 999px; background: #fff; white-space: nowrap; transition: border-color .15s, background .15s; }
.g-chip span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.g-chip:hover { border-color: var(--blue); }
.g-chip.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.g-chip.on span { color: #fff; }
.g-crumb { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; padding: 28px 0 18px; font-family: 'Nunito', sans-serif; font-size: 22px; color: var(--deep); }
.g-crumb a { text-decoration: none; font-weight: 700; }
.g-crumb b { font-weight: 800; }
.g-crumb .g-count { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--muted); }
.g-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.g-folder { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--pale); text-decoration: none; }
.g-folder img, .g-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.g-folder:hover img, .g-thumb:hover img { transform: scale(1.04); }
.g-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: #fff; display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
           background: linear-gradient(180deg, transparent, rgba(6,46,63,.85)); }
.g-label b { font-family: 'Nunito', sans-serif; font-size: 19px; }
.g-label span { font-size: 13.5px; opacity: .9; white-space: nowrap; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.g-thumb { display: block; padding: 0; border: 0; cursor: zoom-in; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--pale); }
.g-thumb:focus-visible, .g-folder:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.g-pager { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.g-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.g-cta h2 { margin: 0; }
body.g-lock { overflow: hidden; }
.g-box { position: fixed; inset: 0; z-index: 200; background: rgba(4,20,28,.94); display: flex; align-items: center; justify-content: center; padding: 56px 72px; }
.g-box[hidden] { display: none; }
.g-box img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.g-box button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%;
                width: 52px; height: 52px; font-size: 34px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.g-box button:hover, .g-box button:focus-visible { background: var(--orange); outline: none; }
.g-close { top: 14px; right: 14px; }
.g-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.g-next { right: 12px; top: 50%; transform: translateY(-50%); }
.g-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cfe6f0; font-size: 14.5px; }
@media (max-width: 760px) {
  .g-folders { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .g-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .g-label { padding: 28px 10px 8px; flex-direction: column; gap: 0; }
  .g-label b { font-size: 16px; }
  .g-crumb { font-size: 19px; }
  .g-box { padding: 56px 8px; }
  .g-prev, .g-next { top: auto; bottom: 6px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .g-folder img, .g-thumb img { transition: none; } }

/* brochure gallery page (reuses the 3D gallery bar, crumb, tiles and viewer) */
.g-box button[hidden] { display: none; }
.b-folders .g-folder img { object-position: top; }
.b-kind { font-size: 22px; margin: 30px 0 14px; }
.b-kind:first-child { margin-top: 0; }
.b-kind span { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px 18px; }
.b-doc { display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; font: inherit; color: var(--ink); }
.b-cover { display: block; aspect-ratio: 1 / 1.414; border-radius: 8px; overflow: hidden; background: var(--pale); border: 1px solid var(--line);
           box-shadow: 0 6px 18px rgba(0,69,95,.10); margin-bottom: 8px; transition: transform .2s, box-shadow .2s; }
.b-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.b-doc:hover .b-cover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,69,95,.18); }
.b-doc:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 8px; }
.b-doc b { font-family: 'Nunito', sans-serif; color: var(--deep); font-size: 16px; line-height: 1.3; }
.b-doc > span:last-child { font-size: 13.5px; color: var(--muted); }
@media (max-width: 760px) { .b-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; } }
@media (prefers-reduced-motion: reduce) { .b-cover { transition: none; } }
