/* =========================================================
   Melton Wates Law Firm — stylesheet
   Brand: deep navy + gold, elegant serif headings
   ========================================================= */

:root {
  --brand-navy:  #171e3a;  /* exact navy of the logo artwork background */
  --navy:        #16264c;
  --navy-2:      #1c3160;
  --navy-dark:   #0e1a36;
  --gold:        #e0b54e;
  --gold-dark:   #c2962f;
  --ink:         #1f2733;
  --muted:       #5a6573;
  --line:        #e4e7ec;
  --bg:          #ffffff;
  --bg-alt:      #f6f7f9;
  --bg-navy-tint:#eef1f6;

  --font-display: "Cinzel", Georgia, serif;
  --font-head:    "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(16, 26, 54, 0.10);
  --shadow-sm: 0 4px 14px rgba(16, 26, 54, 0.08);
  --t: 0.25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; font-weight: 600; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }

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

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin: 0 0 1rem;
  display: inline-block;
}
.eyebrow.light { color: var(--gold); }

.section { padding: 92px 0; }
.section.tight { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section.navy { background: var(--navy); color: #dfe5f0; }
.section.navy h1,.section.navy h2,.section.navy h3 { color: #fff; }

.lead { font-size: 1.2rem; color: var(--muted); }
.center { text-align: center; }
.measure { max-width: 720px; }
.measure.center { margin-left: auto; margin-right: auto; }

.gold-rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 1.25rem 0; }
.center .gold-rule, .gold-rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-body); font-weight: 600;
  letter-spacing: .03em; font-size: .95rem;
  padding: 14px 30px; border-radius: var(--radius);
  cursor: pointer; border: 2px solid transparent; transition: all var(--t);
}
.btn-gold { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline.light { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline.light:hover { background: #fff; color: var(--navy); border-color:#fff; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.topbar {
  background: var(--navy-dark);
  color: #c8d2e6;
  font-size: .85rem;
  letter-spacing: .02em;
}
.topbar .container { display: flex; justify-content: flex-end; gap: 28px; padding: 9px 24px; flex-wrap: wrap; }
.topbar a { color: #c8d2e6; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand-navy);
  box-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 24px; }
.brand { display: flex; align-items: center; padding: 8px 0; }
.brand img { height: 84px; width: auto; }

.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 10px;
}
.menu-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: var(--t); }

.menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; color: #eaf0fb; padding: 16px 16px;
  font-weight: 600; font-size: .94rem; letter-spacing: .02em;
}
.menu > li > a:hover, .menu > li.current > a { color: var(--gold); }
.menu > li.current > a { box-shadow: inset 0 -3px 0 var(--gold); }

.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: .45em; opacity: .8; }
.submenu {
  list-style: none; margin: 0; padding: 8px 0;
  position: absolute; top: 100%; left: 0; min-width: 280px;
  background: #fff; box-shadow: var(--shadow); border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--t);
}
.has-sub:hover .submenu, .has-sub.open .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 11px 22px; color: var(--ink); font-size: .92rem; font-weight: 600; }
.submenu a:hover { background: var(--bg-alt); color: var(--navy); }

.nav-cta { margin-left: 8px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  background:
    radial-gradient(120% 120% at 80% -10%, rgba(224,181,78,.18), transparent 50%),
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-2) 100%);
  color: #fff;
  overflow: hidden;
}
/* Homepage hero: coastal graphic behind a navy wash.
   To use a real photo instead, replace the url() below with your image,
   e.g. url('../assets/hero-myrtle-beach.jpg'). */
