/* ============================================================
   Surrey Hills Lifestyle — style.css
   Palette: Crème / Bone / Oak / Clay + reserve tones
   ============================================================ */

:root {
  --creme:     #e1dcd6;
  --bone:      #c7bbab;
  --oak:       #a39686;
  --clay:      #7f7262;
  --parchment: #cfc8be;
  --stone:     #b8ab9c;
  --olive:     #bab8a2;
  --blush:     #dfcabb;
  --terra:     #b18e7e;
  --sage:      #8f9e84;   /* from Kavita's green logo colourway */
  --sage-light:#c8d4c2;   /* lighter tint for backgrounds       */
  --ink:       #52483c;
  --white:     #faf8f5;
  --dark-foot: #453d33;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  color: var(--clay);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Layout helpers ───────────────────────────────────────── */
.wrap        { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 860px;  margin: 0 auto; padding: 0 32px; }

/* ── Accessibility ────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--clay); color: var(--white);
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--clay);
  outline-offset: 3px;
}

/* ── Eyebrow label ────────────────────────────────────────── */
.eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--terra);
  flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--clay);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 2px;
  border: 1px solid var(--clay);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--white); color: var(--clay); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--clay);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 2px;
  border: 1px solid var(--oak);
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.btn-secondary:hover { background: rgba(163,150,134,0.12); }

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section shared ───────────────────────────────────────── */
section { padding: 96px 0; }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 40px); margin-top: 4px; }
.section-head p  { font-size: 16px; color: var(--ink); margin-top: 14px; max-width: 560px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::after {
  content: ''; width: 18px; height: 1px;
  background: var(--terra); flex-shrink: 0;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  position: sticky;
  top: 0;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid rgba(163, 150, 134, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  gap: 24px;
}

.nav-logo {
  flex-shrink: 0;
}
.nav-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--clay);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  flex-shrink: 0;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--clay);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center right;
}
/* Soft gradient so text stays readable over the light image */
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(225, 220, 214, 0.82) 0%,
    rgba(225, 220, 214, 0.55) 45%,
    rgba(225, 220, 214, 0.1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 32px 80px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  max-width: 640px;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-content .lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--ink);
  max-width: 500px;
  margin-bottom: 36px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 5 cards: first two full-width on their own row to balance */
.services-grid .service-card:nth-child(1),
.services-grid .service-card:nth-child(2) {
  grid-column: span 1;
}

.service-card {
  background: var(--creme);
  border: 1px solid rgba(163, 150, 134, 0.3);
  border-radius: 4px;
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover {
  border-color: var(--sage);
  transform: translateY(-3px);
}

.service-icon {
  margin-bottom: 18px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg {
  width: 32px; height: 32px;
  stroke: var(--clay);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 { font-size: 17px; margin-bottom: 10px; }
.service-card p  { font-size: 14px; color: var(--ink); line-height: 1.6; }

/* ============================================================
   MY STORY
   ============================================================ */
.my-story { background: var(--parchment); }

.story-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.story-photo-wrap { position: relative; }

.story-photo {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bone);
  border: 1px solid rgba(163,150,134,0.3);
}
.story-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.story-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--oak);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}
.story-photo-placeholder svg {
  width: 48px; height: 48px;
  stroke: var(--oak);
  fill: none;
  stroke-width: 1.4;
}

.story-caption {
  position: absolute;
  bottom: -14px; right: -14px;
  background: var(--clay);
  color: var(--blush);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.story-text h2    { font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 20px; }
.story-text p     { font-size: 15px; margin-bottom: 14px; line-height: 1.7; }
.story-text p:last-of-type { margin-bottom: 0; }
.story-pull {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 18px;
  color: var(--clay);
  border-left: 2px solid var(--sage);
  padding-left: 18px;
  margin: 24px 0;
  line-height: 1.5;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works { background: var(--sage-light); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(163,150,134,0.3);
  margin-bottom: 48px;
}

.how-card {
  padding: 40px 32px;
  border-right: 1px solid rgba(163,150,134,0.3);
  border-bottom: 1px solid rgba(163,150,134,0.3);
}
.how-card:last-child { border-right: none; }

.how-card .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  background: rgba(177,142,126,0.12);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.how-card h3 { font-size: 19px; margin-bottom: 12px; }
.how-card p  { font-size: 14.5px; color: var(--ink); line-height: 1.65; }

.how-cta-wrap { text-align: center; }

/* ============================================================
   GET IN TOUCH (contact section)
   ============================================================ */
.contact { background: var(--creme); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: flex-start;
}

.contact-info h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px; }
.contact-info p  { font-size: 15px; margin-bottom: 24px; line-height: 1.7; }

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 12px;
}
.contact-detail svg {
  width: 18px; height: 18px;
  stroke: var(--clay);
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
}
.contact-detail a:hover { color: var(--clay); text-decoration: underline; }

