:root {
  --charcoal: #0f1113;
  --ivory: #f5f3ef;
  --champagne: #c0a062;
  --slate: #7a7f86;
  --stone: #edeae4;
  --border: #23262a;
  --radius: 12px;
  --transition: 0.2s ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--charcoal);
  color: var(--ivory);
  line-height: 1.5;
}

.policy-page {
  background: var(--charcoal);
  color: var(--ivory);
}

.policy-header {
  padding: 96px 0 24px;
  background: #0b0c0e;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.policy-logo {
  display: inline-block;
  margin-bottom: 16px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--champagne);
}

.policy-header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.policy-content {
  padding: 64px 24px 96px;
  max-width: 920px;
}

.policy-content section + section {
  margin-top: 40px;
}

.policy-content h2 {
  margin-bottom: 12px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.policy-grid article {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

.policy-table th,
.policy-table td {
  padding: 12px;
  border: 1px solid var(--border);
}

.policy-table th {
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
}

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

a:hover,
button:hover {
  color: var(--champagne);
}

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

section {
  padding: 96px 0;
}

.container {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  padding: 8px 16px;
  background: var(--champagne);
  color: #000;
  z-index: 1000;
}

.skip-link:focus {
  left: 24px;
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 19, 0.9);
  border-bottom: 1px solid rgba(245, 243, 239, 0.05);
  backdrop-filter: blur(10px);
  z-index: 100;
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--slate);
}

.main-nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--slate);
}

.main-nav a {
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--champagne);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav a:focus-visible,
.main-nav a:hover {
  color: var(--ivory);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ivory);
  margin-bottom: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border var(--transition);
}

.btn-primary {
  background: var(--champagne);
  color: #0b0d0f;
}

.btn-primary:hover {
  background: #d0b47e;
}

.btn-outline {
  border: 1px solid var(--champagne);
  color: var(--champagne);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(192, 160, 98, 0.1);
}

.btn-link {
  padding: 0;
  border: none;
  background: none;
  color: var(--slate);
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 140px 0 120px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(192, 160, 98, 0.25), transparent 55%),
      radial-gradient(circle at 80% 0%, rgba(0, 0, 0, 0.4), transparent 45%),
      linear-gradient(120deg, rgba(6, 7, 9, 0.93), rgba(9, 11, 14, 0.35)),
      url('https://images.unsplash.com/photo-1494145904049-0dca59b4bbad?auto=format&fit=crop&w=1600&q=80')
        center/cover no-repeat;
  filter: saturate(0.85);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 17, 19, 0.95), rgba(15, 17, 19, 0.4));
}

.hero-shape {
  position: absolute;
  border: 1px solid rgba(192, 160, 98, 0.35);
  border-radius: 24px;
  mix-blend-mode: screen;
}

.hero-shape-one {
  width: 220px;
  height: 220px;
  top: 12%;
  right: 18%;
}

.hero-shape-two {
  width: 160px;
  height: 160px;
  bottom: 20%;
  left: 12%;
}

.hero-shape-three {
  width: 480px;
  height: 480px;
  top: 18%;
  right: -5%;
  border-radius: 999px;
  border-color: rgba(192, 160, 98, 0.15);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 640px;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 24px;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 24px;
}

h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

p {
  color: var(--slate);
  margin-bottom: 16px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.72rem;
  color: var(--champagne);
}

.lead {
  font-size: 1.15rem;
}

.hero-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-weight: 500;
}

.hero-cta {
  margin: 32px 0 16px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--champagne);
}

.hero-grants {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-grants span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(245, 243, 239, 0.8);
  background: rgba(0, 0, 0, 0.2);
}

.trust {
  background: #111316;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.trust article {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.trust .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--champagne);
  display: inline-block;
  margin-bottom: 12px;
}

.services {
  background: var(--charcoal);
}

