/* =========================================
   Milk & Honey Paediatrics — Stylesheet
   Font: Quicksand (Google Fonts)
   Brand colours from style guide
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --cream:      #F0EDE0;
  --coral:      #B84F3C;
  --coral-light:#F5E0DB;
  --navy:       #2B3A5C;
  --sage:       #6B9E87;
  --sage-light: #E0EDE8;
  --yellow:     #F2C535;
  --yellow-light:#FDF7DC;
  --amber:      #E8A030;
  --white:      #ffffff;
  --charcoal:   #2B3A5C;
  --mid-grey:   #6B7280;
  --light-grey: #F7F6F2;
  --border:     #E5E0D5;
  --font:       'Quicksand', sans-serif;
  --radius:     10px;
  --max-width:  1100px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.btn {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn:hover { background: #c25a46; text-decoration: none; transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--coral);
  color: var(--coral);
}
.btn-outline:hover { background: var(--coral); color: var(--white); }

.btn-navy {
  background: var(--navy);
}
.btn-navy:hover { background: #1e2d4a; }

.section { padding: 5rem 0; }
.section-cream { background: var(--cream); }
.section-sage  { background: var(--sage-light); }
.section-yellow { background: var(--yellow-light); }
.section-navy  { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.section-title {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

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

.section-intro {
  font-size: 1.1rem;
  color: var(--mid-grey);
  max-width: 720px;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* --- Top Banner --- */
.top-banner {
  background: var(--coral);
  color: var(--white);
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.top-banner a { color: var(--white); text-decoration: underline; }

/* --- Nav --- */
.site-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

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

.nav-logo img { height: 56px; width: auto; }

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

.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--coral); text-decoration: none; }
.nav-links .btn { color: var(--white); }
.nav-links .btn:hover { color: var(--white); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); margin: 5px 0; transition: 0.3s;
}

/* --- Hero --- */
.hero {
  background: var(--cream);
  padding: 5rem 0;
  text-align: center;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  padding: 6rem 0;
}

.hero-panel {
  background: rgba(240, 237, 224, 0.92);
  padding: 3rem;
  border-radius: 14px;
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--navy);
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-weight: 700;
}

.hero-tagline {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--coral);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.hero p {
  font-size: 1.05rem;
  color: var(--mid-grey);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Page hero (inner pages) --- */
.page-hero {
  background: var(--cream);
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; color: var(--navy); }
.page-hero p  { color: var(--mid-grey); margin-top: 0.5rem; }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: center;
}
.service-card:hover { box-shadow: 0 6px 24px rgba(43,58,92,0.1); transform: translateY(-2px); }

.service-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-card img {
  height: 60px;
  width: auto;
  margin: 0 auto 1rem;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 1rem;
  border: 3px solid var(--sage-light);
}

.team-card .placeholder-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--coral-light);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.team-card h3 {
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.team-card .pronouns {
  font-size: 0.78rem;
  color: var(--mid-grey);
  margin-bottom: 0.3rem;
}

.team-card .role {
  font-size: 0.82rem;
  color: var(--coral);
  font-weight: 600;
  line-height: 1.4;
}

.team-card .credentials {
  font-size: 0.78rem;
  color: var(--mid-grey);
  margin-top: 0.25rem;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 6px 24px rgba(43,58,92,0.1); }

.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.blog-card-body { padding: 1.5rem; }

.blog-meta {
  font-size: 0.78rem;
  color: var(--mid-grey);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.blog-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.blog-card-body h3 a { color: var(--navy); }
.blog-card-body h3 a:hover { color: var(--coral); text-decoration: none; }

.blog-card-body p { font-size: 0.9rem; color: var(--mid-grey); }

/* --- Form --- */
.form-section { max-width: 680px; }

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s;
}

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

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

.required { color: var(--coral); }

.form-success {
  display: none;
  background: var(--sage-light);
  color: var(--navy);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 600;
  border-left: 4px solid var(--sage);
}

/* --- Info Boxes --- */
.info-box {
  background: var(--yellow-light);
  border-left: 4px solid var(--yellow);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.info-box-sage {
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

.alert-box {
  background: var(--coral-light);
  border-left: 4px solid var(--coral);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2rem 0;
}

/* --- Two-col layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* --- Pricing table --- */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.pricing-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
}

.pricing-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.pricing-table tr:nth-child(even) td { background: var(--cream); }

/* --- Location --- */
.location-details p, .location-details li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.location-details ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.location-details h3 { color: var(--coral); margin-bottom: 0.75rem; font-size: 1.05rem; }

/* --- Colour accent strips --- */
.colour-strip {
  display: flex;
  height: 6px;
}
.colour-strip span { flex: 1; }
.cs-coral  { background: var(--coral); }
.cs-sage   { background: var(--sage); }
.cs-yellow { background: var(--yellow); }
.cs-navy   { background: var(--navy); }
.cs-amber  { background: var(--amber); }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: #b0bac8;
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col a { color: #b0bac8; font-size: 0.9rem; display: block; margin-bottom: 0.5rem; }
.footer-col a:hover { color: var(--yellow); text-decoration: none; }
.footer-col p { font-size: 0.9rem; line-height: 1.7; }

.footer-logo { height: 120px; margin-bottom: 1rem; }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  color: var(--white);
  background: rgba(255,255,255,0.12);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  transition: background 0.2s;
  text-decoration: none;
}
.footer-social a:hover { background: var(--coral); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #c5cad4;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 1rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }

  .hero { padding: 3rem 0; }
  .hero-panel { padding: 2rem 1.5rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.6rem; }

  .team-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1.5rem; }
}