.contact-note {
  font-size: 12px;
  color: var(--oak);
  font-style: italic;
  margin-top: 6px;
}

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--white);
  border: 1px solid rgba(163,150,134,0.45);
  border-radius: 2px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  transition: border-color 0.2s ease;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clay);
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* Radio / checkbox groups */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-group label,
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  cursor: pointer;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.radio-group input[type="radio"],
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid var(--oak);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease;
}
input[type="checkbox"] { border-radius: 2px; }
.radio-group input[type="radio"]:checked,
input[type="checkbox"]:checked {
  border-color: var(--clay);
  background: var(--clay);
}
.radio-group input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  background: var(--white);
  border-radius: 50%;
}

/* Human verification */
.verification-block {
  background: var(--parchment);
  border: 1px solid rgba(163,150,134,0.35);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verification-block label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clay);
}
.verification-block p {
  font-size: 14px;
  color: var(--ink);
  font-style: italic;
}
.verification-block input {
  border: 1px solid rgba(163,150,134,0.45);
  background: var(--white);
  border-radius: 2px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  max-width: 180px;
  transition: border-color 0.2s ease;
}
.verification-block input:focus {
  outline: none;
  border-color: var(--clay);
}
.verification-error {
  font-size: 13px;
  color: #9b4444;
  display: none;
}

.form-submit { margin-top: 6px; }

/* ============================================================
   PHILOSOPHY QUOTE BAND
   ============================================================ */
.philosophy {
  background: var(--clay);
  color: var(--blush);
  text-align: center;
  padding: 100px 0;
}
.philosophy blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 3.8vw, 40px);
  font-weight: 500;
  font-style: italic;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}
.philosophy .by {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark-foot);
  color: var(--bone);
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo img {
  height: 140px;
  width: auto;
  object-fit: contain;
  margin-bottom: 14px;
  /* keeps logo readable on dark bg — remove if transparent PNG supplied */
  filter: brightness(0) invert(0.88) sepia(0.12) saturate(0.5);
}

footer p    { font-size: 14px; color: var(--stone); max-width: 280px; }
footer h4   {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terra); margin-bottom: 18px;
}
footer ul li { margin-bottom: 10px; }
footer a     { font-size: 14px; color: var(--stone); }
footer a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(199,187,171,0.18);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--stone);
}

/* ── Site-builder credit placeholder ──────────────────────── */
/*  Replace [Your Name] and [email] when ready               */
.credit { font-size: 12px; color: var(--stone); }

/* ============================================================
   STICKY MOBILE CTA
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--clay);
  padding: 15px 20px;
  text-align: center;
  z-index: 150;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta a {
  color: var(--white);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:nth-child(5) { grid-column: span 2; }
}

@media (max-width: 840px) {
  section { padding: 68px 0; }
  .wrap, .wrap-narrow { padding: 0 20px; }

  /* Nav */
  .nav { padding: 14px 20px; }
  .nav-logo img { height: 52px; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(163,150,134,0.25);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(163,150,134,0.15);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  /* Hero */
  .hero { min-height: 88vh; align-items: flex-end; }
  .hero-image img { object-position: right center; }
  .hero-image::after {
    background: linear-gradient(
      180deg,
      rgba(225,220,214,0.6) 0%,
      rgba(225,220,214,0.88) 70%,
      rgba(225,220,214,0.98) 100%
    );
  }
  .hero-content { padding: 0 20px 60px; }

  /* Grids */
  .how-grid           { grid-template-columns: 1fr; }
  .how-card           { border-right: none; }
  .story-grid         { grid-template-columns: 1fr; gap: 40px; }
  .story-photo-wrap   { max-width: 280px; margin: 0 auto; }
  .story-caption      { right: 0; bottom: -12px; }
  .contact-grid       { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid        { grid-template-columns: 1fr; gap: 32px; }
  .form-row           { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card:nth-child(5) { grid-column: span 1; }
  .cta-row { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
  .how-grid { border-top: none; }
  .how-card { border-bottom: 1px solid rgba(163,150,134,0.3); padding: 28px 0; }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
