/* ============================================
   KLASSIX — Artisan Bakery & Grocer
   Classic & Elegant Design System
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Palette — Burgundy & Blush */
    --color-burgundy-900: #4A0E1F;
    --color-burgundy-800: #5C152A;
    --color-burgundy-700: #781F37;
    --color-burgundy-600: #8B2543;
    --color-burgundy-500: #A33D5A;
    --color-burgundy-400: #B85570;
    --color-burgundy-300: #CF7088;
    --color-burgundy-200: #E098A8;
    --color-burgundy-100: #F0C0CC;
    --color-burgundy-50:  #F9E4E9;
    
    --color-blush-50:  #FFF8F9;
    --color-blush-100: #FFF0F3;
    --color-blush-200: #FDE4E9;
    --color-blush-300: #F9C8D4;
    --color-cream:     #FDF8F5;
    --color-warm-white:#FFFAF8;
    
    --color-charcoal:  #1A1416;
    --color-dark:      #2C2225;
    --color-text:      #3D2E32;
    --color-text-muted:#6B555A;
    --color-text-light:#9A8287;
    --color-border:    #E8D5DA;
    --color-border-light:#F2E4E7;
    
    /* Typography */
    --font-serif: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans:  'Lato', 'Helvetica Neue', sans-serif;
    
    /* Scale */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(120, 31, 55, 0.06);
    --shadow-md: 0 4px 16px rgba(120, 31, 55, 0.08);
    --shadow-lg: 0 8px 32px rgba(120, 31, 55, 0.12);
    --shadow-xl: 0 16px 48px rgba(120, 31, 55, 0.16);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-warm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul, ol, address {
    list-style: none;
}

address {
    font-style: normal;
}

/* ---------- Utility ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

/* ---------- Loader ---------- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--color-burgundy-800);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-blush-200);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

.loader-line {
    display: flex;
    justify-content: center;
    gap: 6px;
}

.loader-line span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-burgundy-400);
    animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-line span:nth-child(2) { animation-delay: 0.2s; }
.loader-line span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loaderPulse {
    0%, 100% { transform: scale(0.6); opacity: 0.4; }
    50% { transform: scale(1); opacity: 1; }
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-lg) 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(253, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-logo-text {
    color: var(--color-burgundy-700);
}

.navbar.scrolled .nav-link {
    color: var(--color-text);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--color-burgundy-700);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1001;
}

.nav-logo-icon {
    color: var(--color-blush-200);
    transition: color var(--transition-base);
}

.navbar.scrolled .nav-logo-icon {
    color: var(--color-burgundy-700);
}

.nav-logo-text {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-blush-100);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color var(--transition-base);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-blush-200);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition-base);
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--color-blush-100);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid rgba(240, 192, 204, 0.4);
    border-radius: 100px;
    transition: var(--transition-base);
}

.nav-cta:hover {
    background: rgba(240, 192, 204, 0.15);
    border-color: var(--color-blush-200);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-blush-200);
    transition: var(--transition-base);
    transform-origin: center;
}

.navbar.scrolled .hamburger {
    background: var(--color-burgundy-700);
}

.nav-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(74, 14, 31, 0.82) 0%,
        rgba(92, 21, 42, 0.75) 40%,
        rgba(120, 31, 55, 0.65) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
}

.hero-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--color-burgundy-300);
}

.hero-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-blush-200);
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: #FFFFFF;
    margin-bottom: var(--space-xl);
    letter-spacing: -0.01em;
}

.hero-headline br {
    display: none;
}

.hero-sub {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-blush-200);
    max-width: 560px;
    margin: 0 auto var(--space-2xl);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-blush-300);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll svg {
    opacity: 0.6;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 100px;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-burgundy-700);
    color: #FFFFFF;
    border: 2px solid var(--color-burgundy-700);
}

.btn-primary:hover {
    background: var(--color-burgundy-800);
    border-color: var(--color-burgundy-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: #FFFFFF;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* ---------- Section Shared ---------- */
.section-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-burgundy-500);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-charcoal);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}

.section-title--light {
    color: #FFFFFF;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto;
}

.section-subtitle--light {
    color: var(--color-blush-200);
}

/* ---------- About ---------- */
.about {
    padding: var(--space-4xl) 0;
    background: var(--color-warm-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 600/750;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 6px solid var(--color-warm-white);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 400/500;
}

.about-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    background: var(--color-burgundy-700);
    color: var(--color-blush-100);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: var(--font-serif);
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.05em;
}

.about-content {
    padding: var(--space-xl) 0;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.about-text:last-of-type {
    margin-bottom: var(--space-2xl);
}

.about-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-burgundy-700);
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--color-border);
}

/* ---------- Products ---------- */
.products {
    position: relative;
    padding: var(--space-4xl) 0;
    background: var(--color-burgundy-800);
    overflow: hidden;
}

