:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-card: #ffffff;
    
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    
    --accent: #1a1a1a; /* Elegant dark */
    --accent-hover: #4a4a4a;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

[hidden] { display: none !important; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.form-error { color: #a02020; margin-top: 1rem; }
.submit-btn:disabled { opacity: 0.6; cursor: wait; }

.analytics-consent {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 620px;
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    z-index: 1100;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid #ddd;
    padding: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.analytics-consent h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.analytics-consent p { font-size: 0.9rem; }
.analytics-consent a, .analytics-settings { text-decoration: underline; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.analytics-consent button { cursor: pointer; font-family: inherit; }
.analytics-settings {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0.5rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 400;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.eyebrow {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    display: block;
    margin-bottom: 1rem;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #ffffff;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--accent);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--text-secondary);
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

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

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-btn {
    padding: 0.6rem 1.5rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding: 10rem 5% 4rem;
    max-width: 1700px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 6rem;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    margin: 0;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero h1 em {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 0 3rem 0;
}

.hero-actions {
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 1.1;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.hero-img {
    width: 100%; 
    max-width: 850px; 
    height: auto;
    max-height: 85vh; 
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

/* --- Services Section --- */
.services {
    padding: 8rem 5%;
    background-color: var(--bg-secondary);
}

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

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.img-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .img-container img {
    transform: scale(1.05);
}

.card-content {
    padding: 2.5rem 2rem;
}

.card-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- About Section --- */
.about-section {
    padding: 8rem 5%;
    background-color: var(--bg-card);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-img {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

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

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
}

/* --- Contact Section --- */
.contact-section {
    padding: 8rem 5%;
    background-color: var(--bg-primary);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
}

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

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.contact-details strong {
    font-weight: 500;
    color: var(--accent);
    margin-right: 0.5rem;
}

.contact-form-wrapper {
    flex: 1.2;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
}

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

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    cursor: pointer;
    margin-top: 1rem;
}

.form-success {
    text-align: center;
    padding: 3rem 0;
}

.form-success h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contact-form-wrapper {
        width: 100%;
        padding: 2rem;
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-secondary);
    padding: 6rem 5% 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 350px;
    font-size: 0.95rem;
}

.footer-links h4, .footer-social h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a, .footer-social a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-links a:hover, .footer-social a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
        gap: 3rem;
    }
    
    .hero-content {
        margin: 0 auto; /* Center wrapper */
    }
    
    .hero h1 {
        font-size: 4rem; /* Scale down heading */
    }
    
    .hero p {
        margin: 0 auto 2.5rem; /* Center margin */
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn {
        display: none;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
