/* ============================================================
   Heritage Law Group - Stylesheet
   Palette: Forest Green #1B4332 | Gold #B8960C | Cream #FAF7F0 | Charcoal #2D2D2D
   Fonts: Cormorant Garamond (headings) + Source Sans 3 (body)
   ============================================================ */

:root {
  --green-dark:  #1B4332;
  --green-mid:   #2D6A4F;
  --green-light: #40916C;
  --gold:        #B8960C;
  --gold-light:  #D4AF37;
  --cream:       #FAF7F0;
  --cream2:      #F0EBE0;
  --white:       #FFFFFF;
  --charcoal:    #2D2D2D;
  --gray:        #6B7280;
  --light-gray:  #E5E0D6;
  --text:        #2D2D2D;
  --shadow:      0 4px 24px rgba(27,67,50,.10);
  --shadow-lg:   0 12px 48px rgba(27,67,50,.16);
  --radius:      4px;
  --ease:        all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Source Sans 3', sans-serif; color: var(--text); background: var(--white); line-height: 1.65; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; line-height: 1.2; font-weight: 700; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  z-index: 1000;
  padding: 0 2rem;
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-logo { display: flex; align-items: center; gap: 1rem; }
.logo-crest { width: 48px; height: 48px; background: var(--green-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 700; color: var(--gold-light); letter-spacing: .05em; }
.logo-text .firm-name { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 700; color: var(--green-dark); letter-spacing: .04em; line-height: 1.15; }
.logo-text .firm-tag { font-size: .64rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 2.25rem; }
.nav-links a { font-size: .9rem; font-weight: 600; color: var(--charcoal); letter-spacing: .02em; transition: var(--ease); position: relative; padding-bottom: 3px; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: var(--ease); }
.nav-links a:hover { color: var(--green-dark); }
.nav-links a:hover::after { transform: scaleX(1); }
.btn-consult { background: var(--green-dark) !important; color: var(--white) !important; padding: .5rem 1.35rem; border-radius: var(--radius) !important; }
.btn-consult:hover { background: var(--green-mid) !important; }
.btn-consult::after { display: none !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--green-dark); transition: var(--ease); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  background: var(--green-dark);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 76px;
}
.hero-img-col {
  position: absolute; top: 0; right: 0;
  width: 48%; height: 100%;
  overflow: hidden;
}
.hero-img-col img { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero-img-col::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 40%; background: linear-gradient(to right, var(--green-dark), transparent); }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 5rem 2rem; width: 100%; }
.hero-rule { width: 56px; height: 2px; background: var(--gold); margin-bottom: 1.75rem; }
.hero h1 { font-size: clamp(3rem, 5.5vw, 5rem); color: var(--white); margin-bottom: 1.5rem; max-width: 620px; }
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero p { color: rgba(255,255,255,.68); font-size: 1.05rem; max-width: 480px; line-height: 1.8; margin-bottom: 2.5rem; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-trust { display: flex; gap: 3rem; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.6); font-size: .85rem; }
.trust-item i { color: var(--gold); font-size: .9rem; }

/* ── BUTTONS ── */
.btn-gold { display: inline-flex; align-items: center; gap: .5rem; background: var(--gold); color: var(--white); padding: .9rem 2.25rem; border-radius: var(--radius); font-weight: 700; font-size: .95rem; letter-spacing: .04em; border: none; cursor: pointer; transition: var(--ease); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184,150,12,.3); }
.btn-ghost-white { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--white); padding: .9rem 2.25rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; border: 1.5px solid rgba(255,255,255,.35); cursor: pointer; transition: var(--ease); }
.btn-ghost-white:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn-green { display: inline-flex; align-items: center; gap: .5rem; background: var(--green-dark); color: var(--white); padding: .9rem 2.25rem; border-radius: var(--radius); font-weight: 700; font-size: .95rem; border: none; cursor: pointer; transition: var(--ease); }
.btn-green:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: var(--shadow); }

