/* ===== Variables & Reset ===== */

:root {
  --primary: #3d5a80;
  --primary-dark: #2f4a6e;
  --accent: #c4694a;
  --bg: #fefcf9;
  --text: #2b2b2b;
  --text-light: #5a5a5a;
  --white: #ffffff;
  --border: #e2ddd7;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ===== Navigation ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--text);
}

.nav-wordmark {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  transition: color var(--transition);
}

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

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ===== Buttons ===== */

.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #b35b3e;
  color: var(--white);
}


/* ===== Hero ===== */

.hero {
  padding: 160px 0 120px;
  text-align: center;
}

.hero-headline {
  font-size: clamp(36px, 5.5vw, 60px);
  color: var(--primary-dark);
  max-width: 740px;
  margin: 0 auto 28px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
}


/* ===== Sections ===== */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--white);
}

.section-heading {
  font-size: 34px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-intro {
  font-size: 18px;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 48px;
}


/* ===== Who We Are ===== */

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-photo-initials {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  opacity: 0.85;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 17px;
}

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

.about-meta {
  font-style: italic;
  color: var(--text-light);
  font-size: 15px !important;
  margin-top: 8px;
}


/* ===== What We Do ===== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow);
}

.service-number {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 20px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}


/* ===== Resources ===== */

.resources-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  max-width: 560px;
  margin: 40px auto 0;
}

.resources-icon {
  margin-bottom: 20px;
}

.resources-card h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.resources-card p {
  font-size: 16px;
  color: var(--text-light);
}


/* ===== Contact ===== */

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
}

.form-group select {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235a5a5a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.contact-info {
  padding-top: 12px;
}

.contact-info p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.contact-email {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  word-break: break-all;
  margin-bottom: 20px;
}

.contact-note {
  font-size: 14px !important;
  color: var(--text-light);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  margin-top: 24px;
}

.form-success.visible {
  display: block;
}

.form-success p {
  font-size: 18px;
  color: var(--primary-dark);
  font-weight: 500;
}


/* ===== Footer ===== */

.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 32px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.footer-tagline {
  font-size: 15px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-disclaimer {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.4);
  max-width: 640px;
  margin: 0 auto 28px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--white);
}


/* ===== Responsive ===== */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about-photo {
    margin: 0 auto;
    width: 160px;
    height: 160px;
  }

  .about-photo-initials {
    font-size: 40px;
  }

  .about-text {
    text-align: left;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .section-heading {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 110px 0 64px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .resources-card {
    padding: 40px 24px;
  }
}
