/* Summerville Law, LLC — shared styles */

:root {
  --navy: #1f2359;
  --navy-soft: #2c2f6e;
  --cream: #ece6d8;
  --text: #1d1e20;
  --text-muted: #55585f;
  --white: #ffffff;
  --border: #dfe1e8;
  --max-width: 1140px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

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

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--cream { background: var(--cream); }

.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.section--navy .eyebrow { color: #b9bce0; }

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
}

.section--navy .lede { color: #d3d5ef; }

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Buttons — one consistent, high-contrast style everywhere */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-soft); box-shadow: 0 6px 18px rgba(31,35,89,0.25); }

.btn-on-navy {
  background: var(--white);
  color: var(--navy);
}
.btn-on-navy:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.25); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header .logo img { height: 44px; width: auto; }

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

.main-nav a:not(.btn) {
  font-weight: 500;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a.is-active,
.main-nav a:not(.btn):hover {
  border-bottom-color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

/* Hero */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero h1 { font-size: 3rem; max-width: 820px; margin-left: auto; margin-right: auto; }
.hero .lede { margin-left: auto; margin-right: auto; font-weight: 600; font-size: 1.1rem; }
.hero-actions { margin-top: 32px; }

.page-hero {
  padding: 72px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.5rem; }
.page-hero .lede { margin-left: auto; margin-right: auto; }

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
}

.section--navy .card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

.card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  color: var(--navy);
}
.section--navy .card .icon { color: var(--white); }

.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--text-muted); margin: 0; }
.section--navy .card p { color: #d3d5ef; }

/* Value props (icon row) */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-props .card { text-align: left; }

/* Two-column feature (image + text) */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature img { border-radius: var(--radius); }
.feature-reverse { direction: rtl; }
.feature-reverse > * { direction: ltr; }

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-photo {
  position: relative;
}
.about-photo img {
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  object-fit: cover;
}
.about-photo .caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: var(--navy);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 8px;
}
.about-photo .caption strong { display: block; font-family: "Playfair Display", serif; font-size: 1.1rem; }
.about-photo .caption span { font-size: 0.9rem; color: #d3d5ef; }

.timeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  border-left: 3px solid var(--navy);
}
.timeline li {
  position: relative;
  padding: 4px 0 24px 24px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--navy);
}
.timeline strong { display: block; margin-bottom: 2px; }
.timeline span { color: var(--text-muted); font-size: 0.95rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(31,35,89,0.15);
}

.form-note {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.form-note--success { background: #e4f5e9; color: #1e5f36; }
.form-note--error { background: #fbe6e6; color: #8a2323; }

.contact-info dt {
  font-weight: 700;
  font-family: "Playfair Display", serif;
  margin-top: 24px;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd {
  margin: 4px 0 0;
  color: var(--text-muted);
}
.contact-info a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #d3d5ef;
  padding: 64px 0 28px;
  position: relative;
  overflow: hidden;
}
.footer-watermark {
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 340px;
  opacity: 0.08;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  position: relative;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.footer-grid a:hover { text-decoration: underline; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #a7aad6;
  position: relative;
}
.footer-disclaimer { max-width: 780px; margin-bottom: 12px; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    display: none;
    gap: 16px;
  }
  .main-nav.is-open { display: flex; }
  .grid-3, .grid-2, .value-props { grid-template-columns: 1fr; }
  .feature, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 56px 0; }
}
