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

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

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1rem;
}

h4 {
    font-size: 1.5rem;
}

.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: 150px;          /* Adjust this to make your logo the right size */
    width: auto;           /* Keeps the logo from looking squished */
    display: inline-block;
}

header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  
  /* Remove any solid color background and make it completely see-through */
  background-color: transparent !important; 
  background: none !important;
  box-shadow: none !important; /* Removes any shadow line under the menu */

  /* Keeps your beautiful fade-out scroll interaction intact */
  transition: opacity 0.4s ease, visibility 0.4s ease !important;
  opacity: 1 !important;
  visibility: visible !important;
}

header.header-hidden {
  opacity: 0 !important;
  /* 'visibility: hidden' stops the invisible header from stealing clicks from links underneath it */
  visibility: hidden !important; 
}

.hero-section {
    /* 1. Background Image with built-in text-contrast overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.40)), 
                url('fall.png') no-repeat center center !important;
    background-size: cover !important;
    margin-top: 0 !important;
    border-top: none !important;
    
    /* 2. Sizing & Screen Presence */
    min-height: 140vh !important; /* Spans 75% of the screen height */
    box-sizing: border-box !important;
    
    /* 3. Spacing: 120px top gives your transparent menu and logo plenty of breathing room */
    padding: 120px 10% 40px 10% !important; 
    text-align: center !important;
    
    /* 4. Flexbox Engine: Pushes welcome to the top, content to the center */
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important; 
    align-items: center !important;
}

/* Elegant formatting for your welcome text */
.hero-welcome {
    color: var(--white) !important; 
    font-size: 3rem !important;
    font-weight: 400 !important;
    letter-spacing: 1px !important;

    /* 2. ADD THIS SPACER: Pushes the text down from the transparent header.
       Adjust 40px higher or lower until it sits exactly where you like it! */
    margin-top: 150px !important; 
    margin-bottom: 0 !important;
}

/* Core message box centered vertically via automatic margins */
.hero-content {
    margin: auto 0 !important; 
    max-width: 800px !important; /* Keeps sentences at a premium, easy-to-read width */
}

/* Typography styles for inside the hero content */
.hero-content h1 {
    color: var(--white) !important;
    font-size: 3rem !important;
    margin-bottom: 20px !important;
}

.hero-content p {
    color: var(--sand) !important; /* Soft sand tone softens the reading experience */
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

.hero-services {
    background: url('note.png') no-repeat center center !important;
    background-size: 110% auto !important;
    min-height: 50vh !important; /* Spans 75% of the screen height */
}


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


/* 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: transparent !important;
}

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: #f1f1e6 !important;
    text-decoration: none;
}

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

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

.header-about {
   color: #1B3022 !important;
}

.header-about:hover {
   color: #F9C80E !important;
}

/* 2. This styles the links when you move your mouse over them */
nav ul li a:hover {
    color: #F9C80E !important;            /* 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: #f1f1e6;
}

.cta-button {
    background-color: #f1f1e6 !important;
    color: #1B3022 !important;           
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    align-items: center;
    font-size: 1.3rem !important;
    transition: background-color 0.4s ease, color 0.4s ease; 
}

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

}

.cta-button-about {
    background-color: #1B3022 !important;
    color: #f1f1e6 !important;           
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    align-items: center;
    font-size: 1.3rem !important;
    transition: background-color 0.4s ease, color 0.4s ease; 
}

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

}


/* 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: 200px 10% 20px 10%;
    text-align: center;
    border-top: 200px solid #ffffff !important;
}

.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 #f1f1e6;
    box-shadow: 0 0 15px 2px #F9C80E,
                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: #301934;
    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: #ADD8E6; /* Your Dark Forest Green */
    color: #ffffff;          
    padding: 50px 10% 20px 10%;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between; /* Spreads columns evenly across the screen */
    flex-wrap: wrap;               /* Forces columns to stack perfectly on mobile phones */
    gap: 40px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section {
    flex: 1;
    min-width: 200px; /* Prevents the columns from crushing each other */
}

.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: #301934; /* 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 */
}


/* Restores your beautiful full-width border divider line */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 20px !important;
    font-size: 0.8rem;
    opacity: 0.8;
    width: 100% !important;
}

/* Handles the side-by-side alignment perfectly inside the line */
.footer-bottom-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;    /* Centers image and text vertically */
    justify-content: center !important;  /* Centers the whole group on the page */
    gap: 15px !important;               /* Adds breathing room between shield and text */
}

/* Clears out default paragraph margins */
.footer-bottom p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Keeps the shield icon looking crisp and elegant */
#shielded-logo img {
    display: block !important;
    height: 45px !important;
    width: auto !important;
}

.contact-section {
    padding: 60px 20px;
    background-color: #f1f1e6; 
    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 */
}


/* 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;
    background: transparent none !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;
  }
}

/* ==========================================
   DESKTOP ALIGNMENT OVERRIDES (PLACE AT ABSOLUTE BOTTOM)
   ========================================== */

@media (min-width: 769px) {
    /* Forces the footer container to act as a side-by-side row on desktop */
    footer .footer-container {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
    }

    /* Pulls your shield wrapper strictly to the left edge column */
    .footer-section.shielded-column {
        display: flex !important;
        flex: 1 !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
        min-width: 150px !important;
        max-width: 220px !important;
    }

}