/* ================================================================
   RESOR LAW, LLC — Main Stylesheet
   ----------------------------------------------------------------
   TABLE OF CONTENTS
    1.  Design Tokens (CSS Custom Properties)
    2.  Reset & Base
    3.  Gold Bar
    4.  Navigation
    5.  Mobile Menu
    6.  Hero
    7.  Value Strip
    8.  About
    9.  Practice Areas
   10.  Representative Matters
   11.  Contact
   12.  Footer
   13.  Responsive — Tablet  (≤ 900px)
   14.  Responsive — Mobile  (≤ 640px)
   15.  Responsive — Small   (≤ 400px)
   ================================================================ */


/* ── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --green-deep:   #1E3028;
  --green-mid:    #2D5444;
  --green-light:  #3D6B57;
  --sage:         #8FAF96;
  --sage-light:   #C8DCCB;
  --sage-accent:  #A8C5A0;
  --ivory:        #F2EDE4;
  --ivory-dark:   #EDE8DF;
  --cream:        #FAF8F4;
  --text-dark:    #1A1F1C;
  --text-mid:     #3D4840;
  --text-muted:   #6B7870;
  --gold:         #B8974A;
  --white:        #FFFFFF;
}


/* ── 2. RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* Shared eyebrow pattern */
.section-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-eyebrow-rule { width: 24px; height: 1px; background: var(--sage-accent); flex-shrink: 0; }
.section-eyebrow-text {
  font-size: 10px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sage);
}

/* Shared section heading */
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 300;
  color: var(--green-deep); line-height: 1.2; margin-bottom: 16px;
}
.section-title em { font-style: italic; }
.section-body { font-size: 15px; font-weight: 300; color: var(--text-mid); line-height: 1.75; }


/* ── 3. GOLD BAR ──────────────────────────────────────────────── */
.gold-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 3px;
  background: linear-gradient(to right, var(--gold), transparent 60%);
  pointer-events: none;
}


/* ── 4. NAVIGATION ────────────────────────────────────────────── */
.nav {
  position: fixed; top: 3px; left: 0; right: 0; z-index: 100;
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(10,26,18,0.78) 0%, transparent 100%);
  transition: background 0.35s, box-shadow 0.35s;
}
.nav.scrolled {
  background: var(--green-deep);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.nav-logo { height: 68px; width: auto; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(242,237,228,0.75); text-decoration: none;
  font-size: 11px; font-weight: 400; letter-spacing: 0.13em;
  text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ivory); outline: none; }

.nav-cta {
  border: 1px solid rgba(168,197,160,0.5) !important;
  color: var(--ivory) !important;
  padding: 7px 18px; border-radius: 2px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: rgba(168,197,160,0.15) !important; }

/* Hamburger (hidden on desktop) */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ivory);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ── 5. MOBILE MENU ───────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; top: 75px; left: 0; right: 0; z-index: 99;
  background: var(--green-deep);
  border-bottom: 1px solid rgba(168,197,160,0.2);
  padding: 8px 0 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu ul li a {
  display: block; padding: 14px 24px;
  color: rgba(242,237,228,0.8); text-decoration: none;
  font-size: 12px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.mobile-menu ul li a:hover { color: var(--ivory); background: rgba(168,197,160,0.08); }
.mobile-menu .mobile-cta {
  display: inline-block; margin: 8px 24px 0;
  border: 1px solid rgba(168,197,160,0.4); border-radius: 2px;
  padding: 10px 22px; color: var(--ivory) !important;
}


/* ── 6. HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: flex-end; overflow: hidden;
}

/* ── HERO IMAGE: drop hero.jpg into images/ to replace ── */
.hero-photo {
  position: absolute; inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover; background-position: center 30%;
  background-color: var(--green-mid); /* fallback while no photo */
}

.hero-overlay-base     { position: absolute; inset: 0; background: rgba(12,28,20,0.5); }
.hero-overlay-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,24,16,0.25) 0%, rgba(18,38,26,0.52) 40%, rgba(10,24,16,0.82) 100%);
}
.hero-overlay-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 200px;
  background: linear-gradient(to top, rgba(8,20,14,0.88) 0%, transparent 100%);
}
.hero-overlay-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, transparent 30%, rgba(6,18,12,0.32) 100%);
}

