/* ===== The Lost Coin, LLC — styles ===== */
:root {
  --purple: #2c1964;
  --purple-dark: #1e1147;
  --purple-light: #4a3591;
  --accent: #3b82f6;
  --ink: #0f2137;
  --text: #333;
  --muted: #6b6b80;
  --bg: #f5f5f5;
  --bg-soft: #f2f4fb;
  --white: #fff;
  --radius: 14px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
p { margin: 0 0 1em; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.center { text-align: center; }
.light { color: var(--white) !important; }

.eyebrow {
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: .8em;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--purple);
  color: var(--white);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--purple-light); transform: translateY(-2px); }
.btn-light { background: var(--white); color: var(--purple); }
.btn-light:hover { background: #ece8fb; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: stretch;
  height: 90px;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(20, 10, 60, .08);
}
.logo {
  background: var(--purple);
  display: flex; align-items: center; justify-content: center;
  width: 94px; flex-shrink: 0;
}
.logo img { width: 78px; height: 78px; object-fit: contain; }
.main-nav {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 32px;
}
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 1.05rem; color: var(--purple);
  position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; background: var(--purple); transition: width .25s;
}
.main-nav a:hover::after { width: 100%; }
.header-cta {
  background: var(--purple); color: var(--white);
  display: flex; align-items: center;
  padding: 0 44px; font-size: 1.2rem; font-weight: 500; text-decoration: none;
  transition: background .2s;
}
.header-cta:hover { background: var(--purple-light); }
.nav-toggle, .nav-burger { display: none; }

.inquire-tab {
  position: fixed; right: 0; top: 45%; z-index: 40;
  writing-mode: vertical-rl; transform: rotate(180deg);
  background: var(--accent); color: var(--white);
  padding: 16px 10px; border-radius: 0 6px 6px 0;
  font-weight: 600; font-size: .9rem; text-decoration: none;
}

/* ===== Hero ===== */
.hero {
  min-height: max(560px, min(calc(100vh - 90px), 1000px));
  display: flex; align-items: center;
  background:
    linear-gradient(rgba(44, 25, 100, .77), rgba(44, 25, 100, .77)),
    url("images/hero-bg.jpg") center / cover no-repeat,
    var(--purple);
  color: var(--white);
}
.hero-inner { max-width: 1440px; width: 100%; margin: 0 auto; padding: 80px 20px 80px clamp(20px, 12vw, 240px); }
.hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 4rem); line-height: 1.34; margin-bottom: .4em; }
.hero-sub {
  font-size: clamp(.75rem, 1.4vw, 1.4rem); letter-spacing: .18em; line-height: 1.6;
  text-transform: uppercase; margin: 0 0 1.4em 4px;
}
.hero-points {
  list-style: none; padding: 0; margin: 0 0 1.4em 4px;
  font-size: clamp(1rem, 2vw, 1.9rem); letter-spacing: .06em; line-height: 1.3; text-transform: uppercase;
}
.hero-points li + li { margin-top: .55em; }
.hero-btn {
  display: inline-block;
  background: var(--purple); color: var(--white);
  border: 1px solid var(--white); border-radius: 3px;
  padding: .3em .85em; font-size: clamp(.9rem, 1.6vw, 1.6rem); font-weight: 500; line-height: 1.9;
  text-decoration: none; transition: background .2s;
}
.hero-btn:hover { background: var(--purple-light); }

/* ===== Founder ===== */
.founder { background: var(--bg-soft); }
.founder-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.founder h2 span { font-size: .7em; color: var(--purple); }
.more summary {
  cursor: pointer; color: var(--purple); font-weight: 600; margin-bottom: 1em;
  list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " +"; }
.more[open] summary::after { content: " −"; }
.credentials { display: flex; gap: 16px; margin-top: 24px; }
.credentials img { height: 70px; width: auto; border-radius: 6px; }
.founder-image img { border-radius: var(--radius); margin-left: auto; }

/* ===== Team ===== */
.team { background: var(--white); }
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 50px;
}
.member { margin: 0; text-align: center; }
.member img {
  width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s;
}
.member:hover img { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(44,25,100,.2); }
.member figcaption { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-top: 14px; }

