/* =================================== */
/* == Design System & CSS Variables == */
/* =================================== */
:root {
    /* Colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(215, 25%, 27%);
    --card: hsl(0, 0%, 100%);
    
    /* Main Brand Colors */
    --primary: hsl(215, 60%, 16%); /* Dark Blue */
    --primary-foreground: hsl(0, 0%, 98%); /* Near White */
    
    --secondary: hsl(214, 32%, 91%); /* Light Gray/Blue */
    --accent: hsl(25, 95%, 53%); /* Orange */
    
    --border: hsl(214, 32%, 90%); /* Slightly softer border */
    
    /* UI Constants */
    --radius: 0.5rem;
    
    /* Gradients & Effects */
    --gradient-hero: linear-gradient(rgba(25, 35, 45, 0.75), rgba(25, 35, 45, 0.85));
    --gradient-accent: linear-gradient(135deg, hsl(25, 95%, 53%) 0%, hsl(35, 95%, 58%) 100%);
    --shadow-soft: 0 8px 20px -4px hsla(215, 60%, 16%, 0.07);
    --shadow-elevated: 0 15px 30px -5px hsla(215, 60%, 16%, 0.12), 0 8px 10px -6px hsla(215, 60%, 16%, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================== */
/* == Global Styles & Reset       == */
/* =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 100px 0;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--primary);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; margin-bottom: 1.5rem;}
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; font-weight: 700; }
p { margin-bottom: 1.5rem; color: hsl(215, 16%, 45%); max-width: 65ch; } /* Limit line width for readability */
p.section-subtitle { max-width: 700px; margin: 0 auto 60px auto; text-align: center; font-size: 1.125rem; color: hsl(215, 16%, 50%); }

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.2s;
}
a:hover { color: hsl(25, 95%, 45%); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 40px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-foreground);
    background: var(--gradient-accent);
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 10px -2px hsla(25, 95%, 53%, 0.3);
}
.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -4px hsla(25, 95%, 53%, 0.4);
}
.btn-arrow { margin-left: 10px; transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* =================================== */
/* == Header & Navigation         == */
/* =================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition-smooth);
    background: transparent;
}

/* State when scrolled - THIS SOLVES THE LOGO PROBLEM */
.header.scrolled {
    background: var(--background);
    padding: 16px 0;
    box-shadow: var(--shadow-soft);
}

.header .container { display: flex; justify-content: space-between; align-items: center; }

/* Default logo color is white */
.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-foreground);
    letter-spacing: -0.05em;
    transition: color 0.3s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2); /* Improves readability on busy backgrounds */
}
/* Logo color changes on scroll */
.header.scrolled .logo {
    color: var(--primary);
    text-shadow: none;
}

.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.nav-links a:hover { color: #fff; }
/* Nav link color changes on scroll */
.header.scrolled .nav-links a {
    color: var(--foreground);
    text-shadow: none;
}
.header.scrolled .nav-links a:hover { color: var(--accent); }

.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 50%; transform: translateX(-50%);
    background-color: var(--accent); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.burger-menu { display: none; cursor: pointer; font-size: 2rem; color: var(--primary-foreground); transition: color 0.3s;}
/* Burger menu color changes on scroll */
.header.scrolled .burger-menu {
    color: var(--primary);
}


/* =================================== */
/* == Hero Section                == */
/* =================================== */
.hero {
    background: var(--gradient-hero), url('https://images.unsplash.com/photo-1621905252507-b35492cc7471?q=80&w=2069&auto=format&fit=crop') no-repeat center center/cover;
    min-height: 95vh;
    padding: 160px 0 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-foreground);
}
.hero h1 { color: var(--primary-foreground); margin-bottom: 24px; }
.hero p {
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.35rem;
    line-height: 1.6;
}

/* =================================== */
/* == About Section               == */
/* =================================== */
#about { background-color: hsl(214, 32%, 98%); overflow: hidden;}
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }

.about-image img {
    width: 100%; height: auto; border-radius: var(--radius);
    box-shadow: var(--shadow-elevated); object-fit: cover;
}
.about-content h2 { text-align: left; }
.about-content p { max-width: none; }
.about-content strong { color: var(--primary); }

/* =================================== */
/* == Services Section            == */
/* =================================== */
#services { background-color: var(--background); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }

.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.5);
    padding: 40px 30px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: hsla(25, 95%, 53%, 0.4);
    box-shadow: var(--shadow-elevated);
}

.service-card .icon {
    display: inline-flex;
    padding: 16px;
    background-color: hsl(25, 95%, 96%);
    color: var(--accent);
    border-radius: var(--radius);
    margin-bottom: 24px;
    transition: transform 0.3s;
}
.service-card:hover .icon {
    transform: scale(1.1) rotate(-5deg);
}
.service-card p { font-size: 0.95rem; max-width: none; }

/* =================================== */
/* == Contact Section             == */
/* =================================== */
#contact { background-color: hsl(214, 32%, 98%); }
.contact-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 60px; 
    align-items: start;
}

.contact-details h3 { text-align: left; margin-bottom: 30px;}
.contact-details-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.contact-details-item .icon {
    color: var(--accent);
    background: #fff;
    padding: 14px;
    border-radius: 50%;
    display: flex;
    box-shadow: var(--shadow-soft);
}
.contact-details-item strong { display: block; color: var(--primary); margin-bottom: 4px; font-size: 1.1rem; }
.contact-details-item a { color: var(--foreground); font-weight: 500; word-break: break-word; }
.contact-details-item a:hover { color: var(--accent); text-decoration: underline; }

.opening-hours-wrapper { display: flex; align-items: center; justify-content: center; height: 100%;}
.opening-hours {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 30px;
    border-radius: var(--radius);
    width: 100%;
    box-shadow: var(--shadow-elevated);
}
.opening-hours h4 { color: #fff; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px;}
.opening-hours div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}
.opening-hours div:last-child { margin-bottom: 0; }

/* =================================== */
/* == Footer Section              == */
/* =================================== */
.footer {
    background-color: hsl(215, 60%, 12%);
    color: var(--primary-foreground);
    padding: 80px 0 30px 0;
    font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 60px; margin-bottom: 60px;}
.footer h3 { color: #fff; font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer p, .footer a { color: hsl(214, 20%, 80%); line-height: 1.8; }
.footer a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}
.footer-bottom p { margin: 0; font-size: 0.9rem; max-width: none; }

/* =================================== */
/* == Responsive Design           == */
/* =================================== */
@media (max-width: 992px) {
    section { padding: 80px 0; }
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-image { order: -1; margin: 0 auto 50px auto; max-width: 500px; }
    .about-content h2, .about-content p { text-align: center; margin-left: auto; margin-right: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero { padding-top: 120px; }
    .hero p { font-size: 1.1rem; }

    .nav-links {
        position: fixed; top: 0; right: -100%; height: 100vh;
        width: 80%; max-width: 400px; background-color: var(--primary);
        flex-direction: column; justify-content: center; align-items: center;
        transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5); padding-top: 60px;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 20px 0; width: 100%; text-align: center;}
    .nav-links a, .nav-links a:hover { color: var(--primary-foreground); text-shadow: none; }
    .nav-links a::after { display: none; }

    .burger-menu { display: block; z-index: 1001; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px;}
    .footer-grid p, .footer-grid a { margin-left: auto; margin-right: auto; }
}