/* ============================================
   HOUSE OF ALARCH - LUXURY DESIGN SYSTEM
   Scottish Aristocratic Elegance meets Spiritual Sophistication
   ============================================ */

/* ============================================
   TYPOGRAPHY - LUXURY EDITORIAL
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=Manrope:wght@300;400;500;600;700&display=swap');

/* ============================================
   CSS RESET & BASE
   ============================================ */

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

:root {
    /* Colour Palette - Obsidian & Gold */
    --obsidian: #0a0a0a;
    --charcoal: #1a1a1a;
    --deep-espresso: #2a2520;
    --aged-gold: #c9a961;
    --antique-brass: #b8956a;
    --soft-ivory: #f5f3ef;
    --muted-emerald: #3d5a4c;
    --whisky-amber: #8b6f47;
    --highland-mist: #6b7280;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    --space-3xl: 12rem;
    
    /* Transitions */
    --transition-elegant: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s ease-out;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--soft-ivory);
    background-color: var(--obsidian);
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--soft-ivory);
}

h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
}

h3 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
}

h4 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
}

h5 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-body);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.8;
    color: rgba(245, 243, 239, 0.85);
}

.lead-text {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.7;
    font-weight: 300;
    color: var(--soft-ivory);
}

.label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--aged-gold);
}

.quote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-style: italic;
    font-weight: 300;
    line-height: 1.5;
    color: var(--aged-gold);
}

/* ============================================
   NAVIGATION - LUXURY MINIMAL
   ============================================ */

.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0) 100%);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.nav-wrapper.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 1px 0 rgba(201, 169, 97, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    max-width: 1800px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--aged-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    color: var(--soft-ivory);
}

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

.nav-links li {
    position: relative;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--soft-ivory);
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--aged-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--aged-gold);
}

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

.nav-links a.active {
    color: var(--aged-gold);
}

/* Dropdown Menu */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-links .dropdown-toggle::before {
    content: '▾';
    font-size: 0.8rem;
    margin-left: 0.2rem;
}

.nav-links .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--deep-charcoal);
    border: 1px solid rgba(194, 162, 109, 0.2);
    min-width: 220px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 1rem;
}

.nav-links .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

.nav-links .dropdown-menu a::after {
    display: none;
}

.nav-links .dropdown-menu a:hover {
    background: rgba(194, 162, 109, 0.1);
}

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

.menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--aged-gold);
    transition: var(--transition-smooth);
}

/* ============================================
   HERO SECTIONS - CINEMATIC
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5%;
    max-width: 1200px;
    animation: fadeInUp 1.2s ease-out;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-content .lead-text {
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   BUTTONS - LUXURY CTAs
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-elegant);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--aged-gold);
    color: var(--obsidian);
    border: 1px solid var(--aged-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--aged-gold);
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--soft-ivory);
    border: 1px solid var(--soft-ivory);
}

.btn-secondary:hover {
    background: var(--soft-ivory);
    color: var(--obsidian);
    box-shadow: 0 0 30px rgba(245, 243, 239, 0.2);
}

.btn-ghost {
    background: transparent;
    color: var(--aged-gold);
    border: 1px solid var(--aged-gold);
}

.btn-ghost:hover {
    background: var(--aged-gold);
    color: var(--obsidian);
}

/* ============================================
   SECTIONS - EDITORIAL LAYOUTS
   ============================================ */

section {
    padding: var(--space-2xl) 5%;
    position: relative;
}

.section-dark {
    background: var(--obsidian);
}

.section-charcoal {
    background: var(--charcoal);
}

.section-espresso {
    background: var(--deep-espresso);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header .label {
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    margin-bottom: 1.5rem;
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   GRID SYSTEMS - SOPHISTICATED LAYOUTS
   ============================================ */

.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-asymmetric {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    align-items: center;
}

/* ============================================
   CARDS - LUXURY MINIMAL
   ============================================ */

.card {
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(201, 169, 97, 0.15);
    padding: var(--space-lg);
    transition: var(--transition-elegant);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--aged-gold), transparent);
    opacity: 0;
    transition: var(--transition-elegant);
}

.card:hover {
    border-color: rgba(201, 169, 97, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: var(--space-md);
    filter: grayscale(0.3) brightness(0.8);
    transition: var(--transition-elegant);
}

.card:hover .card-image {
    filter: grayscale(0) brightness(1);
}

.card .label {
    display: block;
    margin-bottom: 1rem;
}

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

.card p {
    margin-bottom: 1.5rem;
}

/* ============================================
   IMAGE PANELS - ATMOSPHERIC
   ============================================ */

.image-panel {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.image-panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(42, 37, 32, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
}

.image-panel-content {
    max-width: 800px;
    text-align: center;
}

/* ============================================
   TESTIMONIALS - ELEGANT
   ============================================ */

.testimonial {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.testimonial .quote {
    margin-bottom: 2rem;
}

.testimonial-author {
    font-size: 1rem;
    font-weight: 500;
    color: var(--aged-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--highland-mist);
    margin-top: 0.5rem;
}

/* ============================================
   FORMS - CONCIERGE STYLE
   ============================================ */

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--aged-gold);
    margin-bottom: 0.75rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--soft-ivory);
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(201, 169, 97, 0.2);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--aged-gold);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.1);
}

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

/* ============================================
   FOOTER - REFINED
   ============================================ */

footer {
    background: var(--obsidian);
    border-top: 1px solid rgba(201, 169, 97, 0.15);
    padding: var(--space-xl) 5% var(--space-lg);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--aged-gold);
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--soft-ivory);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--aged-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(201, 169, 97, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--highland-mist);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 50%;
    color: var(--aged-gold);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--aged-gold);
    color: var(--obsidian);
    border-color: var(--aged-gold);
}

/* ============================================
   TEXTURE & ATMOSPHERE
   ============================================ */

.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.vignette {
    position: relative;
}

.vignette::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(10, 10, 10, 0.8) 100%);
    pointer-events: none;
}

/* ============================================
   ANIMATIONS - ELEGANT MOTION
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    :root {
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }
    
    .grid-asymmetric {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1.5rem 5%;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 2rem;
        transition: var(--transition-smooth);
        border-left: 1px solid rgba(201, 169, 97, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .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(8px, -8px);
    }
    
    section {
        padding: var(--space-xl) 5%;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 3rem;
        --space-2xl: 4rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .card {
        padding: var(--space-md);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.gold-accent { color: var(--aged-gold); }
.ivory-text { color: var(--soft-ivory); }

.divider {
    width: 60px;
    height: 1px;
    background: var(--aged-gold);
    margin: 2rem auto;
}

.divider-full {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.3), transparent);
    margin: var(--space-lg) 0;
}
