/* ============================================================
   ARTemia — style.css
   ============================================================ */

/* ── Design Tokens ── */
:root {
    --color-bg:        #fffaf4;
    --color-ink:       #232323;
    --color-mid:       #444;
    --color-muted:     #7b7b7b;
    --color-brand:     #2db8d3;
    --color-brand-lt:  #58c9df;
    --color-warm:      #f29a63;
    --color-warm-lt:   #ffd39b;
    --color-white:     #ffffff;

    --gradient-hero: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-lt) 45%, var(--color-warm-lt) 100%);
    --gradient-warm: linear-gradient(135deg, var(--color-brand) 0%, var(--color-warm) 100%);

    --radius-card: 10px;
    --shadow-card: 0 8px 24px rgba(35,35,35,.08);
    --max-w:       1280px;
}

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

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

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    background-color: var(--color-bg);
    color: var(--color-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
    background-color: var(--color-bg);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(35,35,35,.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 0;
    gap: 2rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    width: 190px;
    height: auto;
}

.main-navigation ul.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
}

.main-navigation ul.nav-menu a {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: opacity .2s;
    white-space: nowrap;
}

.main-navigation ul.nav-menu a:hover,
.main-navigation ul.nav-menu a:focus {
    opacity: .65;
    outline: none;
}

.header-utilities {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-shrink: 0;
}

.search-box,
.cart-status {
    border: 1px solid rgba(35,35,35,.18);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-ink);
    transition: background-color .2s, color .2s, border-color .2s;
}

.search-box:hover, .search-box:focus,
.cart-status:hover,  .cart-status:focus {
    background-color: var(--color-brand);
    color: var(--color-white);
    border-color: var(--color-brand);
    outline: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
    background:
        linear-gradient(rgba(255,250,244,.18), rgba(255,250,244,.18)),
        var(--gradient-warm);
    min-height: 38vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 2rem;
}

.hero-overlay {
    max-width: 1000px;
    width: 100%;
}

.hero-kicker {
    color: var(--color-bg);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-overlay h2 {
    color: var(--color-white);
    /* Large enough to wrap onto two lines on small phones */
    font-size: clamp(2.4rem, 9vw, 5.5rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 6px 0 var(--color-warm);
    line-height: 1.1;
}

.hero-copy {
    color: var(--color-bg);
    margin-top: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.04em;
}

/* ============================================================
   PROMO GRID
   ============================================================ */

.promo-grid {
    max-width: var(--max-w);
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.promo-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.promo-card a {
    display: block;
    height: 100%;
}

/* White background; image scales proportionally inside and
   remains centred — white shows if the image is smaller than
   the container. */
.promo-image {
    width: 100%;
    height: 300px;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.6rem;
}

/* Label area — 75% opaque white overlay so the gradient shows softly */
.promo-text {
    padding: 1rem 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.25);
}

/* Line 1 — category (e.g. MOLLUSC): bold and dark */
.promo-text span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(35, 35, 35, 0.85);
}

/* Line 2 — species name: italic (taxonomic convention) */
.promo-text h3 {
    margin-top: 0.35rem;
    font-size: 1.1rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(35, 35, 35, 0.75);
}

/* Line 3 — price */
.promo-price {
    margin-top: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(35, 35, 35, 0.70);
    letter-spacing: 0.04em;
}

/* Card backgrounds — all 12 cards share the warm gradient */
.promo-1, .promo-2, .promo-3,
.promo-4, .promo-5, .promo-7,
.promo-8, .promo-9, .promo-10,
.promo-11, .promo-12 { background: var(--gradient-warm); }
.promo-6 { background: var(--gradient-warm); }

/* Back-to-top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: var(--gradient-warm);
    color: var(--color-white);
    font-size: 1.3rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(35,35,35,.22);
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .3s, transform .3s;
    z-index: 200;
}

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

.back-to-top:hover,
.back-to-top:focus {
    opacity: .75;
    outline: none;
}

/* ============================================================
   STORY SECTION
   ============================================================ */

.story-section {
    max-width: var(--max-w);
    margin: 4rem auto 0;
    padding: 0 2rem 4rem;
}

.story-text { max-width: 720px; }

.section-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(123, 123, 123, 0.75);
    margin-bottom: 0.5rem;
}

.story-text h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.15;
    margin: 0.7rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.story-text p:last-child {
    color: var(--color-mid);
    max-width: 60ch;
}

/* ============================================================
   FOOTER
   — Matches the hero and warm card gradient.
   ============================================================ */

.site-footer {
    background: var(--gradient-warm);
    color: var(--color-white);
    text-align: center;
    padding: 2.5rem 2rem;
}

