:root {
    --color-bg-dark: #121415;
    --color-bg-contact: #f2f3ef;
    --color-text-light: #f5f5f5;
    --color-text-dark: #1a1a1a;
    --color-text-muted: #888888;
    --color-gold: #c9a96e;
    --color-gold-hover: #b5955a;
    --color-border-dark: rgba(255, 255, 255, 0.15);
    --color-border-light: rgba(0, 0, 0, 0.15);

    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Animation Easing Curves */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

    /* Animation Durations */
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 600ms;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-light);
    background-color: var(--color-bg-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.1;
}

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

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

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

.gold-text {
    color: var(--color-gold);
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.eyebrow.gold {
    color: var(--color-gold);
}

hr.divider {
    border: 0;
    height: 1px;
    background-color: var(--color-border-dark);
    margin: 1rem 0;
}

/* Buttons (with click and hover animations) */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    /* transition properties for hover */
    transition: transform var(--duration-fast) var(--ease-out),
        background-color var(--duration-fast) ease,
        border-color var(--duration-fast) ease,
        color var(--duration-fast) ease;
}

.btn:active {
    /* Click feedback scaling */
    transform: scale(0.96);
}

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

.btn-primary:hover {
    background-color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border-dark);
}

.btn-outline:hover {
    border-color: var(--color-text-light);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid var(--color-border-dark);
}

.btn-outline-light:hover {
    border-color: var(--color-text-light);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0; /* Reduced padding to keep navbar from being too bulky */
    z-index: 1000;
    transition: padding var(--duration-base) var(--ease-out),
        background-color var(--duration-base) var(--ease-out),
        border-bottom var(--duration-base) var(--ease-out);
    border-bottom: 1px solid transparent;
}

/* Sticky Header Scrolled State */
.header.scrolled {
    padding: 10px 0; /* Very slim navbar on scroll */
    background-color: var(--color-bg-dark);
    border-bottom: 1px solid var(--color-border-dark);
}

.header.scrolled .site-logo {
    height: 95px; /* Keeps the logo prominently large even when scrolled */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    height: 120px; /* Much larger for better visibility */
    width: auto;
    display: block;
    transition: height var(--duration-base) var(--ease-out), transform var(--duration-fast) var(--ease-out);
    /* The uploaded logo has dark text. This filter converts it to pure white for the dark theme */
    filter: brightness(0) invert(1);
}

.logo:hover .site-logo {
    transform: scale(0.98);
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.9rem;
    transition: color var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

/* Hide 'Our focus' text on mobile to emphasize 'Contact us' button */
@media (max-width: 767px) {
    .nav-link {
        display: none;
    }

    .nav {
        gap: 1rem;
    }
}

.nav-link:hover {
    color: var(--color-gold);
}

.nav-link:active {
    opacity: 0.7;
}

/* Hero */
.hero {
    padding: 200px 0 100px;
    /* Increased top padding significantly so it doesn't overlap the large logo */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.hero-desc {
    font-size: 1.15rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

/* Serving area in Hero */
.serving-area {
    margin-top: 4rem;
}

.services-quick-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.services-quick-links a {
    font-size: 0.9rem;
    color: #cccccc;
    transition: color var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.services-quick-links a:hover {
    color: var(--color-gold);
}

.services-quick-links a:active {
    opacity: 0.7;
}

.services-quick-links span {
    color: var(--color-gold);
    margin-right: 0.5rem;
    font-family: var(--font-sans);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    display: flex;
    align-items: flex-end;
    padding: 2.5rem;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/Hero_Crystalline.png');
    background-size: cover;
    background-position: right;
    /* Remove blue tint, but keep the natural brightness of the crystals */
    filter: grayscale(100%);
    z-index: 1;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Only fade the top-left corner into the background, leaving the rest of the material fully visible */
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, transparent 40%);
    z-index: 2;
}

.image-overlay-text {
    position: relative;
    z-index: 3;
    background: transparent;
}

.image-overlay-text p {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1.2;
}

/* Focus Intro Section */
.focus-intro {
    padding: 80px 0 60px;
    border-top: 1px solid var(--color-border-dark);
}

.focus-intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .focus-intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.focus-intro-right p {
    font-size: 1.15rem;
    color: #cccccc;
    max-width: 450px;
    margin-top: 3.5rem;
    /* align with heading */
}

/* Focus Details */
.focus-details {
    padding-bottom: 120px;
}

.focus-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .focus-details-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.focus-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.focus-item p {
    color: #cccccc;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    background-color: var(--color-bg-contact);
    color: var(--color-text-dark);
    padding: 100px 0;
}

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

@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 6rem;
    }
}

.contact-info .eyebrow {
    color: var(--color-text-dark);
}

.contact-info h2 {
    margin-bottom: 2rem;
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #444;
}

.contact-details {
    margin-top: 2rem;
}

.email-link {
    font-size: 1.1rem;
    border-bottom: 1px solid var(--color-text-dark);
    padding-bottom: 4px;
    margin-bottom: 2rem;
    display: inline-block;
    transition: color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.email-link:hover {
    color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

.service-area {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-dark);
}

.service-area span {
    font-weight: 400;
    color: #666;
    display: block;
    margin-top: 4px;
}

/* Form Styles */
.contact-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

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

.form-row .form-group {
    margin-bottom: 0;
}

label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--color-border-light);
    border-radius: 0;
    background-color: #ffffff;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text-dark);
    transition: border-color var(--duration-fast) ease, transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
    appearance: none;
}

