/* =============================================================
   GREAT AMERICAN LOBSTER CO. — Ocean Theme
   v1.0.0
   ============================================================= */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cinzel:wght@400;600&family=Lato:wght@300;400;700&display=swap');

/* ── CSS VARIABLES ── */
:root {
    --ocean-surface:   #00c8e0;
    --ocean-mid:       #0057a8;
    --ocean-deep:      #001f5b;
    --ocean-abyss:     #000d2e;
    --gold:            #f0c040;
    --gold-dark:       #b8860b;
    --white:           #ffffff;
    --glass-bg:        rgba(0, 20, 80, 0.55);
    --glass-border:    rgba(100, 200, 255, 0.25);
    --text-light:      #e8f4ff;
    --red:             #c0392b;
    --font-display:    'Cinzel Decorative', serif;
    --font-heading:    'Cinzel', serif;
    --font-body:       'Lato', sans-serif;
}

/* =============================================================
   GLOBAL OCEAN BACKGROUND
   ============================================================= */
body.galc-ocean-active {
    background: linear-gradient(
        180deg,
        var(--ocean-surface)  0%,
        #0080cc              15%,
        var(--ocean-mid)     40%,
        #003080              65%,
        var(--ocean-deep)    80%,
        var(--ocean-abyss)  100%
    ) fixed !important;
    background-attachment: fixed !important;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text-light);
}

/* Force content areas to be transparent so ocean shows through */
body.galc-ocean-active #page,
body.galc-ocean-active #content,
body.galc-ocean-active .site,
body.galc-ocean-active .site-content,
body.galc-ocean-active main,
body.galc-ocean-active #main {
    background: transparent !important;
}

/* =============================================================
   CANVAS / ANIMATION LAYERS
   ============================================================= */
#galc-ocean-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.galc-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.galc-caustics  { z-index: 1; opacity: 0.18; }
.galc-bubbles   { z-index: 2; opacity: 1;    }
.galc-wildlife  { z-index: 3; opacity: 0.85; }

/* Ensure all real content sits above ocean layers */
body.galc-ocean-active #wpadminbar,
body.galc-ocean-active header,
body.galc-ocean-active .site-header,
body.galc-ocean-active nav,
body.galc-ocean-active main,
body.galc-ocean-active #main,
body.galc-ocean-active footer,
body.galc-ocean-active .site-footer,
body.galc-ocean-active #galc-hero,
body.galc-ocean-active #galc-footer-slogan,
body.galc-ocean-active .woocommerce {
    position: relative;
    z-index: 10;
}

/* =============================================================
   SEAWEED — CSS animated, left & right margins
   ============================================================= */
.galc-seaweed {
    position: fixed;
    bottom: 0;
    width: 60px;
    height: 340px;
    z-index: 4;
    pointer-events: none;
    /* ── SPRITE SHEET ──────────────────────────────────────────
       Replace background-position values below once you have
       your site-assets.png laid out.
       X=0 Y=0 is the top-left corner of site-assets.png.
       Adjust background-size to match your sprite sheet width.
    ─────────────────────────────────────────────────────────── */
    background-image: url('../assets/site-assets.png');
    background-repeat: no-repeat;
    background-size: 400px auto; /* set to your sprite sheet width */
}

.galc-seaweed-left {
    left: 0;
    background-position: 0px 0px; /* SPRITE: seaweed-left — adjust X Y */
    transform-origin: bottom center;
    animation: galc-sway-left 4s ease-in-out infinite;
}

.galc-seaweed-right {
    right: 0;
    background-position: -60px 0px; /* SPRITE: seaweed-right — adjust X Y */
    transform-origin: bottom center;
    animation: galc-sway-right 5s ease-in-out infinite;
}

@keyframes galc-sway-left {
    0%, 100% { transform: rotate(-6deg) skewX(-2deg); }
    50%       { transform: rotate(6deg)  skewX(2deg);  }
}
@keyframes galc-sway-right {
    0%, 100% { transform: rotate(6deg)  skewX(2deg);  }
    50%       { transform: rotate(-6deg) skewX(-2deg); }
}

/* =============================================================
   NAVIGATION
   ============================================================= */
body.galc-ocean-active header,
body.galc-ocean-active .site-header,
body.galc-ocean-active #masthead {
    background: rgba(0, 15, 60, 0.82) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

body.galc-ocean-active .site-title,
body.galc-ocean-active .site-title a {
    font-family: var(--font-display) !important;
    color: var(--gold) !important;
    text-shadow: 0 0 20px rgba(240,192,64,0.5);
    font-size: clamp(1rem, 2.5vw, 1.5rem) !important;
}

body.galc-ocean-active .site-description {
    font-family: var(--font-heading) !important;
    color: var(--ocean-surface) !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.15em;
}