.hero-content {
  position: relative; z-index: 2; width: 100%;
  padding: 120px 40px 60px;
  max-width: 760px;
}

.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.eyebrow-rule { width: 28px; height: 1px; background: var(--sage-accent); flex-shrink: 0; }
.eyebrow-text {
  font-size: 10px; font-weight: 400; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sage-accent);
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 300;
  line-height: 1.1; color: var(--ivory); margin-bottom: 26px; letter-spacing: -0.01em;
}
.hero-headline em { font-style: italic; color: var(--sage-light); }

.hero-sub {
  font-size: 15px; font-weight: 300; color: rgba(200,220,203,0.85);
  line-height: 1.72; max-width: 440px; margin-bottom: 34px;
}

.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: var(--ivory); color: var(--green-deep);
  border: none; padding: 13px 26px;
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; border-radius: 2px;
  cursor: pointer; transition: background 0.2s; text-decoration: none;
}
.btn-primary:hover { background: var(--sage-light); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--sage-light);
  background: none; border: none; cursor: pointer;
  font-family: 'Jost', sans-serif; font-weight: 300;
  transition: color 0.2s; text-decoration: none;
}
.btn-ghost:hover { color: var(--ivory); }
.btn-ghost::after { content: '→'; font-size: 13px; }


/* ── 7. VALUE STRIP ───────────────────────────────────────────── */
.value-strip {
  background: var(--ivory-dark);
  border-bottom: 1px solid var(--sage-light);
  padding: 0 40px; display: flex;
}
.value-item {
  flex: 1; padding: 22px 28px 22px 0;
  display: flex; align-items: flex-start; gap: 14px;
  border-right: 1px solid rgba(168,197,160,0.3);
}
.value-item:last-child  { border-right: none; padding-right: 0; }
.value-item:first-child { padding-left: 0; }
.value-icon { width: 26px; height: 26px; flex-shrink: 0; margin-top: 2px; }
.value-text strong { display: block; font-size: 13px; font-weight: 500; color: var(--green-deep); margin-bottom: 3px; }
.value-text span    { font-size: 12px; color: var(--text-muted); line-height: 1.55; }


/* ── 8. ABOUT ─────────────────────────────────────────────────── */
.about {
  background: var(--cream); padding: 80px 40px;
  display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: center;
}

/* ── HEADSHOT: drop headshot.jpg into images/ to activate ──
   The placeholder (initials) is hidden automatically when the
   img element loads. See index.html for details.             ── */
.about-photo {
  width: 220px; height: 280px;
  background: var(--green-mid); border-radius: 3px;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.about-photo::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; background: var(--gold); z-index: 2;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  position: relative; z-index: 1;
}
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.photo-initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px; font-weight: 300; color: var(--sage-light); line-height: 1;
}
.photo-caption {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage); margin-top: 8px;
}

.about-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px; font-style: italic; font-weight: 300;
  color: var(--green-deep); line-height: 1.5;
  margin: 18px 0; padding-left: 18px; border-left: 2px solid var(--sage-accent);
}
.credentials { display: flex; gap: 20px; margin-top: 26px; flex-wrap: wrap; }
.credential-pill {
  font-size: 11px; font-weight: 500; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--green-light); display: flex; align-items: center; gap: 6px;
}
.credential-pill::before {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--sage-accent);
}


