/* =========================================================================
   Jordan Lopez — Portfolio
   Shared design system
   Palette: warm editorial (clay + teal accents on warm paper)
   Type:    Fraunces (display serif) + Inter (sans body)
   ========================================================================= */

:root {
  --paper:      #FBF8F3;
  --paper-2:    #F4EEE3;
  --card:       #FFFFFF;
  --ink:        #1B1B22;
  --ink-soft:   #45423B;
  --muted:      #7A756A;
  --clay:       #C75B39;
  --clay-dark:  #A6432A;
  --clay-tint:  #FBECE5;
  --teal:       #1E7268;
  --teal-tint:  #E4EFEC;
  --line:       #E7E1D6;
  --shadow-sm:  0 2px 8px rgba(58,42,30,.06);
  --shadow-md:  0 12px 32px rgba(58,42,30,.10);
  --shadow-lg:  0 24px 60px rgba(58,42,30,.14);
  --radius:     18px;
  --radius-sm:  12px;
  --maxw:       1160px;
  --ease:       cubic-bezier(.2,.7,.2,1);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--clay-dark); text-decoration: none; }
a:hover { color: var(--clay); }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--paper-2); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--clay-dark); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--clay); border-radius: 2px; }
.center .eyebrow::before { display: none; }

.section-title { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 18px; }
.section-lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.center .section-lead { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 8px 20px rgba(199,91,57,.28); }
.btn--primary:hover { background: var(--clay-dark); color: #fff; box-shadow: 0 12px 26px rgba(199,91,57,.34); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); border-color: var(--ink); background: #fff; }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { color: var(--clay-dark); }
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,248,243,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  color: var(--ink-soft); font-weight: 500; font-size: 15.5px; padding: 8px 14px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(27,27,34,.05); }
.nav__links a.is-active { color: var(--clay-dark); font-weight: 600; }
.nav__cta { margin-left: 10px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav__toggle span { background: transparent; }
body.nav-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  color: var(--teal); background: var(--teal-tint); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(30,114,104,.2); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--clay); }
.hero__lead { font-size: 19px; color: var(--ink-soft); max-width: 520px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 26px; }
.hero__meta div { }
.hero__meta strong { font-family: var(--font-display); font-size: 26px; color: var(--ink); display: block; }
.hero__meta span { font-size: 13.5px; color: var(--muted); }
.hero__art { position: relative; }
.hero__art img { width: 100%; height: auto; }