/* Social icons row */
.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    margin-bottom: 1rem;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: transparent;
    transition: opacity .2s, transform .2s;
}

.footer-socials a:hover,
.footer-socials a:focus {
    opacity: .65;
    transform: translateY(-2px);
    outline: none;
}

/* Stroke-based icons (Facebook, Instagram) */
.social-icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: none;
    stroke: rgba(255,255,255,.9);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Fill-based icons (Pinterest, YouTube) */
.social-icon--filled {
    fill: rgba(255,255,255,.9);
    stroke: none;
}

/* YouTube play triangle — brand blue so it reads as a play button */
.yt-play {
    fill: var(--color-brand);
    stroke: none;
}

.copyright {
    font-size: 0.8rem;
    opacity: .85;
    color: var(--color-white);
}

/* ============================================================
   ABOUT PAGE  (ABOUT.html reuses this sheet)
   ============================================================ */

.about-hero {
    background:
        linear-gradient(rgba(255,250,244,.18), rgba(255,250,244,.18)),
        var(--gradient-hero);
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.about-hero-inner { max-width: 900px; margin: 0 auto; }

.about-hero h1 {
    color: var(--color-white);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.05;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 800;
    text-shadow: 0 6px 0 var(--color-warm);
    margin-top: 0.75rem;
}

.about-hero .hero-copy {
    max-width: 720px;
    margin: 1rem auto 0;
    color: var(--color-bg);
}

.about-story-grid {
    max-width: var(--max-w);
    margin: 3rem auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
}

.story-panel {
    background: var(--color-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.image-panel {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image { width: 100%; height: auto; border-radius: 6px; }

.text-panel { padding: 2rem; }

.text-panel h2 {
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    line-height: 1.15;
    margin: 0.7rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-panel p { margin-bottom: 1rem; color: var(--color-mid); }

.alt-panel { background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-white) 100%); }

.about-highlight {
    max-width: var(--max-w);
    margin: 2rem auto 0;
    padding: 0 2rem 4rem;
}

.highlight-card {
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 2rem;
}

.highlight-list {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.highlight-item {
    background: var(--color-bg);
    border: 1px solid rgba(45,184,211,.18);
    border-radius: 8px;
    padding: 1rem;
}

.highlight-item h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.highlight-item p  { color: #555; font-size: .95rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .promo-grid                    { grid-template-columns: repeat(2, 1fr); }
    .main-navigation ul.nav-menu   { gap: 0.9rem; }
    .site-logo                     { width: 160px; }
    .about-story-grid              { grid-template-columns: 1fr; }
    .highlight-list                { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .site-header   { padding: 0 1rem; }

    .header-inner {
        flex-wrap: wrap;
        gap: 0.8rem;
        padding: 0.9rem 0;
    }

    .main-navigation               { width: 100%; }
    .main-navigation ul.nav-menu   { gap: 0.7rem; }

    .header-utilities {
        width: 100%;
        justify-content: flex-end;
    }

    .site-logo     { width: 145px; }

    .hero {
        min-height: 32vh;
        padding: 2rem 1rem;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .story-section  { padding: 0 1rem 3rem; }
    .about-hero     { padding: 4rem 1rem 3rem; }

    .about-story-grid,
    .about-highlight { padding-left: 1rem; padding-right: 1rem; }

    .text-panel     { padding: 1.2rem; }
    .highlight-list { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCT DETAIL PAGES
   ============================================================ */

.product-grid {
    max-width: 860px;
    margin: 3rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.promo-warm { background: var(--gradient-warm); }
.promo-alt  { background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-warm-lt) 100%); }

.promo-7, .promo-8, .promo-9,
.promo-10, .promo-11, .promo-12 { background: var(--gradient-warm); }

.promo-image--empty {
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.55);
    border: 2px dashed rgba(45, 184, 211, 0.4);
}

.img-add {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(45, 184, 211, 0.65);
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

.img-add::before {
    content: '+';
    display: block;
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.nav-home { color: var(--color-brand); }
.nav-home:hover { opacity: .65; }

.hero--product { min-height: 26vh; }

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin: 2rem auto;
    }
}

/* ============================================================
   ABOUT PAGE — STORY STRIP
   ============================================================ */

.story-strip {
    display: flex;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    align-items: flex-start;
}

.story-strip img {
    flex: 1 1 0;
    width: 33.333%;
    display: block;
    height: auto;
    object-fit: contain;
    vertical-align: top;
}

@media (max-width: 600px) {
    .story-strip {
        flex-direction: column;
    }
    .story-strip img {
        width: 100%;
    }
}
