/* ============================================================
   ESSENCE OT — Global Styles
   Palette:  Navy #324472 · Teal #47BAB6 · Yellow #F6C93E
   Fonts:    Libre Baskerville (headings) · Inter (body)
   ============================================================ */

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

:root {
  --navy:      #324472;
  --navy-dk:   #243358;
  --teal:      #47BAB6;
  --teal-dk:   #38948F;
  --yellow:    #F6C93E;
  --bg:        #FFFFFF;
  --bg-soft:   #F5F7FA;
  --bg-teal:   #EBF8F7;
  --text:      #1E2C42;
  --text-mid:  #5C6B80;
  --border:    #E2E9F3;
  --white:     #FFFFFF;

  --font-head: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Inter', sans-serif;

  --radius: 8px;
  --shadow: 0 2px 14px rgba(50,68,114,0.07);
  --shadow-lg: 0 10px 34px rgba(50,68,114,0.12);
  --transition: 0.2s ease;
  --max-w: 1320px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}
h1 { font-size: clamp(2.1rem, 5vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { max-width: 65ch; color: var(--text-mid); }
.lead { font-size: 1.08rem; color: var(--text-mid); font-weight: 300; }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2rem; align-items: center; min-width: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; min-width: 0; }
.grid-2 > * , .grid-3 > * { min-width: 0; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dk); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--bg-soft); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo img { height: 52px; width: auto; }
.nav-links { display: flex; list-style: none; gap: 1.6rem; align-items: center; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--navy); transition: color var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--teal-dk); }
.nav-cta { background: var(--teal); color: var(--white) !important; padding: 0.55rem 1.3rem; border-radius: 6px; font-weight: 600; }
.nav-cta:hover { background: var(--teal-dk) !important; }

.nav-item-dropdown { position: relative; padding-bottom: 0.6rem; margin-bottom: -0.6rem; }
.nav-dropdown {
  display: none; position: absolute; top: 100%; left: -0.6rem; margin-top: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: var(--shadow-lg); min-width: 170px; padding: 0.4rem; list-style: none; z-index: 150;
}
.nav-item-dropdown:hover .nav-dropdown, .nav-item-dropdown:focus-within .nav-dropdown { display: block; }
.nav-dropdown li { margin: 0; }
.nav-dropdown a { display: block; padding: 0.55rem 0.75rem; font-size: 0.85rem; border-radius: 6px; }
.nav-dropdown a:hover { background: var(--bg-soft); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 0.3rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1.4rem 1.5rem; gap: 1.1rem; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-dropdown {
    display: flex !important; position: static; flex-direction: column;
    box-shadow: none; border: none; margin: 0.5rem 0 0 0.9rem; padding: 0; min-width: 0;
    border-left: 2px solid var(--border); padding-left: 0.9rem; gap: 0.7rem;
  }
}

/* ---- Hero (index only) ---- */
.hero {
  background: var(--navy);
  padding: clamp(4.5rem, 10vw, 6.5rem) 0 clamp(5rem, 10vw, 6.5rem);
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 1.1rem; }
.hero .accent { color: var(--yellow); }
.hero p { color: rgba(255,255,255,0.72); font-weight: 300; max-width: 46ch; margin: 0 auto 2.1rem; font-size: 1.05rem; }
.hero-btns { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---- Page hero (subpages) ---- */
.page-hero { background: var(--navy); padding: clamp(3rem, 7vw, 4.5rem) 0; text-align: left; }
.page-hero h1 { color: var(--white); margin-bottom: 0.6rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-weight: 300; }

/* ---- Section helpers ---- */
.tag {
  display: block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-dk); margin-bottom: 0.6rem;
}
.section-hdr { text-align: center; margin-bottom: 2.6rem; }
.section-hdr p { max-width: 46ch; margin: 0.6rem auto 0; }
.bg-soft { background: var(--bg-soft); }
.bg-teal-soft { background: var(--bg-teal); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy .tag { color: var(--yellow); }
.bg-navy p { color: rgba(255,255,255,0.68); }

/* ---- Cards ---- */
.card {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-icon {
  width: 58px; height: 58px; background: var(--bg-teal); border-radius: 11px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem;
  color: var(--teal-dk); font-size: 1.25rem;
}
.card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.card p { font-size: 0.9rem; }

/* ---- Funding badge ---- */
.badge {
  display: inline-block; background: var(--yellow); color: var(--navy);
  padding: 0.22rem 0.75rem; border-radius: 20px; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.8rem;
}

/* ---- Photo placeholder frame ---- */
.photo-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Suburb list ---- */
.suburb-grid { columns: 4; column-gap: 1.5rem; list-style: none; }
.suburb-grid li { font-size: 0.88rem; padding: 0.2rem 0; color: var(--text-mid); break-inside: avoid; }
@media (max-width: 900px) { .suburb-grid { columns: 3; } }
@media (max-width: 600px) { .suburb-grid { columns: 2; } }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-mid); margin-bottom: 0.4rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.75rem 1rem; background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  transition: border-color var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-dk); padding: 3.4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.6rem; padding-bottom: 2.2rem; border-bottom: 1px solid rgba(255,255,255,0.08); min-width: 0; }
.footer-grid > * { min-width: 0; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-logo { height: 40px; margin-bottom: 0.9rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.48); max-width: 30ch; }
.footer-email { font-size: 0.85rem; color: var(--teal); display: inline-block; margin-top: 0.7rem; }
.footer-col h4 {
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 0.8rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-legal { padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: center; gap: 1.8rem; flex-wrap: wrap; }
.footer-legal a { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer-bottom {
  display: flex; justify-content: space-between; padding: 1.1rem 0; font-size: 0.78rem;
  color: rgba(255,255,255,0.28); flex-wrap: wrap; gap: 0.4rem;
}

/* ---- Modal (service areas) ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(30,44,66,0.5);
  z-index: 200; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border-radius: var(--radius); max-width: 640px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 2rem; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1.2rem; font-size: 1.6rem; cursor: pointer; color: var(--text-mid); background: none; border: none; }

/* ---- Animations ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.55s ease both; }

/* ---- Testimonial Carousel ---- */
.testimonial-carousel { overflow: hidden; position: relative; }
.testimonial-track {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  transition: transform 0.45s ease;
}
.testimonial-page {
  flex: 0 0 100%; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 0.9rem;
  padding-right: 2px;
}
.testimonial-card { width: 100%; box-sizing: border-box; }
.testimonial-card p { font-size: 0.92rem; line-height: 1.6; }
.testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.1rem; }
.testimonial-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--white); color: var(--navy); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.testimonial-btn:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.testimonial-btn:disabled { opacity: 0.35; cursor: default; }
.testimonial-btn:disabled:hover { background: var(--white); color: var(--navy); border-color: var(--border); }
.testimonial-dots { display: flex; gap: 0.5rem; }
.testimonial-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); border: none; padding: 0; cursor: pointer; transition: var(--transition); flex-shrink: 0; }
.testimonial-dot.active { background: var(--teal); }
