/* ============================================================
   Asbury AI Solutions — styles.css
   Warm, boardwalk-town, anti-SaaS. Mobile-first.

   NOTE FOR FUTURE: a local Asbury Park artist will redesign the
   brand visuals later. Tokens below are deliberately centralized
   so a reskin only touches :root. Keep structure flexible.
   ============================================================ */

:root {
  /* --- Color: warm, trustworthy base + boardwalk sunset accent --- */
  --navy:        #1f2a44;   /* deep navy — authority/stability */
  --navy-deep:   #161e33;
  --charcoal:    #2b2b30;
  --cream:       #fbf6ee;   /* off-white background, never stark white */
  --cream-deep:  #f3ead9;
  --sand:        #efe3cf;
  --ink:         #23262e;   /* body text */
  --ink-soft:    #555a66;

  --amber:       #f0a13a;   /* golden amber — boardwalk sunset */
  --orange:      #e9702a;   /* sunset orange — CTAs */
  --orange-deep: #d65f1c;
  --teal:        #2f7d7b;   /* gentle ocean accent for tags */

  --white:       #ffffff;
  --line:        #e7dcc8;

  /* --- Type --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* --- Spacing / shape --- */
  --radius:    16px;
  --radius-lg: 28px;
  --shadow:    0 10px 30px rgba(31, 42, 68, 0.10);
  --shadow-lg: 0 24px 60px rgba(31, 42, 68, 0.16);
  --maxw:      1140px;
}

/* --- Reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; color: var(--navy); margin: 0 0 0.4em; font-weight: 600; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 20px rgba(233,112,42,.32); }
.btn--primary:hover { background: var(--orange-deep); box-shadow: 0 12px 26px rgba(233,112,42,.40); }
.btn--lg { font-size: 1.08rem; padding: 1em 1.8em; }
.btn--block { width: 100%; }
.btn--small { padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn--nav { background: var(--navy); color: var(--cream); }
.btn--nav:hover { background: var(--navy-deep); }

.eyebrow {
  font-family: var(--font-body); font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.78rem; color: var(--orange-deep);
  margin: 0 0 0.8em;
}

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
.section-sub { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

section { padding: 84px 0; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 238, 0.82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo__mark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--navy); color: var(--cream); border-radius: 11px;
}
.logo__dot { color: var(--amber); }
.logo__word { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--navy); }
.logo__accent { color: var(--orange); }
.nav .logo__word { display: none; }
@media (min-width: 560px) { .nav .logo__word { display: inline; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(240,161,58,0.20), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(233,112,42,0.08), transparent 55%),
    var(--cream);
}
.hero__inner { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.15fr 0.85fr; gap: 56px; } }

.hero__headline {
  font-size: clamp(2.6rem, 8vw, 4.4rem); font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
.hero__headline-sub {
  display: block; font-size: clamp(1.3rem, 3.4vw, 1.9rem); font-weight: 500;
  color: var(--orange-deep); margin-top: 0.25em;
}
.hero__subhead { font-size: 1.2rem; color: var(--ink); max-width: 30ch; margin: 0 0 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 1.4em; }
.hero__cta-note { color: var(--ink-soft); font-size: 0.95rem; }
.hero__reassure {
  font-size: 0.98rem; color: var(--ink-soft); max-width: 44ch;
  border-left: 3px solid var(--amber); padding-left: 14px; margin: 0;
}

/* Photo card */
.hero__photo { display: flex; justify-content: center; }
.photo-card { margin: 0; background: var(--white); padding: 12px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-width: 380px; width: 100%; }
.photo-card__img {
  border-radius: 20px; background:
    repeating-linear-gradient(135deg, var(--sand) 0 22px, var(--cream-deep) 22px 44px);
  display: grid; place-items: center; color: var(--ink-soft); text-align: center;
  font-size: 0.9rem; font-weight: 500;
}
.photo-card__img--portrait { aspect-ratio: 4 / 5; }
.photo-card__img--wide { aspect-ratio: 4 / 3; border-radius: var(--radius); }
.photo-card__hint { padding: 12px; opacity: 0.75; }
.photo-card__caption { display: flex; flex-direction: column; padding: 14px 8px 6px; }
.photo-card__caption strong { font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; }
.photo-card__caption span { color: var(--ink-soft); font-size: 0.92rem; }

/* soft wave divider at hero bottom */
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 40px;
  background: var(--cream); -webkit-mask: radial-gradient(28px at 50% 0, transparent 98%, #000) repeat-x; mask: radial-gradient(28px at 50% 0, transparent 98%, #000) repeat-x;
  -webkit-mask-size: 56px 40px; mask-size: 56px 40px; display: none; }

/* ============================================================
   STORIES
   ============================================================ */
.stories { background: var(--white); }
.stories__grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .stories__grid { grid-template-columns: repeat(3, 1fr); } }
.story-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.story-card__icon { font-size: 2rem; margin-bottom: 12px; }
.story-card h3 { font-size: 1.35rem; }
.story-card p { color: var(--ink-soft); margin: 0; }

