/* ============================================
   Skinner & Associates — Modern Stylesheet
   ============================================ */

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

:root {
  --color-primary: #902328;       /* Heritage burgundy */
  --color-primary-dark: #62181b;  /* Deep burgundy */
  --color-primary-light: #b03d42;
  --color-ink: #1a1a1a;
  --color-text: #2d2d2d;
  --color-muted: #6b6b6b;
  --color-line: #e5e5e5;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f5f3;
  --color-bg-dark: #14202a;
  --color-gold: #c4a572;

  --font-serif: 'Playfair Display', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);
  --radius: 4px;
  --transition: 200ms ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

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

.container-narrow {
  max-width: 860px;
}

section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--color-ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-bottom: 0.5em; }
h4 { font-size: 1.2rem; margin-bottom: 0.5em; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 1.5em;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 { margin-bottom: 0.25em; }
.section-title p { color: var(--color-muted); font-size: 1.1rem; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-primary);
  color: #fff;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--color-primary);
}

.btn-light:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}

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

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  display: block;
  height: 96px;
  width: auto;
  max-width: 420px;
  object-fit: contain;
}

@media (max-width: 980px) {
  .brand-logo { height: 76px; max-width: 340px; }
}

@media (max-width: 600px) {
  .brand-logo { height: 60px; max-width: 260px; }
}

@media (max-width: 380px) {
  .brand-logo { height: 50px; max-width: 220px; }
}

/* Visually hidden but accessible to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer logo — slightly desaturated/bright on dark bg */
.footer-logo {
  display: block;
  height: 92px;
  width: auto;
  max-width: 380px;
  background: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

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

.nav-primary ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-primary a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink);
  border-radius: var(--radius);
}

.nav-primary a:hover,
.nav-primary a.active {
  color: var(--color-primary);
  background: var(--color-bg-alt);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-phone {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.header-phone:hover { color: var(--color-primary-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  transition: all var(--transition);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-primary {
    position: absolute;
    top: 128px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
    padding: 16px 24px;
    display: none;
  }
  .nav-primary.is-open { display: block; }
  .nav-primary ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-primary a {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-line);
    border-radius: 0;
  }
  .nav-primary li:last-child a { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, #14202a 0%, #1f2f3d 60%, #2a3f52 100%);
  color: #fff;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(144, 35, 40, 0.25), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(196, 165, 114, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  margin-bottom: 0.4em;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 2rem;
  max-width: 660px;
}

.hero .eyebrow { color: var(--color-gold); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-actions .btn-outline:hover {
  background: #fff;
  color: var(--color-ink);
}

/* ---------- PAGE HEADER (smaller hero for inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, #14202a 0%, #1f2f3d 100%);
  color: #fff;
  padding: 80px 0 64px;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.4em;
}

.page-header .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto;
}

.page-header .eyebrow { color: var(--color-gold); }

/* ---------- CARDS / GRIDS ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.card h3 {
  margin-bottom: 0.4em;
  font-size: 1.35rem;
}

.card p { color: var(--color-muted); }

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.card-link::after {
  content: " →";
  transition: transform var(--transition);
  display: inline-block;
}

.card-link:hover::after { transform: translateX(3px); }

/* ---------- ATTORNEY CARDS ---------- */
.attorney-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .attorney-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
}

.attorney-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.attorney-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.attorney-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #2a3f52, #14202a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-serif);
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

/* When .attorney-photo wraps an <img>, let the image fill it cleanly */
.attorney-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.attorney-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(196, 165, 114, 0.15), transparent 70%);
  pointer-events: none;
}

.attorney-photo:has(img)::after { display: none; }

/* Larger bio-page photo */
.attorney-photo-large {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-md);
}

.attorney-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.attorney-info {
  padding: 24px 28px 28px;
}

.attorney-info h3 { margin-bottom: 0.15em; font-size: 1.4rem; }

.attorney-title {
  display: block;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.attorney-info p {
  color: var(--color-muted);
  font-size: 0.97rem;
}

/* ---------- PRACTICE AREA SECTIONS (long form) ---------- */
.practice-section {
  border-bottom: 1px solid var(--color-line);
  padding: 56px 0;
}

.practice-section:last-of-type { border-bottom: none; }

.practice-section h2 {
  color: var(--color-primary);
  margin-bottom: 0.5em;
}

.practice-section ul {
  margin: 1em 0 1em 1.5em;
  color: var(--color-muted);
}

.practice-section ul li { margin-bottom: 0.4em; }

/* ---------- ATTORNEY BIO LISTS ---------- */
.bio-list {
  margin: 0 0 1em 1.5em;
  color: var(--color-muted);
}

.bio-list li { margin-bottom: 0.4em; }

.bio-fact {
  margin-top: 0;
  color: var(--color-muted);
}

.bio-note {
  margin-top: 0.5em;
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

/* ---------- FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 6px;
}

.form-field .req { color: var(--color-primary); }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(144, 35, 40, 0.12);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-disclaimer {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* ---------- OFFICES ---------- */
.office-card {
  background: var(--color-bg-alt);
  padding: 28px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 4px solid var(--color-primary);
}

.office-card h3 {
  margin-bottom: 0.3em;
  font-size: 1.25rem;
}

.office-card .address {
  color: var(--color-muted);
  font-size: 0.97rem;
  margin-bottom: 12px;
  white-space: pre-line;
}

.office-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.92rem;
}

.office-card .meta strong {
  color: var(--color-ink);
  font-weight: 600;
}

/* ---------- MAP ---------- */
.map-wrap {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
}

/* ---------- ALT BG SECTION ---------- */
.bg-alt { background: var(--color-bg-alt); }

.bg-dark {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.9);
}

.bg-dark h2, .bg-dark h3 { color: #fff; }

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: var(--color-primary);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.cta-strip h2 { color: #fff; margin-bottom: 0.4em; }
.cta-strip p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin-bottom: 1.5em; max-width: 640px; margin-left: auto; margin-right: auto; }

.cta-strip .btn-light { background: #fff; color: var(--color-primary); }
.cta-strip .btn-light:hover { background: var(--color-bg-alt); }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 24px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .firm {
  font-family: var(--font-serif);
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: block;
}

.footer-brand p { font-size: 0.92rem; line-height: 1.6; }

.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 8px; }

.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom .legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.disclaimer {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.5;
  background: var(--color-bg-alt);
  padding: 20px 24px;
  border-radius: var(--radius);
  border-left: 3px solid var(--color-gold);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- ANIMATIONS ---------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(12px);
    animation: fadeIn 600ms ease-out forwards;
  }
  @keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
  }
}
