@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
    /* Base Palette */
    --bg-base: #0b0f14;
    --bg-surface: #111827;
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.06);
    
    /* Accent Palette */
    --accent-primary: #c4a484;
    --accent-light: #d6bfa3;
    --accent-muted: #8fa3ad;
    --accent-ivory: #f5f1ea;
    
    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1320px;
    --radius-btn: 14px;
    --radius-card: 2px; /* Architectural sharp edges for cards */
    --radius-img: 4px;
    
    /* Spacing Base */
    --section-spacing: 120px;
}

/* =========================================
   RESET & GLOBAL
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* =========================================
   TYPOGRAPHY
========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.subtitle {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 1rem;
}

/* =========================================
   LAYOUT
========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* =========================================
   COMPONENTS
========================================= */

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    padding: 1rem 0;
    background: rgba(11, 15, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
    padding-bottom: 4px;
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-btn);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-light) 100%);
    color: var(--bg-base);
    box-shadow: 0 4px 15px rgba(196, 164, 132, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 164, 132, 0.25);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

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

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 1px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px; /* Offset for header */
}

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

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.hero-visual {
    position: relative;
    height: 80vh;
    border-radius: var(--radius-img);
    overflow: hidden;
}

.hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg-base) 0%, transparent 30%);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services / Glass Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-card);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
    border-color: rgba(196, 164, 132, 0.3);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
}

/* Portfolio Asymmetric Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-img);
    group: hover;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover img {
    transform: scale(1.03);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(11, 15, 20, 0.9), transparent);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.portfolio-overlay p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--accent-light);
}

/* Specific item placement for asymmetric look */
.item-large { grid-column: span 8; height: 600px; }
.item-tall { grid-column: span 4; height: 600px; }
.item-wide { grid-column: span 7; height: 450px; }
.item-square { grid-column: span 5; height: 450px; }

/* Contact Form */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 4rem;
    border-radius: var(--radius-card);
    backdrop-filter: blur(12px);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--accent-primary);
}

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

/* Footer */
.site-footer {
    border-top: 1px solid var(--bg-surface);
    padding: 4rem 0 2rem;
    background: var(--bg-base);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-links-group h4 {
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-links-group ul li {
    margin-bottom: 0.75rem;
}

.footer-links-group ul a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links-group ul a:hover {
    color: var(--accent-light);
}

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

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

/* Legal Pages Typography Layout */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h2 { margin-top: 3rem; font-size: 2rem; }
.legal-content p { margin-bottom: 1.5rem; }
.legal-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-secondary); }
.legal-content li { margin-bottom: 0.5rem; }

/* Page Header for Inner Pages */
.page-header {
    padding-top: 200px;
    padding-bottom: 80px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-surface), var(--bg-base));
}