/* ==========================================================================
   S.P. JEWELLERS BRAND DESIGN SYSTEM & STYLE SHEET
   ========================================================================== */

/* Custom CSS Custom Properties (Variables) */
:root {
    /* Fonts */
    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    
    /* Colors */
    --color-primary: #a91f23;       /* Crimson Red */
    --color-primary-dark: #811417;  /* Deep Crimson */
    --color-primary-light: #c23337; /* Bright Crimson */
    --color-gold: #e3b73e;          /* Antique Gold */
    --color-gold-light: #f5d576;    /* Champagne Gold */
    --color-gold-dark: #b89128;     /* Burnished Gold */
    
    /* Neutral Dark (Luxury Onyx) */
    --color-bg-dark: #12100e;
    --color-bg-dark-surface: #1e1a17;
    --color-text-light: #f7f5f2;
    
    /* Neutral Light (Warm Champagne/Ivory) */
    --color-bg-light: #faf8f5;
    --color-bg-light-surface: #ffffff;
    --color-text-dark: #292524;
    --color-text-muted: #78716c;
    
    /* Layout & Utilities */
    --color-border: #e7e5e4;
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius: 8px;
    --max-width: 1200px;
    
    /* Header Heights */
    --header-height-large: 110px;
    --header-height-shrink: 80px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

button {
    font-family: var(--font-sans);
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    letter-spacing: 0.02em;
}

p {
    margin-bottom: 1.25rem;
    font-weight: 300;
}

strong {
    font-weight: 600;
    color: var(--color-primary-dark);
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 300;
    font-family: var(--font-serif);
    color: var(--color-text-dark);
    font-style: italic;
    border-left: 3px solid var(--color-gold);
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Grid & Layout Containers
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.grid {
    display: grid;
    gap: 2.5rem;
}

section {
    padding: 6.5rem 0;
}

/* Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.section-header h2 {
    font-size: 2.75rem;
    color: var(--color-bg-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
    text-transform: uppercase;
}

.title-underline {
    width: 80px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 0.5rem auto 0 auto;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--color-primary);
    border: 2px solid var(--color-bg-light);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.section-description {
    text-align: center;
    max-width: 650px;
    margin: -2.5rem auto 4rem auto;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    transition: all var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-light);
    border: 1px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(169, 31, 35, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    box-shadow: 0 6px 20px rgba(169, 31, 35, 0.45);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--color-gold);
    color: var(--color-gold-light);
}

.btn-outline:hover {
    background-color: var(--color-gold);
    color: var(--color-bg-dark);
    box-shadow: 0 4px 15px rgba(227, 183, 62, 0.25);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height-large);
    background-color: rgba(18, 16, 14, 0.05);
    backdrop-filter: blur(1px);
    z-index: 1000;
    border-bottom: 1px solid rgba(227, 183, 62, 0.1);
    transition: all var(--transition-smooth);
}

/* Header scrolled state triggered by Javascript */
.main-header.header-scrolled {
    height: var(--header-height-shrink);
    background-color: rgba(18, 16, 14, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
    border-bottom: 2px solid var(--color-gold-dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo container styling */
.logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: height var(--transition-smooth);
}

.main-header.header-scrolled .logo-img {
    height: 48px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-gold);
    line-height: 1.1;
    transition: color var(--transition-smooth);
}

.main-header:not(.header-scrolled) .brand-name {
    /* If not scrolled, on dark header we make it pop */
    color: var(--color-text-light);
    text-shadow: 1.5px 1.5px 0px rgba(0, 0, 0, 0.8), 0 0 25px rgba(227, 183, 62, 0.2);
}

.brand-tagline {
    font-size: 0.65rem;
    letter-spacing: 0.45em;
    color: var(--color-gold);
    font-weight: 500;
    margin-top: 0.15rem;
}

.main-header:not(.header-scrolled) .brand-tagline {
    color: var(--color-gold-light);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 2.25rem;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-light);
    position: relative;
    padding: 0.5rem 0;
}

.main-header:not(.header-scrolled) .nav-link {
    color: var(--color-text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-gold);
    transition: width var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Hamburger mobile button */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
    transition: all var(--transition-smooth);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-dark);
    background-image: url('assets/inside view 1.webp');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 0;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(18, 16, 14, 0.65) 0%, rgba(10, 8, 7, 0.92) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: var(--color-text-light);
}

.hero-logo-wrapper {
    margin-bottom: 2rem;
}

.hero-logo {
    height: 140px;
    width: auto;
    margin: 0 auto;
    filter: drop-shadow(0 0 15px rgba(227, 183, 62, 0.35));
}

.hero-title {
    font-size: 4.75rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 1.5rem 0 2rem 0;
}

.hero-divider .line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold));
}