select {
    cursor: pointer;
}

select:active {
    transform: scale(0.98);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.7rem;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
    transition: transform var(--duration-fast) var(--ease-out);
}

.select-wrapper:focus-within::after {
    transform: translateY(-50%) rotate(180deg);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: #666;
    margin: 2rem 0;
    line-height: 1.6;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.required-note {
    font-size: 0.75rem;
    color: #666;
}

/* Footer */
.footer {
    background-color: #0a0b0c;
    padding: 30px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
    }
}

.footer-logo-img {
    height: 50px;
    opacity: 0.8;
    transition: opacity var(--duration-fast) ease;
    filter: brightness(0) invert(1);
}

.footer-logo-link:hover .footer-logo-img {
    opacity: 1;
}

.footer-copy {
    color: #666;
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #888;
    font-size: 0.85rem;
    transition: color var(--duration-fast) ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
}

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

.footer-links a svg {
    display: inline-block;
    vertical-align: middle;
    transition: transform var(--duration-fast) ease, fill var(--duration-fast) ease;
}

.footer-links a:hover svg {
    fill: var(--color-gold);
    transform: translateY(-1px);
}


/* 
  Animations (Following Emil Kowalski's Philosophy)
  - transform and opacity only
  - scale starts at 0.96 (never 0)
  - strong UI curves for entering (ease-out)
  - staggers for entering elements
*/

.fade-up {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity var(--duration-slow) var(--ease-out),
        transform var(--duration-slow) var(--ease-out);
    will-change: transform, opacity;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggering Delays */
.delay-1 {
    transition-delay: 50ms;
}

.delay-2 {
    transition-delay: 100ms;
}

.delay-3 {
    transition-delay: 150ms;
}


/* Reduced Motion Gating */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        transform: none;
        transition: opacity var(--duration-slow) ease;
    }

    .btn:active {
        transform: none;
    }

    .header {
        transition: background-color var(--duration-base) ease;
        /* Only keep color changes */
    }
}

/* Custom Popup Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.7); 
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.show {
    display: flex;
    opacity: 1;
}
.modal-content {
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s var(--ease-out);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.modal.show .modal-content {
    transform: translateY(0);
}
.close-modal {
    color: #888;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close-modal:hover {
    color: var(--color-gold);
}
.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
}
.modal-icon.success {
    color: #4CAF50;
}
.modal-icon.error {
    color: #f44336;
}
#modalTitle {
    margin-bottom: 15px;
}
.modal-debug {
    margin-top: 20px;
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    font-family: monospace;
    font-size: 0.85rem;
    color: #f44336;
    text-align: left;
    word-break: break-all;
    border-radius: 4px;
}