/* ---------- marquee / trust strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust__inner { display: flex; align-items: center; gap: 14px; padding: 22px 0; flex-wrap: wrap; justify-content: center; }
.trust__label { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.trust__tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.trust__tag {
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
  background: #fff; border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px;
}

/* ---------- generic grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #ddd4c4; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--clay-tint); color: var(--clay-dark); margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon.teal { background: var(--teal-tint); color: var(--teal); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { font-size: 15.5px; color: var(--muted); }
.card__list { margin-top: 16px; display: grid; gap: 8px; }
.card__list li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--ink-soft); }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 8px;
  border-left: 2px solid var(--clay); border-bottom: 2px solid var(--clay);
  transform: rotate(-45deg);
}

/* ---------- work / case-study cards ---------- */
.work-card {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.work-card__cover { position: relative; aspect-ratio: 16/10; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.work-card__cover h3 { color: #fff; font-size: 23px; max-width: 90%; }
.work-card__kind { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(255,255,255,.22); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.cover--clay { background: linear-gradient(135deg,#C75B39,#8f3823); }
.cover--teal { background: linear-gradient(135deg,#1E7268,#0e463f); }
.cover--ink  { background: linear-gradient(135deg,#3a3a46,#1b1b22); }
.cover--gold { background: linear-gradient(135deg,#C9922E,#9a6a12); }
.work-card__cover .glyph { position: absolute; right: -10px; bottom: -18px; font-size: 120px; opacity: .16; color: #fff; font-family: var(--font-display); line-height: 1; }
.work-card__body { padding: 24px 26px 28px; }
.work-card__body p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.work-card__stats { display: flex; gap: 22px; margin-bottom: 8px; }
.work-card__stats strong { font-family: var(--font-display); font-size: 22px; color: var(--teal); display: block; }
.work-card__stats span { font-size: 12.5px; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tag { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }

/* ---------- process ---------- */
.step { position: relative; padding-left: 0; }
.step__num {
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--clay-dark);
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--clay); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--muted); }

/* ---------- testimonials ---------- */
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 28px; box-shadow: var(--shadow-sm); position: relative;
}
.quote::before {
  content: "\201C"; font-family: var(--font-display); font-size: 84px; color: var(--clay);
  opacity: .18; position: absolute; top: 6px; left: 22px; line-height: 1;
}
.quote p { font-size: 16.5px; color: var(--ink-soft); font-style: italic; margin: 18px 0 22px; position: relative; }
.quote__by { display: flex; align-items: center; gap: 13px; }
.quote__av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#C75B39,#A6432A); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; flex: none; }
.quote__by strong { display: block; color: var(--ink); font-size: 15px; }
.quote__by span { font-size: 13px; color: var(--muted); }
.quote__tag { position: relative; z-index: 1; display: inline-block; margin-bottom: 10px; }
.quote-cta {
  background: var(--ink); border-radius: var(--radius); padding: 34px 30px;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 12px; box-shadow: var(--shadow-sm);
}
.quote-cta h3 { font-family: var(--font-display); color: #fff; font-size: 23px; line-height: 1.25; }
.quote-cta p { color: rgba(255,255,255,.82); font-size: 15.5px; margin: 0 0 8px; }

/* ---------- stats band ---------- */
.stats-band { background: var(--ink); color: #fff; border-radius: 24px; padding: 44px; }
.stats-band .grid strong { font-family: var(--font-display); font-size: clamp(34px,5vw,52px); color: #fff; display: block; line-height: 1; }
.stats-band .grid span { color: rgba(255,255,255,.62); font-size: 14.5px; }
.stats-band .grid > div { text-align: center; }
.stats-band .grid strong em { color: var(--clay); font-style: normal; }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(135deg, #24242e, #16161d);
  border-radius: 28px; padding: 64px 48px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--clay); opacity: .18; top: -120px; right: -80px; }
.cta h2 { color: #fff; font-size: clamp(30px,4.5vw,46px); margin-bottom: 16px; position: relative; }
.cta p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 30px; position: relative; font-size: 18px; }
.cta .hero__actions { justify-content: center; margin-bottom: 0; position: relative; }

/* ---------- about page ---------- */
.about__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: start; }
.about__photo { position: sticky; top: 100px; }
.about__photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border-radius: 24px; box-shadow: var(--shadow-md); }
.about__photo .note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }
.prose p { font-size: 17px; margin-bottom: 18px; }
.prose h3 { font-size: 24px; margin: 34px 0 14px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill { font-size: 14px; font-weight: 600; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); padding: 9px 16px; border-radius: 999px; }
.pill.teal { color: var(--teal); background: var(--teal-tint); border-color: transparent; }

/* ---------- skill bars ---------- */
.skill { margin-bottom: 18px; }
.skill__head { display: flex; justify-content: space-between; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.skill__track { height: 8px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.skill__fill { height: 100%; background: linear-gradient(90deg,var(--clay),var(--clay-dark)); border-radius: 999px; }

/* ---------- page hero (interior) ---------- */
.page-hero { padding: 66px 0 44px; }
.page-hero h1 { font-size: clamp(38px,5.5vw,58px); margin-bottom: 18px; }
.page-hero p { font-size: 19px; color: var(--muted); max-width: 620px; }

/* ---------- services detailed ---------- */
.svc { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: none; }
.svc__head h2 { font-size: 27px; margin-bottom: 10px; }
.svc__head .price { font-size: 14px; color: var(--teal); font-weight: 600; }
.svc__head .price span { display:block; color: var(--muted); font-weight: 500; font-size:12.5px; }
.svc__body p { margin-bottom: 18px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--font-display); font-size: 19px;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--clay); transition: transform .3s; font-family: var(--font-sans); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); font-size: 16px; max-width: 760px; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-sans); font-size: 15.5px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 4px var(--clay-tint); }
.contact-info { display: grid; gap: 18px; }
.contact-info .row { display: flex; gap: 15px; align-items: flex-start; }
.contact-info .row .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--clay-tint); color: var(--clay-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-info .row .ic svg { width: 22px; height: 22px; }
.contact-info .row strong { display: block; color: var(--ink); font-size: 15.5px; }
.contact-info .row span, .contact-info .row a { font-size: 15px; color: var(--muted); }

.notice {
  font-size: 13.5px; color: var(--teal); background: var(--teal-tint); border: 1px dashed rgba(30,114,104,.4);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 22px;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 60px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer .brand { font-family: var(--font-display); font-size: 24px; color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: 15px; max-width: 320px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { color: rgba(255,255,255,.7); font-size: 15px; }
.footer__links a:hover { color: var(--clay); }
.footer__social { display: flex; gap: 12px; margin-top: 8px; }
.footer__social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #fff; }
.footer__social a:hover { background: var(--clay); }
.footer__social svg { width: 18px; height: 18px; }
.footer__social a.footer__email { width: auto; padding: 0 15px; gap: 10px; font-size: 14.5px; font-weight: 500; }
.footer__social a.footer__email span { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 13.5px; color: rgba(255,255,255,.5); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; max-width: 420px; margin-inline: auto; }
  .about__grid { grid-template-columns: 1fr; gap: 34px; }
  .about__photo { position: static; max-width: 380px; }
  .contact__grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-template-columns: 1fr; gap: 16px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 24px 24px;
    transform: translateY(-130%); transition: transform .35s var(--ease); box-shadow: var(--shadow-md);
  }
  body.nav-open .nav__links { transform: translateY(0); }
  .nav__links a { padding: 13px 14px; font-size: 17px; }
  .nav__cta { margin: 8px 0 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cta { padding: 48px 26px; }
  .stats-band { padding: 32px 22px; }
  .stats-band .grid-4 { grid-template-columns: repeat(2,1fr); gap: 28px 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__meta { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .work-card:hover { transform: none; }
}