/* ── 9. PRACTICE AREAS ────────────────────────────────────────── */
.practice {
  background: var(--ivory);
  border-top: 1px solid var(--sage-light); border-bottom: 1px solid var(--sage-light);
  padding: 80px 40px;
}
.practice-header {
  display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px;
}
.practice-header-right {
  font-size: 13px; color: var(--text-muted);
  max-width: 240px; text-align: right; line-height: 1.6;
}
.practice-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--sage-light); border: 1px solid var(--sage-light);
  border-radius: 4px; overflow: hidden;
}
.practice-card { background: var(--cream); padding: 28px; transition: background 0.2s; }
.practice-card:hover { background: var(--ivory-dark); }
.practice-num  { font-family: 'Cormorant Garamond', serif; font-size: 13px; color: var(--sage); margin-bottom: 10px; }
.practice-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400; color: var(--green-deep); margin-bottom: 10px; line-height: 1.2;
}
.practice-desc  { font-size: 13px; font-weight: 300; color: var(--text-muted); line-height: 1.65; }
.practice-link  {
  display: inline-block; margin-top: 16px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-light); text-decoration: none;
}
.practice-link:hover { color: var(--green-deep); }


/* ── 10. REPRESENTATIVE MATTERS ───────────────────────────────── */
.matters { background: var(--green-deep); padding: 80px 40px; }
.matters .section-title        { color: var(--ivory); margin-bottom: 0; }
.matters .section-eyebrow-rule { background: var(--sage-accent); }
.matters .section-eyebrow-text { color: var(--sage); }

.matters-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px; margin-bottom: 40px;
}
.matters-header-right {
  font-size: 13px; font-weight: 300; color: var(--sage);
  max-width: 300px; text-align: right; line-height: 1.65;
}

.matters-list { border-top: 1px solid rgba(168,197,160,0.2); }
.matter-item {
  border-bottom: 1px solid rgba(168,197,160,0.15); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 20px; transition: padding-left 0.2s;
}
.matter-item:hover { padding-left: 6px; }
.matter-title  {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 400; color: var(--ivory); margin-bottom: 5px;
}
.matter-detail { font-size: 12px; font-weight: 300; color: var(--sage); line-height: 1.6; max-width: 520px; }
.matter-tag    {
  font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage); background: rgba(168,197,160,0.12);
  padding: 4px 10px; border-radius: 2px; white-space: nowrap; flex-shrink: 0; margin-top: 3px;
}


/* ── 11. CONTACT ──────────────────────────────────────────────── */
.contact {
  background: var(--ivory); border-top: 1px solid var(--sage-light);
  padding: 80px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start;
}
.contact-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px; font-weight: 300; color: var(--green-deep);
  line-height: 1.22; margin-bottom: 16px;
}
.contact-heading em { font-style: italic; }
.contact-body {
  font-size: 14px; font-weight: 300; color: var(--text-mid);
  line-height: 1.75; max-width: 340px; margin-bottom: 32px;
}
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-detail  { display: flex; align-items: flex-start; gap: 14px; }
.detail-label    {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sage); min-width: 64px; margin-top: 1px;
}
.detail-value    { font-size: 13px; font-weight: 300; color: var(--text-mid); line-height: 1.5; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row         { display: flex; gap: 12px; }
.form-row .field  { flex: 1; }

.field            { display: flex; flex-direction: column; gap: 5px; }
.field label      {
  font-size: 10px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted);
}
.field input,
.field textarea,
.field select {
  background: var(--white); border: 1px solid var(--sage-light);
  border-radius: 2px; padding: 11px 14px;
  font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 300; color: var(--text-dark);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none; width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(61,107,87,0.1);
}
.field textarea { resize: vertical; min-height: 96px; }

