/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --bg-color: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --accent-color: #000000;
    --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Crucial for preventing responsive overflow */
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* Prevents horizontal scrolling on narrow devices */
}

a {
    text-decoration: none;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem); /* Fluid side padding */
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    flex-wrap: wrap; /* Allows nav links to drop below logo if needed on tablets */
    justify-content: space-between;
    align-items: center;
    padding: clamp(1rem, 3vw, 2rem);
    position: absolute; 
    width: 100%;
    top: 0;
    z-index: 10;
    gap: 1.5rem;
}

.contact-page .navbar {
    position: relative;
    border-bottom: 1px solid #eaeaea;
}

.logo {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 700;
    letter-spacing: 2px;
}

body:not(.contact-page) .logo,
body:not(.contact-page) .nav-links a:not(.btn-primary) {
    color: #ffffff;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem; /* Better touch-target spacing for mobile */
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0; /* Makes links easier to tap on phones */
}

.btn-primary {
    border: 1px solid #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevents button text from breaking awkwardly */
}

body:not(.contact-page) .btn-primary:hover {
    background-color: #ffffff;
    color: #000000;
}

.contact-page .btn-primary {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.contact-page .btn-primary:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* --- HERO SECTION (Page 1) --- */
.hero-section {
    /* Uses dynamic viewport height (svh) to fix iOS/Android browser bar issues */
    min-height: 100svh; 
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.hero-content {
    width: 100%;
    max-width: 800px;
    color: #ffffff;
    margin-top: clamp(2rem, 10vw, 50px);
}

.hero-content h1 {
    /* Fluid typography: scales dynamically between 2.5rem and 4.5rem */
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-content h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 300;
    color: #cccccc;
    line-height: 1.4;
}

/* --- OVERVIEW SECTION (Page 1) --- */
.overview-section {
    padding: clamp(4rem, 10vw, 8rem) 0; /* Fluid vertical padding */
}

.lead-text {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.overview-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 800px;
}

.core-focus {
    border-top: 1px solid #eaeaea;
    padding-top: 3rem;
}

.core-focus h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.core-focus ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allows bullets to stack on smaller screens */
    gap: clamp(1.5rem, 4vw, 3rem);
}

.core-focus li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
}

.core-focus li::before {
    content: "—";
    margin-right: 10px;
    color: var(--accent-color);
}

/* --- CONTACT SECTION (Page 2) --- */
.contact-section {
    padding: clamp(4rem, 10vw, 6rem) 0;
}

.contact-container {
    display: grid;
    /* MAGIC GRID: Automatically creates 2 columns on desktop, 1 on mobile/tablet portrait */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: clamp(2rem, 5vw, 4rem);
}

.contact-info h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.direct-contact p {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.email-link {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 300;
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 5px;
    word-break: break-all; /* Prevents long emails from breaking mobile layouts */
}

.custom-form {
    background-color: #f9f9f9;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: 4px;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    -webkit-appearance: none; /* Removes weird default iOS styles on inputs */
    appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-submit {
    background-color: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
    -webkit-appearance: none;
}

.btn-submit:hover {
    background-color: #333333;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: clamp(2rem, 5vw, 3rem);
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-top: 1px solid #eaeaea;
}

/* --- SMALL MOBILE EXCEPTIONS --- */
@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .nav-links {
        justify-content: center;
        width: 100%;
    }
    
    .btn-primary {
        width: 100%;
        text-align: center;
    }
}