/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Playfair+Display:wght@700&display=swap');

/* --- Global Reset & Box Sizing --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Base Body Styles --- */
body {
    font-family: 'Inter', sans-serif;
    color: #2E2E2E; /* Charcoal */
    line-height: 1.6;
    background-color: #FFFFFF; /* White */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */

/* Headings */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700; /* Bold */
    color: #2E2E2E; /* Charcoal */
    line-height: 1.3;
    margin-bottom: 0.5em; /* Spacing below headings */
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 22px;
}

/* Body Text */
p {
    font-size: 18px; /* Default for larger screens */
    margin-bottom: 1em; /* Spacing below paragraphs */
}

/* Consistent Section Heading Style */
.section-heading {
    font-size: 38px; /* Slightly smaller than h2 for better flow */
    color: #1A2E49; /* Navy Blue */
    margin-bottom: 60px; /* More space below heading */
    display: block; /* Make sure it takes full width for text-align to work */
    text-align: center; /* Center the text inside the heading */
    position: relative; /* Keep relative for ::after positioning */
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px; /* Short underline */
    height: 4px;
    background-color: #4A90E2; /* Sky Blue */
    margin: 15px auto 0 auto; /* Center it below the heading */
    border-radius: 2px;
}

/* --- Global Elements --- */

/* Content Wrapper */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px; /* Horizontal padding for smaller screens */
    padding-right: 20px; /* Horizontal padding for smaller screens */
}

/* Section Spacing */
section {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Alternative Backgrounds for sections */
section.bg-light-grey {
    background-color: #F5F7FA; /* Light Grey */
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 700; /* Bold */
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent; /* Default transparent border */
    font-size: 16px;
}

/* Primary Button */
.btn-primary {
    background-color: #4A90E2; /* Sky Blue */
    color: #FFFFFF; /* White */
}

.btn-primary:hover {
    background-color: #357ABD; /* Slightly darker Sky Blue */
}

/* Secondary Button */
.btn-secondary {
    background-color: #FFFFFF; /* White */
    color: #1A2E49; /* Navy Blue */
    border-color: #1A2E49; /* Navy Blue */
}

.btn-secondary:hover {
    background-color: #F5F7FA; /* Light Grey */
    border-color: #1A2E49; /* Navy Blue */
}

/* --- Forms & Inputs --- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 16px;
    border: 1px solid #D1D8DD; /* Light border */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Soft shadow */
    font-family: 'Inter', sans-serif;
    color: #2E2E2E;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #4A90E2; /* Light blue border highlight */
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2); /* Light blue glow */
}

