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

:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-surface-light: #1e1e1e;
    --color-text: #f5f5f5;
    --color-text-muted: #a0a0a0;
    --color-accent: #6b8f9e;
    --color-accent-light: #8bb0bf;
    --color-border: #2a2a2a;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-max: 1200px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: url('../images/hero-bg.png') center/cover no-repeat fixed;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    transition: background var(--transition);
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 3rem;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.nav-links a:hover {
    opacity: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 3rem;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    opacity: 0.85;
    letter-spacing: 0.5px;
}

.hero-bottom {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    z-index: 1;
}

.hero-location {
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.6;
    letter-spacing: 1px;
    text-transform: uppercase;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

/* ===== About ===== */
.section-about {
    background: rgba(20, 20, 20, 0.65);
}

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

.about-text .lead {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-accent-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Sites Grid ===== */
.section-sites {
    background: rgba(10, 10, 10, 0.6);
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.site-card {
    display: block;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all var(--transition);
}

.site-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.site-card-inner {
    padding: 2rem;
}

.site-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.site-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.site-link {
    font-size: 0.85rem;
    color: var(--color-accent-light);
    font-weight: 500;
    transition: color var(--transition);
}

.site-card:hover .site-link {
    color: var(--color-text);
}

/* ===== Why Section ===== */
.section-why {
    background: rgba(20, 20, 20, 0.65);
}

.why-content {
    margin-top: 3rem;
}

.why-quote {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.5;
    padding: 2rem 0;
    border-left: 3px solid var(--color-accent);
    padding-left: 2rem;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.why-text p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    max-width: 700px;
}

/* ===== Contact ===== */
.section-contact {
    background: rgba(10, 10, 10, 0.6);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.contact-item a,
.contact-item p {
    font-size: 1.1rem;
    color: var(--color-text);
}

.contact-item a:hover {
    color: var(--color-accent-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition);
}

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

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--color-accent);
    color: var(--color-text);
    border: none;
    border-radius: 6px;
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    align-self: flex-start;
}

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

.form-status {
    margin-top: 1rem;
    font-size: 0.95rem;
    padding: 0;
    border-radius: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.form-status.success,
.form-status.error {
    max-height: 200px;
    opacity: 1;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-status.success {
    background: rgba(107, 207, 142, 0.1);
    border: 1px solid rgba(107, 207, 142, 0.35);
    color: #6bcf8e;
}

.form-status.error {
    background: rgba(207, 107, 107, 0.1);
    border: 1px solid rgba(207, 107, 107, 0.35);
    color: #cf8b8b;
}

/* ===== Footer ===== */
.footer {
    background: rgba(20, 20, 20, 0.7);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--color-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ===== Mobile Responsive ===== */

/* Tablet */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .nav {
        padding: 1.25rem 2rem;
    }

    .nav.scrolled {
        padding: 1rem 2rem;
    }

    .hero-content {
        padding: 0 2rem;
    }

    .hero-bottom {
        left: 2rem;
    }

    .section {
        padding: 6rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
    }

    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .nav {
        padding: 1.25rem 1.5rem;
    }

    .nav.scrolled {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

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

    .nav-links a {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    .hero-bottom {
        left: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .about-stats {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .stat {
        padding: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .sites-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .site-card-inner {
        padding: 1.5rem;
    }

    .why-quote {
        font-size: 1.1rem;
        padding-left: 1.25rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .about-stats {
        flex-direction: column;
    }

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

/* Fix for iOS - background-attachment:fixed doesn't work on mobile Safari */
@supports (-webkit-touch-callout: none) {
    body {
        background-attachment: scroll;
    }
}

@media (max-width: 1024px) {
    body {
        background-attachment: scroll;
        background-size: cover;
        background-position: center;
    }
}