/* ===== Media ===== */
.media { background: var(--purple); }
.divider { width: 80px; height: 2px; background: rgba(255,255,255,.6); margin: 0 auto 50px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.video-grid img { border-radius: var(--radius); width: 100%; }
.media-note { max-width: 720px; margin: 40px auto 0; opacity: .85; }

/* ===== Firm ===== */
.firm { background: var(--white); }
.firm-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: center; }
.firm-logo { max-width: 340px; margin: 0 auto; }

/* ===== Services ===== */
.services { background: var(--purple-dark); }
.service-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 50px;
  color: rgba(255,255,255,.85);
}
.service-card + .service-card { margin-top: 50px; }
.service-card h2 { color: var(--white); }
.service-card.reverse .service-art { order: -1; }
.service-art { width: 100%; max-width: 440px; margin: 0 auto; }
.checklist {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
}
.checklist li {
  position: relative; padding-left: 36px; font-weight: 600; color: var(--white); line-height: 1.4;
}
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: -2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: .8rem;
}

/* ===== Testimonials ===== */
.testimonials { background: var(--bg-soft); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 50px; }
.testimonial {
  margin: 0; background: var(--white); border-radius: var(--radius);
  padding: 36px 30px; box-shadow: 0 10px 30px rgba(44,25,100,.08);
  display: flex; flex-direction: column;
  position: relative;
}
.testimonial::before {
  content: "“"; font-family: var(--serif); font-size: 5rem; line-height: 1;
  color: var(--purple); opacity: .15; position: absolute; top: 10px; right: 24px;
}
.testimonial p { flex: 1; }
.testimonial footer { border-top: 1px solid #e6e3f0; padding-top: 16px; display: flex; flex-direction: column; }
.testimonial footer strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--ink); }
.testimonial footer span { color: var(--muted); font-size: .9rem; }

/* ===== Contact ===== */
.contact {
  background: linear-gradient(var(--bg-soft) 0 140px, var(--white) 140px);
  padding: 70px 3% 70px;
}
.contact-banner {
  position: relative;
  max-width: 1900px; margin: 0 auto;
  /* form column is ~1/3 of the banner, like the live site, so the woman in the photo stays visible */
  display: grid; grid-template-columns: 1fr minmax(340px, 34%); gap: 40px; align-items: start;
  background: url("images/office-1.jpg") center / cover no-repeat, var(--purple);
  padding: 0 8% 0 5%;
  margin-top: 95px; /* room for the form card to rise above the banner */
}
.contact-text { padding: 170px 0 80px; color: var(--white); }
.contact-eyebrow {
  font-weight: 600; font-size: clamp(.85rem, 1.1vw, 1.3rem); letter-spacing: .2em; margin-bottom: 1.6em;
}
.contact-text h2 { color: var(--white); font-size: clamp(2.2rem, 3.6vw, 4.2rem); line-height: 1.4; margin-bottom: .6em; }
.contact-call {
  display: inline-block;
  border: 3px solid var(--white);
  padding: .55em 1.75em;
  font-size: clamp(1.2rem, 1.8vw, 2.1rem); font-weight: 700; color: var(--white); text-decoration: none;
  transition: background .2s, color .2s;
}
.contact-call:hover { background: var(--white); color: var(--purple); }

