/* =========================================================================
   Tribble Hall landing page styles
   Palette pulled from the design screenshots:
     - dark charcoal background
     - warm off-white / light grey section
     - elegant high-contrast serif for headings, clean sans for body
   ========================================================================= */

:root {
  --charcoal: #2b2926;      /* dark section background */
  --charcoal-soft: #353230; /* slightly lighter charcoal */
  --cream: #e4e2db;         /* light section background */
  --cream-card: #edebe4;    /* card / panel on light background */
  --text-dark: #2b2926;     /* body text on light background */
  --text-muted: #5c574f;    /* secondary body text */
  --text-light: #f3f1ea;    /* text on dark background */
  --text-light-muted: #b8b3a8;
  --accent: #c9a86a;        /* warm gold accent */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1120px;
}

/* ---- Reset / base ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.container-narrow {
  max-width: 760px;
}

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
}

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

.brand {
  display: inline-flex;
  align-items: center;
}

/* The logo artwork has dark text, so we render it white on the dark header. */
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-light);
  font-size: 0.92rem;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* mobile menu button, hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(243, 241, 234, 0.4);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 0.85rem;
  cursor: pointer;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--text-light);
  padding: 170px 0 160px;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  line-height: 1.06;
  letter-spacing: -0.5px;
  max-width: 18ch;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-light-muted);
  max-width: 48ch;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 6px;
  transition: transform 0.15s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  opacity: 0.92;
}

.btn-ghost {
  border: 1px solid rgba(243, 241, 234, 0.35);
  color: var(--text-light);
}

.btn-ghost:hover {
  border-color: var(--text-light);
}

/* =========================================================================
   WAVE / CURVED TRANSITIONS
   ========================================================================= */
.wave {
  line-height: 0;
}

.wave svg {
  display: block;
  width: 100%;
  height: 110px;
}

/* dark hero -> light section: the fill is the light cream color */
.wave-dark-to-light {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
}

.wave-dark-to-light svg path {
  fill: var(--cream);
}

/* light section -> dark contact: the fill is the charcoal color */
.wave-light-to-dark {
  background: var(--cream);
  margin-bottom: -1px;
}

.wave-light-to-dark svg path {
  fill: var(--charcoal);
}

/* =========================================================================
   LIGHT SECTIONS
   ========================================================================= */
.section-light {
  background: var(--cream);
  padding: 70px 0;
}

.intro {
  padding-top: 30px;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.25;
  color: var(--text-dark);
  max-width: 22ch;
  margin-bottom: 28px;
}

.intro-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* small uppercase label above a section title */
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-title.centered {
  text-align: center;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 44px;
}

/* ---- Approach cards ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.card {
  background: var(--cream-card);
  border: 1px solid rgba(43, 41, 38, 0.08);
  border-radius: 10px;
  padding: 28px 26px;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.card p {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* ---- Offerings & Why list (two-column) ---- */
.offerings,
.why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 38px 56px;
}

.offering h3,
.why-item h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(43, 41, 38, 0.12);
}

.offering p,
.why-item p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* =========================================================================
   WHO WE ARE
   ========================================================================= */
.who {
  text-align: center;
}

.founder {
  margin: 36px 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.founder-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(43, 41, 38, 0.1);
}

/* shown only if the real photo is missing */
.founder-photo-fallback {
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 3rem;
  letter-spacing: 2px;
}

.founder-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-top: 20px;
  line-height: 1.3;
}

.founder-name span {
  font-size: 1.3rem;
  color: var(--text-muted);
}

.founder-bio {
  text-align: left;
  max-width: 60ch;
  margin: 0 auto;
}

.founder-bio p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* =========================================================================
   CONTACT (dark)
   ========================================================================= */
.section-dark {
  background: var(--charcoal);
  color: var(--text-light);
  padding: 30px 0 90px;
}

.contact-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.contact-sub {
  color: var(--text-light-muted);
  font-size: 1.1rem;
  margin-bottom: 34px;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(201, 168, 106, 0.5);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.contact-email:hover {
  opacity: 0.8;
}

.contact-location {
  margin-top: 12px;
  color: var(--text-light-muted);
}

/* ---- Contact form ---- */
.contact-form {
  max-width: 620px;
  margin: 0 0 40px;
  text-align: left;
}

/* name + email sit side by side on wider screens */
.form-row {
  display: flex;
  gap: 18px;
}

.form-field {
  display: block;
  flex: 1;
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--text-light);
  background: var(--charcoal-soft);
  border: 1px solid rgba(243, 241, 234, 0.15);
  border-radius: 8px;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn-primary {
  margin-top: 4px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1rem;
}

.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Honeypot field is hidden from real visitors. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.2em;
  margin-top: 14px;
  font-size: 0.95rem;
}

.form-status-ok {
  color: var(--accent);
}

.form-status-error {
  color: #e0907f;
}

.contact-or {
  margin-bottom: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light-muted);
}

/* stack the name/email fields on small screens */
@media (max-width: 560px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: var(--charcoal-soft);
  color: var(--text-light-muted);
  padding: 26px 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-legal a:hover {
  color: var(--text-light);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    right: 28px;
    left: 28px;
    flex-direction: column;
    gap: 0;
    background: var(--charcoal-soft);
    border-radius: 8px;
    padding: 8px 0;
  }

  /* toggled open via small script */
  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 10px 20px;
  }

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