/* ==============================================================
   SPOTN Tech Website Styles
   Contents: Tokens, Base, Header, Hero, Sections, Responsive
   ============================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --burgundy-950: #2b0805;
  --burgundy-900: #47100a;
  --burgundy-800: #64180f;
  --burgundy-700: #82261b;
  --gold-500: #f5b800;
  --gold-400: #ffc928;
  --ivory-50: #fffdf7;
  --ivory-100: #faf5e9;
  --ink-900: #241917;
  --ink-600: #6c5d59;
  --line: #e7ddd2;
  --white: #ffffff;

  --font-display: "Manrope", Arial, sans-serif;
  --font-body: "DM Sans", Arial, sans-serif;
  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --shadow: 0 24px 70px rgba(58, 14, 8, 0.12);
}

/* ---------- 2. Base and reusable elements ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory-50); color: var(--ink-900); font-family: var(--font-body); font-size: 16px; line-height: 1.65; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 112px 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--gold-500); color: var(--burgundy-950); font-weight: 700; }
.skip-link:focus { top: 16px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.045em; }
h2 { font-size: clamp(2.25rem, 4.5vw, 4.25rem); }
p { color: var(--ink-600); }
em { color: var(--gold-500); font-style: normal; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--burgundy-700); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--gold-400); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 700; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--gold-500); color: var(--burgundy-950); box-shadow: 0 12px 35px rgba(245, 184, 0, .22); }
.button-primary:hover, .button-gold:hover { background: var(--gold-400); }
.button-outline { border-color: #cabbb1; }
.button-outline:hover { border-color: var(--burgundy-700); }
.button-gold { background: var(--gold-500); color: var(--burgundy-950); }
.button-ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 12px; color: var(--burgundy-800); font-weight: 700; }
.text-link span { color: var(--gold-500); }
.section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 54px; }
.section-heading > div { max-width: 720px; }
.section-heading > p { max-width: 420px; margin: 0; font-size: 1.05rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 3. Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(255,253,247,.93); border-color: var(--line); box-shadow: 0 8px 30px rgba(45,20,16,.05); backdrop-filter: blur(16px); }
.header-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 58px; height: 58px; object-fit: cover; border-radius: 6px; }
.brand-name { color: var(--burgundy-800); font: 800 1rem var(--font-display); letter-spacing: -.02em; }
.brand-name small { display: block; margin-top: 1px; color: #836962; font: 500 .58rem var(--font-body); letter-spacing: 0; }
.site-header:not(.scrolled) .brand-name { color: var(--white); }
.site-header:not(.scrolled) .brand-name small { color: #d6b8b1; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav > a { color: #5f4d49; font-size: .93rem; font-weight: 600; }
.primary-nav > a:hover { color: var(--burgundy-700); }
.primary-nav .nav-contact { padding: 10px 16px; border-radius: var(--radius-sm); background: var(--burgundy-800); color: var(--white); }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--burgundy-900); transition: .25s; }
.site-header:not(.scrolled) .menu-toggle span { background: var(--white); }

/* The desktop header begins over the dark hero image. */
@media (min-width: 901px) {
  .site-header:not(.scrolled) .primary-nav > a { color: var(--white); }
  .site-header:not(.scrolled) .primary-nav > a:hover { color: var(--gold-400); }
  .site-header:not(.scrolled) .primary-nav .nav-contact { background: var(--gold-500); color: var(--burgundy-950); }
  .site-header:not(.scrolled) .primary-nav .nav-contact:hover { background: var(--gold-400); color: var(--burgundy-950); }
}

