/* CSS Variables for consistent theming */
:root {
    --primary: #4a7c59;
    --primary-light: #8fb996;
    --primary-dark: #3a6147;
    --secondary: #d8b5a0;
    --accent: #e27d60;
    --text: #333333;
    --text-light: #666666;
    --background: #f8f9f8;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    padding: 0;
    margin: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', serif;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto;
}

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
    min-width: 300px;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

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

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

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--text);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://placehold.co/1200x600/4a7c59/white?text=-');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 6rem 1rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-text {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

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

/* Features */
.features {
    background: var(--white);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* About Section */
.about {
    background: var(--primary-light);
    color: var(--white);
}

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

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Testimonials */
.testimonials {
    background: var(--primary);
    color: var(--white);
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    height: 100%;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 700;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    padding: 1rem;
}

.map-placeholder {
    background: #eee;
    border-radius: var(--radius);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer a {
    color: var(--secondary);
}

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

.footer-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    .nav-menu {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-item {
        margin: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .social-links {
        flex-direction: column;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.py-1 { padding: 1rem 0; }
.py-2 { padding: 2rem 0; }
.py-3 { padding: 3rem 0; }

/* === Refined additions (typography + mini slideshow) === */

/* ============================================
   TYPOGRAPHY NORMALISATION (site-wide)
   Keep your look; make fonts & text consistent
   ============================================ */
:root{
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --fs-base: 16px;
  --lh-base: 1.55;
  --fs-h1: clamp(1.9rem, 2.6vw + 1rem, 3rem);
  --fs-h2: clamp(1.35rem, 1.2vw + 1rem, 2rem);
  --fs-h3: 1.25rem;
}
html { font-size: var(--fs-base); }
body { font-family: var(--font-sans); line-height: var(--lh-base); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, .hero-title { font-size: var(--fs-h1); line-height: 1.2; margin: 0 0 .5rem; }
h2, .section-title { font-size: var(--fs-h2); line-height: 1.25; margin: 0 0 1rem; }
h3 { font-size: var(--fs-h3); line-height: 1.3; margin: 0 0 .6rem; }
p { margin: 0 0 1rem; }
.btn, button, input, select, textarea { font-family: var(--font-sans); font-size: 1rem; line-height: 1.2; }
:focus-visible { outline: 3px solid rgba(74,124,89,.6); outline-offset: 2px; }

/* ============================================
   MINI SLIDESHOW (home page)
   Smaller than the main Gallery, mobile-friendly
   ============================================ */
.home-mini-gallery { padding-top: 1.5rem; padding-bottom: 2rem; }
.mini-slider { position: relative; overflow: hidden; border-radius: 12px; background: var(--background, #f8f9f8); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.mini-slides { display: flex; transition: transform .4s ease; }
.mini-slide { min-width: 100%; max-height: 380px; }
.mini-slide img { width: 100%; height: 100%; object-fit: cover; display:block; }
.mini-control { position: absolute; top: 50%; transform: translateY(-50%); border: 0; border-radius: 999px; cursor: pointer; background: rgba(0,0,0,.38); color: #fff; padding: .5rem .7rem; }
.mini-prev { left: .5rem; }
.mini-next { right: .5rem; }
.mini-control:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mini-dots { position: absolute; left: 0; right: 0; bottom: .6rem; display: flex; gap: .4rem; justify-content: center; align-items: center; }
.mini-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; background: rgba(255,255,255,.65); cursor: pointer; }
.mini-dots button.active { background: rgba(255,255,255,.95); }
@media (max-width: 640px){ .mini-slide { max-height: 280px; } .mini-prev { left: .25rem; } .mini-next { right: .25rem; } }

/* === Hero button highlight fix === */

/* Hero button highlight fix: ensure visited/outline states don't look 'stuck on' */
.hero .btn:link,
.hero .btn:visited { color: #fff; text-decoration: none; }

/* If any outline variant remains in hero, keep it subtle by default */
.hero .btn-outline,
.hero .btn-outline:link,
.hero .btn-outline:visited {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.hero .btn-outline:hover,
.hero .btn-outline:focus {
  background: rgba(255,255,255,.12);
  color: #fff;
}

/* === Slideshow enlargement & crop helpers === */

/* === Mini slideshow size & crop improvements === */
:root{
  --mini-aspect-mobile: 4/3;
  --mini-aspect-desktop: 16/9;
  --mini-max-height-mobile: 360px;
  --mini-max-height-desktop: 560px;
}

/* Let the slide size itself by aspect ratio; no fixed max-height cropping */
.mini-slide{
  min-width: 100%;
  height: auto;
  aspect-ratio: var(--mini-aspect-mobile);
  max-height: var(--mini-max-height-mobile);
}
.mini-slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;         /* natural look */
  object-position: center;   /* focal point; can be overridden per-slide */
  display:block;
}

/* Desktop: wider aspect & taller */
@media (min-width: 768px){
  .mini-slide{
    aspect-ratio: var(--mini-aspect-desktop);
    max-height: var(--mini-max-height-desktop);
  }
}

/* Optional: contain mode if you want zero crop (adds letterboxing) */
.mini-slider--contain .mini-slide img{
  object-fit: contain;
  background: rgba(0,0,0,.05);
}

/* Focal point helpers: add one of these classes to a .mini-slide */
.mini-slide.focus-top    img{ object-position: 50% 15%; }
.mini-slide.focus-bottom img{ object-position: 50% 85%; }
.mini-slide.focus-left   img{ object-position: 15% 50%; }
.mini-slide.focus-right  img{ object-position: 85% 50%; }

/* NAV logo — fixed height so it can't stretch the bar */
.logo { display:flex; align-items:center; gap:.5rem; white-space:nowrap; }

@media (max-width:768px){  }


/* === Logo sizing (navbar + footer) === */
.logo { display:flex; align-items:center; gap:.5rem; white-space:nowrap; }

@media (max-width:768px){  }

.footer-brand { display:flex; align-items:flex-start; gap:.75rem; }
.footer-logo  { height:52px; width:auto; display:block; }
@media (max-width:640px){ .footer-logo { height:52px; } }


/* === Page-title hero images (placeholders) ============================== */
/* Add your final 2000x1000 WebP images into /images/ with these filenames. */
.hero{
  /* default image if a page doesn't override it */
  --hero-image: url("images/hero-default-2000.webp");
  background-image:
    linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
    var(--hero-image);
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
}

/* Per-page placeholders (replace files when ready) */
.hero--home       { --hero-image: url("images/hero-home-2000.webp.png"); }
.hero--about      { --hero-image: url("images/hero-about-2000.webp.png"); }
.hero--curriculum { --hero-image: url("images/hero-curriculum-2000.webp.png"); }
.hero--gallery    { --hero-image: url("images/hero-gallery-2000.webp.png"); }
.hero--contact    { --hero-image: url("images/hero-contact-2000.webp.png"); }

/* Optional focal tweaks */
.hero--about      { background-position: center 42%; }
.hero--contact    { background-position: center 35%; }

@media (max-width: 640px){
  .hero { background-position: center 42%; }
}

/* === NAVBAR REVERT (restores previous good layout) ======================= */
:root{
  --nav-logo-desktop: 56px;
  --nav-logo-mobile:  56px;
  --nav-pad-y:        10px;
  --content-max:      1100px;
}

.navbar{
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid #E7EDE9;
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

.navbar .container.nav-container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: var(--nav-pad-y);
  min-height: calc(var(--nav-logo-desktop) + var(--nav-pad-y)*2);
}

/* Logo left */
.navbar .logo{ display:flex; align-items:center; gap:.5rem; line-height:1; white-space:nowrap; }
.navbar 

/* Menu right */
.navbar .nav-menu{ display:flex; align-items:center; gap: 1.5rem; margin-left: auto; }
.navbar .nav-menu .nav-link{
  color:#2F4F3B; font-weight:600; line-height:1;
  padding:.6rem .45rem; border-radius:8px; text-decoration:none;
}
.navbar .nav-menu .nav-link:hover{ background:#EFF6F1; color:#1F3D2A; }
.navbar .nav-menu .nav-link[aria-current="page"]{ color:#1F3D2A; box-shadow: inset 0 -2px 0 #4A7C59; }

@media (max-width:768px){
  .navbar 
  .navbar .nav-menu{ gap:.85rem; margin-left:0; }
  .navbar .container.nav-container{ min-height: calc(var(--nav-logo-mobile) + var(--nav-pad-y)*2); }
}

/* Subtle scroll shadow */
.navbar{ transition: box-shadow .18s ease; }
.navbar.is-scrolled{ box-shadow:0 6px 14px rgba(0,0,0,.06); }


/* === NAVBAR REVERT (consistent layout) === */
:root{ --nav-logo-desktop:56px; --nav-logo-mobile:40px; --nav-pad-y:10px; --content-max:1100px; }
.navbar{ position:sticky; top:0; z-index:100; background:#fff; border-bottom:1px solid #E7EDE9; box-shadow:0 4px 12px rgba(0,0,0,.04); }
.navbar .container.nav-container{ display:flex; align-items:center; justify-content:space-between; gap:1.25rem; padding-block:var(--nav-pad-y); min-height:calc(var(--nav-logo-desktop) + var(--nav-pad-y)*2); }
.navbar .logo{ display:flex; align-items:center; gap:.5rem; line-height:1; white-space:nowrap; }
.navbar 
.navbar .nav-menu{ display:flex; align-items:center; gap:1.5rem; margin-left:auto; }
.navbar .nav-link{ color:#2F4F3B; font-weight:600; line-height:1; padding:.6rem .45rem; border-radius:8px; text-decoration:none; }
.navbar .nav-link:hover{ background:#EFF6F1; color:#1F3D2A; text-decoration:none; }
.navbar .nav-link[aria-current="page"]{ color:#1F3D2A; box-shadow: inset 0 -2px 0 #4A7C59; }
@media (max-width:768px){ .navbar  .navbar .nav-menu{ gap:.85rem; margin-left:0; } .navbar .container.nav-container{ min-height:calc(var(--nav-logo-mobile) + var(--nav-pad-y)*2); } }
.navbar{ transition: box-shadow .18s ease; }
.navbar.is-scrolled{ box-shadow:0 6px 14px rgba(0,0,0,.06); }

/* === Footer tidy === */
.footer-brand{ display:flex; align-items:center; gap:.75rem; }
.footer-logo{ height:56px; width:auto; display:block; }
.footer .footer-title{ margin:0 0 .25rem; }
.footer .row .col:first-child p{ margin:0; }
.footer .row .col:first-child .footer-brand ~ .footer-brand{ display:none; }

/* === Hero placeholders (if not already in your CSS) === */
.hero{ --hero-image: url("images/hero-default-2000.webp"); background-image: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)), var(--hero-image); background-size:cover; background-position:center 38%; background-repeat:no-repeat; }
.hero--home{ --hero-image: url("images/hero-home-2000.webp"); }
.hero--about{ --hero-image: url("images/hero-about-2000.webp"); }
.hero--curriculum{ --hero-image: url("images/hero-curriculum-2000.webp"); }
.hero--gallery{ --hero-image: url("images/hero-gallery-2000.webp"); }
.hero--contact{ --hero-image: url("images/hero-contact-2000.webp"); }
@media (max-width:640px){ .hero{ background-position:center 42%; } }

/* Hero images (PNG versions) */
.hero--home       { --hero-image: url("images/hero-home-2000.png"); }
.hero--about      { --hero-image: url("images/hero-about-2000.png"); }
.hero--curriculum { --hero-image: url("images/hero-curriculum-2000.png"); }
.hero--gallery    { --hero-image: url("images/hero-gallery-2000.png"); }
.hero--contact    { --hero-image: url("images/hero-contact-2000.png"); }

/* Optional: when you later add WebP, this will be preferred automatically */
@supports (background-image: url("x.webp")){
  .hero--home       { --hero-image: url("images/hero-home-2000.webp"); }
  .hero--about      { --hero-image: url("images/hero-about-2000.webp"); }
  .hero--curriculum { --hero-image: url("images/hero-curriculum-2000.webp"); }
  .hero--gallery    { --hero-image: url("images/hero-gallery-2000.webp"); }
  .hero--contact    { --hero-image: url("images/hero-contact-2000.webp"); }
}

/* === FORCE HERO BACKGROUNDS (PNG) ================================ */
/* One line per page; overrides any earlier placeholder/background.  */
/* Uses overlay for text contrast and sets position/cover.           */

:root { --hero-overlay: rgba(0,0,0,.45); }  /* tweak darker/lighter if needed */

.hero {
  /* keep these so the image fills nicely */
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Home */
.hero.hero--home{
  background: linear-gradient(0deg, var(--hero-overlay), var(--hero-overlay)),
              url("images/hero-home-2000.png") center 40% / cover no-repeat !important;
}

/* About */
.hero.hero--about{
  background: linear-gradient(0deg, var(--hero-overlay), var(--hero-overlay)),
              url("images/hero-about-2000.png") center 42% / cover no-repeat !important;
}

/* Curriculum */
.hero.hero--curriculum{
  background: linear-gradient(0deg, var(--hero-overlay), var(--hero-overlay)),
              url("images/hero-curriculum-2000.png") center 40% / cover no-repeat !important;
}

/* Gallery */
.hero.hero--gallery{
  background: linear-gradient(0deg, var(--hero-overlay), var(--hero-overlay)),
              url("images/hero-gallery-2000.png") center 40% / cover no-repeat !important;
}

/* Contact */
.hero.hero--contact{
  background: linear-gradient(0deg, var(--hero-overlay), var(--hero-overlay)),
              url("images/hero-contact-2000.png") center 35% / cover no-repeat !important;
}

/* ===== Professional footer layout ===================================== */
.footer { padding: 3rem 0 2rem; color: #EAF2EC; }
.footer .footer-title { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }

.footer-top{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Brand block */
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-logo  { height: 56px; width: auto; display: block; }
.footer .footer-brand p { margin: 0; }

/* Links */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: .35rem; }
.footer-links a { color: #EAF2EC; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus { text-decoration: underline; }

/* Social chips */
.social-list { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.chip{
  display: inline-block;
  padding: .4rem .65rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  text-decoration: none;
  color: #EAF2EC;
  background: rgba(255,255,255,.06);
}
.chip:hover, .chip:focus { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }

/* Divider & bottom row */
.footer-divider { height: 1px; background: rgba(255,255,255,.18); margin: 1.5rem 0; }
.footer-bottom{
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-copy { margin: 0; opacity: .9; }
.css-badge img { opacity: .9; transition: opacity .15s ease; }
.css-badge:hover img { opacity: 1; }

/* Responsive */
@media (max-width: 900px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 640px){
  .footer-top{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; align-items: flex-start; }
  .footer-logo{ height: 48px; }
}

/* === Footer normalize: make ALL footers match Home's look =============== */
/* Remove bullets & default margins for any footer list (old markup safe) */
.footer nav ul,
.footer .footer-links,
.footer .row .col ul { list-style: none; margin: 0; padding: 0; }
.footer nav ul li + li,
.footer .row .col ul li + li { margin-top: .35rem; }

/* Footer link colours unified (some pages had brown/orange) */
.footer a { color: #EAF2EC; text-decoration: none; }
.footer a:hover, .footer a:focus { text-decoration: underline; }

/* If a page still uses the old .row/.col structure, lay it out like Home */
.footer .row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px){ .footer .row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .footer .row { grid-template-columns: 1fr; } }

/* Ensure the brand block is tidy even if duplicated logos sneak in */
.footer .footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer .footer-logo  { height: 56px; width: auto; display: block; }
.footer .footer-brand p { margin: 0; }
.footer .row .col:first-child .footer-brand ~ .footer-brand { display: none; }

/* Divider/bottom row styles (works for both old/new footers) */
.footer-divider { height: 1px; background: rgba(255,255,255,.18); margin: 1.5rem 0; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-copy { margin: 0; opacity: .9; }

/* === Footer: gentle size increase (desktop + mobile) ================== */
:root{
  /* logo + type sizes */
  --footer-logo-desktop: 72px;    /* was 56px */
  --footer-logo-mobile:  56px;    /* was 48px */
  --footer-title-size:   1.125rem;/* ~18px, was 1rem */
  --footer-text-size:    1.025rem;/* ~16.4px */
  --footer-chip-size:    .98rem;
}

.footer-top{ gap: 2.25rem; } /* a touch more breathing room */

.footer .footer-title{ 
  font-size: var(--footer-title-size);
  line-height: 1.35;
}

.footer .footer-brand p,
.footer .footer-links a,
.footer .footer-links li,
.footer .footer-copy{
  font-size: var(--footer-text-size);
  line-height: 1.5;
}

/* Logo size */
.footer-logo{ height: var(--footer-logo-desktop); width: auto; display: block; }
@media (max-width: 640px){
  .footer-logo{ height: var(--footer-logo-mobile); }
}

/* Social chips a bit larger */
.chip{
  font-size: var(--footer-chip-size);
  padding: .5rem .85rem;                 /* was .4rem .65rem */
  border-radius: 999px;
}

/* Subtle spacing polish at the bottom */
.footer-divider{ margin: 2rem 0 1.25rem; }
.footer-bottom{ padding-top: .25rem; }

/* === Footer size boost (logo, title, tagline) ========================= */
:root{
  --footer-logo-desktop: 88px;   /* was 72px */
  --footer-logo-mobile:  64px;   /* was 56px */
  --footer-title-size:   1.25rem;/* ~20px */
  --footer-tagline-size: 1.10rem;/* ~17.6px */
}

/* Logo size */
.footer-logo{
  height: var(--footer-logo-desktop, 88px);
  width: auto;
  display: block;
}
@media (max-width: 640px){
  .footer-logo{ height: var(--footer-logo-mobile, 64px); }
}

/* Footer title */
.footer .footer-title{
  font-size: var(--footer-title-size, 1.25rem);
  line-height: 1.35;
  margin: 0 0 .5rem;
}

/* Tagline under the title (left brand block) */
.footer .footer-brand p{
  font-size: var(--footer-tagline-size, 1.10rem);
  line-height: 1.55;
  margin: .25rem 0 0;
  max-width: 42ch;           /* keeps it readable on wide screens */
}

/* Slightly more breathing room in the top grid */
.footer-top{ gap: 2.5rem; }

/* === Tighten spacing above "Connect With Us" in the footer ============ */
.footer-social { 
  margin-top: 0 !important;      /* kill any inherited top margin */
  padding-top: 0 !important;     /* kill any inherited top padding */
  align-self: start;             /* ensure it hugs the top of the grid area */
}

/* Make sure the heading itself doesn't add extra gap */
.footer-social .footer-title { 
  margin-top: 0 !important; 
}

/* Optional: nudge it up slightly on desktop only (fine-tune the -8px) */
@media (min-width: 900px){
  .footer-social { margin-top: -12px; }   /* try -4px to -12px as needed */
}

/* Keep the list snug under the heading */
.footer .social-list { 
  margin-top: .10rem;  /* reduce space between heading and chips */
}

/* Optional: reduce vertical spacing between rows in the footer grid */
.footer-top { row-gap: 0.50rem; }   /* was 2rem (or 2.5rem in your later tweaks) */

/* Footer logo size (global) */
:root{
  --footer-logo-desktop: 200px;  /* change this to your preferred desktop height */
  --footer-logo-mobile:  96px;  /* change this for phones */
}

.footer-logo{
  height: var(--footer-logo-desktop);
  width: auto;
  display: block;
}

@media (max-width: 640px){
  .footer-logo{ height: var(--footer-logo-mobile); }
}


/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--primary, #4a7c59);
  color: var(--white, #ffffff);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 10000;
}


/* Updated logo scaling */


/* Hamburger styles */


.hamburger {
  width: 25px;
  height: 3px;
  background-color: #333;
  display: block;
  position: relative;
}
.hamburger::before,
.hamburger::after {
  content: '';
  width: 25px;
  height: 3px;
  background-color: #333;
  position: absolute;
  left: 0;
}
.hamburger::before {
  top: -8px;
}
.hamburger::after {
  top: 8px;
}

/* Responsive nav */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    width: 100%;
  }
  .nav-menu.open {
    display: flex;
  }
  
}


/* Improved Mobile Layout */
@media (max-width: 768px) {
  body {
    padding: 0;
    margin: 0;
  }

  .container {
    padding-inline: 1rem;
  }

  

  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  .nav-menu {
    gap: 1rem;
    padding-block: 1rem;
    font-size: 1.1rem;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 2rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    text-align: center;
  }

  .hero-title {
    font-size: 1.75rem;
    text-align: center;
    padding-inline: 1rem;
  }

  .hero-text {
    font-size: 1rem;
    text-align: center;
    padding-inline: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .row {
    flex-direction: column;
    gap: 1.5rem;
  }

  .card {
    width: 100%;
  }

  form {
    width: 100%;
    padding-inline: 1rem;
  }
}


/* Slide-In Navigation Menu */
.nav-menu {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .nav-container {
    position: relative;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: start;
    padding: 1rem;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
  }

  .nav-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  

  .hamburger {
    width: 30px;
    height: 3px;
    background-color: #333;
    display: block;
    position: relative;
  }

  .hamburger::before,
  .hamburger::after {
    content: '';
    width: 30px;
    height: 3px;
    background-color: #333;
    position: absolute;
    left: 0;
  }

  .hamburger::before {
    top: -8px;
  }

  .hamburger::after {
    top: 8px;
  }

  nav.navbar {
    padding-block: 0.5rem;
  }

  
}


@media (max-width: 768px) {
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 1rem;
  }

  

  

  .nav-menu {
    left: 0;
    right: 0;
    top: 100%;
  }
}

@media (max-width: 768px) {
  .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 1rem;
  }

  

  
}

@media (max-width: 768px) {
  
}

/* === Logo Image Styling === */


/* === Responsive Mobile Logo === */
@media (max-width: 768px) {
  .nav-container {
    height: 60px; /* Adjust this value as needed */
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background-color: #fff; /* or your desired color */
    z-index: 999;
  }

  

  

  .menu-toggle {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .nav-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (max-width: 768px) {
  

  .navbar .container.nav-container {
    min-height: 60px;
  }
}

/* === Desktop Logo Style === */
.logo-img {
  height: 64px;
  width: auto;
  display: block;
}

/* === Responsive Nav Updates === */
@media (max-width: 768px) {
  .nav-container {
    display: flex;
    align-items: center !important;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    height: 80px;
  }

  .logo-img {
    height: 56px;
    width: auto;
    display: block;
    margin: 0;
  }

  .nav-toggle {
    display: block;
    margin: 0;
    align-self: center;
  }
}

/* Refined Mobile Navbar Layout */
@media (max-width: 768px) {
  .navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 80px;
  }

  .logo-img {
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    max-height: 100px !important;
  }

  .nav-toggle {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    z-index: 10;
  }
}


/* Ensure hamburger is hidden on desktop */
@media (min-width: 769px) {
  .hamburger,
  .nav-toggle {
    display: none !important;
  }
}


/* Mobile hamburger menu styling */
@media (max-width: 768px) {
  .nav-menu {
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px;
    padding: 1rem;
    margin-top: 0.5rem;
  }

  .nav-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    font-weight: 500;
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .nav-menu a:hover {
    background-color: #f0f0f0;
  }
}


/* Enhanced hamburger menu background styling */
@media (max-width: 768px) {
  .nav__menu {
    background: rgba(255, 255, 255, 0.95); /* light background for better readability */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 10px 10px;
    padding: 0.5rem 0;
    margin-top: 0.3rem; /* Adjust to close or open the gap as needed */
  }

  .nav__menu a {
    color: #003300; /* dark green to match theme */
    padding: 0.75rem 1.5rem;
    display: block;
    text-align: center;
  }

  .nav__menu a:hover {
    background-color: #cfe8d6; /* soft green hover */
  }
}

/* Make page-hero text white for legibility */
.hero.hero--page .container h1,
.hero.hero--page .container p {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
