/* Base Styles */
:root {
    --color-copper: #B85C38;
    --color-copper-dark: #9B4E2F;
    --color-taupe: #4A4238;
    --color-sand: #F7F5F2;
    --color-sky: #7C98B3;
    --color-sage: #8B8B83;
    --color-charcoal: #2D2D2A;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-charcoal);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/sandstone-texture.jpg') fixed center center;
    background-size: cover;
    filter: brightness(0.7) contrast(0.5) blur(0.5px);
    opacity: 0.4;
    z-index: -1;
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-taupe);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(45, 45, 42, 0.4), rgba(45, 45, 42, 0.4)), url('../splash.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 100px), 0 100%);
}

.hero-logo {
    width: 500px;
    max-width: 90vw;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
}

.hero h1 {
    color: white;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.5rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
}

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

.btn-primary:hover {
    background: var(--color-copper-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    padding: 8rem 0;
    background: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 4px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(45, 45, 42, 0.3) 0%, rgba(45, 45, 42, 0.8) 100%);
    z-index: 1;
}

.feature-card h3,
.feature-card p,
.feature-card .feature-link {
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.card-1 {
    background-image: url('../images/card-bg1.jpg');
}

.card-2 {
    background-image: url('../images/card-bg2.jpg');
}

.card-3 {
    background-image: url('../images/card-bg3.jpg');
}

.feature-link {
    color: var(--color-copper);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

.feature-link:hover {
    background: white;
    transform: translateY(-2px);
}

/* Split Section */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.split-image {
    background-size: cover;
    background-position: center;
}

.split-content {
    padding: 4rem;
    display: flex;
    align-items: center;
    background: white;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-copper);
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
    background: var(--color-taupe);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-copper);
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Angled Sections */
.angled-section-top {
    position: relative;
    width: 100%;
    height: 0;
    border-style: solid;
    border-width: 0 0 100px 100vw;
    border-color: transparent transparent rgba(247, 245, 242, 0.3) transparent;
}

.angled-section-bottom {
    position: relative;
    width: 100%;
    height: 0;
    border-style: solid;
    border-width: 100px 100vw 0 0;
    border-color: rgba(247, 245, 242, 0.3) transparent transparent transparent;
}

.angled-section-contact-top {
    position: relative;
    width: 100%;
    height: 0;
    border-style: solid;
    border-width: 0 0 100px 100vw;
    border-color: transparent transparent var(--color-sand) transparent;
}

/* Dual Audience Section */
.dual-audience-section {
    background: transparent;
    padding: 5rem 0;
    position: relative;
    margin-top: -1px;
    margin-bottom: -1px;
}

.dual-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    position: relative;
}

.audience-card {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(74, 66, 56, 0.2);
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.audience-card h2 {
    margin-bottom: 1.25rem;
}

.audience-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.audience-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.audience-list li::before {
    content: "•";
    color: var(--color-copper);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -0.2em;
}

.audience-list li.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: var(--color-sand);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

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

input, select, textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(74, 66, 56, 0.2);
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-copper);
}

textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--color-charcoal);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    opacity: 0.8;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-links a {
    display: block;
    color: white;
    text-decoration: none;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-copper);
}

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

.footer-legal a {
    color: white;
    text-decoration: none;
    margin-left: 2rem;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: var(--color-copper);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--color-taupe);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
}

.modal-body {
    padding: 2rem;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
    line-height: 1.6;
}

.modal-body h3 {
    color: var(--color-taupe);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.close {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
    padding: 0;
    background: none;
    border: none;
}

.close:hover,
.close:focus {
    color: var(--color-copper);
    transform: scale(1.1);
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: calc(85vh - 100px);
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
    .feature-grid, .service-grid { grid-template-columns: repeat(2, 1fr); }
    .split-section { grid-template-columns: 1fr; }
    .split-image { height: 400px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .feature-grid, .service-grid, .contact-grid, .footer-grid, .dual-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    h1 { font-size: 3rem; }
    .hero-logo { width: 350px; }
    .hero h1 { font-size: 2.5rem; }
    
    /* Dual audience section mobile adjustments */
    .dual-audience-section {
        padding: 3rem 0;
    }
    
    .audience-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    /* Less severe angled transitions on mobile */
    .hero {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%);
    }
    
    .angled-section-top {
        border-width: 0 0 50px 100vw;
    }
    
    .angled-section-bottom {
        border-width: 50px 100vw 0 0;
    }
    
    .angled-section-contact-top {
        border-width: 0 0 50px 100vw;
    }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-subtitle { font-size: 1.2rem; }
    .btn { width: 100%; margin-bottom: 1rem; text-align: center; }
    .hero-logo { width: 280px; }
    .hero h1 { font-size: 2rem; }
    
    /* Additional dual audience mobile optimizations */
    .dual-audience-section {
        padding: 2rem 0;
    }
    
    .dual-grid {
        gap: 1.5rem;
    }
    
    .audience-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .audience-card h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Even more subtle angles for small mobile screens */
    .hero {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%);
    }
    
    .angled-section-top {
        border-width: 0 0 30px 100vw;
    }
    
    .angled-section-bottom {
        border-width: 30px 100vw 0 0;
    }
    
    .angled-section-contact-top {
        border-width: 0 0 30px 100vw;
    }
}