/* ---------- 4. Hero ---------- */
.hero { position: relative; z-index: 1; min-height: 850px; display: flex; align-items: center; overflow: hidden; background: var(--burgundy-950); }
.hero-art { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,8,5,1) 0%, rgba(43,8,5,.96) 38%, rgba(43,8,5,.18) 73%), url('../assets/spotn-tech-hero.png') 60% center / cover no-repeat; background-attachment: fixed; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 170px; background: linear-gradient(transparent, rgba(43,8,5,.65)); pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 70px; align-items: end; padding-top: 125px; }
.hero-copy { max-width: 850px; }
.hero h1 { max-width: 820px; color: var(--white); font-size: clamp(3.25rem, 7.4vw, 6.7rem); }
.hero-intro { max-width: 630px; margin: 30px 0 34px; color: #dec8c3; font-size: 1.12rem; }
.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero .text-link { color: var(--white); }
.hero-proof { padding: 26px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius-md); background: rgba(50,10,6,.55); backdrop-filter: blur(14px); }
.proof-label { margin: 0 0 16px; color: var(--gold-400); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.proof-row { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.13); }
.proof-row strong { color: var(--white); font: 700 1.5rem var(--font-display); }
.proof-row span { color: #c9aaa4; font-size: .78rem; }

/* ---------- 5. Services ---------- */
.services { position: relative; z-index: 2; background: var(--ivory-50); box-shadow: 0 -28px 60px rgba(31, 7, 4, .18); }
.service-list { border-top: 1px solid var(--line); }
.service-card { display: grid; grid-template-columns: 70px 64px minmax(220px, 1fr) minmax(210px, .65fr); gap: 28px; align-items: center; min-height: 190px; border-bottom: 1px solid var(--line); }
.service-number { color: #aa928a; font-size: .82rem; font-weight: 700; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid #dacac0; border-radius: 50%; color: var(--burgundy-700); font-size: 1.45rem; transition: .25s; }
.service-card:hover .service-icon { background: var(--gold-500); border-color: var(--gold-500); color: var(--burgundy-950); transform: rotate(8deg); }
.service-card h3 { font-size: 1.45rem; letter-spacing: -.025em; }
.service-card p { max-width: 500px; margin: 10px 0 0; }
.service-card ul { margin: 0; padding: 0; list-style: none; color: #745f59; font-size: .9rem; }
.service-card li { padding: 5px 0; }
.service-card li::before { content: "—"; margin-right: 9px; color: var(--gold-500); }

/* ---------- 6. Process ---------- */
.process { background: var(--burgundy-900); color: var(--white); }
.process-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.process-intro { position: sticky; top: 140px; align-self: start; }
.process-intro > p:not(.eyebrow) { max-width: 390px; color: #c9aaa4; }
.light-link { margin-top: 20px; color: var(--white); }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 25px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.16); }
.timeline li:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.timeline > li > span { color: var(--gold-400); font-size: .8rem; font-weight: 800; }
.timeline h3 { font-size: 1.35rem; }
.timeline p { margin: 10px 0 0; color: #c9aaa4; }

/* ---------- 7. Pricing ---------- */
.pricing { background: var(--ivory-100); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { position: relative; display: flex; flex-direction: column; min-height: 540px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.price-card.featured { background: var(--burgundy-800); color: var(--white); border-color: var(--burgundy-800); box-shadow: var(--shadow); transform: translateY(-10px); }
.popular-label { position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 30px; background: var(--gold-500); color: var(--burgundy-950); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.price-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.price-top p { margin: 0; color: #967d76; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.discount { padding: 4px 8px; border-radius: 20px; background: #fff5d0; color: #774f00; font-size: .7rem; font-weight: 800; }
.price-card h3 { margin-top: 32px; font-size: 1.65rem; }
.price-card > p { min-height: 54px; }
.price { margin: 18px 0; font: 800 2.15rem var(--font-display); letter-spacing: -.04em; }
.price small { font: 500 .76rem var(--font-body); color: #9a8179; letter-spacing: 0; }
.price del { font: 500 .85rem var(--font-body); color: #a9948e; letter-spacing: 0; }
.check-list { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; }
.check-list li { padding: 9px 0; border-bottom: 1px solid var(--line); color: #66514b; font-size: .92rem; }
.check-list li::before { content: "✓"; margin-right: 10px; color: var(--burgundy-700); font-weight: 800; }
.featured p, .featured .check-list li { color: #e1cac4; }
.featured .price-top p { color: #cba9a2; }
.featured .check-list li { border-color: rgba(255,255,255,.14); }
.featured .check-list li::before { color: var(--gold-400); }
.price-card .button { width: 100%; }
.pricing-note { margin: 26px auto 0; max-width: 760px; text-align: center; font-size: .85rem; }

/* ---------- 8. About, FAQ and Contact ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 100px; align-items: start; }
.about-statement em { color: var(--burgundy-700); }
.about-copy > p:first-child { margin-top: 0; color: var(--ink-900); font-size: 1.25rem; }
.values { display: grid; grid-template-columns: 1fr 1fr; margin-top: 32px; border-top: 1px solid var(--line); }
.values span { padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--burgundy-800); font-size: .88rem; font-weight: 700; }
.faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 100px; }
.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 23px 0; border: 0; background: none; color: var(--ink-900); text-align: left; font-weight: 700; cursor: pointer; }
.accordion-item i { color: var(--burgundy-700); font-size: 1.35rem; font-style: normal; transition: transform .2s; }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-panel p { margin: 0; padding: 0 50px 22px 0; }
.accordion-item.open .accordion-panel { max-height: 170px; }
.accordion-item.open i { transform: rotate(45deg); }
.contact { padding: 105px 0; overflow: hidden; background: var(--burgundy-800); color: var(--white); position: relative; }
.contact::after { content: ""; position: absolute; width: 540px; height: 540px; right: -200px; top: -220px; border: 90px solid rgba(245,184,0,.09); border-radius: 50%; }
.contact-inner { position: relative; z-index: 1; }
.contact h2 { max-width: 900px; font-size: clamp(2.4rem, 5.5vw, 5.25rem); }
.contact > .container > p, .contact-inner > p:not(.eyebrow) { max-width: 670px; color: #e2cbc6; font-size: 1.05rem; }
.contact-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ---------- 9. Footer and floating action ---------- */
.site-footer { padding: 72px 0 25px; background: var(--burgundy-950); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 50px; }
.footer-grid img { width: 150px; height: 68px; object-fit: contain; background: var(--white); border-radius: 5px; }
.footer-grid p { color: #aa8d87; font-size: .85rem; }
.footer-grid h3 { margin-bottom: 16px; color: var(--gold-400); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid a { display: block; margin: 8px 0; color: #c9aaa4; font-size: .9rem; }
.footer-grid a:hover { color: var(--white); }
.service-area { display: block; margin-top: 12px; color: #967872; font-size: .78rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #967872; font-size: .78rem; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; display: grid; place-items: center; border: 3px solid var(--ivory-50); border-radius: 50%; background: #25d366; color: var(--white); box-shadow: 0 12px 35px rgba(28,8,5,.28); transition: transform .2s; }
.whatsapp-float svg { width: 31px; height: 31px; fill: currentColor; }
.whatsapp-float:hover { transform: scale(1.07); }

/* ---------- 10. Responsive layout ---------- */
@media (max-width: 900px) {
  .section { padding: 88px 0; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .primary-nav { position: fixed; inset: 0; flex-direction: column; justify-content: center; background: var(--ivory-50); transform: translateX(100%); transition: transform .3s ease; }
  .primary-nav.open { transform: none; }
  .primary-nav > a { font-size: 1.2rem; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 820px; }
  .hero-art { background: linear-gradient(90deg, rgba(43,8,5,.98), rgba(43,8,5,.6)), url('../assets/spotn-tech-hero.png') 66% center / cover no-repeat; background-attachment: scroll; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-proof { width: min(100%, 470px); }
  .section-heading, .about-grid, .faq-grid { display: block; }
  .section-heading > p, .about-copy, .accordion { margin-top: 34px; }
  .service-card { grid-template-columns: 50px 58px 1fr; padding: 24px 0; }
  .service-card ul { grid-column: 3; }
  .process-grid { grid-template-columns: 1fr; gap: 50px; }
  .process-intro { position: static; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 650px; margin: auto; }
  .price-card.featured { transform: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 76px; }
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: .9rem; }
  .brand-name small { display: none; }
  .hero { min-height: 780px; }
  .hero-grid { padding-top: 100px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .hero-intro { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .section-heading { margin-bottom: 38px; }
  .service-card { grid-template-columns: 42px 1fr; gap: 15px; }
  .service-icon { grid-column: 2; grid-row: 1; }
  .service-card > div:nth-of-type(2), .service-card ul { grid-column: 2; }
  .timeline li { grid-template-columns: 45px 1fr; }
  .values { grid-template-columns: 1fr; }
  .contact-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 8px; }
  .whatsapp-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
