/* ============================================
   Huda Tariq — Design Tokens
   Palette: warm paper white, royal purple, sea green
   Type: Fraunces (display serif) / Work Sans (body)
   Motif: manuscript / flowing ink — fits a writer's world
   ============================================ */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F3EEE6;
  --surface: #FFFFFF;
  --border: #E6DFD3;
  --border-soft: #EFE9DE;

  --purple: #4B2E83;
  --purple-deep: #38215F;
  --purple-glow: rgba(75, 46, 131, 0.12);

  --sea: #1F7A5C;
  --sea-glow: rgba(31, 122, 92, 0.14);

  --text: #2B2630;
  --text-muted: #6E6577;
  --text-faint: #A79FB0;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --font-display: 'Fraunces', serif;
  --font-body: 'Work Sans', sans-serif;

  --ease: cubic-bezier(.16,.84,.44,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, var(--purple-glow), transparent 45%),
    radial-gradient(circle at 100% 25%, var(--sea-glow), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.16;
  margin: 0 0 .5em;
  color: var(--purple-deep);
  letter-spacing: -0.01em;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.section-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--sea);
  margin: 0 0 12px;
}
.section-tag.center { text-align: center; }

.section-title { font-size: clamp(28px, 4vw, 38px); }
.section-title.center { text-align: center; }
.section-sub {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 48px;
  font-size: 16px;
}
.section-sub.center { text-align: center; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--purple);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--purple-deep); box-shadow: 0 8px 24px var(--purple-glow); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--sea); color: var(--sea); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--purple); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--purple-deep);
}

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  color: var(--text-muted);
  transition: color .18s;
}
.main-nav a:hover { color: var(--purple); }

.header-actions { display: flex; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--purple-deep); border-radius: 2px; }

/* ============ HERO ============ */
.hero { padding: 84px 0 60px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 20px;
}

.hero h1 { font-size: clamp(38px, 5vw, 58px); }
.ink-wrap { position: relative; color: var(--purple); display: inline-block; }
.ink-underline {
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 20px;
}
.ink-underline path {
  fill: none;
  stroke: var(--sea);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-ink 1.6s var(--ease) 0.5s forwards;
}
@keyframes draw-ink { to { stroke-dashoffset: 0; } }

.hero-lead {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 480px;
  margin: 20px 0 32px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--purple);
  background: var(--purple-glow);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ---- doc card (signature element) ---- */
.hero-visual { position: relative; }
.ink-blot {
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--sea-glow), transparent 70%);
  top: -50px; right: -70px;
  z-index: 0;
  pointer-events: none;
}

.doc-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(75,46,131,0.22);
}
.doc-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}
.doc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sea); }
.doc-title { font-family: var(--font-display); font-style: italic; font-size: 13px; color: var(--text-muted); }

.doc-body { padding: 32px 28px; }
.doc-line {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  margin: 0;
}
.doc-line.plain { color: var(--text-faint); font-style: italic; }
.doc-line.polished { color: var(--purple-deep); font-weight: 500; min-height: 1.5em; }
.doc-arrow { text-align: center; color: var(--sea); font-size: 18px; margin: 18px 0; }

.doc-footer { display: flex; gap: 10px; padding: 0 28px 24px; }
.doc-tag {
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text-faint);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
}
.doc-tag-accent { color: var(--sea); background: var(--sea-glow); }

/* small doc card variant for work samples */
.doc-card.small .doc-body { padding: 22px; }
.sample-body { display: flex; flex-direction: column; gap: 10px; }
.sample-line { display: block; height: 9px; border-radius: 5px; background: var(--border); }
.sample-line.bold { background: var(--purple-glow); height: 12px; }
.sample-line.center { margin: 0 auto; }
.sample-line.w-40 { width: 40%; } .sample-line.w-50 { width: 50%; } .sample-line.w-60 { width: 60%; }
.sample-line.w-70 { width: 70%; } .sample-line.w-80 { width: 80%; } .sample-line.w-85 { width: 85%; }
.sample-line.w-90 { width: 90%; } .sample-line.w-95 { width: 95%; } .sample-line.w-100 { width: 100%; }
.sample-btn { width: 100px; height: 26px; border-radius: 999px; background: var(--sea); margin: 6px auto 0; }

/* ============ OFFER STRIP ============ */
.offer-strip { background: var(--purple); color: #fff; }
.offer-inner { padding: 12px 24px; text-align: center; font-size: 14.5px; }
.offer-inner a { text-decoration: underline; font-weight: 600; color: #fff; }

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.lead-text { font-size: 18px; color: var(--text); }
.about-copy p { color: var(--text-muted); }
.about-list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.about-list li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.check { color: var(--sea); font-weight: 700; }

.quote-card {
  background: var(--purple);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  position: relative;
}
.quote-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.5;
  margin: 0 0 18px;
}
.quote-attr { font-size: 13px; opacity: .75; }

/* ============ SERVICES ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--sea); transform: translateY(-3px); }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.service-card-cta {
  background: linear-gradient(160deg, var(--sea-glow), transparent);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.service-card-cta .btn { align-self: flex-start; margin-top: 6px; }

/* ============ WORK ============ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.work-card h3 { margin: 16px 0 6px; font-size: 17px; }
.work-card p { color: var(--text-muted); font-size: 13.5px; margin: 0; }

/* ============ PROCESS ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.process-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.process-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 32px;
  color: var(--sea);
  margin-bottom: 10px;
}
.process-card h3 { font-size: 19px; }
.process-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ============ FAQ ============ */
.faq-wrap { max-width: 720px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 6px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  color: var(--purple-deep);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { color: var(--sea); font-size: 20px; transition: transform .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { color: var(--text-muted); padding-bottom: 20px; margin: 0; font-size: 15px; }

/* ============ CTA / CONTACT ============ */
.cta-section { text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta-title { font-size: clamp(28px, 4vw, 38px); }
.cta-sub { color: var(--text-muted); font-size: 17px; margin-bottom: 40px; }
.contact-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.social-link { color: var(--sea); font-size: 14.5px; font-weight: 600; }
.social-link:hover { text-decoration: underline; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border-soft); padding-top: 56px; background: var(--bg-alt); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand p { color: var(--text-muted); font-size: 13.5px; margin: 4px 0 0; }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; color: var(--text-muted); }
.footer-links a:hover, .footer-contact a:hover { color: var(--purple); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

#devInfo a { color: var(--purple); font-weight: 600; }

/* ============ FLOATING WHATSAPP ============ */
.floating-whatsapp {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 30px -6px var(--purple-glow);
  z-index: 60;
  transition: transform .2s;
}
.floating-whatsapp:hover { transform: scale(1.08); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-links, .footer-contact { align-items: center; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    padding: 16px 24px 24px;
    gap: 16px;
  }
  .service-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-buttons { flex-direction: column; width: 100%; }
  .contact-buttons .btn { width: 100%; }
}
