/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #FCFAF7;
  --color-bg-alt: #F5F1EB;
  --color-surface: #FFFFFF;
  --color-navy: #162B48;
  --color-gold: #B2945B;
  --color-gold-light: #C8AB74;
  --color-text: #1A1A1A;
  --color-text-muted: #525E66;
  --color-border: #D1D5DB;
  --color-border-light: #E2E8F0;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', 'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', 'SF Mono', monospace;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--color-navy);
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 1px solid var(--color-border-light);
}

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

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo:hover {
  color: var(--color-navy);
}

.logo-mark {
  height: 1.6rem;
  width: auto;
}

.logo-llc {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.85em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-navy);
}

/* === Hero === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 16rem;
  background-color: var(--color-bg);
  background-image: url('../img/hero-frederick.webp');
  background-repeat: no-repeat;
  background-position: center calc(100% + 15vh);
  background-size: 100% auto;
  position: relative;
  overflow: hidden;
}

/* White overlay for text legibility — fades to reveal skyline at bottom */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(252, 250, 247, 0.85) 0%,
    rgba(252, 250, 247, 0.6) 60%,
    rgba(252, 250, 247, 0.25) 100%
  );
  pointer-events: none;
}

/* PF monogram watermark */
.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background-image: url('../img/pf-logo.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

/* Corner bracket — top-left */
.hero-content::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -40px;
  width: 60px;
  height: 60px;
  border-top: 1.5px solid var(--color-gold);
  border-left: 1.5px solid var(--color-gold);
  pointer-events: none;
}

/* Corner bracket — bottom-right */
.hero-content::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -40px;
  width: 60px;
  height: 60px;
  border-bottom: 1.5px solid var(--color-gold);
  border-right: 1.5px solid var(--color-gold);
  pointer-events: none;
}

.hero-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--color-navy);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(22, 43, 72, 0.08);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--color-navy);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}

.cta-button:hover {
  background: var(--color-navy);
  color: var(--color-gold);
}

/* === Problem Statement === */
.problem-statement {
  padding: 5rem 0;
  position: relative;
  /* Crosshatch texture */
  background-color: var(--color-bg);
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(22, 43, 72, 0.015) 10px,
      rgba(22, 43, 72, 0.015) 11px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(22, 43, 72, 0.015) 10px,
      rgba(22, 43, 72, 0.015) 11px
    );
}

/* Gold ornamental divider */
.problem-statement::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Centered diamond ornament */
.problem-statement::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  z-index: 1;
}

.problem-lead {
  font-size: 1.1rem;
  color: var(--color-text);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--color-border);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 8px rgba(0,0,0,0.04),
    0 12px 24px rgba(0,0,0,0.02);
}

.problem-card {
  padding: 2rem 1.75rem;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.problem-card:last-child {
  border-right: none;
}

.problem-card strong {
  display: block;
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 600;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.problem-card span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === Services === */
.services {
  padding: 6rem 0;
  /* Dot grid texture */
  background-color: var(--color-bg-alt);
  background-image: radial-gradient(
    circle,
    rgba(22, 43, 72, 0.04) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

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

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 8px rgba(0,0,0,0.04),
    0 12px 24px rgba(0,0,0,0.02);
}

.service-card:hover {
  border-color: var(--color-gold);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 6px 12px rgba(0,0,0,0.06),
    0 16px 32px rgba(0,0,0,0.03);
}

.service-icon {
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* === Services CTA === */
.services-cta {
  margin-top: 2.5rem;
  text-align: center;
}

.text-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-gold);
  padding-bottom: 0.15rem;
}

.text-link:hover {
  color: var(--color-gold);
}

/* === Infrastructure Section === */
.infrastructure {
  padding: 4rem 0;
  background: var(--color-bg);
}

.infrastructure h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.infra-lead {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.infra-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.infra-card {
  border: 1px solid var(--color-border);
  padding: 2rem;
  position: relative;
}

.infra-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.infra-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.infra-card-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.infra-card-green {
  border-color: var(--color-gold);
  border-width: 1px;
}

.infra-link-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

@media (max-width: 768px) {
  .infra-grid {
    grid-template-columns: 1fr;
  }
}

/* === Regulations Bar — Notary Seal Stamps === */
.regulations-bar {
  padding: 5rem 0;
  position: relative;
  background: var(--color-bg);
}

/* Gold ornamental divider (bottom) */
.regulations-bar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Centered diamond ornament (bottom) */
.regulations-bar::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  z-index: 1;
}

.reg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  justify-items: center;
}

.reg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

/* Seal with notary serration edge */
.reg-seal {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: repeating-conic-gradient(
    from 0deg,
    var(--color-navy) 0deg 5deg,
    transparent 5deg 10deg
  );
}

/* White inner disc with gold ring */
.reg-seal::before {
  content: '';
  position: absolute;
  inset: 7px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-gold);
  z-index: 0;
}

/* Inner navy ring */
.reg-seal::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--color-navy);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.reg-seal strong {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy);
  line-height: 1.2;
  max-width: 85px;
}

.reg-item > span {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  max-width: 140px;
}

/* === About === */
.about {
  padding: 6rem 0;
  /* Navy wash + laid paper lines */
  background-color: rgba(22, 43, 72, 0.04);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 24px,
    rgba(22, 43, 72, 0.02) 24px,
    rgba(22, 43, 72, 0.02) 25px
  );
}

.about h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.about h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--color-gold);
}

.about-content p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  max-width: 720px;
  line-height: 1.8;
}

.about-content > p:first-child {
  color: var(--color-text);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.highlight {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-navy);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 8px rgba(0,0,0,0.04),
    0 12px 24px rgba(0,0,0,0.02);
}

.highlight strong {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-size: 1rem;
}

.highlight span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* === Contact === */
.contact {
  padding: 6rem 0;
  background: var(--color-navy);
}

.contact h2 {
  color: #FFFFFF;
}

.contact-intro {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-item strong {
  font-family: var(--font-mono);
  color: var(--color-gold);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-item span {
  color: #FFFFFF;
  font-size: 1.05rem;
}

.contact-item a {
  color: #FFFFFF;
  font-size: 1.05rem;
}

.contact-item a:hover {
  color: var(--color-gold);
}

/* === Trust Signoff === */
.trust-signoff {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-signoff-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trust-signoff-name {
  color: #FFFFFF;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.trust-signoff-title {
  color: var(--color-gold);
  font-size: 0.85rem;
}

/* === Footer === */
.site-footer {
  padding: 3rem 0 2rem;
  background: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo:hover {
  color: #FFFFFF;
}

.footer-logo-mark {
  height: 1.2rem;
  width: auto;
}

.footer-logo .logo-llc {
  color: rgba(255, 255, 255, 0.5);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-location {
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-nav a:hover {
  color: var(--color-gold);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-contact a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .reg-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    border: none;
    box-shadow: none;
  }

  .problem-card {
    border: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    box-shadow:
      0 1px 2px rgba(0,0,0,0.04),
      0 4px 8px rgba(0,0,0,0.04);
  }

  .contact-details {
    flex-direction: column;
    gap: 1.5rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .hero-content::before,
  .hero-content::after {
    display: none;
  }
}
