/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500&display=swap');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #f5f1ed;
}

main {
    padding-top: 115px;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 254, 242, 0.95); /* Creamy background */
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: transform 0.3s ease;
}
nav { padding: 15px 40px; border-top: 1px solid #e0d9cf; }
header.hidden { transform: translateY(-110%); }
.header-container { display: flex; justify-content: space-between; align-items: center; max-width: 1600px; margin: 0 auto; padding: 20px 40px; }
.header-left, .header-right { display: flex; gap: 25px; align-items: center; }
.header-left a, .header-right a { text-decoration: none; color: #333; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; }
.logo { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; text-decoration: none; color: #333; }
.logo span { font-family: 'Cormorant Garamond', serif; font-size: 22px; }
.logo em { font-style: normal; }
.nav-menu { display: flex; justify-content: center; gap: 40px; list-style: none; margin: 0 auto; align-items: center; }
.nav-menu a { text-decoration: none; color: #333; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; }
.nav-menu li:nth-child(2) { color: #ccc; user-select: none; }

/* Hero Section */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #e0d9cf; text-align: center; margin-top: -115px; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.5) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 20px; max-width: 800px; }
.hero-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; opacity: 0.9; }
.hero-label-highlight { background-color: #8B4513; color: #fff; padding: 4px 8px; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: 48px; color: #fff; margin-bottom: 20px; font-weight: 400; }
.hero-subtitle { font-size: 15px; opacity: 0.9; line-height: 1.7; }
.video-controls { position: absolute; bottom: 30px; left: 30px; z-index: 3; }
.video-controls button { width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff; cursor: pointer; }

/* Staggered Layout */
.what-we-do { background-color: #fff; padding: 0; }
.staggered-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; width: 100%; }
.feature-image-wrapper { width: 100%; height: 100%; min-height: 500px; overflow: hidden; }
.feature-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-body { padding: 80px; background: #fff; display: flex; flex-direction: column; justify-content: center; }
.staggered-row:nth-child(2) .feature-body { background: #f5f0e8; }
.feature-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #8B4513; margin-bottom: 15px; }
.feature-body h2 { font-family: 'Cormorant Garamond', serif; font-size: 36px; margin-bottom: 20px; font-weight: 400; color: #333; }
.feature-body p { font-size: 15px; color: #555; line-height: 1.8; margin-bottom: 30px; max-width: 500px; }
.feature-link { display: inline-flex; align-items: center; gap: 10px; color: #333; text-decoration: none; font-size: 13px; letter-spacing: 0.5px; border-bottom: 1px solid #333; padding-bottom: 2px; width: fit-content; }

/* Why Section */
.why-section { padding: 100px 40px; background-color: #fffef2; }
.three-col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; max-width: 1200px; margin: 0 auto; text-align: center; }
.tile h4 { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: #8B4513; margin-bottom: 15px; font-weight: 400; }
.tile p { font-size: 15px; color: #666; line-height: 1.8; }

/* Footer */
footer { background-color: #4a4137; color: #fff; padding: 80px 40px 30px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; margin-bottom: 60px; }
.footer-grid h4 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; font-weight: 400; color: #9b8b7a; }
.footer-grid p, .footer-grid a { font-size: 14px; color: #ccc; text-decoration: none; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; text-align: center; max-width: 1200px; margin: 0 auto; }
.footer-bottom small { font-size: 12px; color: #999; }

/* Login & Register Page Styles */
.login-container { padding: 40px 40px 80px 40px; max-width: 500px; margin: 0 auto; }
.login-form h1 { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 400; text-align: center; margin-bottom: 10px; }
.login-form > p { text-align: center; color: #666; margin-bottom: 40px; }
.login-form fieldset { border: none; }
.login-form .input-group { margin-bottom: 20px; }
.login-form label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; color: #8B4513; }
.login-form .form-input { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; }
.login-form .form-button { width: 100%; padding: 15px; background: #4a4137; color: #fff; border: none; border-radius: 4px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; margin-top: 20px; }
.login-prompt { text-align: center; margin-top: 30px; font-size: 14px; color: #666; }
.login-prompt a { color: #8B4513; text-decoration: underline; }
.form-error { color: #c53030; font-size: 13px; margin-top: 5px; }

/* HEADER HOVER PREVIEWS */
.account-hover-container,
.cart-hover-container { position: relative; padding-bottom: 15px; margin-bottom: -15px; }
.account-preview,
.cart-preview { display: none; position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid #e0e0e0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 1100; border-radius: 4px; }
.account-hover-container:hover .account-preview,
.cart-hover-container:hover .cart-preview { display: block; }
.account-preview { width: 200px; padding: 10px; }
.account-preview a { display: block; padding: 10px 15px; color: #333; text-decoration: none; font-size: 14px !important; text-transform: none !important; letter-spacing: 0 !important; }
.account-preview a:hover { background-color: #f5f5f5; }
.cart-preview { width: 400px; font-size: 14px; }
.cart-preview-header { font-size: 18px; font-weight: 500; padding: 20px; border-bottom: 1px solid #e0e0e0; }
.cart-preview-body { max-height: 400px; overflow-y: auto; }
.cart-empty-message { padding: 40px 20px; text-align: center; color: #666; }
.cart-preview-item { display: flex; gap: 15px; padding: 20px; position: relative; border-bottom: 1px solid #e0e0e0; align-items: flex-start; }
.cart-preview-image { width: 80px; height: 80px; object-fit: cover; background-color: #f5f5f5; flex-shrink: 0; }
.cart-preview-details { flex: 1; display: flex; flex-direction: column; padding-right: 20px; }
.cart-preview-details .brand { font-weight: bold; text-transform: uppercase; font-size: 13px; margin-bottom: 4px; }
.cart-preview-details .name { font-size: 14px; line-height: 1.4; margin-bottom: 4px; }
.cart-preview-details .meta { font-size: 13px; color: #666; margin-top: auto; }
.cart-preview-price { font-weight: 500; font-size: 15px; margin-left: auto; }
.cart-preview-item .remove-btn { position: absolute; top: 20px; right: 20px; font-size: 20px; color: #666; text-decoration: none; background: none; border: none; cursor: pointer; padding: 0; line-height: 1; }
.cart-preview-item .remove-btn:hover { color: #000; }
.cart-preview-footer { padding: 20px; background: #fdfdfd; border-top: 1px solid #e0e0e0; }
.cart-preview-footer .total-row { display: flex; justify-content: space-between; font-size: 16px; font-weight: bold; margin-bottom: 20px; text-transform: uppercase; }
.cart-preview-footer .checkout-button { display: block; width: 100%; padding: 12px; background: #6b5d52; color: #fff; text-align: center; text-decoration: none; font-weight: bold; text-transform: uppercase; font-size: 13px; transition: background-color 0.2s; }
.cart-preview-footer .checkout-button:hover { background: #8b7355; }

@media (max-width: 768px) {
    main { padding-top: 105px; }
    .hero { margin-top: -105px; }
    .hero-title { font-size: 32px; }
    .staggered-row, .three-col-grid, .footer-grid { grid-template-columns: 1fr; }
    .staggered-row:nth-child(2) .feature-image-wrapper { order: -1; }
    .feature-body { padding: 60px 40px; }
    .feature-image-wrapper { min-height: 300px; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
