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

:root {
    --salient-red: #E63946;
    --salient-dark: #1a1a1a;
    --salient-grey: #f8f9fa;
    --text-dark: #2d3748;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --font-serif: 'Cormorant Garamond', Garamond, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

/* ==================== */
/* Navigation */
/* ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    gap: 2rem;
}

.logo {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--salient-dark);
    transition: color 0.3s ease;
    font-family: var(--font-serif);
    letter-spacing: -0.02em;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo:hover .logo-text {
    color: var(--salient-red);
}

.logo-subtitle {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 300;
    margin-top: 0.15rem;
}

.nav-contact {
    display: none;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--salient-red);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: 0.5rem;
}

.nav-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    letter-spacing: 0.04em;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--salient-red);
}

.nav-menu li a.active {
    border-bottom-color: var(--salient-red);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--salient-dark);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Desktop Navigation */
@media (min-width: 1024px) {
    .nav-contact {
        display: flex;
    }
    
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
@media (max-width: 1023px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li a {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: none;
    }
    
    .nav-menu li a.active {
        background-color: rgba(230, 57, 70, 0.1);
    }
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
    position: relative;
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, rgba(20, 22, 26, 0.35) 0%, rgba(20, 22, 26, 0.35) 100%), url('../images/meadowbrook-1116.jpg');
    background-size: cover, cover;
    background-position: center, center;
    margin-top: 60px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(to right, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: var(--font-serif);
    letter-spacing: 0.01em;
    text-shadow:
        0 2px 6px rgba(0,0,0,0.35),
        0 0 1px rgba(0,0,0,0.6);
    -webkit-text-stroke: 0.2px rgba(0,0,0,0.35);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    -webkit-text-stroke: 0.2px rgba(0,0,0,0.25);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== */
/* Buttons */
/* ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.938rem;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--salient-red);
    color: white;
    box-shadow: 0 4px 14px rgba(230, 57, 70, 0.3);
}

.btn-primary:hover {
    background-color: #d32f3e;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: white;
    color: var(--salient-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--salient-red);
    color: var(--salient-red);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1.063rem;
}

/* ==================== */
/* Sections */
/* ==================== */
.section {
    padding: 5rem 0;
}

.section-grey {
    background-color: var(--salient-grey);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--salient-dark);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    letter-spacing: 0.01em;
    font-optical-sizing: auto;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* ==================== */
/* Services Grid */
/* ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--salient-red);
}

.service-card-highlight {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border-color: var(--salient-red);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--salient-red) 0%, #ff6b7a 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--salient-dark);
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
}

.service-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    color: var(--salient-red);
    font-weight: 600;
    font-size: 0.938rem;
    transition: gap 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.service-card:hover .service-link {
    gap: 0.5rem;
}

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

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-content {
    max-width: 550px;
}

.about-text {
    font-size: 1.063rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: 400px;
    border-radius: 1rem;
    overflow: hidden;
}

.about-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.about-placeholder svg {
    margin-bottom: 1rem;
}

.about-placeholder p {
    font-weight: 600;
    font-size: 1.125rem;
}

/* ==================== */
/* CTA Section */
/* ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--salient-dark) 0%, #2d3748 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    letter-spacing: 0.01em;
}

.cta-text {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d3748 100%);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.938rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-highlight {
    color: var(--salient-red);
    font-weight: 600;
    font-size: 0.875rem;
}

.footer-laces-logo {
    display: block;
    margin-top: 0.5rem;
    width: 120px;
    height: auto;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.938rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--salient-red);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.938rem;
}

.footer-contact svg {
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--salient-red);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--salient-red);
}

/* ==================== */
/* Page Hero (for internal pages) */
/* ==================== */
.page-hero {
    color: white;
    margin-top: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(230, 57, 70, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(230, 57, 70, 0.1) 0%, transparent 50%);
}

.page-hero-content {
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
    letter-spacing: 0.01em;
    font-optical-sizing: auto;
    color: #ffffff;
    text-shadow:
        0 2px 6px rgba(0,0,0,0.35),
        0 0 1px rgba(0,0,0,0.6);
    -webkit-text-stroke: 0.2px rgba(0,0,0,0.35);
}

.page-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 3px rgba(0,0,0,0.25);
    -webkit-text-stroke: 0.2px rgba(0,0,0,0.25);
}

.page-hero {
    background-size: cover;
    background-position: center;
}

.page-hero-services {
    background-image: linear-gradient(135deg, rgba(20, 22, 26, 0.45) 0%, rgba(20, 22, 26, 0.45) 100%), url('../images/ej-guidelines.jpg');
}

.page-hero-visualization {
    background-image: linear-gradient(135deg, rgba(20, 22, 26, 0.45) 0%, rgba(20, 22, 26, 0.45) 100%), url('../images/maplecrofte-100605.jpg');
}

.page-hero-community-planning {
    background-image: linear-gradient(135deg, rgba(20, 22, 26, 0.45) 0%, rgba(20, 22, 26, 0.45) 100%), url('../images/sign-package-7-31-07-as-submitted.jpg');
}

.page-hero-site-planning {
    background-image: linear-gradient(135deg, rgba(20, 22, 26, 0.45) 0%, rgba(20, 22, 26, 0.45) 100%), url('../images/maplecrofte-100605.jpg');
}

.page-hero-contact {
    background-image: linear-gradient(135deg, rgba(20, 22, 26, 0.45) 0%, rgba(20, 22, 26, 0.45) 100%), url('../images/meadowbrook-1116.jpg');
}

/* ==================== */
/* Content Section */
/* ==================== */
.content-section {
    padding: 5rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--salient-dark);
    margin: 2rem 0 1rem;
    font-family: var(--font-serif);
    letter-spacing: -0.01em;
}

.content-wrapper p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-wrapper ul {
    list-style: none;
    margin: 1.5rem 0;
}

.content-wrapper li {
    font-size: 1.063rem;
    color: var(--text-light);
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.content-wrapper li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--salient-red);
    font-weight: 700;
}

/* ==================== */
/* Contact Form */
/* ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.contact-form {
    background-color: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--salient-dark);
    margin-bottom: 0.5rem;
    font-size: 0.938rem;
}

.form-label .required {
    color: var(--salient-red);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--salient-red);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--salient-red);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.063rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background-color: #d32f3e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.contact-info {
    background: linear-gradient(135deg, var(--salient-grey) 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 1rem;
    height: fit-content;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--salient-dark);
    margin-bottom: 1.5rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item svg {
    flex-shrink: 0;
    color: var(--salient-red);
    margin-top: 0.25rem;
}

.contact-info-content h4 {
    font-weight: 600;
    color: var(--salient-dark);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-info-content p,
.contact-info-content a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.938rem;
}

.contact-info-content a:hover {
    color: var(--salient-red);
}

/* ==================== */
/* Animations */
/* ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in:nth-child(2) {
    animation-delay: 0.1s;
}

.animate-fade-in:nth-child(3) {
    animation-delay: 0.2s;
}

/* ==================== */
/* Gallery Grid */
/* ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==================== */
/* Utility Classes */
/* ==================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
