/* Color Palette & Fonts */
:root {
    --deep-slate: #2c3e50;
    --seafoam: #a8dadc;
    --sand: #f1f1e6;
    --ocean-blue: #457b9d;
    --white: #ffffff;
    --forest-green: #1B3022;
    --kowhai-gold: #F9C80E;
    --fern: #D8E2DC;
}

.logo {
    display: flex;         /* This puts the text and image on one line */
    align-items: center;   /* This centers the icon vertically with the text */
    gap: 10px;             /* This adds a small space between the text and the logo */
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: bold;
    color: var(--deep-slate);
}

.header-word {
    height: 60px !important;
    width: auto;
    display: inline-block;
}

.header-icon {
    height: 90px;          /* Adjust this to make your logo the right size */
    width: auto;           /* Keeps the logo from looking squished */
    display: inline-block;
}

header {
    position: fixed;      /* This 'sticks' it to the screen */
    top: 0;               /* Aligns it perfectly to the top */
    left: 0;              /* Ensures it starts from the left edge */
    width: 100%;          /* Makes it stretch across the whole screen */
    transition: top 0.3s ease-in-out;
    z-index: 1000;        /* Keeps it 'on top' of images and other content */
    
    /* Optional: Add a subtle shadow so it looks like it's floating */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

.header-hidden {
  top: -170px !important;  /* Adjust this number slightly if your header is taller */
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: var(--deep-slate);
    line-height: 1.6;
    background-color: var(--white);
    text-decoration: none;
    padding-top: 80px;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1rem;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center; /* This is the magic line that keeps everyone in the middle */
    padding: 20px 10%;
    background: var(--white);
}

nav ul {
    display: flex;
    align-items: center; /* This ensures the links and the button line up together */
    list-style: none;
    margin: 0;
    padding: 0;
    color: #2c3e50;
    text-decoration: none;
}

nav ul li {
    margin-left: 20px;
    display: flex;
    align-items: center; /* One more check to keep them centered */
    color: #2c3e50;
    text-decoration: none;
}

/* 1. This styles the links in their normal state */
nav ul li a {
    color: #2c3e50;            /* Your Deep Slate color */
    text-decoration: none;     /* Removes the blue underline */
    font-weight: 400;
    font-size: 1.1rem;
    transition: color 0.4s ease; /* This creates the smooth fade effect */
}

/* 2. This styles the links when you move your mouse over them */
nav ul li a:hover {
    color: #F9C80E;            /* Fades to Kōwhai Gold */
    text-decoration: none;     /* Ensures the underline stays away */
}

/* 3. This ensures that links you've already clicked don't turn purple */
nav ul li a:visited {
    color: #2c3e50;
}

.cta-button {
    background-color: #1B3022; /* Start with Dark Forest Green */
    color: #F9C80E;           
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    align-items: center;
    
    /* This makes the background AND text fade smoothly over 0.4 seconds */
    transition: background-color 0.4s ease, color 0.4s ease; 
}

.cta-button:hover {
    background-color: #F9C80E; /* Fades to Kōwhai Gold */
    color: #ffffff;            /* Fades text to pure white */
    border-color: #F9C80E;     /* Matches the border to the gold */
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    height: 60vh;

    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    transition: background 1s ease, color 1s ease;
}

.hero-home {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('fall.png');
}

.hero-service {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('note.png');
    height: 40vh;
}

.hero-content h1 { font-size: 3rem; margin-bottom: 10px; }

/* Grid Layout */
.values { padding: 80px 10%; text-align: center; background: var(--sand); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }

.welcome {
    background-color: #1B3022; /* Your Dark Forest Green */
    color: #ffffff;          
    padding: 50px 10% 20px 10%;
    text-align: center;
}

.qual {
    background-color: #ffffff; /* Your Dark Forest Green */
    color: #1B3022;          
    padding: 50px 10% 20px 10%;
    text-align: center;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px;
    color: #1B3022;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 2. This styles ONLY your Services list */
ul.services-list {
    list-style: none; /* We use our custom dot instead */
    padding: 0;
    margin: 20px 0;
}

ul.services-list li::before {
    content: "●"; 
    color: #F9C80E; /* Your Solid Kōwhai Gold */
    display: inline-block; 
    width: 1.2em;
    font-size: 0.9em;
}
/* This adds extra space between each bullet point */
li {
    margin-bottom: 10px;
}

.profile-pic {
    width: 250px;           /* Set the size you want */
    height: 250px;          /* Height MUST match Width */
    object-fit: cover;      /* This prevents the photo from looking 'squashed' */
    border-radius: 50%;     /* This creates the circle */
    border: 4px solid #1B3022; /* Optional: A Dark Forest Green border */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Adds a soft shadow for depth */
}

.profile-container {
    text-align: center;      /* Centers the photo on the page */
    margin: 20px 0;
}

.pdf-button {
    color: #ffffff;
    padding: 12px 25px;
    text-decoration: none;      /* Removes the blue underline */
    font-weight: bold;
    transition: background-color 0.4s ease, color 0.4s ease; 
    padding: 10px 20px;
    border-radius: 10px;
    background-color: #1B3022;
    display: inline-block;
    align-items: center;
}

.pdf-button:hover {
    color: #ffffff; /* Flips to Gold when hovered */
    background-color: #F9C80E;
}

.standards-flex-wrapper {
    display: flex;          /* The magic line for side-by-side */
    gap: 30px;              /* Adds space between Trent and Agnes */
    justify-content: center; /* Centers both boxes on the page */
    flex-wrap: wrap;        /* Important: Allows them to stack on phones */
    margin-top: 20px;
}

.standard-container {
   background-color: #ffffff;
   color: #1B3022;
   padding: 50px 10% 20px 10%;
   text-align: center;
}

.standard-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* This makes it stack nicely on mobile phones */
    gap: 40px;
    margin-bottom: 30px;
    text-align: center;
    color: #1B3022;
    flex: 1;                /* Makes both boxes the same width */
    min-width: 300px;       /* Prevents them from getting too skinny */
    max-width: 450px;       /* Keeps them from getting too wide */
    padding: 20px;
    background-color: #f9fdfa; /* Your Pale Green background */
    border: 1px solid #1B3022; /* Subtle Forest Green border */
    border-radius: 8px;
    text-align: center;     /* Centers the names and buttons */
}

.nzccalogo-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(27, 48, 34, 0.1); /* Subtle divider line */
}