.submit-btn {
  background: var(--green-deep); color: var(--ivory);
  border: none; padding: 13px 28px;
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; border-radius: 2px;
  cursor: pointer; align-self: flex-start;
  transition: background 0.2s; margin-top: 2px;
}
.submit-btn:hover    { background: var(--green-light); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  font-size: 11px; font-weight: 300; color: var(--text-muted);
  font-style: italic; margin-top: 2px; line-height: 1.5;
}
.form-success {
  display: none;
  background: rgba(168,197,160,0.12); border: 1px solid var(--sage-accent);
  border-radius: 3px; padding: 20px;
  font-size: 14px; font-weight: 300; color: var(--green-deep); line-height: 1.65;
}
.form-success.visible { display: block; }


/* ── 12. FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--green-deep); padding: 28px 40px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(168,197,160,0.12);
}
.footer-logo  { height: 28px; width: auto; opacity: 0.65; }
.footer-copy  { font-size: 11px; color: var(--sage); letter-spacing: 0.04em; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 11px; color: var(--sage); text-decoration: none;
  letter-spacing: 0.06em; transition: color 0.2s;
}
.footer-links a:hover { color: var(--ivory); }


/* ── 13. RESPONSIVE — TABLET (≤ 900px) ───────────────────────── */
@media (max-width: 900px) {
  .nav               { padding: 0 24px; }
  .nav-links         { gap: 20px; }
  .hero-content      { padding: 100px 24px 48px; }
  .hero-headline     { font-size: 42px; }
  .value-strip       { padding: 0 24px; }
  .value-item        { padding: 18px 20px 18px 0; }
  .about             { padding: 64px 24px; gap: 40px; }
  .practice          { padding: 64px 24px; }
  .matters           { padding: 64px 24px; }
  .contact           { padding: 64px 24px; gap: 48px; }
  .footer            { padding: 24px; }
}


/* ── 14. RESPONSIVE — MOBILE (≤ 640px) ───────────────────────── */
@media (max-width: 640px) {
  /* Nav */
  .nav              { padding: 0 20px; }
  .nav-links        { display: none; }
  .nav-hamburger    { display: flex; }

  /* Hero */
  .hero             { min-height: 520px; }
  .hero-content     { grid-template-columns: 1fr; gap: 24px; padding: 88px 20px 40px; }
  .hero-headline    { font-size: 36px; }
  .hero-sub         { font-size: 14px; margin-bottom: 24px; }
  /* Value strip */
  .value-strip      { flex-direction: column; padding: 0 20px; }
  .value-item       { border-right: none; border-bottom: 1px solid rgba(168,197,160,0.3); padding: 20px 0; }
  .value-item:last-child { border-bottom: none; }

  /* About */
  .about            { grid-template-columns: 1fr; gap: 36px; padding: 56px 20px; justify-items: center; }
  .about > div:last-child { width: 100%; }

  /* Practice */
  .practice         { padding: 56px 20px; }
  .practice-header  { flex-direction: column; align-items: flex-start; gap: 12px; }
  .practice-header-right { text-align: left; max-width: 100%; }
  .practice-grid    { grid-template-columns: 1fr; }

  /* Matters */
  .matters          { padding: 56px 20px; }
  .matters-header   { flex-direction: column; align-items: flex-start; gap: 12px; }
  .matters-header-right { text-align: left; max-width: 100%; }
  .matter-item      { flex-direction: column; gap: 10px; }
  .matter-tag       { align-self: flex-start; }

  /* Contact */
  .contact          { grid-template-columns: 1fr; gap: 48px; padding: 56px 20px; }
  .contact-body     { max-width: 100%; }
  .form-row         { flex-direction: column; }

  /* Footer */
  .footer           { flex-direction: column; gap: 16px; padding: 28px 20px; text-align: center; }
  .footer-links     { justify-content: center; }
}


/* ── 15. RESPONSIVE — SMALL (≤ 400px) ────────────────────────── */
@media (max-width: 400px) {
  .hero-headline    { font-size: 30px; }
  .section-title    { font-size: 30px; }
  .hero-actions     { flex-direction: column; align-items: flex-start; }
  .credentials      { gap: 12px; }
}
