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

:root {
  --navy:   #1B2A4A;
  --gold:   #C9A84C;
  --gold-light: #E2C47A;
  --white:  #FFFFFF;
  --cream:  #F8F6F1;
  --charcoal: #2C2C2C;
}

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

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

header {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(201,168,76,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 40px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.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;
}

.logo-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 2px;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.1s;
}

.logo-rule span {
  display: block;
  height: 1px;
  width: 60px;
  background: var(--gold);
  opacity: 0.5;
}

.logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.header-logo {
  width: min(640px, 76vw);
  height: auto;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.2s;
}

.hero-mission {
  max-width: 600px;
  margin: 0 auto 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-style: italic;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.4s;
}

/* HERO CTA */
.hero-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 30px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.1s;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.8s;
}

.hero-cta:hover { background: var(--gold-light); }
.hero-cta:active { transform: scale(0.98); }
.hero-cta:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

nav {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  position: relative;
  top: auto;
  z-index: 1;
}

nav ul {
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li {
  flex: 1;
  text-align: center;
}

nav ul li a {
  display: block;
  padding: 13px 24px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}

nav ul li a:hover { color: var(--gold); }
nav ul li a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

nav.compact-hidden {
  visibility: hidden;
  pointer-events: none;
}

/* TRUST SIGNALS */
#trust {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.2);
}

.trust-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-text {
  font-size: 0.69rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* ABOUT */
#about {
  background: var(--cream);
  scroll-margin-top: var(--anchor-offset, 0px);
}

#about .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px;
}

.about-accent {
  text-align: center;
}

.about-text {
  font-size: clamp(0.96rem, 1.7vw, 1.04rem);
  line-height: 1.8;
  color: var(--charcoal);
  font-weight: 300;
}

/* SERVICES */
#services {
  background: var(--white);
  padding: 40px;
  scroll-margin-top: var(--anchor-offset, 0px);
}

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}

.section-divider {
  width: 36px;
  height: 1px;
  background: var(--gold);
  margin: 12px auto 36px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 8px;
}

.services-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 4px;
  padding: 28px 24px;
  transition: border-color 0.2s;
  text-align: center;
}

.service-card:hover {
  border-color: var(--gold);
}

.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.service-card h3 .card-icon {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.service-card h3 .card-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--charcoal);
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.8;
  text-align: center;
}

/* DIFFERENTIATORS */
#different {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 40px;
  scroll-margin-top: var(--anchor-offset, 0px);
}

#different::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(201,168,76,0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 80%, rgba(201,168,76,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.different-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.different-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.22rem, 2.8vw, 1.5rem);
  font-style: italic;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 36px;
}

.different-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.different-item {
  padding: 22px 18px;
  text-align: center;
}

.different-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 10px;
  line-height: 1.3;
}

.different-item p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.65;
}

/* SERVICE AREA */
#service-area {
  background: var(--white);
  padding: 40px;
  scroll-margin-top: var(--anchor-offset, 0px);
}

.area-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.area-inner .section-label {
  color: var(--navy);
}

.area-towns {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 2;
  margin-top: 8px;
}

.area-towns .town {
  display: inline;
  white-space: nowrap;
}

.area-towns a.town {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.area-towns a.town:hover { color: var(--gold); }
.area-towns a.town:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.area-towns .separator {
  color: var(--gold);
  margin: 0 8px;
  opacity: 0.6;
}

/* CONTACT */
#contact {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  scroll-margin-top: var(--anchor-offset, 0px);
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

#contact .inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  position: relative;
  z-index: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 2px;
  padding: 11px 14px;
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.submit-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 13px 36px;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover { background: var(--gold-light); }
.submit-btn:active { transform: scale(0.98); }
.submit-btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

footer {
  background: #182644;
  padding: 20px 40px;
  text-align: center;
  line-height: 1.4;
}

footer p {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.55);
}

.footer-line1, .footer-line2 {
  display: inline;
}

.footer-line1::after {
  content: ' · ';
}

footer .gold { color: var(--gold); opacity: 0.8; }
footer .li-highlight { color: var(--gold); opacity: 1; }

.footer-service-areas {
  margin-bottom: 14px;
}

.footer-service-areas-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 8px;
}

.footer-service-areas-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
}

.footer-service-areas-list li:not(:last-child):not(.row-break)::after {
  content: '·';
  margin: 0 12px;
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.footer-service-areas-list .row-break {
  display: none;
}

.footer-service-areas a,
.footer-service-areas-placeholder {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

.footer-service-areas a { transition: color 0.2s; }
.footer-service-areas a:hover { color: var(--gold); }
.footer-service-areas a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* COMPACT BAR */
.compact-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--navy);
  display: none;
  padding: 10px 40px;
}

.compact-bar.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.compact-bar .cb-logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.compact-bar .cb-nav {
  display: flex;
  list-style: none;
  gap: 0;
  justify-content: center;
  border-top: 1px solid rgba(201,168,76,0.2);
  margin-top: 8px;
  padding-top: 4px;
  width: 100%;
}

.compact-bar .cb-nav a {
  display: block;
  padding: 6px 20px;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}

.compact-bar .cb-nav a:hover {
  color: var(--gold);
}

.compact-bar .cb-nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* INLINE STYLE REPLACEMENTS */
.logo-rule-lower {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.55s;
  margin-top: 24px;
  margin-bottom: 10px;
}

.reveal-center {
  text-align: center;
}

.reveal-center-mb {
  text-align: center;
  margin-bottom: 8px;
}

.section-label-dark {
  color: var(--navy);
}

.about-text-spaced {
  margin-top: 16px;
}

.area-towns-row2 {
  margin-top: 8px;
}

.reveal-contact-header {
  text-align: center;
  margin-bottom: 24px;
}

.contact-divider {
  margin: 10px auto 14px;
  background: rgba(255,255,255,0.3);
}

.contact-subtitle {
  font-size: 1.1rem;
  font-style: italic;
}

.submit-btn-centered {
  align-self: center;
  margin-top: 12px;
  margin-bottom: 0;
}

.logo-rule-static {
  opacity: 1;
  animation: none;
  margin-top: 18px;
  margin-bottom: 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
}

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

@media (max-width: 680px) {
  .compact-bar.visible { padding: 8px 24px; }
  .compact-bar .cb-logo {
    height: 30px;
  }
  .compact-bar .cb-nav {
    width: 100%;
    justify-content: center;
    border-top: 1px solid rgba(201,168,76,0.2);
    margin-top: 8px;
    padding-top: 4px;
  }
  .compact-bar .cb-nav a {
    padding: 6px 12px;
    font-size: 0.65rem;
  }
  .footer-line1, .footer-line2 { display: block; }
  .footer-line1::after { content: none; }
  .footer-line2 { margin-top: 4px; }
  #about .inner { padding: 32px 24px; }
  #contact .inner { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  nav ul li a { padding: 12px; font-size: 0.63rem; }
  #services { padding: 32px 24px; }
  .header-inner { padding: 20px 24px; }
  .trust-inner { gap: 20px; padding: 20px 24px; }
  #service-area { padding: 32px 24px; }
  #different { padding: 32px 24px; }
  footer { padding: 20px 24px; }
  .footer-service-areas-list .row-break {
    display: block;
    flex-basis: 100%;
    height: 0;
  }
  .footer-service-areas-list li:not(:last-child):not(.row-break)::after {
    margin: 0 8px;
  }
  .footer-service-areas-list li:nth-child(2):not(:last-child):not(.row-break)::after {
    content: none;
  }
  .different-grid { grid-template-columns: 1fr; gap: 28px; }
}
