/* ===================================================================
   Apex Web Design — light editorial theme (cream + ink + champagne gold)
   =================================================================== */

:root {
  --cream:    #f6f3ec;
  --cream-2:  #efeae0;
  --white:    #ffffff;
  --ink:      #1d1b17;
  --slate:    #232b34;   /* dark bands: contact + footer */
  --slate-2:  #1a2129;
  --muted:    #6e685f;
  --line:     rgba(29, 27, 23, 0.10);
  --gold:     #a9803f;
  --gold-2:   #c9a368;
  --grad:     linear-gradient(100deg, #caa066 0%, #a9803f 100%);
  --grad-soft:linear-gradient(120deg, rgba(201,163,104,.16), rgba(169,128,63,.10));
  --radius:   20px;
  --maxw:     1180px;
  --shadow-lg:0 40px 80px -30px rgba(35, 30, 25, 0.32);
  --shadow-md:0 22px 50px -24px rgba(35, 30, 25, 0.26);
  --shadow-sm:0 12px 30px -18px rgba(35, 30, 25, 0.20);
  --font:     'Inter', system-ui, -apple-system, sans-serif;
  --display:  'Space Grotesk', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 52px);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246, 243, 236, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px -18px rgba(35,30,25,.4);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); }
.brand-mark { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 1.3rem; }
.brand-accent { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s, color .2s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: #2a2620; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-nav { background: var(--ink); border: 1px solid var(--ink); color: #fff !important; padding: 10px 20px; }
.btn-nav:hover { background: #2a2620; }
.btn-block { width: 100%; justify-content: center; padding: 16px; font-size: 1rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== Hero ===== */
.hero { padding: 140px clamp(20px, 5vw, 52px) 50px; max-width: var(--maxw); margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); border: 1px solid var(--line);
  padding: 8px 16px; border-radius: 999px; font-size: .85rem; color: var(--muted);
  margin-bottom: 26px; box-shadow: var(--shadow-sm);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #3f9d6a; box-shadow: 0 0 0 4px rgba(63,157,106,.16); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }

.hero-title { font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 5.2vw, 4.3rem); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 520px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero media: layered photo + floating card + offset gold block */
.hero-media { position: relative; }
.hero-blob { position: absolute; right: -22px; top: -26px; width: 62%; height: 70%; background: var(--grad); border-radius: 24px; opacity: .9; z-index: 1; }
.hero-photo { position: relative; z-index: 2; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.2; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-float {
  position: absolute; left: -24px; bottom: -26px; z-index: 3;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 20px; box-shadow: var(--shadow-md); max-width: 220px;
}
.hero-float .stars { font-size: .95rem; margin-bottom: 4px; }
.hero-float strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.hero-float span { font-size: .82rem; color: var(--muted); }

/* Hero stats strip */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 70px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.stat { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--ink); }
.stat-label { font-size: .85rem; color: var(--muted); }

/* ===== Trust bar ===== */
.trust { text-align: center; padding: 40px clamp(20px,5vw,52px) 20px; max-width: var(--maxw); margin: 0 auto; }
.trust-label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(24px, 6vw, 64px); }
.trust-logos span { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: rgba(29,27,23,.32); transition: color .2s; }
.trust-logos span:hover { color: var(--ink); }

/* ===== Section scaffold ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 9vw, 110px) clamp(20px, 5vw, 52px); position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head.left { text-align: left; margin: 0 0 36px; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 14px; }
.section-title { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; letter-spacing: -.02em; color: var(--ink); }
.section-lead { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }

/* full-bleed tinted band behind a centered section */
.tint::before { content: ""; position: absolute; inset: 0 50% 0 50%; transform: translateX(-50%); width: 100vw; background: var(--cream-2); z-index: -1; }

/* ===== Service cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: transform .25s, box-shadow .25s; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-icon { font-size: 1.5rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); color: #fff; margin-bottom: 20px; box-shadow: 0 12px 24px -10px rgba(169,128,63,.6); }
.card h3 { font-family: var(--display); font-size: 1.18rem; margin-bottom: 10px; color: var(--ink); }
.card p { color: var(--muted); font-size: .96rem; }

/* ===== Process ===== */
.process-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: center; }
.process-media { position: relative; }
.process-blob { position: absolute; left: -24px; bottom: -26px; width: 60%; height: 60%; background: var(--grad); border-radius: 24px; opacity: .9; z-index: 1; }
.process-photo { position: relative; z-index: 2; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.process-photo img { width: 100%; height: 100%; object-fit: cover; }
.process-badge { position: absolute; right: -20px; top: -22px; z-index: 3; background: var(--ink); color: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-md); text-align: center; }
.pb-num { display: block; font-family: var(--display); font-weight: 700; font-size: 1.4rem; }
.pb-label { font-size: .78rem; opacity: .75; }

.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 20px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; transition: transform .22s, box-shadow .22s; }
.step:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.step-num { font-family: var(--display); font-weight: 700; font-size: 1.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; flex-shrink: 0; line-height: 1.2; }
.step h3 { font-family: var(--display); font-size: 1.12rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ===== Work / portfolio ===== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.work { transition: transform .3s; }
.work:hover { transform: translateY(-6px); }
.browser { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #16131f; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #1b1726; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3450; }
.browser-bar span:nth-child(1){ background:#ff5f57; } .browser-bar span:nth-child(2){ background:#febc2e; } .browser-bar span:nth-child(3){ background:#28c840; }
.browser-bar i { margin-left: 12px; font-style: normal; font-size: .78rem; color: #a6a4bd; background: #0f0d18; padding: 4px 14px; border-radius: 8px; flex: 1; }
.browser-shot { height: 330px; overflow: hidden; background: #fff; }
.browser-shot img { width: 100%; display: block; transition: transform 5s ease; }
.work:hover .browser-shot img { transform: translateY(calc(-100% + 330px)); }
figcaption { margin-top: 16px; display: flex; flex-direction: column; gap: 2px; padding: 0 4px; }
figcaption strong { font-family: var(--display); font-size: 1.05rem; }
figcaption span { color: var(--muted); font-size: .88rem; }

/* portfolio thumbnails are real screenshots in .browser-shot (see top of Work section) */

/* ===== Reviews ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; overflow: hidden; }
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote-mark { position: absolute; top: 6px; right: 22px; font-family: var(--display); font-size: 4.5rem; line-height: 1; color: rgba(169,128,63,.18); }
.stars { color: #d6a738; letter-spacing: 3px; font-size: 1.05rem; }
.review p { color: #4a463f; font-size: .98rem; position: relative; }
.reviewer { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; color: #fff; background: var(--a, var(--gold)); flex-shrink: 0; }
.reviewer strong { display: block; font-size: .95rem; }
.reviewer span { color: var(--muted); font-size: .82rem; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.about-blob { position: absolute; right: -22px; top: -24px; width: 60%; height: 64%; background: var(--grad); border-radius: 24px; opacity: .9; z-index: 1; }
.about-photo { position: relative; z-index: 2; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.glass-card { position: absolute; right: -26px; bottom: -28px; z-index: 3; width: 250px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-md); }
.gc-row { display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 600; margin-bottom: 7px; }
.gc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.gc-bar { height: 7px; background: rgba(29,27,23,.08); border-radius: 999px; margin-bottom: 16px; overflow: hidden; }
.gc-bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.about-copy p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.about-copy .section-title { margin-top: 8px; }
.about-points { list-style: none; margin: 24px 0 28px; display: flex; flex-direction: column; gap: 12px; }
.about-points li { display: flex; align-items: center; gap: 12px; color: #4a463f; }
.about-points span { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: .75rem; color: #fff; flex-shrink: 0; }

/* ===== Contact (dark band) ===== */
.contact::before { content: ""; position: absolute; inset: 0 50% 0 50%; transform: translateX(-50%); width: 100vw; background: var(--slate); z-index: -1; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact .eyebrow { color: var(--gold-2); }
.contact .section-title { color: #f4f1ea; }
.contact .section-lead { color: #b9b3a7; }
.contact-perks { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.contact-perks li { display: flex; align-items: center; gap: 12px; color: #d9d4c9; }
.contact-perks span { color: var(--gold-2); }
.contact-form { display: flex; flex-direction: column; gap: 16px; background: var(--white); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .85rem; font-weight: 600; color: #36322c; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; color: var(--ink); font-family: var(--font); font-size: .98rem;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #a39d92; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169,128,63,.16); background: #fff; }
.field input.invalid, .field textarea.invalid { border-color: #d96a5b; box-shadow: 0 0 0 3px rgba(217,106,91,.14); }
.contact .btn-primary { background: var(--grad); color: #2b2008; }
.contact .btn-primary:hover { background: linear-gradient(100deg,#d4ad72,#b58a47); }
.form-status { font-size: .92rem; text-align: center; min-height: 1.2em; }
.form-status.success { color: #2f8f5b; }
.form-status.error { color: #c4503f; }

/* ===== Footer (dark) ===== */
.footer { background: var(--slate-2); color: #cfcabf; padding: 64px clamp(20px,5vw,52px); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer .brand { font-size: 1.3rem; color: #f4f1ea; }
.footer .brand-accent { color: #9d978b; }
.footer-tag { color: #9d978b; max-width: 480px; }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: #b9b3a7; font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { color: #6f695f; font-size: .85rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 70px; }
  .hero-media { max-width: 480px; }
  .process-grid, .about-grid, .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
  .process-media, .about-visual { max-width: 460px; }
  .about-visual { order: -1; }
  .cards, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 8px; padding: 90px 30px 40px; background: rgba(246,243,236,.98); backdrop-filter: blur(20px); transform: translateY(-110%); transition: transform .35s ease; height: 100vh; justify-content: flex-start; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1.3rem; }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity: 0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .cards, .reviews-grid, .work-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(2) { border-right: 0; }
  .hero-stats .stat:nth-child(1), .hero-stats .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