/* Nav links */
body.galc-ocean-active nav a,
body.galc-ocean-active .nav-menu a,
body.galc-ocean-active .main-navigation a {
    font-family: var(--font-heading) !important;
    color: var(--text-light) !important;
    letter-spacing: 0.08em;
    font-size: 0.9rem !important;
    transition: color 0.2s, text-shadow 0.2s;
}

body.galc-ocean-active nav a:hover,
body.galc-ocean-active .nav-menu a:hover,
body.galc-ocean-active .main-navigation a:hover {
    color: var(--gold) !important;
    text-shadow: 0 0 12px rgba(240,192,64,0.6);
}

/* =============================================================
   HERO SECTION
   ============================================================= */
#galc-hero {
    width: 100%;
    padding: clamp(3rem, 8vw, 7rem) 1.5rem clamp(3rem, 6vw, 5rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.galc-hero-inner {
    max-width: 820px;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    box-shadow:
        0 8px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.08);
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    animation: galc-hero-rise 1.2s ease-out both;
}

@keyframes galc-hero-rise {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.galc-hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    border: 1px solid var(--gold-dark);
    padding: 0.35em 1.2em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.galc-hero-title {
    font-family: var(--font-display) !important;
    font-size: clamp(1.6rem, 4vw, 3rem) !important;
    color: var(--white) !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    line-height: 1.2 !important;
    margin-bottom: 0.5rem !important;
}

.galc-hero-slogan {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    font-style: italic;
}

.galc-hero-copy {
    text-align: left;
    color: var(--text-light);
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.8;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    margin-bottom: 2rem;
}

.galc-hero-copy p { margin-bottom: 1rem; }
.galc-hero-copy strong { color: var(--gold); }

.galc-hero-closing {
    font-family: var(--font-heading);
    font-size: 1rem !important;
    color: var(--ocean-surface) !important;
    text-align: center !important;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.galc-btn-primary,
body.galc-ocean-active .button,
body.galc-ocean-active .woocommerce a.button,
body.galc-ocean-active .woocommerce button.button,
body.galc-ocean-active .woocommerce input.button,
body.galc-ocean-active .woocommerce #respond input#submit {
    display: inline-block;
    font-family: var(--font-heading) !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ocean-abyss) !important;
    background: linear-gradient(135deg, var(--gold), #d4a010) !important;
    border: none !important;
    border-radius: 2px !important;
    padding: 0.75em 2em !important;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 20px rgba(240,192,64,0.35);
    text-decoration: none !important;
}

.galc-btn-primary:hover,
body.galc-ocean-active .button:hover,
body.galc-ocean-active .woocommerce a.button:hover,
body.galc-ocean-active .woocommerce button.button:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(240,192,64,0.5);
    color: var(--ocean-abyss) !important;
}

/* ── SPRITE SHEET: Primary Button ─────────────────────────────
   Uncomment and adjust once site-assets.png is uploaded.
   .galc-btn-primary {
       background-image: url('../assets/site-assets.png') !important;
       background-position: -120px 0px;    ← X Y of button sprite
       background-size: 400px auto;
       background-repeat: no-repeat;
       width: 160px; height: 48px;         ← exact button dimensions
       text-indent: -9999px;               ← hide text if purely graphical
   }
─────────────────────────────────────────────────────────────── */

/* =============================================================
   WOOCOMMERCE — PRODUCT CARDS
   ============================================================= */
body.galc-ocean-active ul.products {
    gap: 1.5rem !important;
}

body.galc-ocean-active ul.products li.product {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 4px !important;
    padding: 1.25rem !important;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

body.galc-ocean-active ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 80, 200, 0.4);
}

body.galc-ocean-active ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading) !important;
    color: var(--white) !important;
    font-size: 1rem !important;
    letter-spacing: 0.05em;
}

body.galc-ocean-active ul.products li.product .price {
    color: var(--gold) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.1rem !important;
}

body.galc-ocean-active ul.products li.product img {
    border-radius: 2px;
    opacity: 0.92;
    transition: opacity 0.2s;
}

body.galc-ocean-active ul.products li.product:hover img {
    opacity: 1;
}

/* Product category titles */
body.galc-ocean-active .woocommerce-loop-category__title {
    font-family: var(--font-heading) !important;
    color: var(--gold) !important;
    letter-spacing: 0.08em;
}

/* =============================================================
   WOOCOMMERCE — SINGLE PRODUCT, CART, CHECKOUT
   ============================================================= */
