/* =========================================================================
   Country Heart Catering — site styles
   Palette: warm desert ochres + cream. Typography: Lora + Inter.
   ========================================================================= */

:root {
  /* Palette pulled from the Country Heart logo. */
  --primary:    #C25A1F;   /* rust orange — dot border of the logo */
  --primary-dk: #8E3F11;
  --accent:     #F4E1BD;   /* wheat cream — text + dotwork in the logo */
  --berry:      #B22424;   /* berry red — high-priority CTAs */
  --berry-dk:   #8A1818;
  --wood:       #7C4A28;   /* coolamon wood — bowl */
  --sage:       #6B8050;   /* bush sage — leaves */
  --sand:       #EBD3A4;   /* warmer sand for borders */
  --sand-soft:  #F0DDB8;   /* alternating section background */
  --cream:      #FBF3E5;   /* page background — warmer cream */
  --paper:      #FFFFFF;
  --text:       #2A1810;   /* near-black warm */
  --text-body:  #4A3221;   /* body text */
  --text-mute:  #8A6A4A;
  --border:     #E8D5B7;
  --dark-bg:    #1A0F08;   /* footer — echoing the logo backdrop */
  --dark-bg-2:  #3D2817;

  --maxw:       1180px;
  --pad:        clamp(20px, 4vw, 48px);

  --shadow-sm:  0 1px 2px rgba(42, 24, 16, 0.06);
  --shadow:     0 6px 24px rgba(42, 24, 16, 0.08);
  --shadow-lg:  0 16px 40px rgba(42, 24, 16, 0.12);

  --radius:     14px;
  --radius-sm:  8px;

  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
a:hover { color: var(--primary-dk); border-bottom-color: currentColor; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section--tight { padding: clamp(40px, 6vw, 64px) 0; }
.section--sand { background: var(--sand-soft); }
.section--paper { background: var(--paper); }
.section--dark {
  background: var(--dark-bg);
  color: #F5E6D3;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #FFF; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
  color: var(--primary);
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--text-body); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: #fff;
}
.btn--light {
  background: #fff;
  color: var(--primary);
}
.btn--light:hover { background: var(--sand-soft); }

.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  background: rgba(253, 248, 240, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  border: none;
}
.brand:hover { color: var(--text); border: none; }
.brand-logo {
  width: clamp(68px, 7vw, 88px);
  height: clamp(68px, 7vw, 88px);
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}
.brand-tag {
  font-size: .72rem;
  color: var(--text-mute);
  letter-spacing: .05em;
  margin-top: 3px;
}
@media (max-width: 540px) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.1rem; }
  .brand-logo {
    width: 64px;
    height: 64px;
  }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text);
  font-weight: 500;
  font-size: .98rem;
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
}
.nav a:hover { background: var(--sand-soft); color: var(--primary); border: none; }
.nav a.active { color: var(--primary); }
.nav .btn { margin-left: 8px; padding: 10px 20px; font-size: .95rem; }

/* Dropdown */
.nav-item--dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-width: 240px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all .18s;
}
.nav-item--dropdown:hover .dropdown,
.nav-item--dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a { display: block; padding: 10px 14px; font-size: .95rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--text);
}
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 70px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 24px var(--pad);
    gap: 4px;
    transform: translateX(100%);
    transition: transform .28s;
    overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: 8px; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 16px;
    background: transparent;
    min-width: 0;
  }
  .dropdown a { font-size: .98rem; padding: 10px 16px; }
  .nav .btn { margin-left: 0; margin-top: 8px; text-align: center; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  padding: clamp(50px, 7vw, 90px) 0 clamp(60px, 8vw, 110px);
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand-soft) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 24px;
}
.hero h1 span {
  display: block;
  color: var(--primary);
}
.hero-sub { font-size: 1.18rem; color: var(--text-body); margin-bottom: 28px; max-width: 540px; }
.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 3 / 4; max-height: 60vh; }
}

/* Page hero (smaller, for interior pages) ------------------------------- */
.page-hero {
  background: var(--sand-soft);
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
  text-align: center;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.18rem; color: var(--text-body); max-width: 640px; margin: 0 auto; }

