/* ===================================================
   Cypress Coast Digital - style.css
   ===================================================

   TABLE OF CONTENTS
   1.  Global Styles & Variables
   2.  Typography
   3.  Layout & Helper Classes
   4a.  Header & Navigation
   4b. Mobile Navigation Styles
   5.  Hero Section
   6.  Intro Section
   7.  Services Section
   8.  Approach Section
   9.  Advantage Section
   10. Footer & Final CTA
   11. Media Queries (Responsiveness)
   12. Privacy Policy

=================================================== */


/* --- 1. Global Styles & Variables --- */
:root {
    --color-dark-green: #3B4A40;
    --color-dark-charcoal: #2F353D;
    --color-fog-gray: #B0B8B9;
    --color-sandy-beige: #EAE3D4;
    --color-off-white: #F9F9F9;
    --color-white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-dark-charcoal);
    background-color: var(--color-off-white);
}


/* --- 2. Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--color-dark-green);
}

h1 {
    font-size: 3.5rem; /* 56px */
}

h2 {
    font-size: 2.5rem; /* 40px */
}

h3 {
    font-size: 1.5rem; /* 24px */
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--color-dark-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.sub-heading {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    color: var(--color-fog-gray);
}


/* --- 3. Layout & Helper Classes --- */
.container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

section {
    padding: 80px 0;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--color-dark-green);
    border-radius: 5px;
    font-weight: 600;
    color: var(--color-dark-green);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--color-dark-green);
    color: var(--color-white);
}

.cta-button-primary {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--color-dark-green);
    color: var(--color-white);
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--color-dark-green);
    transition: all 0.3s ease;
}

.cta-button-primary:hover {
    background-color: transparent;
    color: var(--color-dark-green);
}

/* Hero button needs white text on hover */
#hero .cta-button-primary:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

/* --- 4a. Header & Navigation --- */
header {
    background-color: var(--color-off-white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
}

/* --- 4b. Mobile Navigation Styles --- */
.hamburger {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Ensure it's on top of other content */
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark-charcoal);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-cta-mobile {
    display: none; /* Hide the mobile version of the CTA on desktop */
}

/* This is our Breakpoint */
@media (max-width: 1120px) {
    /* Hide the desktop nav links and button */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 75px; /* Height of the header */
        left: 0;
        width: 100%;
        background-color: var(--color-off-white);
        padding: 20px;
        text-align: center;
        border-bottom: 1px solid #e0e0e0;
		gap: 28px; 
    }
    .cta-button-desktop {
        display: none;
    }

    /* Show the mobile menu when it's active */
    .nav-links.is-active {
        display: flex;
    }

    /* Show the hamburger button */
    .hamburger {
        display: block;
    }
    
    /* Show the mobile CTA inside the opened menu */
    .nav-cta-mobile {
        display: block;
        margin-top: 0;
    }
	
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- 5. Hero Section --- */
#hero {
    background-image: linear-gradient(rgba(47, 53, 61, 0.5), rgba(47, 53, 61, 0.5)), url('../assets/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--color-white);
    padding: 120px 0;
    text-align: center;
}

#hero h1 {
    color: var(--color-white);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#hero p {
    font-size: 1.125rem; /* 18px */
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}

/* --- 6. Intro Section --- */
#intro {
    background-color: var(--color-white);
}
.intro-text {
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
}

/* --- 7. Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.service-item {
    background-color: var(--color-white);
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-align: center;
}

.service-item ion-icon {
    font-size: 50px; /* Controls the size of the icon */
    margin-bottom: 1.5rem;
    color: var(--color-dark-green);
    display: inline-block; /* Ensures margin-bottom works correctly */
}

/* --- 8. Approach Section --- */
#approach {
    background-color: var(--color-dark-green);
    color: var(--color-off-white);
}

#approach h2, #approach h3 {
    color: var(--color-white);
}

.approach-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    text-align: center;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-sandy-beige);
    display: block;
    margin-bottom: 1rem;
}

/* --- 9. Advantage Section --- */
#advantage {
    background-color: var(--color-white);
}

.advantage-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.advantage-item {
    margin-bottom: 2rem;
}

/* --- 10. Footer & Final CTA --- */
footer {
    background-color: var(--color-dark-charcoal);
    color: var(--color-off-white);
    padding-top: 80px;
}

.footer-cta {
    text-align: center;
    background-color: var(--color-sandy-beige);
    padding: 60px;
    border-radius: 5px;
    margin-bottom: 80px;
}

.footer-cta h2, .footer-cta p {
    color: var(--color-dark-charcoal);
}

.footer-bottom {
    border-top: 1px solid var(--color-fog-gray);
    padding: 20px 0;
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--color-sandy-beige);
}

/* --- 11. Media Queries (Responsiveness) --- */

/* For Tablets */
@media (max-width: 1120px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

    .services-grid, .approach-steps {
        grid-template-columns: 1fr;
    }
}

/* For Mobile */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    /* Hide desktop nav and show mobile hamburger menu (JS would be needed to make it work) */
    .nav-links {
        display: none; 
    }
    .cta-button {
        display: none; /* Hide top-right CTA on small screens */
    }

    .main-nav {
        /* You would add a hamburger menu button here */
    }

    .footer-cta {
        padding: 40px 20px;
    }
}

/* JS-Integration: Style for elements before they become visible */
.service-item, .step, .advantage-item, .footer-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* JS-Integration: Style for elements once they are visible */
.service-item.visible, .step.visible, .advantage-item.visible, .footer-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- 12. Privacy Policy --- */

#policy-content ul {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

#policy-content ul li {
    margin-bottom: 0.5rem;
}