/* This keeps the logos at a professional, consistent size */
.nzcca-logo {
    max-width: 200px;   /* Adjust this to make logos bigger or smaller */
    height: auto;       /* Keeps the logo from getting squished */
    filter: grayscale(20%); /* Optional: softens the colors to match your site */
    opacity: 0.9;
}

.nzaclogo-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(27, 48, 34, 0.1); /* Subtle divider line */
}

/* This keeps the logos at a professional, consistent size */
.nzac-logo {
    max-width: 300px;   /* Adjust this to make logos bigger or smaller */
    height: auto;       /* Keeps the logo from getting squished */
    filter: grayscale(20%); /* Optional: softens the colors to match your site */
    opacity: 0.9;
}

footer {
    background-color: #1B3022; /* Your Dark Forest Green */
    color: #ffffff;          
    padding: 50px 10% 20px 10%;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* This makes it stack nicely on mobile phones */
    gap: 40px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.emergency-title {
    color: #F9C80E; /* Your Kōwhai Gold */
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    color: #D8E2DC; /* A soft gold for the headings */
}

/* This applies to the links in your footer */
.footer-section a {
    color: #f1f1e6;            /* Your starting pale sand color */
    text-decoration: none;     /* This removes the default underline */
    transition: color 0.3s ease; /* This makes the color change fade in smoothly */
}

/* This is the "Magic" part that happens when you hover */
.footer-section a:hover {
    color: #F9C80E;            /* Changes to your Kōwhai Gold on hover */
    text-decoration: none;     /* Ensures no underline appears */
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.8;
}

.contact-section {
    padding: 60px 20px;
    background-color: #f9fdfa; /* Your Pale Green background */
    text-align: center;
}

.contact-section p {
    color: #1B3022;
    margin-bottom: 30px;
}

/* This styles the outer container holding your Jotform */
.jotform-wrapper {
    width: 100%;
    max-width: 700px; /* Keeps the form at a nice, readable reading width */
    margin: 0 auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(27, 48, 34, 0.08); /* Subtle Forest Green shadow */
}

/* Force the contact header fonts to match exactly */
header nav ul li a {
    font-size: 16px !important; /* Change 16px to whatever size your home page uses */
    font-family: 'Playfair Display', serif; /* Or your chosen navigation font */
}

/* If the "Book a Session" button text changed size too */
header nav ul li a.cta-button {
    font-size: 16px !important; 
}

/* Optimized Mobile Layout with Hide-on-Scroll Fixes */
/* COMPLETE SELF-CONTAINED MOBILE LAYOUT OVERWRITE */
@media (max-width: 768px) {
  
  /* Safety Reset: Force header elements to stack vertically no matter what */
  header, header nav {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    padding: 10px 0 !important;
    transition: top 0.3s ease-in-out !important;
    z-index: 1000 !important;
  }

  /* Pushes the header completely off-screen on scroll down */
  .header-hidden {
    top: -160px !important; 
  }

  /* Center the logo container across the exact middle of the screen */
  .logo {
    display: flex !important;
    justify-content: center !important; 
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    width: 100% !important; 
  }

  .header-word {
    max-height: 25px !important;
    width: auto !important;
  }

  .header-icon {
    max-height: 30px !important;
    width: auto !important;
  }

  /* Center the 2x2 grid container perfectly across the phone screen */
  nav ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important; 
    align-items: center !important;
    width: 100% !important;
    max-width: 290px !important;        
    margin: 0 auto !important;          
    padding: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
  }

  /* Balance the grid blocks evenly */
  nav ul li {
    flex: 0 0 46% !important;
    text-align: center !important;
    margin: 4px 2% !important;
  }

  /* Format the regular clickable text/buttons */
  nav ul li a {
    display: block !important;
    font-size: 11px !important;
    padding: 8px 2px !important;
    background-color: #f4f4f4; 
    border-radius: 4px;
    text-decoration: none !important;
    color: #333333; 
  }

  /* CUSTOM FOREST GREEN & KŌWHAI GOLD FOR THE BOOKING BUTTON */
  nav ul li a.cta-button, 
  nav ul li a.cta-button:visited {
    background-color: #1e3f20 !important; /* Rich Forest Green background */
    color: #e6b800 !important;            /* Vibrant Kōwhai Gold text */
    font-weight: bold !important;          
 
  }
}