/* ================================================= */
/* 0. GLOBAL STYLES */
/* ================================================= */
/* Assume standard global resets and body styles are applied */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #f9fafb;
}

/* General Section Padding (Adjusted for responsiveness) */
.services, .highlight-section, .storytelling, .cta-section {
    padding: 60px 20px;
}

/* ================================================= */
/* 1. Hero Section */
/* ================================================= */
.iso-hero {
    background: #ffffff;
    padding: 0;
    margin-bottom: 60px;
}
.hero-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 500px;
}
.hero-text {
    flex: 1;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem; /* Base desktop size */
    color: #0F766E;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-text p {
    font-family: 'Times New Roman', serif;
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 0;
}
.hero-image {
    flex: 1;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* ================================================= */
/* 2. Services Section (Flip Cards) */
/* ================================================= */
.services {
    background: #f0f4f8; /* White background */
    text-align: center;
    padding: 60px 20px;
    color: #0F172A; /* Dark text for subtitles */
}

.services .container {
    max-width: 1000px;
    margin: 0 auto;
}

.services h2 {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #0F766E; /* Teal heading */
}

.services .subtitle {
    color: #0F172A; /* Dark subtitle */
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Fixed 2x2 Grid */
.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 30px;
}

/* Flip Card Base */
.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    height: 280px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 12px;
}

/* FRONT */
.flip-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* Teal front */
    color: #0F766E;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 15px;
}

.flip-card-front .icon {
    font-size: 50px;
    margin-bottom: 15px;
    color: #0F766E;
}

.flip-card-front h3 {
    font-size: 1.5rem;
}

/* BACK */
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #0F766E; /* Black back */
    color: #ffffff;
    transform: rotateY(180deg);
    backface-visibility: hidden;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
}

/* Flip effect on hover */
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* ================================================= */
/* 3. Highlight Section (Glassmorphism) */
/* ================================================= */
.highlight-section {
    padding: 100px 20px;
    text-align: center; /* Center heading and subtitle */
    background: #f9fafb; /* Optional: subtle background */
}

.highlight-box {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.highlight-box h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0F766E; /* Teal heading */
    text-align: center;
}

.highlight-box p {
    font-size: 1rem;
    margin-bottom: 40px;
    color: #0F172A; /* Dark subtitle text */
    text-align: center;
}

/* Grid of features */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns desktop */
    gap: 25px;
    justify-items: center;
}

.highlight-card {
    background: #ffffff; /* White card for contrast */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* subtle shadow */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.highlight-card span.material-icons {
    font-size: 40px;
    color: #0F766E; /* Teal icons */
    margin-bottom: 10px;
}

.highlight-card h3 {
    font-size: 1.2rem;
    color: #0F172A; /* Dark heading */
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 0.95rem;
    color: #475569; /* Slightly lighter text */
}

/* ================================================= */
/* 4. Storytelling Section */
/* ================================================= */
.storytelling {
    padding: 4rem 1rem;
    background: #f9fafb; /* Optional: light background for contrast */
    text-align: center; /* Center main section heading */
}

.story-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #0F766E; /* Teal main heading */
    text-align: center;
}

.story-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: center;
    text-align: left;
}

/* Even steps layout */
.story-step:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

/* Images */
.story-image img {
    width: 100%;
    height: 300px;
    max-width: 100%;
    border-radius: 12px; /* optional rounded corners */
}

/* Step headings */
.story-text h2 {
    font-size: 1.8rem;
    color: #0F766E; /* Teal step heading */
    margin-bottom: 0.5rem;
}

/* Step paragraph */
.story-text p {
    font-size: 1rem;
    color: #0F172A; /* Dark text for body */
}

/* ================================================= */
/* 5. CTA Section */
/* ================================================= */
/* ================================================= */
/* 5. CTA Section - Centered Heading, Text & Button */
/* ================================================= */
.cta-section {
    padding: 3rem 1rem;
    background: #0F766E; /* Optional: teal background */
    color: #ffffff; /* White text */
    text-align: center; /* Center everything */
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #ffffff; /* Ensure heading is visible */
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #ffffff; /* Ensure paragraph is visible */
}

/* CTA button */
.cta-btn {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    background-color: #ffffff; /* White button */
    color: #0F766E; /* Teal text */
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    background-color: #0F5F55; /* Slightly darker teal on hover */
    color: #ffffff;
}



/* ================================================= */
/* RESPONSIVE MEDIA QUERIES */
/* ================================================= */

/* Tablet and Smaller Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    /* General Padding */
    .services, .highlight-section, .storytelling, .cta-section {
        padding: 40px 15px;
    }

    /* 1. Hero Section: Stack columns */
    .hero-container {
        flex-direction: column;
        min-height: auto;
    }
    .hero-text {
        padding: 40px 20px;
        text-align: center;
    }
    .hero-text h1 {
        font-size: 2.2rem;
    }
    .hero-text p {
        font-size: 1.1rem;
    }
    .hero-image img {
        height: 300px;
    }
    .services-container {
        grid-template-columns: 1fr 1fr; /* Keep 2 columns on tablet */
    }


    /* 3. Highlight Section: Single column for features */
    .highlight-box {
        padding: 30px;
    }
    .highlight-grid {
        grid-template-columns: 1fr;
    }

    /* 4. Storytelling: Stack image and text */
    .story-step,
    .story-step:nth-child(even) {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .story-image img {
        height: 250px;
        margin: 0 auto;
    }
    .story-text h2 {
        font-size: 1.6rem;
    }
    .story-text p {
        text-align: left; /* Keep body text aligned left for readability */
    }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. Hero */
    .hero-text {
        padding: 30px 15px;
    }
    .hero-text h1 {
        font-size: 1.8rem;
    }
    .hero-text p {
        font-size: 1rem;
    }
    .hero-image img {
        height: 200px;
    }

    /* 2. Services Grid: Stack columns (already defined in your base CSS) */
    .services-container {
        grid-template-columns: 1fr; /* Stack 1 column on mobile */
    }
    .flip-card-inner {
        height: 250px;
    }
    .flip-card-front h3 {
        font-size: 1.3rem;
    }
    .flip-card-back {
        font-size: 1rem;
    }


    /* 3. Highlight Section */
    .highlight-section {
        padding: 60px 10px;
    }
    .highlight-box {
        padding: 20px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .highlight-box h2 {
        font-size: 1.6rem;
    }
    .highlight-card h3 {
        font-size: 1.1rem;
    }
    
    /* 4. Storytelling */
    .story-title {
        font-size: 1.6rem;
    }
    .story-text h2 {
        font-size: 1.4rem;
    }
    .story-text p {
        font-size: 0.95rem;
    }
    .story-image img {
        height: 200px;
    }
    
    /* 5. CTA */
    .cta-section h2 {
        font-size: 1.8rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
    .cta-btn {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
}