.services header {
  max-width: 720px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.service-grid article {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.process {
  background: #121416;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
}

.timeline li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.timeline li span {
  font-size: 0.85rem;
  color: var(--slate);
}

.financing {
  background: var(--stone);
  color: #111;
}

.financing header p,
.financing p {
  color: #3c4148;
}

.financing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.financing-grid article {
  padding: 32px;
  border: 1px solid #d4cfc4;
  border-radius: var(--radius);
  background: #f8f6f1;
}

.financing .btn-primary {
  background: #1c1f23;
  color: var(--ivory);
}

.grants {
  background: radial-gradient(circle at top, rgba(192, 160, 98, 0.08), rgba(12, 14, 16, 0.95));
  padding: 96px 0;
}

.grants header {
  max-width: 820px;
}

.grants-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.grant-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.grant-pill {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--champagne);
}

.grant-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(245, 243, 239, 0.85);
}

.grant-list li {
  position: relative;
  padding-left: 20px;
}

.grant-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--champagne);
}

.grant-note {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

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

.why-grid article {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq {
  background: var(--charcoal);
}

.accordion article {
  border-bottom: 1px solid var(--border);
}

.accordion button {
  width: 100%;
  background: none;
  border: none;
  color: var(--ivory);
  text-align: left;
  padding: 24px 0;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
}

.accordion .content {
  max-height: 0;
  overflow: hidden;
  color: var(--slate);
  transition: max-height var(--transition);
}

.accordion article[aria-expanded='true'] .content,
.accordion button[aria-expanded='true'] + .content {
  max-height: 200px;
  padding-bottom: 24px;
}

.contact {
  background: var(--stone);
  color: #101214;
}

.contact header p,
.contact p {
  color: #4c535a;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

form {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.field-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  color: #0f1113;
}

input,
select,
textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #c9c5bc;
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--champagne);
  border-color: var(--champagne);
}

.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.consent input {
  width: 20px;
  height: 20px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 24px;
  font-size: 0.95rem;
  color: #1b5e20;
}

.contact-card,
.coverage {
  border: 1px solid #cfc8bc;
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  color: #111;
}

.coverage .map {
  margin-top: 16px;
  height: 180px;
  border-radius: 8px;
  background: conic-gradient(from 90deg, rgba(192, 160, 98, 0.3), rgba(15, 17, 19, 0.85));
}

.site-footer {
  background: #0b0c0e;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.site-footer h4 {
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--slate);
}

.site-footer a {
  color: var(--slate);
}

.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.socials a {
  margin-left: 12px;
  font-weight: 600;
}

.cookie-bar {
  position: fixed;
  bottom: 0;
  width: min(420px, calc(100% - 32px));
  right: 16px;
  background: rgba(237, 234, 228, 0.95);
  color: #111;
  padding: 24px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 400;
}
.cookie-bar[hidden],
.cookie-bar--hidden {
  display: none !important;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  border: 1px solid #c9c2b7;
  background: none;
  cursor: pointer;
}

.cookie-actions .btn {
  background: #111;
  color: var(--ivory);
  border: none;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 24px;
  z-index: 200;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal__card {
  width: min(520px, 100%);
  background: #0f1113;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.cookie-modal__card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.cookie-modal__close {
  background: none;
  border: 1px solid var(--border);
  color: var(--ivory);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-toggle:last-of-type {
  border-bottom: none;
}

.cookie-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: background var(--transition);
}

.cookie-switch span::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ivory);
  top: 3px;
  left: 4px;
  transition: transform var(--transition);
}

.cookie-switch input:checked + span {
  background: var(--champagne);
}

.cookie-switch input:checked + span::after {
  transform: translateX(20px);
}

.cookie-modal__actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 1024px) {
  .main-nav {
    position: fixed;
    inset: 72px 16px auto;
    background: #0b0d10;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .site-header .btn-outline {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 120px;
  }

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

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

  .timeline {
    grid-template-columns: 1fr;
  }

  .cookie-bar-open .cookie-bar {
    left: 16px;
    right: 16px;
    width: auto;
  }

  .cookie-modal__card {
    padding: 24px;
  }

  .grant-note {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