body.galc-ocean-active .woocommerce-page .woocommerce,
body.galc-ocean-active .woocommerce-cart .woocommerce,
body.galc-ocean-active .woocommerce-checkout .woocommerce {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

body.galc-ocean-active .woocommerce-page h1,
body.galc-ocean-active .woocommerce-page h2,
body.galc-ocean-active .woocommerce-page h3 {
    font-family: var(--font-heading) !important;
    color: var(--gold) !important;
}

body.galc-ocean-active .woocommerce-page p,
body.galc-ocean-active .woocommerce-page label,
body.galc-ocean-active .woocommerce-page td,
body.galc-ocean-active .woocommerce-page th {
    color: var(--text-light) !important;
}

/* Form inputs */
body.galc-ocean-active .woocommerce-page input[type="text"],
body.galc-ocean-active .woocommerce-page input[type="email"],
body.galc-ocean-active .woocommerce-page input[type="tel"],
body.galc-ocean-active .woocommerce-page input[type="password"],
body.galc-ocean-active .woocommerce-page textarea,
body.galc-ocean-active .woocommerce-page select {
    background: rgba(0, 20, 80, 0.6) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--white) !important;
    border-radius: 2px !important;
}

body.galc-ocean-active .woocommerce-page input::placeholder {
    color: rgba(200,220,255,0.5) !important;
}

/* Cart table */
body.galc-ocean-active table.shop_table {
    border-collapse: collapse;
    width: 100%;
}

body.galc-ocean-active table.shop_table th,
body.galc-ocean-active table.shop_table td {
    border-color: var(--glass-border) !important;
}

/* =============================================================
   PRODUCT CATEGORY SECTION HEADING
   ============================================================= */
.galc-section-heading {
    font-family: var(--font-display);
    color: var(--gold);
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.1em;
    margin: 3rem 0 1.5rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.galc-section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0.6rem auto 0;
}

/* =============================================================
   FOOTER
   ============================================================= */
body.galc-ocean-active footer,
body.galc-ocean-active .site-footer {
    background: rgba(0, 8, 30, 0.92) !important;
    border-top: 1px solid var(--glass-border);
    color: var(--text-light) !important;
}

body.galc-ocean-active footer a,
body.galc-ocean-active .site-footer a {
    color: var(--ocean-surface) !important;
    transition: color 0.2s;
}

body.galc-ocean-active footer a:hover,
body.galc-ocean-active .site-footer a:hover {
    color: var(--gold) !important;
}

#galc-footer-slogan {
    text-align: center;
    padding: 1.5rem 1rem 1rem;
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

#galc-footer-slogan small {
    display: block;
    margin-top: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(200,220,255,0.5);
    letter-spacing: 0.05em;
}

.galc-anchor {
    color: var(--ocean-surface);
    margin: 0 0.5rem;
}

/* =============================================================
   HEADINGS — Global
   ============================================================= */
body.galc-ocean-active h1,
body.galc-ocean-active h2,
body.galc-ocean-active h3 {
    font-family: var(--font-heading);
    color: var(--white);
}

body.galc-ocean-active h1 { color: var(--gold); }

/* =============================================================
   CSS SPRITE MAP — ASSET COORDINATES
   (adjust background-position X Y to match your site-assets.png)
   ============================================================= */

/* All sprite elements share these base properties */
[class^="galc-sprite-"],
[class*=" galc-sprite-"] {
    background-image: url('../assets/site-assets.png');
    background-repeat: no-repeat;
    background-size: 400px auto; /* set to your sprite sheet total width */
    display: inline-block;
}

/* ── Navigation ─────────────────────────────────────── */
.galc-sprite-logo          { width: 200px; height: 80px;  background-position:    0px    0px; }
.galc-sprite-cart-icon     { width:  32px; height: 32px;  background-position: -200px    0px; }
.galc-sprite-search-icon   { width:  32px; height: 32px;  background-position: -240px    0px; }
.galc-sprite-nav-arrow     { width:  20px; height: 20px;  background-position: -280px    0px; }

/* ── Buttons ────────────────────────────────────────── */
.galc-sprite-btn-primary   { width: 160px; height: 48px;  background-position:    0px  -90px; }
.galc-sprite-btn-secondary { width: 140px; height: 48px;  background-position: -170px  -90px; }
.galc-sprite-btn-addcart   { width: 160px; height: 48px;  background-position:    0px -150px; }

/* ── Decorative ─────────────────────────────────────── */
.galc-sprite-border-top    { width: 100%;  height: 20px;  background-position:    0px -210px; background-size: auto; }
.galc-sprite-divider       { width: 300px; height: 16px;  background-position:    0px -240px; }
.galc-sprite-anchor-icon   { width:  40px; height: 40px;  background-position: -310px    0px; }

/* ── Wildlife ───────────────────────────────────────── */
.galc-sprite-fish          { width:  60px; height: 30px;  background-position:    0px -270px; }
.galc-sprite-crab          { width:  50px; height: 40px;  background-position:  -70px -270px; }
.galc-sprite-lobster       { width:  80px; height: 60px;  background-position: -130px -270px; }
.galc-sprite-seaweed       { width:  60px; height:340px;  background-position: -220px -270px; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
    .galc-seaweed { width: 36px; }
    .galc-hero-inner { padding: 1.5rem; }

    body.galc-ocean-active ul.products li.product {
        padding: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .galc-seaweed { display: none; }
}