/* ── PRACTICE AREAS ── */
.practice-section { padding: 5.5rem 2rem; background: var(--cream); }
.practice-section .container { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .65rem; display: flex; align-items: center; gap: .6rem; }
.section-label::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--gold); }
.section-title { font-size: clamp(2rem, 3.5vw, 3rem); color: var(--green-dark); margin-bottom: .75rem; }
.section-subtitle { color: var(--gray); font-size: 1rem; max-width: 520px; line-height: 1.75; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 3rem; flex-wrap: wrap; gap: 1.5rem; }
.practice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.practice-card { background: var(--white); border-radius: var(--radius); padding: 2.25rem 1.75rem; border: 1px solid var(--light-gray); border-left: 4px solid var(--green-dark); transition: var(--ease); }
.practice-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-left-color: var(--gold); }
.practice-icon { width: 52px; height: 52px; background: var(--cream2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--green-dark); margin-bottom: 1.1rem; transition: var(--ease); }
.practice-card:hover .practice-icon { background: var(--green-dark); color: var(--white); }
.practice-card h3 { font-size: 1.25rem; color: var(--green-dark); margin-bottom: .65rem; }
.practice-card p { font-size: .88rem; color: var(--gray); line-height: 1.7; }
.practice-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold); font-size: .83rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-top: 1.1rem; transition: var(--ease); }
.practice-link:hover { gap: .7rem; }

/* ── ABOUT ── */
.about-section { padding: 5.5rem 2rem; background: var(--white); }
.about-section .container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 5rem; align-items: center; }
.about-text .quote-block { border-left: 3px solid var(--gold); padding-left: 1.25rem; margin: 2rem 0; }
.quote-block blockquote { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-style: italic; color: var(--green-dark); line-height: 1.55; }
.quote-block cite { font-size: .8rem; color: var(--gray); margin-top: .5rem; display: block; }
.about-text p { color: var(--gray); font-size: .97rem; line-height: 1.8; margin-bottom: 1.1rem; }
.attorney-grid { display: flex; flex-direction: column; gap: 1.25rem; }
.attorney-mini { display: flex; align-items: center; gap: 1.1rem; background: var(--cream); border-radius: 6px; padding: 1.1rem 1.25rem; border: 1px solid var(--light-gray); }
.attorney-mini img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-light); }
.atty-name { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700; color: var(--green-dark); line-height: 1.2; }
.atty-role { font-size: .75rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .25rem; }
.atty-spec { font-size: .82rem; color: var(--gray); }

/* ── GREEN STATS BAND ── */
.stats-band { background: var(--green-dark); padding: 3.5rem 2rem; }
.stats-row { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-around; flex-wrap: wrap; gap: 2rem; text-align: center; }
.stat-item .big { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 700; color: var(--gold-light); line-height: 1; }
.stat-item .caption { color: rgba(255,255,255,.55); font-size: .8rem; margin-top: .4rem; text-transform: uppercase; letter-spacing: .08em; }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--cream); padding: 5rem 2rem; }
.testimonials .container { max-width: 1200px; margin: 0 auto; }
.t-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 2rem; margin-top: 3rem; }
.t-card { background: var(--white); padding: 2.25rem; border-radius: 6px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.quote-mark { font-family: 'Cormorant Garamond', serif; font-size: 4rem; color: var(--gold); opacity: .25; line-height: .8; margin-bottom: .5rem; }
.t-text { font-size: .95rem; color: var(--text); line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; }
.t-author { display: flex; align-items: center; gap: .75rem; }
.t-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.t-name { font-weight: 700; font-size: .88rem; color: var(--green-dark); }
.t-detail { font-size: .77rem; color: var(--gray); }

/* ── CTA ── */
.cta-section { background: var(--green-dark); padding: 5rem 2rem; text-align: center; }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3.2rem); color: var(--white); margin-bottom: 1rem; }
.cta-section h2 em { color: var(--gold-light); font-style: italic; }
.cta-section p { color: rgba(255,255,255,.65); font-size: 1rem; max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.75; }
.cta-disclaimer { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto; }

