/* G&L CPA Inc. — Option A HTML mockup
   Colors sampled from renderings/A-teal-hero.jpg
   Fonts: system-installed Libre Baskerville + Inter (this machine).
*/

:root {
  --teal: #055d6b;
  --teal-dark: #02444d;
  --teal-ink: #0a3f46;
  --teal-hover: #044851;
  --mint-1: #cfe8ea;
  --mint-2: #e7f4f5;
  --mint-3: #edf1f4;
  --text: #1c2e31;
  --text-muted: #3d5558;
  --line: #d5e0e2;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(2, 68, 77, 0.08);
  --wrap: 1120px;
  --header-h: 76px;
  --radius: 8px;
  --font-serif: "Libre Baskerville", "Crimson Pro", Georgia, "Times New Roman", serif;
  --font-sans: Inter, "Libre Franklin", Lato, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-dark);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
  border-radius: 4px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header
   -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid rgba(2, 68, 77, 0.06);
  overflow: visible;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--teal-ink);
  min-width: 0;
}

.logo-placeholder {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px dashed var(--teal);
  background: #f3fafb;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--teal-ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}
.nav a:hover { color: var(--teal); }

.btn-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.btn-phone:hover { background: var(--teal-hover); color: #fff; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--teal-ink);
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}
.menu-toggle:hover { background: var(--mint-2); }
.menu-toggle svg { width: 22px; height: 22px; display: block; }

/* Hero
   -------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  background: linear-gradient(180deg, #c9e4e7 0%, #e7f4f5 55%, #eaf5f6 100%);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0 0 0 40%;
  z-index: 0;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 18%, #000 38%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 18%, #000 38%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 72px 0 80px;
}

.hero-copy {
  max-width: 32rem;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.2vw, 3.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--teal-ink);
}

.hero-lead {
  margin: 0 0 32px;
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 30rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 6px;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--teal-hover); color: #fff; }

/* About
   -------------------------------------------------- */
.about {
  padding: 88px 0 80px;
  background: var(--white);
  text-align: center;
}

.about h2,
.services h2,
.contact h2 {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 2.6vw, 2.25rem);
  color: var(--teal-ink);
  letter-spacing: -0.015em;
}

.about-body {
  max-width: 42rem;
  margin: 0 auto;
}

.about-body p {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.02rem;
}

.about-note {
  margin: 22px 0 0 !important;
  color: var(--teal) !important;
  font-weight: 600;
  font-size: 1.05rem !important;
}

/* Services
   -------------------------------------------------- */
.services {
  padding: 72px 0 88px;
  background: var(--mint-3);
  text-align: center;
}

.services-lead {
  margin: -8px auto 40px;
  max-width: none;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  text-align: left;
}

.service-card {
  background: var(--white);
  border-radius: 10px;
  padding: 28px 22px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(2, 68, 77, 0.04);
  min-height: 100%;
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--teal);
  margin-bottom: 14px;
}
.service-icon svg { width: 44px; height: 44px; display: block; }

.service-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--teal-ink);
}
.service-card h3:has(+ .service-subhead) { margin-bottom: 2px; }
.service-subhead {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.01em;
}

.service-card ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}
.service-card li { margin: 0 0 6px; }
.service-card li:last-child { margin-bottom: 0; }

/* Contact
   -------------------------------------------------- */
.contact {
  padding: 80px 0 88px;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-details p,
.contact-details address {
  margin: 0 0 10px;
  font-style: normal;
  font-size: 1.02rem;
  color: var(--text);
}

.contact-details a {
  color: var(--teal-ink);
  text-decoration: none;
}
.contact-details a:hover { color: var(--teal); text-decoration: underline; }

.contact-label {
  font-weight: 600;
  color: var(--teal-ink);
}

.map-frame {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8eeed;
}
.map-frame img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
}
.map-frame figcaption {
  margin: 0;
  padding: 8px 12px;
  background: var(--teal-dark);
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
}

/* Footer
   -------------------------------------------------- */
.site-footer {
  background: var(--teal-dark);
  color: #e7f2f3;
  text-align: center;
  padding: 22px 16px;
  font-size: 0.88rem;
}
.site-footer p { margin: 0; }

.footer-links {
  margin-top: 8px !important;
  display: flex;
  justify-content: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}
.site-footer a {
  color: #e7f2f3;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-footer a:hover { color: #fff; }

/* Mobile
   -------------------------------------------------- */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }

  .wrap { width: min(var(--wrap), calc(100% - 32px)); }

  .menu-toggle { display: inline-grid; place-items: center; }

  .header-right { gap: 8px; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 8px 0 12px;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 24px;
    font-size: 1.02rem;
  }

  .wordmark { font-size: 1.2rem; }
  .logo-placeholder { width: 34px; height: 34px; font-size: 9px; }
  .btn-phone { padding: 8px 12px; font-size: 0.82rem; }

  .hero { min-height: 420px; }
  .hero-media { inset: 0 0 0 38%; }
  .hero-inner { min-height: 420px; padding: 48px 0 56px; }
  .hero-copy { max-width: 58%; }
  .hero h1 { font-size: 2rem; margin-bottom: 12px; }
  .hero-lead { font-size: 0.95rem; margin-bottom: 22px; }
  .btn-primary { padding: 11px 20px; font-size: 0.92rem; }

  .about { padding: 56px 0 52px; text-align: left; }
  .about h2, .services h2, .contact h2 { text-align: left; margin-bottom: 16px; }
  .about-body { margin: 0; }
  .about-note { text-align: left; }

  .services { padding: 52px 0 56px; }
  .services-lead { text-align: left; margin: -4px 0 28px; }
  .service-grid { gap: 14px; }
  .service-card { padding: 20px 16px 18px; }
  .service-icon, .service-icon svg { width: 36px; height: 36px; }
  .contact { padding: 52px 0 56px; }
  .map-frame img { height: 200px; }
}

@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-copy { max-width: 62%; }
  .hero h1 { font-size: 1.7rem; }
}

/* Legal pages
   -------------------------------------------------- */
.placeholder {
  background: #ffe566;
  color: #3d3200;
  border: 1px dashed #b8941a;
  border-radius: 3px;
  padding: 0 0.22em;
  font-weight: 600;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.draft-banner {
  margin: 0 0 28px;
  padding: 12px 16px;
  background: #fff6c8;
  border: 1px solid #c9a227;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: #3d3200;
  line-height: 1.5;
}

.legal-page {
  padding: 56px 0 88px;
  background: var(--white);
}
.legal-inner {
  max-width: 52rem;
  margin: 0 auto;
  text-align: left;
}
.legal-page h1 {
  margin: 0 0 20px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 2.6vw, 2.25rem);
  color: var(--teal-ink);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.legal-page h2 {
  margin: 28px 0 10px;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--teal-ink);
}
.legal-page p {
  margin: 0 0 16px;
  font-size: 1.02rem;
  color: var(--text);
}
.legal-page a {
  color: var(--teal);
  font-weight: 600;
}
.legal-page a:hover { color: var(--teal-dark); }

.no-share {
  padding: 12px 16px;
  border-left: 4px solid var(--teal);
  background: var(--mint-2);
}

@media (max-width: 760px) {
  .legal-page { padding: 36px 0 56px; }
}

/* Step 4i: lock icon / title / subtitle rows to the same baseline in every tile */
.service-icon { flex: 0 0 44px; margin-bottom: 14px; }
.service-card h3 { height: 1.6rem; line-height: 1.6rem; margin: 0 0 2px; white-space: nowrap; }
.service-subhead { height: 1.2rem; line-height: 1.2rem; margin: 0 0 12px; white-space: nowrap; }
