/* Fondamenta Consulting — Brand Styles */

:root {
  --deep-canal: #022b29;
  --gold: #b8976a;
  --gold-light: #d4b896;
  --cream: #faf9f7;
  --stone: #f5f2ed;
  --white: #ffffff;
  --text-muted: rgba(250, 249, 247, 0.72);
  --text-body: #1a2e2c;
  --text-secondary: #4a5f5c;
  --gold-rule: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 60%, transparent 100%);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Typography ── */

.display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  line-height: 1.15;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  color: var(--deep-canal);
  margin-bottom: 1.5rem;
}

.section-title--light {
  color: var(--cream);
}

.gold-rule {
  height: 1px;
  background: var(--gold-rule);
  margin: 1.5rem 0 2rem;
  border: none;
}

.gold-rule--center {
  max-width: 120px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Layout ── */

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ── Header ── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(2, 43, 41, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 151, 106, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.site-nav a {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--gold);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--deep-canal);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(184, 151, 106, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(184, 151, 106, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: min(520px, 85vw);
  margin: 0 auto 2.5rem;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--deep-canal);
  background: var(--gold);
  padding: 0.875rem 2.25rem;
  transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: var(--gold-light);
  transform: translateY(-1px);
}

/* ── Sections ── */

section {
  padding: 6rem 0;
}

.section--stone {
  background: var(--stone);
}

.section--dark {
  background: var(--deep-canal);
  color: var(--cream);
}

.section-intro {
  max-width: 42rem;
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.section--dark .section-intro {
  color: var(--text-muted);
}

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-highlight {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 300;
  font-style: italic;
  color: var(--deep-canal);
  line-height: 1.55;
  border-left: 2px solid var(--gold);
  padding-left: 1.75rem;
}

/* ── Services ── */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  padding: 2.25rem 2rem;
  border-top: 2px solid var(--gold);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(2, 43, 41, 0.08);
}

.service-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.service-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--deep-canal);
  margin-bottom: 0.875rem;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── Founder ── */

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.founder-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  width: min(100%, 320px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(184, 151, 106, 0.2);
  background: rgba(184, 151, 106, 0.08);
}

.founder-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(2, 43, 41, 0.08) 0%, rgba(2, 43, 41, 0.5) 100%),
    linear-gradient(135deg, rgba(184, 151, 106, 0.22) 0%, transparent 52%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.founder-photo::after {
  content: '';
  position: absolute;
  inset: 1rem;
  z-index: 2;
  border: 1px solid rgba(212, 184, 150, 0.38);
  pointer-events: none;
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.82) contrast(0.96);
}

.founder-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.375rem;
}

.founder-role {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.founder-bio {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.85;
}

.founder-bio + .founder-bio {
  margin-top: 1.25rem;
}

/* ── Contact ── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

.contact-email {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--deep-canal);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color var(--transition);
}

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

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-top: 2px solid var(--gold);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-body);
  background: var(--cream);
  border: 1px solid rgba(2, 43, 41, 0.12);
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-submit {
  width: 100%;
  font-family: 'Jost', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--deep-canal);
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: background var(--transition);
}

.form-submit:hover:not(:disabled) {
  background: #033d3a;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  text-align: center;
  min-height: 1.25rem;
}

.form-status--success {
  color: #2d6a4f;
}

.form-status--error {
  color: #9b2226;
}

.botcheck {
  display: none;
}

/* ── Footer ── */

.site-footer {
  background: #011a19;
  color: var(--text-muted);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(184, 151, 106, 0.15);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-logo img {
  height: 28px;
  width: auto;
  opacity: 0.85;
  margin: 0 auto;
}

.footer-legal {
  font-size: 0.8125rem;
  line-height: 1.9;
}

.footer-legal strong {
  font-weight: 400;
  color: var(--gold-light);
}

.footer-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.footer-meta {
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color var(--transition);
}

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

/* ── Responsive ── */

@media (max-width: 900px) {
  .about-grid,
  .founder-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .founder-photo {
    max-width: 260px;
  }
}

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

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--deep-canal);
    padding: 2rem;
    transition: right var(--transition);
    border-left: 1px solid rgba(184, 151, 106, 0.15);
  }

  .site-nav.is-open {
    right: 0;
  }

  .site-nav a {
    font-size: 0.8125rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  section {
    padding: 4.5rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 2rem);
  }

  .contact-form {
    padding: 1.75rem;
  }
}
