/* --- style.css --- */

/* 1. VARIABLES & SETUP */
:root {
    --primary: #0f2c3e;   /* Deep Jersey Sea Blue */
    --accent: #c5a059;    /* Sand/Gold */
    --text-dark: #333333;
    --text-light: #666666;
    --off-white: #f9f9f9;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--primary); }
a { text-decoration: none; transition: 0.3s; }
img { display: block; max-width: 100%; }

/* 2. HERO SECTION (Parallax) */
.hero {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Default Image - can be overridden inline in HTML for specific pages */
    background-image: linear-gradient(rgba(15, 44, 62, 0.6), rgba(15, 44, 62, 0.8)), url('images/jersey-hero.jpg'); 
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: white;
    padding: 20px;
}

/* Smaller hero for sub-pages like Jersey.html */
.hero-small { height: 40vh; }

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 35px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,0.9);
}

.hero-btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 3px;
    border: 2px solid var(--accent);
}
.hero-btn:hover { background: white; color: var(--primary); border-color: white; }

/* 3. NAVIGATION */
.nav-bar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    z-index: 100;
    text-align: center;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-link {
    display: inline-block;
    margin: 0 15px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
}
.nav-link:hover { color: var(--accent); }

/* 4. LAYOUT & GRIDS */
.container { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { max-width: 600px; margin: 0 auto; color: var(--text-light); }
.section-header h2::after {
    content: '~'; display: block; color: var(--accent); font-size: 2rem; line-height: 0.5; margin-top: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 5. CARDS (Used for Regions AND Products) */
.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-image-wrap {
    height: 250px;
    overflow: hidden;
    background: #eee;
    position: relative;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image-wrap img { transform: scale(1.05); }

.card-content { padding: 25px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.card-content h3 { margin-bottom: 10px; font-size: 1.4rem; }
.card-content p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }

/* Price styling for product pages */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: var(--primary); }

/* 6. BUTTONS */
.buy-link {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: 2px solid var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
}
.buy-link:hover { background: var(--primary); color: white; }

/* Floating Custom Button */
.float-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 999;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.float-btn:hover { background: #153a50; transform: scale(1.05); }

/* 7. FOOTER */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
}
footer p { font-size: 0.9rem; opacity: 0.8; margin-bottom: 10px; }
footer a { color: var(--accent); }

/* MOBILE TWEAKS */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .container { padding: 40px 20px; }
}
/* --- AEO INSTRUCTION BOX --- */
.instruction-box {
    background: white;
    border-left: 5px solid var(--accent);
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 0;
}

.instruction-box h3 { margin-top: 0; }

.step-list { padding-left: 20px; margin-top: 20px; }
.step-list li { margin-bottom: 20px; font-weight: 600; color: var(--primary); }
.step-list p { font-weight: 300; color: var(--text-dark); margin-top: 5px; }
/* --- CONTACT FORM STYLES --- */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #fdfdfd;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(15, 44, 62, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.submit-btn:hover { background-color: #153a50; }

/* Collection Box Style */
.collection-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    height: 100%;
}
.collection-box h3 { margin-top: 0; border-bottom: 2px solid var(--accent); padding-bottom: 15px; display: inline-block; }
/* --- PHOTO CREDIT OVERLAY --- */
/* We must ensure the parent (.hero) allows absolute positioning */
.hero {
    position: relative; 
}

.photo-credit {
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 0.7rem; /* Very small text */
    color: rgba(255, 255, 255, 0.6); /* 60% opacity white */
    font-weight: 300;
    letter-spacing: 1px;
    z-index: 10;
    pointer-events: none; /* Users can click 'through' it if needed */
}
/* --- FAQ ACCORDION STYLES --- */
.faq-container { max-width: 800px; margin: 0 auto; }

details {
    background: white;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #eee;
}

summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    position: relative;
    list-style: none; /* Hides default triangle */
    transition: background 0.3s;
}

summary:hover { background: #f8f9fa; }

/* Custom Plus Icon */
summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--accent);
    transform: translateY(-50%);
    top: 50%;
    transition: transform 0.3s;
}

/* Rotate icon when open */
details[open] summary::after { 
    transform: translateY(-50%) rotate(45deg); 
}

/* Hide default marker in some browsers */
summary::-webkit-details-marker { display: none; }

.faq-content {
    padding: 0 20px 20px 20px;
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 0.95rem;
    border-top: 1px solid #f0f0f0;
}
/* --- LIGHTBOX (CLICK TO ENLARGE) --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* Close Button */
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
.close-lightbox:hover { color: #bbb; }

/* Desktop Hover Fix: Show full image on mouseover */
@media (min-width: 768px) {
    .card:hover .card-image-wrap img {
        object-fit: contain; /* Shows full image */
        transform: scale(1); /* Removes zoom */
        background: #fff;
    }
}

/* --- Reusable Tide Warning Modal --- */
.warning-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 3000; /* Sits above everything else */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 44, 62, 0.85); /* Matches your dark brand colour */
    align-items: center;
    justify-content: center;
}

.warning-modal-content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: left;
}

.close-warning {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-warning:hover {
    color: #111;
}