/* 
   Ivy Assignment Ashford - Professional Academic Theme
   Visual Direction: British Academic Excellence
   Colors: Muted Navy, Deep Forest Green, Warm Ivory, Charcoal
*/

:root {
    --primary: #1B2B48; /* Muted Navy */
    --primary-light: #2A3F64;
    --accent: #2E5A39; /* Deep Forest Green */
    --accent-hover: #3D7A4D;
    --bg-main: #F9F7F2; /* Warm Ivory */
    --bg-alt: #E8E2D6; /* Sand */
    --text-main: #2C2C2C; /* Charcoal */
    --text-muted: #555555;
    --white: #FFFFFF;
    --border: rgba(27, 43, 72, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --header-height: 90px;
    --container-width: 1200px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.text-center {
    text-align: center;
}

.section-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 15px;
}

.section-heading {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    line-height: 1.2;
}

.section-subtext {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    padding: 16px 35px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(27, 43, 72, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-main);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.header.scrolled {
    height: 70px;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: var(--primary);
}

.logo-accent {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.btn-header {
    padding: 10px 20px;
    font-size: 0.8rem;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

/* Hero Section - CRITICAL SPACING RULE */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height); /* Ensure Hero starts below header */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-main) 30%, rgba(249, 247, 242, 0.7) 60%, transparent 100%);
}

.hero-container {
    z-index: 1;
}

.hero-content {
    max-width: 650px;
    /* CRITICAL: Extra padding to ensure H1 never overlaps menu */
    padding-top: 80px; 
    padding-bottom: 80px;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 30px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
}

.trust-item i {
    color: var(--accent);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-features {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: var(--primary);
}

.feat-item i {
    font-size: 1.5rem;
    color: var(--accent);
}

.about-visual {
    position: relative;
}

.image-frame {
    position: relative;
    padding: 20px;
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.image-accent-overlay {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-color: var(--accent);
    z-index: -1;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 50px 40px;
    border-bottom: 4px solid transparent;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--accent);
    box-shadow: var(--shadow);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Process Section */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.process-item {
    position: relative;
    text-align: center;
}

.process-number {
    font-family: 'Libre Baskerville', serif;
    font-size: 4rem;
    color: rgba(46, 90, 57, 0.1);
    line-height: 1;
    margin-bottom: -20px;
}

.process-item h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.process-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background-color: var(--white);
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.2;
    margin-bottom: 20px;
}

.review-card p {
    font-style: italic;
    margin-bottom: 25px;
    color: var(--text-main);
}

.review-author {
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
}

.contact-list {
    margin: 40px 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 5px;
}

.contact-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    font-weight: 600;
    color: var(--primary);
}

.map-wrapper {
    margin-top: 30px;
    border: 1px solid var(--border);
    padding: 10px;
    background-color: var(--white);
}

.form-box {
    background-color: var(--white);
    padding: 60px;
    box-shadow: var(--shadow);
}

.form-box h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.form-box p {
    margin-bottom: 35px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--white);
}

.form-success-msg {
    text-align: center;
    padding: 40px 0;
}

.form-success-msg i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 20px;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 100px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.footer-brand p {
    opacity: 0.7;
    max-width: 500px;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-nav-col ul li {
    margin-bottom: 15px;
}

.footer-nav-col ul li a {
    opacity: 0.7;
    font-weight: 500;
}

.footer-nav-col ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-contact-info p {
    margin-bottom: 5px;
}

.footer-contact-info a {
    color: var(--white);
}

/* Animations */
.reveal-up, .reveal-left, .reveal-right, .reveal-fade {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.active-reveal {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 1024px) {
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .services-grid, .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-main);
        transition: var(--transition);
        padding: 50px;
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
    }
    
    .header-action {
        display: none;
    }
    
    .hero {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-content {
        padding-top: 40px;
        margin: 0 auto;
    }
    
    .hero h1 { font-size: 2.5rem; }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }
    
    .services-grid, .reviews-grid, .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .form-box {
        padding: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero-btns { flex-direction: column; }
}