/* --- Navigation --- */
.navbar {
    background-color: #FFFFFF; /* White background */
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar .nav-list {
    list-style: none;
    display: flex;
    justify-content: center; /* Center navigation items */
    gap: 30px; /* Spacing between nav items */
}

.navbar .nav-item a {
    font-family: 'Inter', sans-serif; /* You can also use 'Playfair Display' if preferred for nav */
    font-size: 18px;
    color: #1A2E49; /* Navy Blue */
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-item a:hover {
    color: #4A90E2; /* Sky Blue on hover */
}

/* Active link style */
.navbar .nav-item a.active {
    font-weight: 700; /* Bold */
    color: #1A2E49; /* Navy Blue */
    border-bottom: 2px solid #4A90E2; /* Underline effect for active */
}

/* --- Links --- */
a {
    color: #4A90E2; /* Sky Blue */
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* --- Utility Classes --- */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem; /* 32px */
}

.mb-5 {
    margin-bottom: 3rem; /* 48px */
}

.success-message {
    color: #3BAF92; /* Green */
    font-weight: 700;
}

/* --- Responsive Design --- */

@media (max-width: 768px) {
    /* Typography Scaling */
    h1 {
        font-size: 38px;
    }

    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 24px;
    }

    h4 {
        font-size: 20px;
    }

    p {
        font-size: 16px; /* Adjust body text for smaller screens */
    }

    /* Section Spacing Scaling */
    section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* Navigation Adjustment */
    .navbar .nav-list {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Further font size reductions if necessary for very small screens */
    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }
}

/* --- Global CSS (Continued) --- */

/* --- Header Styles --- */
.main-header {
    background-color: #FFFFFF; /* White background */
    padding: 15px 0; /* Vertical padding */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow */
    position: sticky; /* Sticky at the top */
    top: 0;
    z-index: 1000; /* Ensure it stays above other content */
    width: 100%;
}

.header-content {
    display: flex; /* Use flexbox for layout */
    justify-content: space-between; /* Space logo and nav apart */
    align-items: center; /* Vertically align items */
}

.logo img {
    height: 100px; /* Increased logo size from 40px to 70px */
    width: auto;
    display: block; /* Remove extra space below image */
}

/* Main Navigation within Header (already somewhat defined in global, but reinforcing) */
.main-nav .nav-list {
    list-style: none;
    display: flex; /* Horizontal nav items */
    margin: 0;
    padding: 0;
    gap: 30px; /* Spacing between nav items */
}

.main-nav .nav-item a {
    font-family: 'Inter', sans-serif; /* Font for nav links*/
    font-size: 18px; /* Font size for nav links*/
    color: #1A2E49; /* Navy Blue text*/
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav .nav-item a:hover {
    color: #4A90E2; /* Sky Blue on hover*/
}

.main-nav .nav-item a.active {
    font-weight: 700; /* Bold for active link*/
    color: #1A2E49; /* Navy Blue*/
    border-bottom: 2px solid #4A90E2; /* Underline effect for active*/
}

/* Hamburger Menu (for mobile) */
.hamburger-menu {
    display: none; /* Hidden by default on desktop*/
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100; /* Ensure it's above other content when active */
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #1A2E49; /* Navy Blue*/
    margin: 5px 0;
    transition: 0.4s;
}

/* --- Footer Styles --- */
.site-footer {
    background-color: #1A2E49; /* Navy Blue background*/
    color: #F5F7FA; /* Light Grey for text*/
    padding: 40px 0; /* Vertical padding*/
    font-size: 14px;
}

.site-footer a {
    color: #4A90E2; /* Sky Blue for links*/
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-content {
    display: flex; /* Use flexbox for footer layout*/
    flex-direction: column; /* Stack items vertically by default*/
    align-items: center; /* Center items horizontally*/
    gap: 15px; /* Spacing between footer elements*/
}

.footer-brand h3 {
    color: #FFFFFF; /* White for company name*/
    margin-bottom: 0;
    font-size: 24px;
    font-family: 'Playfair Display', serif; /* Use Playfair for brand name*/
}

.footer-nav .footer-links {
    list-style: none;
    padding: 0;
    display: flex; /* Horizontal links*/
    gap: 20px; /* Spacing between links*/
    margin-bottom: 10px;
}

.contact-info {
    font-style: normal; /* Override default address italic style */
    text-align: center;
}


/* --- Responsive Adjustments for Header & Footer --- */

@media (max-width: 768px) {
    /* Header Mobile Adjustments */
    .hamburger-menu {
        display: block; /* Show hamburger on mobile*/
    }

    .main-nav .nav-list {
        display: none; /* Hide navigation links by default on mobile*/
        flex-direction: column; /* Stack links vertically*/
        position: absolute; /* Position menu absolutely*/
        top: 60px; /* Adjust based on header height*/
        left: 0;
        width: 100%;
        background-color: #FFFFFF; /* White background*/
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); /* Shadow for dropdown*/
        padding: 20px 0;
        z-index: 999;
        text-align: center;
    }

    /* JavaScript will add an 'active' class to .nav-list to show it */
    .main-nav .nav-list.active {
        display: flex; /* Show navigation links when active*/
    }

    .main-nav .nav-item {
        margin: 10px 0; /* Vertical spacing for stacked nav items*/
    }

    /* Footer Mobile Adjustments */
    .footer-nav .footer-links {
        flex-direction: column; /* Stack footer links vertically*/
        gap: 10px;
    }
}