/* --- Global Reset & Variables --- */
:root {
    --primary-blue: #00247D; /* Oxford Blue */
    --accent-red: #CF142B;   /* Heritage Red */
    --text-dark: #2d2d2d;
    --text-light: #f4f4f4;
    --bg-cream: #faf9f6;    /* Off-white for a classic look */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    overflow-x: hidden; /* Prevents accidental horizontal scrolling */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Navigation --- */
header {
    background: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap; /* Allows wrap on smaller tablets */
}

.logo img {
    height: auto;
    max-height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px; 
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    /* Changed from 400 to 700 for high-visibility thickness */
    font-weight: 700; 
    text-transform: uppercase;
    /* Reduced spacing slightly so the thicker letters don't feel too 'stretched' */
    letter-spacing: 0.5px; 
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding-bottom: 5px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-blue);
    /* Thickened the red line to match the thicker font */
    border-bottom: 3px solid var(--accent-red); 
    /* Subtly brightens the blue so it's more distinguishable from black */
    text-shadow: 0px 0px 1px rgba(0, 36, 125, 0.2); 
}
/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 80vh; /* min-height is safer for responsiveness than height */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    padding: 60px 20px; /* Ensures content doesn't hit edges on mobile */
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
    filter: brightness(55%); /* Slightly darker for better text contrast */
}

.hero-content {
    max-width: 900px;
    width: 100%;
}

.hero-content h1 {
    font-family: var(--font-serif);
    /* Fluid typography: Min 2rem, scales with width, Max 3.5rem */
    font-size: clamp(2rem, 6vw, 3.5rem); 
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 45px;
    background-color: var(--accent-red);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* --- Intro Section --- */
.intro {
    padding: clamp(60px, 10vh, 100px) 0;
    text-align: center;
    background: #fff;
}

.intro h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
}

.intro p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.15rem;
    padding: 0 20px;
}

/* --- Services Grid --- */
.services-preview {
    padding: 80px 0;
}

.services-preview .container {
    display: grid;
    /* This creates the responsive grid without needing media queries for the cards */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    padding-bottom: 35px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-12px);
}

.service-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin: 25px 0 12px;
}

.service-card p {
    padding: 0 25px 25px;
    font-size: 1rem;
    color: #666;
}

.text-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.text-link:hover {
    text-decoration: underline;
}

/* --- Footer --- */
footer {
    background: #111;
    color: #bbb;
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 25px;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    letter-spacing: 1px;
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--accent-red);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 60px;
    padding-top: 30px;
    font-size: 0.85rem;
    color: #666;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }

    .hero {
        min-height: 60vh;
    }
}

@media (max-width: 480px) {
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .service-card {
        margin: 0 10px;
    }
}