@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/IBMPlexSans-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Italic-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #051128;
  --navy-deep: #030d1f;
  --navy-mid: #2c456f;
  --navy-soft: #3e5a8c;
  --ink: #142033;
  --ink-soft: #3d4a5c;
  --gold: #c99f54;
  --gold-deep: #b58a3a;
  --gold-light: #e9d5a7;
  --paper: #f7f4ee;
  --paper-warm: #efe8dc;
  --sky: #e8eef6;
  --line: rgba(201, 159, 84, 0.45);
  --rule: #c99f54;
  --header-h: 4.5rem;
  --wrap: 68rem;
  --font-serif: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-italic: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --shadow-soft: 0 10px 30px rgba(5, 17, 40, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--navy-mid);
}

a:hover {
  color: var(--gold-deep);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--gold-light);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(201, 159, 84, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-h);
  padding-block: 0.55rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.logo {
  height: 3.15rem;
  width: auto;
  max-width: min(22rem, 58vw);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.8rem;
  font-family: var(--font-serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.site-nav a {
  color: var(--navy);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

/* Hero
   ------------------------------------------------------------------------- */
.hero {
  background: var(--navy);
  color: var(--paper);
}

.hero-banner-wrap {
  background: var(--navy-deep);
}

.hero-banner {
  width: 100%;
  height: auto;
  display: block;
}

.hero-copy {
  background: var(--navy);
  padding: 2.4rem 0 3.1rem;
  text-align: center;
  border-top: 1px solid rgba(201, 159, 84, 0.28);
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.hero-tagline {
  margin: 0 auto 1rem;
  max-width: 22ch;
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.28;
  color: #f4efe6;
}

.hero-lede {
  margin: 0 auto 1.6rem;
  max-width: 40rem;
  color: rgba(247, 244, 238, 0.82);
  font-size: 1.05rem;
}

/* Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.55rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  background: transparent;
  color: var(--navy);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-deep);
}

button.btn {
  font-family: var(--font-serif);
}

/* Sections
   ------------------------------------------------------------------------- */
.section {
  padding: 4.25rem 0 4.5rem;
}

.section-head {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-head h2,
.about-derek h2,
.about-derek h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
}

.section-head h2::after,
.about-derek h2::after,
.about-derek h3::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 1px;
  background: var(--rule);
  margin: 0.85rem auto 0;
}

.section-head-light h2 {
  color: var(--gold-light);
}

.section-head-light h2::after {
  background: var(--gold);
}

.section-intro {
  margin: 0 auto 2.4rem;
  max-width: 42rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Services
   ------------------------------------------------------------------------- */
.services {
  background: var(--paper);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.15rem;
}

.service-card {
  grid-column: span 2;
  background: #fff;
  border: 1px solid rgba(5, 17, 40, 0.08);
  border-top: 2px solid var(--gold);
  padding: 1.4rem 1.3rem 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.service-card:nth-child(4) {
  grid-column: 2 / 4;
}

.service-card:nth-child(5) {
  grid-column: 4 / 6;
}

.service-icon {
  color: var(--gold-deep);
  display: flex;
}

.service-card h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--navy);
  letter-spacing: 0;
  text-transform: none;
}

/* About
   ------------------------------------------------------------------------- */
.about {
  background: linear-gradient(180deg, var(--sky) 0%, #f3f6fa 100%);
}

.about-firm {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.about-logo {
  width: 100%;
  max-width: 14rem;
  margin-inline: auto;
  background: #fff;
  padding: 0.85rem 0.85rem 0.7rem;
  box-shadow: var(--shadow-soft);
}

.about-firm-copy p {
  margin: 0 0 1rem;
}

.about-firm-copy p:last-child {
  margin-bottom: 0;
}

.about-location {
  font-weight: 500;
  color: var(--navy);
}

.about-derek {
  background: #fff;
  padding: 2rem 2.1rem 2.15rem;
  border: 1px solid rgba(5, 17, 40, 0.08);
  box-shadow: var(--shadow-soft);
  border-left: 3px solid var(--gold);
}

.about-derek h2,
.about-derek h3 {
  text-align: left;
  margin-bottom: 1.15rem;
}

.about-derek h2::after,
.about-derek h3::after {
  margin-left: 0;
  margin-right: 0;
}

.about-derek p {
  margin: 0 0 1rem;
  max-width: 48rem;
}

.about-derek p:last-child {
  margin-bottom: 0;
}

/* Contact
   ------------------------------------------------------------------------- */
.contact {
  background:
    linear-gradient(180deg, rgba(3, 13, 31, 0.2), rgba(3, 13, 31, 0.2)),
    var(--navy-deep);
  background-color: var(--navy);
  color: var(--paper);
  padding-bottom: 5rem;
}

.contact-inner {
  max-width: 38rem;
}

.contact-intro {
  color: rgba(247, 244, 238, 0.8);
}

.contact-form {
  background: #fff;
  color: var(--ink);
  padding: 1.85rem 1.75rem 2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  border-top: 2px solid var(--gold);
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-family: var(--font-serif);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--navy);
}

.optional {
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(5, 17, 40, 0.18);
  padding: 0.7rem 0.8rem;
  border-radius: 0;
  appearance: none;
}

.field textarea {
  resize: vertical;
  min-height: 8.5rem;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
  background: #fff;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.35rem;
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.75rem 0.85rem;
  background: var(--sky);
  color: var(--navy);
  font-size: 0.95rem;
}

.form-status[data-kind="error"] {
  background: #f8ebe6;
  color: #6b2a1a;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--gold-light);
  text-align: center;
  padding: 1.35rem 0 1.5rem;
  border-top: 1px solid rgba(201, 159, 84, 0.28);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

/* Desktop hero: banner already carries the tagline typography */
@media (min-width: 721px) {
  .hero-tagline {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero-copy {
    padding: 2.05rem 0 2.55rem;
  }
}

/* Mobile
   ------------------------------------------------------------------------- */
@media (max-width: 720px) {
  :root {
    --header-h: 4.15rem;
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 1.6rem));
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    padding-block: 0.45rem 0.55rem;
  }

  .logo {
    height: 2.55rem;
    max-width: 86vw;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    gap: 1.15rem;
    font-size: 0.72rem;
  }

  .hero-banner-wrap {
    display: none;
  }

  .hero {
    min-height: 30.5rem;
    display: flex;
    align-items: flex-end;
    background-color: var(--navy-deep);
    background-image:
      linear-gradient(
        180deg,
        rgba(3, 13, 31, 0.12) 0%,
        rgba(3, 13, 31, 0.08) 42%,
        rgba(3, 13, 31, 0.55) 100%
      ),
      url("images/hero-mobile.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center bottom;
  }

  .hero-copy {
    background: linear-gradient(
      180deg,
      rgba(3, 13, 31, 0) 0%,
      rgba(3, 13, 31, 0.78) 22%,
      rgba(3, 13, 31, 0.94) 48%,
      rgba(3, 13, 31, 0.97) 100%
    );
    border-top: none;
    width: 100%;
    padding: 7.25rem 0 2.5rem;
    text-align: left;
  }

  .hero-kicker {
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    line-height: 1.55;
  }

  .kicker-sep {
    display: block;
    height: 0;
    overflow: hidden;
  }

  .hero-tagline {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 1rem;
    padding: 0;
    clip: auto;
    overflow: visible;
    white-space: normal;
    max-width: none;
    font-size: 1.55rem;
  }

  .hero-lede {
    margin-left: 0;
    margin-right: 0;
  }

  .section {
    padding: 3.15rem 0 3.4rem;
  }

  .about-firm {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
  }

  .about-logo {
    max-width: 11.5rem;
  }

  .about-derek {
    padding: 1.4rem 1.2rem 1.55rem;
  }

  .contact-form {
    padding: 1.4rem 1.15rem 1.55rem;
  }

  .service-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .btn-gold,
  .site-nav a {
    transition: none;
  }
}