/* ── CONTACT ── */
.contact-section { padding: 5rem 2rem; background: var(--cream); }
.contact-section .container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: start; }
.form-panel { background: var(--white); border-radius: 6px; padding: 2.5rem; box-shadow: var(--shadow); border-top: 3px solid var(--green-dark); }
.form-panel h2 { font-size: 1.8rem; color: var(--green-dark); margin-bottom: .35rem; }
.form-panel p { font-size: .88rem; color: var(--gray); margin-bottom: 1.75rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.1rem; }
.form-group label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }
.form-group input, .form-group select, .form-group textarea { border: 1.5px solid var(--light-gray); border-radius: var(--radius); padding: .7rem 1rem; font-size: .9rem; color: var(--text); background: var(--cream); transition: var(--ease); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--green-dark); background: var(--white); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-details h3 { font-size: 1.5rem; color: var(--green-dark); margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.35rem; }
.c-icon { width: 42px; height: 42px; background: var(--cream2); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--green-dark); font-size: .9rem; flex-shrink: 0; }
.c-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); margin-bottom: .2rem; }
.c-val { font-size: .93rem; color: var(--text); }
.atty-disclaimer { margin-top: 2rem; padding: 1.25rem; background: var(--cream2); border-radius: var(--radius); border-left: 3px solid var(--gold); font-size: .78rem; color: var(--gray); line-height: 1.65; }

/* ── FOOTER ── */
footer { background: #111C16; color: rgba(255,255,255,.55); padding: 4rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-firm-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--white); display: block; margin-bottom: .85rem; font-weight: 700; }
.footer-brand p { font-size: .87rem; line-height: 1.75; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.07); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: .85rem; transition: var(--ease); }
.footer-social a:hover { background: var(--gold); color: var(--white); }
.footer-col h4 { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--white); margin-bottom: 1.1rem; font-weight: 700; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { font-size: .865rem; color: rgba(255,255,255,.48); transition: var(--ease); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-line { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .65rem; font-size: .865rem; }
.footer-line i { color: var(--gold); font-size: .78rem; margin-top: .25rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .78rem; }
.footer-bottom a { color: var(--gold-light); }
.footer-disclaimer { font-size: .74rem; color: rgba(255,255,255,.3); margin-top: .5rem; max-width: 700px; line-height: 1.6; }

/* ── PAGE HERO ── */
.page-hero { background: var(--green-dark); padding: 7rem 2rem 3.5rem; }
.page-hero .container { max-width: 1200px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: rgba(255,255,255,.45); margin-bottom: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb a { color: var(--gold-light); }
.breadcrumb span { opacity: .4; }
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); color: var(--white); margin-bottom: .7rem; }
.page-hero p { color: rgba(255,255,255,.6); font-size: 1rem; max-width: 540px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .about-section .container { grid-template-columns: 1fr; }
  .contact-section .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 76px; left: 0; right: 0; background: var(--white); padding: 1.5rem 2rem; gap: 1.25rem; border-top: 1px solid var(--light-gray); z-index: 998; box-shadow: var(--shadow); }
  .hero-img-col { display: none; }
  .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
/* ── YTS Demo Labels ── */
.btn-back-yts { background: rgba(30,58,138,.88) !important; color: #fff !important; padding: .42rem 1.05rem !important; border-radius: 999px !important; font-size: .78rem !important; font-weight: 700 !important; letter-spacing: .04em !important; white-space: nowrap !important; border: 1px solid rgba(99,162,251,.25) !important; transition: background .2s ease !important; }
.btn-back-yts::after { display: none !important; }
.btn-back-yts:hover { background: rgba(29,78,216,1) !important; color: #fff !important; }
.powered-yts { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.08); text-align: center; font-size: .78rem; color: rgba(255,255,255,.45); }
.powered-yts a { color: #93c5fd; font-weight: 700; text-decoration: none; }
.powered-yts a:hover { text-decoration: underline; }