/* inbox demo (picture-superiority mockup) */
.inbox-demo {
  margin: 44px auto 0; max-width: 620px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.inbox-demo__chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--cream-deep); border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot--red { background: #e9573f; } .dot--amber { background: var(--amber); } .dot--green { background: #4caa6a; }
.inbox-demo__from { margin-left: 10px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }
.inbox-demo__body { padding: 22px 24px; }
.inbox-demo__greeting { font-weight: 600; color: var(--navy); margin: 0 0 14px; }
.inbox-demo__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.inbox-demo__list li { color: var(--ink); font-size: 0.98rem; line-height: 1.5; }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; padding: 2px 9px; border-radius: 999px; margin-right: 8px; color: var(--white); vertical-align: middle; }
.tag--blue { background: var(--teal); } .tag--amber { background: var(--orange); } .tag--green { background: #4caa6a; }
.inbox-demo__foot { color: var(--ink-soft); font-size: 0.92rem; margin: 0; font-style: italic; }

.stories__teach { text-align: center; margin: 40px auto 0; font-size: 1.2rem; color: var(--navy); max-width: 36ch; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--cream); }
.about__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .about__inner { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.about__photo .photo-card__img { box-shadow: var(--shadow); }
.about__copy h2 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
.about__copy p { color: var(--ink-soft); margin: 0 0 1.1em; max-width: 56ch; }
.about__points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.about__points li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); }
.about__points span { font-size: 1.2rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: var(--navy);
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.how .section-head h2, .how .section-head { color: var(--cream); }
.how .section-head h2 { color: var(--cream); }
.how .eyebrow { color: var(--amber); }
.how .section-sub { color: rgba(251,246,238,0.7); }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; counter-reset: step; }
@media (min-width: 800px) { .how__steps { grid-template-columns: repeat(3, 1fr); } }
.how__step { position: relative; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 32px 26px; }
.how__num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: 16px; }
.how__step h3 { color: var(--cream); font-size: 1.3rem; }
.how__step p { color: rgba(251,246,238,0.78); margin: 0; }
.how__step em { color: var(--amber); font-style: normal; font-weight: 600; }

/* ============================================================
   WORK / PORTFOLIO
   ============================================================ */
.work { background: var(--white); }
.work__grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .work__grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.work-card__quote { font-family: var(--font-display); font-size: 1.18rem; color: var(--navy); margin: 0; line-height: 1.35; }
.work-card__build h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange-deep); margin: 0 0 4px; }
.work-card__build p { margin: 0; color: var(--ink-soft); }
.work-card__saved { font-weight: 700; color: var(--teal); margin: 0; }
.work-card__badge { margin-top: auto; font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
  background: var(--sand); padding: 6px 12px; border-radius: 999px; align-self: flex-start; }
.work-card--placeholder .ph { background: linear-gradient(90deg, var(--sand), var(--cream-deep)); color: var(--ink-soft);
  border-radius: 4px; padding: 0 4px; font-style: italic; }

.testimonials { margin-top: 40px; display: grid; place-items: center; }
.testimonial { margin: 0; max-width: 620px; text-align: center; background: var(--cream);
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px 28px; }
.testimonial p { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin: 0 0 14px; line-height: 1.4; }
.testimonial footer { color: var(--ink-soft); font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px; }
.testimonial__avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--amber); color: var(--white); font-size: 0.8rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--cream); }
.faq__list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-display);
  font-weight: 600; font-size: 1.18rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.6rem; color: var(--orange); font-weight: 400; line-height: 1; transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0 0 18px; color: var(--ink-soft); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--white);
  background: radial-gradient(900px 400px at 100% 0%, rgba(240,161,58,0.16), transparent 60%), var(--white);
}
.contact__inner { display: grid; gap: 40px; align-items: start; }
@media (min-width: 860px) { .contact__inner { grid-template-columns: 1fr 1fr; gap: 56px; } }
.contact__copy h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.contact__copy p { color: var(--ink-soft); max-width: 46ch; }
.contact__alt { font-weight: 500; color: var(--ink); }
.contact__wave { color: var(--ink-soft); }

.contact__form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.95rem; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(233,112,42,0.15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 14px 0 0; font-size: 0.95rem; font-weight: 500; min-height: 1.2em; }
.form__status.is-ok { color: var(--teal); }
.form__status.is-err { color: var(--orange-deep); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-deep); color: rgba(251,246,238,0.8); padding: 48px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer .logo__word { color: var(--cream); font-size: 1.3rem; }
.footer__tag { margin: 8px 0 0; color: var(--amber); font-size: 0.95rem; }
.footer__meta { text-align: right; font-size: 0.95rem; }
.footer__meta p { margin: 0 0 4px; }
.footer__meta a { color: var(--amber); }
.footer__copy { color: rgba(251,246,238,0.55); font-size: 0.85rem; margin-top: 10px; }
@media (max-width: 540px) { .footer__meta { text-align: left; } }

/* ============================================================
   SCROLL REVEAL (subtle, tasteful)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .story-card:hover { transform: none; }
}