.consult-form {
  margin-top: -95px; margin-bottom: 140px;
  background: var(--white);
  border-radius: 3px;
  box-shadow: 0 10px 40px rgba(20, 10, 60, .18);
  overflow: hidden;
}
.consult-form h3 {
  margin: 0; background: var(--purple); color: var(--white);
  font-family: var(--sans); font-weight: 600; text-align: center;
  font-size: clamp(1.4rem, 2vw, 2.3rem); padding: .6em 1em;
}
.consult-fields { display: grid; gap: 38px; padding: 20px 38px 38px; }
.consult-fields input, .consult-fields textarea {
  width: 100%; font: inherit; font-size: clamp(1rem, 1.25vw, 1.5rem); color: #333;
  background: #fafafa; border: 1px solid #d6d8d9; border-radius: 2px;
  padding: .7em .9em;
}
.consult-fields textarea { resize: vertical; min-height: 140px; }
.consult-fields input::placeholder, .consult-fields textarea::placeholder { color: #444; }
.consult-fields input:focus, .consult-fields textarea:focus { outline: 2px solid var(--purple-light); outline-offset: 1px; }
.consult-fields button {
  font: inherit; font-weight: 600; font-size: clamp(1rem, 1.3vw, 1.55rem);
  background: #45b38a; color: var(--white); border: 0; border-radius: 2px;
  padding: .6em 1em; cursor: pointer; transition: background .2s;
}
.consult-fields button:hover { background: #02af8c; }
.consult-fields button:disabled { opacity: .7; cursor: wait; }
.form-status { margin: -18px 0 0; padding: .7em 1em; border-radius: 2px; font-weight: 500; }
.form-status.is-ok { background: #e6f6ef; color: #146c4a; }
.form-status.is-error { background: #fdecec; color: #a12a2a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* spam-trap field: beat the form input styles so it stays a hidden 1px box */
.consult-form { position: relative; }
.consult-fields input.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Footer ===== */
.site-footer { background: #120a2e; color: rgba(255,255,255,.6); padding: 60px 0 30px; font-size: .85rem; line-height: 1.6; }
.site-footer strong { color: rgba(255,255,255,.85); }
.copyright { text-align: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .section { padding: 70px 0; }
  .founder-grid, .firm-grid, .service-card, .contact-grid { grid-template-columns: 1fr; }
  .service-card.reverse .service-art { order: 0; }
  .service-card { padding: 32px 24px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .founder-image img { margin: 0 auto; }
  .contact { padding: 50px 0 0; background: var(--white); }
  .contact-banner { grid-template-columns: 1fr; gap: 0; margin-top: 0; padding: 0 20px 40px; }
  .contact-text { padding: 60px 0 40px; }
  .consult-form { margin: 0; }
  .consult-fields { gap: 20px; padding: 20px; }
}

@media (max-width: 820px) {
  .site-header { height: 72px; }
  .logo { width: 72px; }
  .logo img { width: 60px; height: 60px; }
  .header-cta { padding: 0 20px; font-size: 1rem; margin-left: auto; }
  .nav-burger {
    display: flex; align-items: center; padding: 0 20px; cursor: pointer;
  }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    display: block; width: 24px; height: 2px; background: var(--purple); position: relative;
  }
  .nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; }
  .nav-burger span::before { top: -7px; }
  .nav-burger span::after { top: 7px; }
  .main-nav {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .main-nav a { padding: 14px 20px; width: 100%; border-top: 1px solid #eee; }
  .main-nav a::after { display: none; }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  html { scroll-padding-top: 72px; }
}

@media (max-width: 520px) {
  .video-grid, .checklist { grid-template-columns: 1fr; }
  .team-grid { gap: 16px; }
  .member figcaption { font-size: 1.05rem; }
  .header-cta { font-size: .9rem; padding: 0 14px; }
  .inquire-tab { display: none; }
}

/* ===== Animations (matched to the live site) ===== */

/* Scroll-in: appear from left / right / bottom / center, 0.7s, like the live theme.
   Only hidden when JS is running, so content is never stuck invisible. */
@keyframes afl { from { opacity: 0; transform: translateX(-3rem); } to { opacity: 1; transform: none; } }
@keyframes afr { from { opacity: 0; transform: translateX(3rem); }  to { opacity: 1; transform: none; } }
@keyframes afb { from { opacity: 0; transform: translateY(3rem); }  to { opacity: 1; transform: none; } }
@keyframes afc { from { opacity: 0; transform: scale(.2); }         to { opacity: 1; transform: none; } }
.js .anim { opacity: 0; }
.js .anim.in-view { opacity: 1; animation: .7s ease both; }
.js .anim.afl.in-view { animation-name: afl; }
.js .anim.afr.in-view { animation-name: afr; }
.js .anim.afb.in-view { animation-name: afb; }
.js .anim.afc.in-view { animation-name: afc; }

/* Hero: each line slides up from behind a mask, one after another */
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.mask { overflow: hidden; }
.mask-btn { padding: 2px; margin: -2px; } /* keep the button outline from being clipped */
.rise { display: inline-block; animation: rise 1.2s cubic-bezier(.77, 0, .175, 1) var(--d, 0s) both; }

/* Founder photo: slow endless bounce (9s loop) */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-30px); }
  60% { transform: translateY(-15px); }
}
.bounce { animation: bounce 9s infinite; }

@media (prefers-reduced-motion: reduce) {
  .js .anim, .js .anim.in-view, .rise, .bounce { animation: none !important; opacity: 1 !important; transform: none !important; }
}
/* stop slide-in-from-right blocks from causing a sideways scrollbar (clip keeps the sticky header working) */
body { overflow-x: clip; }
