/* 
* FastReg4Tests.com Stylesheet
* Modern, responsive design for Regulation 4 testing services
*/

/* =========================================
   1. CSS Variables & Reset
   ========================================= */
:root {
    /* Color Palette - Premium & Trustworthy */
    --primary-color: #E63946;
    /* Vibrant Red */
    --primary-dark: #c62836;
    /* Darker Red for hover */
    --secondary-color: #1D3557;
    /* Deep Navy Blue */
    --secondary-light: #2a4a76;
    /* Lighter Navy */
    --accent-color: #457B9D;
    /* Steel Blue */
    --accent-light: #5b9bc0;
    /* Light Steel Blue */
    --background-color: #FFFFFF;
    /* White */
    --surface-color: #F8F9FA;
    /* Light Gray Surface */
    --text-color: #333333;
    /* Dark Gray Text */
    --text-light: #6c757d;
    /* Muted Text */

    /* Custom Colors */
    --international-orange: #FF4F00;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    --gradient-dark-overlay: linear-gradient(rgba(29, 53, 87, 0.8), rgba(29, 53, 87, 0.9));

    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;

    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* UI Elements */
    --border-radius-sm: 4px;
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-pill: 50px;

    /* Shadows - Soft & Modern */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   2. Typography
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    /* Responsive scaling */
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: 20px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* =========================================
   3. Layout Components
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

section {
    padding: var(--spacing-lg) 0;
}

/* =========================================
   4. Header & Navigation
   ========================================= */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.logo {
    order: 1;
}

.navigation {
    order: 2;
    flex-grow: 1;
    /* Allow to take space */
    display: flex;
    justify-content: center;
    /* Center the nav */
    margin: 0 1rem;
}

.contact-info {
    order: 3;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--heading-font);
    letter-spacing: -0.5px;
}


/* Dropdown Support */
.navigation ul {
    display: flex;
    gap: 1.2rem;
    /* Increased gap for better readability */
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navigation>ul>li {
    position: relative;
    padding: 0.5rem 0;
    /* Add hit area for hover */
}


/* Navigation Links */
.navigation a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.navigation a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Dropdown Toggle Styling */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dropdown-toggle i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.navigation>ul>li:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

/* Active state marker */
.navigation a.active {
    position: relative;
    color: var(--primary-color);
}

.navigation a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    flex-direction: column;
    z-index: 1000;
    border-top: 3px solid var(--primary-color);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

/* Show dropdown on hover */
.navigation>ul>li:hover .dropdown-menu,
.navigation>ul>li:focus-within .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* Dropdown Items */
.dropdown-menu li {
    padding: 0;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: rgba(230, 57, 70, 0.08);
    color: var(--primary-color);
    transform: translateX(4px);
    padding-left: 1.5rem;
}

.dropdown-menu a::after {
    display: none;
}


.contact-info .phone-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius-pill);
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
}


/* =========================================
   5. Hero Section
   ========================================= */
.hero {
    position: relative;
    padding: var(--spacing-xl) 0;
    color: white;
    text-align: center;
    background-color: var(--secondary-color);
    /* Fallback */
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.4;
    /* Adjusted for readability */
}

/* Overlay gradient */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark-overlay);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    color: white;
    margin-bottom: var(--spacing-md);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero .subheading {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-pill);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border-color: white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-orange {
    background-color: var(--international-orange);
    color: white;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--international-orange);
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    font-weight: 800;
}

.btn-orange:hover {
    background-color: #e64700;
    border-color: #e64700;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: white;
}

/* =========================================
   6. Services Section & Cards
   ========================================= */
.services {
    background-color: var(--surface-color);
}

.service-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.highlight {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 5px solid var(--accent-color);
}

.highlight:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.highlight .icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    background: var(--surface-color);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.highlight:hover .icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.highlight h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.4rem;
}

/* =========================================
   7. Why Choose Us / Benefits
   ========================================= */
.why-choose-us {
    background-color: white;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.benefit {
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    background-color: white;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    text-align: center;
}

.benefit:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.benefit .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

/* =========================================
   8. Contact Section
   ========================================= */
.contact {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact h2,
.contact h3,
.contact p {
    color: white;
}

.contact h2::after {
    background: white;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.contact-method {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    min-width: 250px;
    backdrop-filter: blur(5px);
}

.contact-link {
    display: inline-block;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: var(--spacing-xs);
}

.contact-link:hover {
    color: var(--accent-light);
}

/* =========================================
   9. Footer
   ========================================= */
.footer {
    background-color: var(--secondary-color);
    /* Dark Navy */
    color: #b0b8c4;
    padding: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
    font-size: 0.9rem;
    border-top: 5px solid var(--primary-color);
}

.footer-links {
    margin-top: var(--spacing-sm);
}

.footer-links a {
    color: #b0b8c4;
    margin: 0 10px;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

/* =========================================
   10. Media Queries (Responsive)
   ========================================= */
@media (max-width: 991px) {
    .header .container {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
        flex-grow: 1;
        text-align: center;
    }

    .contact-info {
        order: 3;
    }

    .contact-info .phone-number {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .navigation {
        display: none;
        /* JS toggle would handle this usually, keeping simple for now or need JS */
        width: 100%;
        order: 4;
        margin-top: 1rem;
    }

    .navigation.active {
        display: block;
    }

    .navigation ul {
        flex-direction: column;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow-md);
        border-radius: var(--border-radius);
    }

    .navigation a {
        display: block;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero {
        padding: var(--spacing-lg) 0;
    }

    .header .container {
        padding: 0 1rem;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .highlight {
        margin-bottom: var(--spacing-sm);
    }
}