.hero-divider .line:last-child {
    background: linear-gradient(90deg, var(--color-gold), transparent);
}

.hero-divider .tag {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    color: var(--color-gold);
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    font-style: italic;
    font-weight: 300;
    color: var(--color-text-light);
    margin-bottom: 3.25rem;
    letter-spacing: 0.02em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0.7;
    transition: opacity var(--transition-smooth);
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator .mouse {
    width: 26px;
    height: 44px;
    border: 2px solid var(--color-gold);
    border-radius: 20px;
    display: block;
    position: relative;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-gold);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.8s infinite;
}

@keyframes scroll-wheel {
    0% { top: 8px; opacity: 1; }
    50% { top: 22px; opacity: 0; }
    100% { top: 8px; opacity: 1; }
}

/* ==========================================================================
   Our Legacy Section
   ========================================================================== */
.legacy-section {
    background-color: var(--color-bg-light);
}

.legacy-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.legacy-text-col p {
    color: var(--color-text-dark);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.heritage-pillars {
    display: flex;
    gap: 2rem;
    margin-top: 3.25rem;
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

.pillar {
    display: flex;
    flex-direction: column;
}

.pillar-num {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 0.25rem;
}

.pillar-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

/* Photo frame styling with overlapping border styling */
.legacy-img-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    max-width: 420px;
    z-index: 2;
}

.heritage-img {
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-smooth);
    border: 5px solid #ffffff;
}

.image-frame:hover .heritage-img {
    transform: scale(1.03);
}

.frame-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-gold);
    top: 20px;
    left: 20px;
    z-index: -1;
    border-radius: 4px;
    transition: all var(--transition-smooth);
}

.image-frame:hover .frame-border {
    top: 10px;
    left: 10px;
    border-color: var(--color-primary);
}

/* ==========================================================================
   Showroom Gallery Section
   ========================================================================== */
.gallery-section {
    background-color: var(--color-bg-light-surface);
}

.gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.gallery-img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 16, 14, 0.9) 0%, rgba(18, 16, 14, 0.2) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-smooth);
    padding: 1.5rem;
    text-align: center;
    color: var(--color-text-light);
}

.zoom-icon {
    font-size: 2rem;
    font-weight: 300;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
    transform: translateY(15px);
    transition: transform var(--transition-smooth);
}

.image-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 400;
    transform: translateY(15px);
    transition: transform var(--transition-smooth) 0.05s;
}

/* Gallery hover states */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .zoom-icon,
.gallery-item:hover .image-title {
    transform: translateY(0);
}

/* ==========================================================================
   Services & Collections Section
   ========================================================================== */
.services-section {
    background-color: var(--color-bg-light);
}

.services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem;
}

.service-card {
    background-color: var(--color-bg-light-surface);
    padding: 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 15px 40px rgba(227, 183, 62, 0.08);
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-light);
    margin-bottom: 1.75rem;
    box-shadow: 0 5px 15px rgba(169, 31, 35, 0.25);
}

.service-card h3 {
    font-size: 1.85rem;
    color: var(--color-bg-dark);
    margin-bottom: 1.15rem;
    font-weight: 500;
}

.service-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    background-color: var(--color-bg-light-surface);
}

.contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
}

/* Address Detail Card */
.address-card {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.address-card h3 {
    font-size: 1.75rem;
    color: var(--color-gold-light);
    margin-bottom: 1.25rem;
}

.address-text {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.75rem;
    font-weight: 300;
}

.contact-lines {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.contact-line .icon {
    display: inline-flex;
    align-items: center;
    color: var(--color-gold);
    width: 24px;
}

.contact-line a:hover {
    color: var(--color-gold-light);
    text-decoration: underline;
}

/* Consultation Inquiry Form */
.inquiry-form-wrapper {
    background-color: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.inquiry-form-wrapper h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--color-bg-dark);
}

.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-grid-half {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dark);
}

input, textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    background-color: var(--color-bg-light-surface);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--color-text-dark);
    transition: all var(--transition-smooth);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 8px rgba(227, 183, 62, 0.15);
}

/* Feedback message styled */
.form-feedback {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;
    display: none;
}

.form-feedback.success {
    display: block;
    color: #15803d;
}

.form-feedback.error {
    display: block;
    color: var(--color-primary);
}

/* Google Map styling */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 5.5rem 0 3rem 0;
    border-top: 3px solid var(--color-gold);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand {
    max-width: 500px;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    margin: 0 auto 1.5rem auto;
    filter: drop-shadow(0 0 8px rgba(227, 183, 62, 0.25));
}

.footer-brand h3 {
    font-size: 2.15rem;
    letter-spacing: 0.1em;
    color: var(--color-gold-light);
    line-height: 1.1;
}

.footer-brand p {
    font-size: 0.8rem;
    letter-spacing: 0.55em;
    color: var(--color-gold);
    font-weight: 600;
    margin-top: 0.25rem;
    margin-bottom: 2rem;
}

.footer-divider {
    width: 120px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 1.5rem auto;
}

.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.6;
}

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

.developer-tag {
    font-weight: 500;
    color: var(--color-gold-dark);
}

/* ==========================================================================
   Custom Lightbox Modal
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 8, 7, 0.98);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
    border: 3px solid var(--color-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.lightbox-caption {
    font-family: var(--font-serif);
    color: var(--color-gold-light);
    font-size: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    letter-spacing: 0.03em;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    color: var(--color-text-light);
    font-size: 3rem;
    line-height: 1;
    transition: color var(--transition-smooth);
}

.lightbox-close:hover {
    color: var(--color-gold);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    font-size: 2.5rem;
    padding: 1.5rem 1rem;
    transition: all var(--transition-smooth);
    border-radius: 4px;
}

.lightbox-nav:hover {
    color: var(--color-gold);
    background-color: rgba(255, 255, 255, 0.03);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Delayed reveals for sequential entrance grids */
.grid > .reveal:nth-child(2) { transition-delay: 0.15s; }
.grid > .reveal:nth-child(3) { transition-delay: 0.3s; }
.grid > .reveal:nth-child(4) { transition-delay: 0.45s; }

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

/* Tablet & Smaller Layout */
@media screen and (max-width: 992px) {
    /* Base spacing */
    section {
        padding: 5rem 0;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
    
    /* Layout structural changes */
    .grid {
        gap: 2rem;
    }
    
    .legacy-grid {
        grid-template-columns: 1fr;
    }
    
    .legacy-img-col {
        order: -1; /* image on top on tablet/mobile */
        margin-bottom: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .map-wrapper {
        min-height: 400px;
    }
    
    /* Hero styling adaptations */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.45rem;
    }
}

/* Mobile Screens adaptation */
@media screen and (max-width: 768px) {
    :root {
        --header-height-large: 80px;
        --header-height-shrink: 80px;
    }
    
    /* Header adaptations */
    .logo-text {
        display: flex;
    }
    
    .brand-name {
        font-size: 1.15rem;
    }
    
    .logo-img {
        height: 48px;
    }
    
    /* Mobile Hamburger Menu navigation display overlay */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height-large);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height-large));
        background-color: rgba(18, 16, 14, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
        border-top: 1px solid rgba(227, 183, 62, 0.1);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 1.05rem;
        color: var(--color-text-light);
    }
    
    /* Hamburger to X conversion animations */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    /* Hero adjustments */
    .hero-title {
        font-size: 2.65rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2.5rem;
    }
    
    .hero-divider .line {
        width: 40px;
    }
    
    /* Gallery grid adaptation to single column */
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-img-wrapper {
        aspect-ratio: 3 / 2;
    }
    
    /* Form column adjustments */
    .form-grid-half {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .address-card, .inquiry-form-wrapper {
        padding: 1.5rem 1.25rem;
    }
    
    .contact-line {
        flex-wrap: wrap;
    }
    
    .heritage-pillars {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .image-frame {
        max-width: 100%;
        width: calc(100% - 15px);
        margin-bottom: 15px;
    }
    
    .frame-border {
        top: 15px;
        left: 15px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    /* Lightbox navigation arrows scale down */
    .lightbox-nav {
        font-size: 1.75rem;
        padding: 1rem 0.5rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
    }
}