.products-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(163, 61, 90, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(92, 21, 42, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.products .container {
    position: relative;
    z-index: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.product-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
}

.product-card-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 480/360;
}

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

.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(74, 14, 31, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

.product-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-card-body {
    padding: var(--space-xl);
}

.product-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-blush-100);
    margin-bottom: var(--space-sm);
}

.product-card-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-blush-200);
    font-weight: 300;
}

/* ---------- Gallery ---------- */
.gallery {
    padding: var(--space-4xl) 0;
    background: var(--color-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: var(--space-md);
    margin-top: var(--space-3xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item:nth-child(1) {
    grid-column: 1 / 6;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(2) {
    grid-column: 6 / 9;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(3) {
    grid-column: 9 / 13;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(4) {
    grid-column: 1 / 5;
    grid-row: 2 / 3;
}

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

.gallery-item:nth-child(1) img,
.gallery-item:nth-child(4) img {
    aspect-ratio: 600/800;
}

.gallery-item:nth-child(2) img,
.gallery-item:nth-child(3) img {
    aspect-ratio: 600/400;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(74, 14, 31, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.gallery-item-overlay span {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}

/* ---------- Quote ---------- */
.quote-section {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.quote-bg {
    position: absolute;
    inset: 0;
}

.quote-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(74, 14, 31, 0.88) 0%,
        rgba(92, 21, 42, 0.85) 100%
    );
}

.quote-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-xl) 0;
}

.quote-mark {
    color: var(--color-burgundy-400);
    margin-bottom: var(--space-xl);
    opacity: 0.6;
}

.quote-content blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-blush-100);
    margin-bottom: var(--space-xl);
}

.quote-divider {
    width: 60px;
    height: 2px;
    background: var(--color-burgundy-400);
    margin: 0 auto var(--space-lg);
    border-radius: 2px;
}

.quote-attr {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-burgundy-300);
}

/* ---------- Visit ---------- */
.visit {
    padding: var(--space-4xl) 0;
    background: var(--color-warm-white);
}

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.visit-info {
    padding: var(--space-xl) 0;
}

.visit-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.visit-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.visit-detail {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
}

.visit-detail-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-burgundy-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-burgundy-700);
    flex-shrink: 0;
}

.visit-detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: var(--space-xs);
}

.visit-detail-value {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-charcoal);
    line-height: 1.5;
}

.visit-detail-link {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-burgundy-700);
    transition: color var(--transition-fast);
}

.visit-detail-link:hover {
    color: var(--color-burgundy-500);
    text-decoration: underline;
}

.btn-directions {
    background: var(--color-burgundy-700);
    color: #FFFFFF;
}

.btn-directions:hover {
    background: var(--color-burgundy-800);
    box-shadow: var(--shadow-lg);
}

/* ---------- Form ---------- */
.visit-form-wrap {
    background: var(--color-blush-50);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.visit-form-header {
    margin-bottom: var(--space-xl);
}

.visit-form-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.visit-form-sub {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--color-text);
    background: #FFFFFF;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-text-light);
}

.form-input:focus {
    border-color: var(--color-burgundy-400);
    box-shadow: 0 0 0 3px rgba(163, 61, 90, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B555A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

/* Form Success */
.form-success {
    display: none;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.form-success.show {
    display: block;
    animation: fadeIn 0.4s ease;
}

.form-success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    background: var(--color-burgundy-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-burgundy-700);
}

.form-success-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-sm);
}

.form-success-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-charcoal);
    color: var(--color-blush-200);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-blush-100);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.footer-logo svg {
    color: var(--color-burgundy-400);
}

.footer-tagline {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-light);
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-blush-100);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.02em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-blush-200);
}

.footer-contact address p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.footer-phone a {
    color: var(--color-burgundy-300);
    transition: color var(--transition-fast);
}

.footer-phone a:hover {
    color: var(--color-blush-200);
}

.footer-bottom {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-text-light);
    letter-spacing: 0.03em;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-burgundy-700);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-burgundy-800);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        gap: var(--space-2xl);
    }
    
    .products-grid {
        gap: var(--space-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        inset: 0;
        background: rgba(253, 248, 245, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }
    
    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        color: var(--color-text);
        font-size: 1rem;
    }
    
    .nav-cta {
        border-color: var(--color-burgundy-200);
        color: var(--color-burgundy-700);
    }
    
    .hero-headline br {
        display: block;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-images {
        max-width: 480px;
        margin: 0 auto;
    }
    
    .about-img-secondary {
        right: -10px;
        bottom: -20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(2),
    .gallery-item:nth-child(3),
    .gallery-item:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
    }
    
    .gallery-item img {
        aspect-ratio: 400/350 !important;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-divider {
        width: 48px;
        height: 1px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-form-wrap {
        padding: var(--space-lg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-scroll {
        animation: none;
    }
}