.page-hero-img {
  margin-top: clamp(32px, 4vw, 48px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  max-height: 480px;
}
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.about-hero-img {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.about-hero-img img { object-position: center center; }
.about-story-img {
  max-width: 540px;
  aspect-ratio: 3 / 4;
}
.event-hero-img {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.event-hero-img img { object-position: center center; }
.agedcare-hero-img {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.agedcare-hero-img img { object-position: center center; }
.page-hero-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  max-width: 900px;
  margin: clamp(32px, 4vw, 48px) auto 0;
}
.page-hero-pair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 680px) {
  .page-hero-pair { grid-template-columns: 1fr; max-width: 520px; }
}

/* Why strip (4-col) ----------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 32px);
}
.why-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.why-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--sand-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why-card .icon svg { width: 24px; height: 24px; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-card p { font-size: .96rem; margin: 0; color: var(--text-body); }

@media (max-width: 980px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* Two-stream cards (home) ----------------------------------------------- */
.streams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.stream {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.stream:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stream-img { aspect-ratio: 16 / 11; overflow: hidden; }
.stream-img img { width: 100%; height: 100%; object-fit: cover; }
.stream-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.stream-body h3 { margin-bottom: 10px; }
.stream-body p { color: var(--text-body); flex: 1; }
.stream-body .btn { align-self: flex-start; margin-top: 12px; }

@media (max-width: 720px) {
  .streams { grid-template-columns: 1fr; }
}

/* CTA band (full-width image with overlay) ------------------------------ */
.cta-band {
  position: relative;
  padding: clamp(70px, 10vw, 120px) 0;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--cta-bg);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.cta-band::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46, 27, 14, .55), rgba(46, 27, 14, .75));
  z-index: 1;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 {
  color: #fff;
  max-width: 700px;
  margin: 0 auto 28px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

/* About: split (text + image) ------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split--reverse { grid-template-columns: 1fr 1.05fr; }
.split--reverse .split-img { order: -1; }
.split-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split-img { order: 0; }
  .split-img { aspect-ratio: 4 / 3; max-height: 60vh; }
}

/* Team grid ------------------------------------------------------------- */
.team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  margin-top: 16px;
}
.team-member { text-align: center; }
.team-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  margin: 0 auto 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-member h3 { margin-bottom: 4px; }
.team-role {
  color: var(--primary);
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .team { grid-template-columns: 1fr; }
}

/* Service sections (within service pages) ------------------------------- */
.svc-section {
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 1px solid var(--border);
}
.svc-section:first-of-type { border-top: 0; }
.svc-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.svc-split--reverse { grid-template-columns: 1.1fr 1fr; }
.svc-split--reverse .svc-img { order: -1; }
.svc-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.svc-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .svc-split, .svc-split--reverse { grid-template-columns: 1fr; }
  .svc-split--reverse .svc-img { order: 0; }
}

/* List with checkmarks --------------------------------------------------- */
.check-list { list-style: none; padding: 0; margin: 0 0 16px; }
.check-list li {
  position: relative;
  padding: 6px 0 6px 32px;
  color: var(--text-body);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 18px; height: 18px;
  background: var(--sand-soft);
  border-radius: 50%;
}
.check-list li::after {
  content: '';
  position: absolute;
  left: 5px; top: 16px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}

/* FAQ -------------------------------------------------------------------- */
.faq-list { max-width: 720px; }
.faq {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.faq:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 300;
  transition: transform .2s;
  line-height: 1;
}
.faq[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: var(--text-body); }

/* Gallery --------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--sand-soft);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(46, 27, 14, .92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 24px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* Contact form ---------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 56px);
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

form .field { margin-bottom: 18px; }
form label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 6px;
  color: var(--text);
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 92, 26, .15);
}
form textarea { resize: vertical; min-height: 130px; }
form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { form .field-row { grid-template-columns: 1fr; } }

.contact-details {
  background: var(--sand-soft);
  padding: 32px;
  border-radius: var(--radius);
  height: fit-content;
}
.contact-details h3 { margin-bottom: 16px; }
.contact-details p { margin-bottom: 8px; }
.contact-details a { color: var(--primary); }
.placeholder { color: var(--text-mute); font-style: italic; }

.socials { display: flex; gap: 14px; margin-top: 16px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  border: none;
}
.socials a:hover { background: var(--primary-dk); color: #fff; border: none; }
.socials svg { width: 20px; height: 20px; }

/* Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--dark-bg);
  color: #E8D5B7;
  padding: clamp(56px, 6vw, 80px) 0 32px;
  font-size: .95rem;
}
.site-footer a { color: var(--sand); border: none; }
.site-footer a:hover { color: #fff; border: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  margin-bottom: 40px;
}
.footer-brand h3 { color: #fff; margin-bottom: 6px; }
.footer-tag { color: var(--sand); font-style: italic; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { padding: 4px 0; }
.footer-heading {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.acknowledgement {
  border-top: 1px solid rgba(232, 213, 183, .18);
  padding-top: 32px;
  margin-bottom: 24px;
  font-style: italic;
  max-width: 880px;
}
.footer-bottom {
  border-top: 1px solid rgba(232, 213, 183, .18);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: .86rem;
  color: var(--sand);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Utilities ------------------------------------------------------------- */
.center-text { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; }
.max-prose { max-width: 720px; }
.section-head { text-align: center; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { font-size: 1.1rem; color: var(--text-body); max-width: 640px; margin: 0 auto; }

.video-placeholder {
  margin: 32px 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: var(--sand-soft);
  border: 2px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mute);
  font-style: italic;
  padding: 24px;
  text-align: center;
}
