/* ==========================================================================
   iHERD - MAIN STYLESHEET
   Description: Complete style architecture mirroring the provided layout.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & THEME CONFIGURATION
   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --clr-primary: #176f91;       /* Deep Cyan / Button Color */
    --clr-primary-hover: #125570; /* Darker Cyan for hover states */
    --clr-secondary: #0f2537;     /* Dark Slate/Navy for main headings */
    
    /* Neutral & Background Colors */
    --clr-bg-main: #f8f9fa;       /* Very light grey for main body */
    --clr-bg-white: #ffffff;      /* Pure white for placeholders */
    --clr-text-body: #6c757d;     /* Muted grey for paragraph text */
    
    /* Typography */
    --font-primary: 'Montserrat', system-ui, -apple-system, sans-serif;
    
    /* Layout Constants */
    --container-max-width: 1200px;
    --section-padding: 5rem 1.5rem;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* --------------------------------------------------------------------------
   2. MODERN CSS RESET & GLOBAL STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-bg-main);
    color: var(--clr-text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --------------------------------------------------------------------------
   3. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Scroll Animation Classes */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. BUTTON STYLES
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px; /* Pill shape */
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-bg-white);
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: var(--clr-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(23, 111, 145, 0.3);
}

.btn__icon {
    margin-left: 0.5rem;
    font-size: 1.1rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn__icon {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION & CAROUSEL
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    width: 100%;
    height: 70vh; /* Viewport height for the hero */
    min-height: 500px;
    background-color: var(--clr-secondary);
    overflow: hidden;
}

.hero__slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero__slide.active {
    opacity: 1;
    z-index: 2;
}

/* Carousel Pagination Dots */
.hero__pagination {
    position: absolute;
    bottom: 25%; /* Positioned above the curve */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

/* Ring effect for active dot */
.hero__dot.active {
    background-color: var(--clr-primary);
}

.hero__dot.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Hero Bottom Curve Overlay */
.hero__curve {
    position: absolute;
    bottom: -1px; /* Prevent sub-pixel rendering gaps */
    left: 0;
    width: 100%;
    height: auto;
    z-index: 5;
    pointer-events: none;
}

.hero__curve svg {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   6. MEDIA SHOWCASE (White Placeholder)
   -------------------------------------------------------------------------- */
.media-showcase {
    position: relative;
    margin-top: -12vh; /* Pull upwards over the curve */
    z-index: 10;
    padding: 0 1.5rem;
    margin-bottom: 4rem;
}

.media-showcase__placeholder {
    width: 100%;
    max-width: 900px;
    height: 450px;
    margin: 0 auto;
    background-color: var(--clr-bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   7. ABOUT OVERVIEW SECTION
   -------------------------------------------------------------------------- */
.about {
    padding: var(--section-padding);
    text-align: center;
    background-color: var(--clr-bg-main);
}

.about__container {
    max-width: 950px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about__subtitle {
    color: var(--clr-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.about__title {
    color: var(--clr-secondary);
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
}

.about__content {
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.about__content p {
    margin-bottom: 1.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.about__content p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. PRICING SECTION
   -------------------------------------------------------------------------- */
.pricing {
    padding: var(--section-padding);
    background-color: var(--clr-primary);
    text-align: center;
}

.pricing__title {
    color: var(--clr-bg-white);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 3.5rem;
}

.pricing__grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pricing__card {
    background-color: var(--clr-bg-white);
    border-radius: 12px;
    padding: 3rem 2rem;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.pricing__name {
    color: var(--clr-secondary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pricing__amount {
    color: var(--clr-secondary);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    letter-spacing: -1px;
    line-height: 1;
}

.pricing__currency {
    font-size: 1.5rem;
    vertical-align: super;
    font-weight: 600;
    margin-right: 2px;
}

.pricing__btn {
    width: 100%;
    border-radius: 8px;
}

/* --------------------------------------------------------------------------
   9. PARTNERS & LOGOS SECTION
   -------------------------------------------------------------------------- */
.partners {
    padding: 2rem 1.5rem 5rem 1.5rem;
    background-color: var(--clr-bg-white);
    border-top: 1px solid rgba(0,0,0,0.03);
}

.partners__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1000px;
    gap: 2rem;
}

.partners__logo-wrapper {
    flex: 1 1 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partners__logo {
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(10%) contrast(1.1); /* Subtle polish */
    transition: var(--transition-smooth);
}

.partners__logo:hover {
    filter: grayscale(0%) contrast(1);
    transform: scale(1.02);
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE DESIGN (Media Queries)
   -------------------------------------------------------------------------- */

/* Tablet & Smaller Desktop Adjustments */
@media screen and (max-width: 992px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }
    
    .about__title,
    .pricing__title {
        font-size: 2.25rem;
    }
    
    .media-showcase__placeholder {
        height: 350px;
    }

    .pricing__grid {
        gap: 1.5rem;
    }
}

/* Mobile Devices */
@media screen and (max-width: 768px) {
    .hero {
        height: 60vh;
    }
    
    .hero__pagination {
        bottom: 20%;
    }
    
    .media-showcase {
        margin-top: -8vh;
    }
    
    .media-showcase__placeholder {
        height: 250px;
    }
    
    .about__title,
    .pricing__title {
        font-size: 1.85rem;
        margin-bottom: 1.5rem;
    }
    
    .about__content {
        font-size: 0.95rem;
    }

    .pricing__card {
        max-width: 100%;
        padding: 2.5rem 1.5rem;
    }

    .pricing__amount {
        font-size: 2.75rem;
    }
    
    .partners__container {
        flex-direction: column;
        gap: 3rem;
    }
}