/* -------------------------------------------------------
   Cater Legal Group - Core Theme
   ------------------------------------------------------- */
:root {
  --navy: #0b1626;
  --charcoal: #1f252d;
  --ink: #0f1217;
  --white: #ffffff;
  --gold: #c7a46d;
  --gold-soft: rgba(199, 164, 109, 0.16);
  --slate: #4b5563;
  --mist: #f5f5f2;
  --shadow: 0 24px 60px rgba(9, 12, 18, 0.16);
  --radius: 18px;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal);
  background-color: var(--mist);
  line-height: 1.6;
}

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

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

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.4rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  color: var(--navy);
  margin: 0 0 0.8rem;
  font-weight: 600;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* -------------------------------------------------------
   Navigation
   ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 18, 23, 0.08);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 1px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.6px;
}

.brand-meta {
  font-size: 0.85rem;
  color: var(--slate);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* -------------------------------------------------------
   Buttons
   ------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: none;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 24px rgba(11, 22, 38, 0.18);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(11, 22, 38, 0.22);
}

.button-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(11, 22, 38, 0.2);
  box-shadow: none;
}

.button-secondary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 12px 24px rgba(199, 164, 109, 0.3);
}

/* -------------------------------------------------------
   Hero
   ------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 3rem;
  padding: 6rem 1.5rem 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at top left,
      rgba(199, 164, 109, 0.2),
      transparent 55%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(11, 22, 38, 0.16),
      transparent 60%
    );
  z-index: -1;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.7rem);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  padding-top: 1rem;
}

.meta-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate);
}

.meta-value {
  font-weight: 600;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  right: 1.5rem;
  bottom: -2rem;
  background: var(--white);
  padding: 1.4rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 260px;
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.hero-card-text {
  font-size: 0.9rem;
  color: var(--slate);
  margin: 0;
}

/* -------------------------------------------------------
   Shared section styles
   ------------------------------------------------------- */
.section {
  padding: 5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
}

.trust-bar {
  display: grid;
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-item h3 {
  margin-bottom: 0.3rem;
}

.trust-item p {
  color: var(--slate);
}

/* -------------------------------------------------------
   About section
   ------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* -------------------------------------------------------
   Practice areas
   ------------------------------------------------------- */
.practice {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.practice-card {
  padding: 1.8rem;
  border-radius: 16px;
  background: var(--mist);
  border: 1px solid rgba(15, 18, 23, 0.08);
}

/* -------------------------------------------------------
   Attorneys
   ------------------------------------------------------- */
.attorney-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.attorney-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.2rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.attorney-title {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* -------------------------------------------------------
   Contact
   ------------------------------------------------------- */
.contact {
  background: linear-gradient(
    135deg,
    rgba(11, 22, 38, 0.04),
    rgba(199, 164, 109, 0.06)
  );
  border-radius: var(--radius);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 1.2rem;
}

.contact-card {
  background: var(--white);
  padding: 1.2rem 1.4rem;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.map-embed iframe {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 12px;
}

/* -------------------------------------------------------
   Forms
   ------------------------------------------------------- */
.form-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.6rem;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 18, 23, 0.15);
  font-family: inherit;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: 2px solid var(--gold);
  border-color: transparent;
}

.form-note {
  font-size: 0.95rem;
  color: var(--slate);
  margin-top: -0.2rem;
}

.form-disclaimer {
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 0.5rem;
}

.field-error {
  font-size: 0.82rem;
  color: #8b2f2f;
  min-height: 1rem;
}

.form-success {
  background: rgba(11, 22, 38, 0.08);
  color: var(--navy);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* -------------------------------------------------------
   Consultation
   ------------------------------------------------------- */
.consultation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.consultation-details {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* -------------------------------------------------------
   Footer
   ------------------------------------------------------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 1.5rem 2rem;
}

.footer h3,
.footer h4 {
  color: var(--white);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  display: grid;
  gap: 0.6rem;
}

/* -------------------------------------------------------
   Reveal animations
   ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------
   Responsive
   ------------------------------------------------------- */
@media (max-width: 920px) {
  .navbar {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 1rem;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-card {
    position: static;
    margin-top: 1.5rem;
  }

  .attorney-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    flex-direction: column;
  }

  .brand-text {
    display: none;
  }
}