.hero.home {
  background:
    linear-gradient(180deg, rgba(15,24,48,.90) 0%, rgba(18,30,60,.88) 50%, rgba(12,20,42,.93) 100%),
    url('../assets/hero-coast.svg');
  background-size: cover;
  background-position: center bottom;
  text-align: center;
  overflow: visible;
}
/* Padding-based centering — never clips, grows with content, no overlap. */
.hero.home .container { padding-top: 72px; padding-bottom: 72px; }
.hero.home .container > * { margin-left: auto; margin-right: auto; }
.hero-emblem { width: 200px; max-width: 50%; margin: 0 auto 22px; display: block; }
.hero.home .eyebrow { display: block; }
.hero.home h1 { margin-bottom: .35em; }
.hero.home .subtitle { margin-left: auto; margin-right: auto; }
.hero.home .actions { justify-content: center; }
.hero::after {
  content:""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .4; pointer-events: none;
}
.hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 120px; max-width: 980px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero .subtitle { font-size: 1.3rem; color: #dbe3f2; max-width: 660px; margin: 0 auto 2rem; }
.hero.center .container { text-align: center; }
.hero.center .subtitle { margin-left: auto; margin-right: auto; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero.center .actions { justify-content: center; }

/* compact hero for interior pages */
.page-hero { padding: 88px 0 70px; }
.page-hero .container { max-width: 900px; }
.breadcrumb { font-size: .82rem; letter-spacing: .04em; color: #b9c4db; margin-bottom: 1rem; text-transform: uppercase; }
.breadcrumb a { color: #b9c4db; }
.breadcrumb a:hover { color: var(--gold); }

/* =========================================================
   Cards / grids
   ========================================================= */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 34px; transition: transform var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .icon {
  width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--bg-navy-tint); border-radius: 50%;
}
.card .icon svg { width: 30px; height: 30px; stroke: var(--navy); fill: none; stroke-width: 1.6; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 1em; }
.card .more { font-weight: 700; color: var(--gold-dark); font-size: .92rem; letter-spacing: .03em; }
.card .more::after { content: " →"; }

/* split feature row */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.feature.rev .media { order: 2; }
.feature .media {
  background: var(--brand-navy);
  border-radius: var(--radius); min-height: 340px; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.feature .media img { width: 72%; max-width: 360px; opacity: .98; position: relative; z-index: 1; }
.feature .media::after {
  content:""; position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; text-align: center; }
.stat .num { font-family: var(--font-head); font-size: 3rem; color: var(--gold); font-weight: 700; line-height: 1; }
.stat .lbl { color: #cdd6e8; letter-spacing: .04em; margin-top: .4rem; font-size: .95rem; }

/* =========================================================
   Attorneys
   ========================================================= */
.attorney { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--t), transform var(--t); }
.attorney:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.attorney .photo {
  aspect-ratio: 4/4.4; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  display: grid; place-items: center; color: var(--gold); font-family: var(--font-display); font-size: 3rem; letter-spacing: .05em;
}
.attorney .body { padding: 24px 26px 30px; }
.attorney .body h3 { margin-bottom: .15em; }
.attorney .role { color: var(--gold-dark); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .8em; }
.attorney .body p { color: var(--muted); font-size: .96rem; }
.attorney .contact-line { font-size: .9rem; color: var(--navy); margin-top: .6em; }

/* =========================================================
   Detailed attorney profiles (Mullen Wylie style)
   ========================================================= */
.profile {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px;
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow-sm);
}
.profile .photo {
  background: linear-gradient(160deg, var(--brand-navy) 0%, var(--navy-2) 100%);
  display: grid; place-items: center; min-height: 340px;
  color: var(--gold); font-family: var(--font-display); font-size: 3.6rem; letter-spacing: .06em;
}
.profile .photo { padding: 0; }
.profile .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.partners-photo { width: 100%; max-height: 580px; object-fit: cover; object-position: 50% 18%; border-radius: var(--radius); box-shadow: var(--shadow); }
.profile .body { padding: 36px 40px 36px 0; }
.profile .body h3 { margin-bottom: .1em; font-size: 1.9rem; }
.profile .role { color: var(--gold-dark); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1em; }
.profile .prof-email { margin-bottom: 1.2em; font-weight: 600; }
.profile h4 {
  font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy); margin: 1.3em 0 .5em; padding-bottom: .35em; border-bottom: 1px solid var(--line);
}
.profile ul { list-style: none; margin: 0; padding: 0; }
.profile ul li { padding: 3px 0 3px 18px; position: relative; color: var(--muted); }
.profile ul li::before { content:""; position:absolute; left:0; top:.75em; width:6px; height:6px; background: var(--gold); border-radius:50%; }
.profile .admit { color: var(--ink); margin: .2em 0 0; }

/* practice-area section anchors clear the sticky header */
.anchor { scroll-margin-top: 130px; }

/* =========================================================
   Contact form
   ========================================================= */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 38px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display:block; font-weight:600; font-size:.88rem; margin-bottom:6px; color: var(--navy); letter-spacing:.02em; }
.field input, .field select, .field textarea {
  width:100%; padding:13px 14px; border:1px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size:1rem; color: var(--ink); background:#fff; transition: border-color var(--t), box-shadow var(--t);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline:none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,38,76,.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size:.82rem; color: var(--muted); margin-top: .4em; }
.form-status { display:none; padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; font-weight:600; }
.form-status.ok { display:block; background:#eef7ee; color:#256029; border:1px solid #cfe6cf; }

.info-block { margin-bottom: 28px; }
.info-block .ico { color: var(--gold-dark); font-weight: 700; letter-spacing:.08em; text-transform:uppercase; font-size:.78rem; margin-bottom:.35em; }
.info-block .val { font-size: 1.1rem; color: var(--ink); }
.info-block a { color: var(--ink); }
.info-block a:hover { color: var(--gold-dark); }

.map-embed { border:0; width:100%; height: 320px; border-radius: var(--radius); margin-top: 8px; filter: grayscale(.15); }

/* =========================================================
   CTA band
   ========================================================= */
.cta-band { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%); color:#fff; text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#cdd6e8; max-width:620px; margin:0 auto 1.6rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--brand-navy); color:#aab6cf; font-size:.94rem; padding: 70px 0 0; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer img.flogo { height: 96px; width:auto; margin-bottom: 18px; margin-left:-6px; }
.site-footer h4 { color:#fff; font-family: var(--font-body); font-size: .85rem; letter-spacing:.12em; text-transform: uppercase; margin-bottom: 1.1em; }
.site-footer ul { list-style:none; margin:0; padding:0; }
.site-footer li { margin-bottom: .6em; }
.site-footer a { color:#aab6cf; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding: 24px 0; font-size:.8rem; color:#7f8db0; }
.footer-bottom .container { display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.legal-note { font-size:.78rem; color:#7f8db0; line-height:1.6; margin-top: 1.2em; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .feature, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .feature.rev .media { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .menu-toggle { display:block; }
  .menu {
    position: absolute; top: 100%; left:0; right:0; flex-direction: column; align-items: stretch;
    background: var(--brand-navy); padding: 8px 0 16px; gap:0;
    box-shadow: 0 16px 24px rgba(0,0,0,.25);
    max-height:0; overflow:hidden; transition: max-height .3s ease;
  }
  .menu.open { max-height: 640px; overflow:auto; }
  .menu > li > a { padding: 14px 24px; }
  .submenu {
    position: static; opacity:1; visibility:visible; transform:none; box-shadow:none;
    background: var(--navy-dark); border-top:0; border-radius:0; padding:0;
    max-height:0; overflow:hidden; transition: max-height .3s ease;
  }
  .has-sub.open .submenu { max-height: 360px; }
  .submenu a { color:#cdd6e8; padding: 12px 40px; }
  .submenu a:hover { background: rgba(255,255,255,.05); color:#fff; }
  .nav-cta { display:none; }
  .nav { position: relative; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .topbar .container { justify-content: center; gap:18px; }
  body { font-size: 16px; }
}
