/* ==========================================================================
   Ethos Daycare — shared stylesheet
   Edit the CSS variables below to change colors/fonts site-wide.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #1c2b40;
  --paper: #fbf7ef;
  --ochre: #3d6fb4;
  --ochre-dark: #2c5686;
  --sage: #7fa8c9;
  --clay: #e7dfd0;
  --white: #ffffff;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --nav-height: 56px;
  --masthead-height: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 0.4em 0;
  line-height: 1.15;
}

p { margin: 0 0 1em 0; }

/* -------------------- Masthead + nav -------------------- */

.masthead {
  height: var(--masthead-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--clay);
  background: var(--paper);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 53px;
  height: 53px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #6fa8dc;
}

.masthead-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ochre-dark);
  border: 1px solid var(--ochre-dark);
  padding: 8px 16px;
  border-radius: 3px;
  white-space: nowrap;
}

.masthead-cta:hover { background: var(--ochre-dark); color: var(--white); }

.nav-bar {
  height: var(--nav-height);
  background: var(--ink);
  display: flex;
  align-items: center;
}

.nav-bar .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--paper);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  border-bottom: 2px solid var(--ochre);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 26px;
  cursor: pointer;
  padding: 4px 8px;
}

/* -------------------- Hero -------------------- */

.hero {
  position: relative;
  height: 46vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(28,43,64,0.55) 0%, rgba(28,43,64,0.05) 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 34px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ochre);
  color: var(--white);
}
.btn-primary:hover { background: var(--ochre-dark); }

.btn-outline {
  background: rgba(251,247,239,0.08);
  color: var(--white);
  border: 1px solid var(--white);
  backdrop-filter: blur(2px);
}
.btn-outline:hover { background: var(--white); color: var(--ink); }

/* -------------------- Intro (image + text) -------------------- */

.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 34vh;
}

.intro-image {
  background-size: cover;
  background-position: center;
}

.intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 56px;
  background: var(--clay);
}

.intro-text h2 {
  font-size: 26px;
}

.intro-text p {
  font-size: 15.5px;
  max-width: 46ch;
}

/* -------------------- Content sections -------------------- */

.section {
  padding: 84px 0;
  scroll-margin-top: calc(var(--masthead-height) + var(--nav-height) + 12px);
}

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

.section h2 {
  font-size: 34px;
  margin-bottom: 0.3em;
}

.section .eyebrow {
  color: var(--ochre-dark);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.section-grid img { border-radius: 4px; }

.section p.lead {
  font-size: 17px;
  max-width: 56ch;
}

/* -------------------- Simple page hero (interior pages) -------------------- */

.page-hero {
  height: 30vh;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28,43,64,0.45);
}

.page-hero h1 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 40px;
}

.page-body {
  padding: 64px 0;
}

.page-body h2 { font-size: 26px; margin-top: 1.2em; }
.page-body p { font-size: 16px; max-width: 68ch; }

/* -------------------- Cards (careers / gear / gallery) -------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border: 1px solid var(--clay);
  border-radius: 4px;
  overflow: hidden;
}

.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

.card-body { padding: 18px 20px 22px; }

.card-body h3 { font-size: 17px; margin-bottom: 6px; }
.card-body p { font-size: 14px; color: #4c5c50; margin-bottom: 12px; }
.card-body .price { font-weight: 600; color: var(--ochre-dark); }

/* -------------------- Team -------------------- */

.team-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}

.team-member {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.team-member img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.team-member h3 { font-size: 19px; margin-bottom: 4px; }

.team-member .role {
  color: var(--ochre-dark);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.team-member p.bio { font-size: 15px; max-width: 60ch; }

/* -------------------- FAQ -------------------- */

.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--clay);
  padding: 22px 0;
}

.faq-item:first-child { border-top: 1px solid var(--clay); }

.faq-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--ink);
}

.faq-item p {
  font-size: 15px;
  color: #4c5c50;
  margin-bottom: 0;
  max-width: 68ch;
}

/* -------------------- Forms -------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

form { display: flex; flex-direction: column; gap: 16px; }

label { font-size: 13.5px; font-weight: 600; margin-bottom: 4px; display: block; }

input, textarea, select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--clay);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}

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

/* -------------------- Footer -------------------- */

footer {
  background: var(--ink);
  color: var(--paper);
  padding: 40px 0;
  font-size: 14px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer a:hover { color: var(--ochre); }

/* -------------------- Accessibility -------------------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ochre);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* -------------------- Responsive -------------------- */

@media (max-width: 900px) {
  .intro, .section-grid, .form-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-image { min-height: 260px; }
  .team-member { grid-template-columns: 1fr; }
  .team-member img { width: 100%; height: 260px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: calc(var(--masthead-height) + var(--nav-height));
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 20;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 32px; border-bottom: none; }
  .masthead-cta { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .section h2 { font-size: 27px; }
  .page-hero h1 { font-size: 30px; }
}
