/* CSS Variables */
:root {
    --primary: #8b4513;
    --primary-light: #a0522d;
    --primary-dark: #6d340d;
    --background: #f7f6f3;
    --secondary: #f0ebe6;
    --text-dark: #3a2c2a;
    --text-muted: #80786f;
    --border: #e0d9d0;
    --white: #fefdfb;
    
    --font-serif: 'Georgia', 'Garamond', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.2;
}

.italic {
    font-style: italic;
}

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

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
}

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

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
}

.section-header {
    max-width: 42rem;
    margin: 0 auto 3rem;
}

.section-header h2 {
    font-size: 2rem;
    margin: 1rem 0;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
}

.section-header p {
    color: var(--text-muted);
    margin-top: 1.25rem;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

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

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: none;
    text-decoration: underline;
    padding: 0;
}

.btn-secondary:hover {
    color: var(--primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 0.875rem;
}

.btn-mobile {
    width: 100%;
    text-align: center;
}

/* Header Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
}

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

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2.25rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    color: rgba(58, 44, 42, 0.7);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
}

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

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

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

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--background);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.nav-mobile.active {
    display: flex;
}

.nav-link-mobile {
    font-size: 1.25rem;
    font-weight: 500;
    font-family: var(--font-serif);
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
    background: url('../images/matchmaking-hero.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(58, 44, 42, 0.55), rgba(58, 44, 42, 0.65));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(254, 253, 251, 0.1);
    border: 1px solid rgba(254, 253, 251, 0.3);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.055em;
    backdrop-filter: blur(4px);
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 0.875rem;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.05;
    font-weight: 600;
    margin: 1.5rem 0;
}

@media (min-width: 640px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 4rem;
    }
}

.hero p {
    max-width: 28rem;
    margin: 1.5rem auto;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.25rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    animation: bounce-slow 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

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

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

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border: 1px solid var(--primary);
    border-left: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
    border-radius: 0.25rem;
    overflow: hidden;
    background-color: var(--white);
    box-shadow: -1rem -1rem 0 rgba(139, 69, 19, 0.1);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: -1rem;
    left: -1rem;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(139, 69, 19, 0.4);
    pointer-events: none;
    z-index: -1;
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.stats-box {
    position: absolute;
    bottom: -1.5rem;
    right: 1rem;
    background-color: var(--primary);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.about-content h2 {
    font-size: 2rem;
    margin: 1rem 0;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .about-content h2 {
        font-size: 2.5rem;
    }
}

.about-text {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--text-muted);
}

.about-text p {
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Why Choose Section */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
}

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

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

.feature-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-0.5rem);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(139, 69, 19, 0.1);
    color: var(--primary);
    font-size: 1.75rem;
    font-weight: 600;
    border-radius: 0.25rem;
}

.feature-card:hover .feature-icon {
    background-color: var(--primary);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    font-family: var(--font-serif);
    font-weight: 600;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* How It Works Section */
.steps-container {
    margin-top: 5rem;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    bottom: 0;
    width: 1px;
    background-color: var(--border);
}

@media (min-width: 768px) {
    .steps-container::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.step {
    margin-bottom: 4rem;
    position: relative;
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .step {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.step::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 2rem;
    width: 1rem;
    height: 1rem;
    background-color: var(--primary);
    border: 4px solid var(--background);
    border-radius: 50%;
    z-index: 2;
}

@media (min-width: 768px) {
    .step::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.step:nth-child(even) {
    margin-left: 0;
}

@media (min-width: 768px) {
    .step:nth-child(even) .step-content {
        order: 1;
        text-align: right;
        padding-left: 2rem;
    }

    .step:nth-child(even) .step-image {
        order: 2;
    }

    .step:nth-child(odd) .step-content {
        padding-right: 2rem;
    }
}

.step-image {
    overflow: hidden;
    border-radius: 0.25rem;
    height: 18rem;
}

@media (min-width: 768px) {
    .step-image {
        height: 20rem;
    }
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.step-image:hover img {
    transform: scale(1.05);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 600;
    color: rgba(139, 69, 19, 0.15);
}

.step-content h3 {
    font-size: 1.875rem;
    margin: 0.5rem 0;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

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

.contact-info h2 {
    font-size: 2rem;
    margin: 1rem 0;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .contact-info h2 {
        font-size: 2.5rem;
    }
}

.contact-info > p {
    color: var(--text-muted);
    margin: 1.25rem 0 2rem;
    max-width: 28rem;
    line-height: 1.8;
}

.contact-details {
    list-style: none;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    color: var(--text-muted);
}

.contact-value {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0.25rem;
}

.contact-image {
    position: relative;
    overflow: hidden;
    border-radius: 0.25rem;
    height: 20rem;
}

@media (min-width: 768px) {
    .contact-image {
        height: 24rem;
    }
}

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

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

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    grid-column: 1 / -1;
    max-width: 20rem;
}

@media (min-width: 768px) {
    .footer-brand {
        grid-column: auto;
        grid-row: auto;
    }
}

.footer-logo {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.25rem;
}

.footer-links,
.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-contact li {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

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

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

    .hero p {
        font-size: 0.875rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .about-content h2,
    .contact-info h2 {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .step-number {
        font-size: 2.5rem;
    }

    .step-content h3 {
        font-size: 1.25rem;
    }
}
