/* ═══════════════════════════════════════════════════════════
   Icookada — Homepage CSS
   ═══════════════════════════════════════════════════════════ */

/*
  Palette — nature rooted, Sanzo Wada inspired:
  Forest  #1d3d2a   dark lush green (pine, moss)
  Claret  #7c2b3e   berry, blackcurrant, fig
  Tomato  #9b3224   plum tomato, earthy red
  Cream   #f5f0e4   warm parchment
  Bark    #7a6e5c   mushroom, tree bark (muted)
  Dark    #1a1816   near-black, warm toned
*/
:root {
    --ica-forest:   #1d3d2a;
    --ica-claret:   #7c2b3e;
    --ica-tomato:   #9b3224;
    --ica-cream:    #f5f0e4;
    --ica-bark:     #7a6e5c;
    --ica-dark:     #1a1816;
    --ica-bg:       #f5f0e4;
    --ica-text:     #1a1816;
    --ica-muted:    #7a6e5c;
    --ica-border:   #ddd6c2;
    --ica-surface:  #eee8d6;
    --ica-radius:   10px;
    --f-display:    'Space Grotesk', system-ui, sans-serif;
    --f-body:       'Space Grotesk', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.ica-home {
    font-family: var(--f-body);
    background: var(--ica-bg);
    color: var(--ica-text);
    overflow-x: hidden;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: 100px;
    font-size: .9rem;
    font-weight: 600;
    font-family: var(--f-body);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s, opacity .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary  { background: var(--ica-forest); color: #fff; }
.btn--primary:hover { opacity: .9; }
.btn--ghost    { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.2); }
.btn--outline  { background: transparent; color: var(--ica-forest); border-color: var(--ica-forest); }
.btn--outline:hover { background: var(--ica-forest); color: #fff; }
.btn--sm       { padding: .55rem 1.25rem; font-size: .85rem; }

/* ── Layout helpers ──────────────────────────────────────── */
.ica-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Reveal animations ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
    transition-delay: var(--delay, 0ms);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── NAV ─────────────────────────────────────────────────── */
.ica-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    transition: background .3s, backdrop-filter .3s, box-shadow .3s;
}
.ica-nav.scrolled {
    background: rgba(17,17,16,.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.ica-nav__inner {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.ica-nav__logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}
.ica-nav__logo-img {
    height: 36px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}
.ica-nav__logo-text {
    font-family: var(--f-body);
    font-size: 1.2rem;
    font-weight: 700;
    font-style: normal;
    color: #fff;
    letter-spacing: -.04em;
    line-height: 1;
}
.ica-nav__links {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}
.ica-nav__links a {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    transition: color .2s;
}
.ica-nav__links a:hover { color: #fff; }
/* Higher specificity (.ica-nav .ica-nav__cta) to override main.css .ica-nav a rule */
.ica-nav .ica-nav__cta {
    color: #fff;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
    padding: .45rem 1.1rem;
    border: 1.5px solid rgba(255,255,255,.6);
    border-radius: 100px;
    transition: background .2s, border-color .2s;
}
.ica-nav .ica-nav__cta:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* ── HERO ────────────────────────────────────────────────── */
.ica-hero {
    position: relative;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.ica-hero__bg {
    position: absolute;
    inset: 0;
}
.ica-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.15s linear;
}
.ica-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,10,9,.35) 0%,
        rgba(10,10,9,.55) 50%,
        rgba(10,10,9,.75) 100%
    );
}
.ica-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 0 2rem;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}
.ica-hero__eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #c8dfc8;
    margin-bottom: 1.25rem;
}
.ica-hero__title {
    font-family: var(--f-body);
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 1.25rem;
}
.ica-hero__title em {
    font-style: normal;
    font-weight: 300;
    color: rgba(255,255,255,.8);
}
.ica-hero__sub {
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    color: rgba(255,255,255,.7);
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.ica-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.ica-hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.ica-hero__scroll-hint span {
    display: block;
    width: 1.5px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.6));
    animation: scrollPulse 2s ease-in-out infinite;
    margin: 0 auto;
}
@keyframes scrollPulse {
    0%, 100% { opacity: .3; transform: scaleY(1); }
    50%       { opacity: 1;  transform: scaleY(1.1); }
}

/* ── TICKER ──────────────────────────────────────────────── */
.ica-ticker {
    background: var(--ica-claret);
    color: #fff;
    overflow: hidden;
    padding: .75rem 0;
    white-space: nowrap;
}
.ica-ticker__track {
    display: inline-flex;
    gap: 2rem;
    animation: ticker 28s linear infinite;
}
.ica-ticker__track span {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: .75rem;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── SECTIONS ────────────────────────────────────────────── */
.ica-section {
    padding: 6rem 0;
}
.ica-section--dark {
    background: var(--ica-dark);
}
.ica-section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.5rem;
}
.ica-section__foot {
    text-align: center;
    margin-top: 3rem;
}
.section-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ica-claret);
    margin-bottom: .75rem;
}
.section-tag--light { color: rgba(255,255,255,.5); }
.section-title {
    font-family: var(--f-body);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    color: var(--ica-text);
    margin-bottom: 1rem;
}
.section-title--light { color: #fff; }
.section-title em { font-style: normal; font-weight: 300; }
.section-sub {
    font-size: 1rem;
    color: var(--ica-muted);
    line-height: 1.7;
}
.section-sub--light { color: rgba(255,255,255,.55); }

/* ── RECIPE GRID ─────────────────────────────────────────── */
.ica-recipe-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .ica-recipe-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .ica-recipe-grid { grid-template-columns: 1fr; } }

.recipe-card {
    border-radius: var(--ica-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ica-border);
    transition: transform .3s, box-shadow .3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,.1);
}
.recipe-card__img-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.recipe-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.recipe-card:hover .recipe-card__img-wrap img { transform: scale(1.06); }
.recipe-card__tag {
    position: absolute;
    top: .75rem;
    left: .75rem;
    background: rgba(17,17,16,.7);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .6rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}
.recipe-card__body { padding: 1rem 1.1rem 1.2rem; }
.recipe-card__body h3 {
    font-family: var(--f-body);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: .5rem;
}
.recipe-card__meta {
    display: flex;
    gap: 1rem;
    font-size: .8rem;
    color: var(--ica-muted);
}

/* ── FEATURES ────────────────────────────────────────────── */
.ica-features {
    padding: 4rem 0 6rem;
    background: var(--ica-surface, #eee8d6);
}
.ica-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .ica-features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ica-features__grid { grid-template-columns: 1fr; } }

.feature-card {
    padding: 2rem 1.5rem;
    background: #fff;
    border-radius: var(--ica-radius);
    border: 1px solid var(--ica-border);
    transition: transform .3s, box-shadow .3s;
    display: block;
    text-decoration: none;
    color: inherit;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.07);
}
.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-family: var(--f-body);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: .5rem;
}
.feature-card p {
    font-size: .875rem;
    color: var(--ica-muted);
    line-height: 1.6;
}

/* ── YOUCOOKADA SPLIT ────────────────────────────────────── */
.ica-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
@media (max-width: 780px) {
    .ica-split { grid-template-columns: 1fr; gap: 3rem; }
    .ica-split__images { order: -1; }
}
.ica-split__text { color: #fff; }
.ica-feature-list {
    list-style: none;
    margin: 1.75rem 0 2rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.ica-feature-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .9rem;
    color: rgba(255,255,255,.75);
}
.ica-feature-list li span {
    color: var(--ica-forest);
    font-weight: 700;
    flex-shrink: 0;
}
.img-stack {
    position: relative;
    height: 460px;
}
.img-stack__main {
    position: absolute;
    top: 0; left: 0;
    width: 78%;
    height: 80%;
    object-fit: cover;
    border-radius: var(--ica-radius);
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.img-stack__secondary {
    position: absolute;
    bottom: 0; right: 0;
    width: 55%;
    height: 55%;
    object-fit: cover;
    border-radius: var(--ica-radius);
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
    border: 3px solid var(--ica-dark);
}

/* ── MANIFESTO ───────────────────────────────────────────── */
.ica-manifesto {
    padding: 7rem 0;
    background: var(--ica-bg);
}
.manifesto {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: none;
}
.manifesto p {
    font-family: var(--f-body);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: -.03em;
    color: var(--ica-text);
    margin-bottom: 1.25rem;
}
.manifesto footer {
    font-size: .9rem;
    color: var(--ica-muted);
    font-style: normal;
    letter-spacing: .02em;
}

/* ── NEWSLETTER ──────────────────────────────────────────── */
.ica-newsletter {
    padding: 6rem 0;
    background: var(--ica-forest);
    color: #fff;
}
.ica-newsletter__inner {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    color: #fff;
}
.ica-newsletter__inner h2 {
    font-family: var(--f-body);
    font-size: 2.4rem;
    font-weight: 300;
    margin-bottom: .75rem;
}
.ica-newsletter__inner p {
    font-size: .95rem;
    opacity: .85;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.ica-nl-form__row {
    display: flex;
    gap: .5rem;
    max-width: 420px;
    margin: 0 auto;
}
.ica-nl-form__row input {
    flex: 1;
    padding: .75rem 1.1rem;
    border: none;
    border-radius: 100px;
    font-size: .9rem;
    font-family: var(--f-body);
    outline: none;
    background: #fff;
    color: var(--ica-text);
}
.ica-nl-form__row input::placeholder { color: #aaa; }
.ica-nl-form__row .btn--primary {
    background: var(--ica-dark);
    color: #fff;
    white-space: nowrap;
}
.ica-nl-form__row .btn--primary:hover { background: #222; }

/* ── FOOTER ──────────────────────────────────────────────── */
.ica-footer {
    background: var(--ica-dark);
    padding: 3rem 0;
    color: rgba(255,255,255,.5);
}
.ica-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}
.ica-footer__logo {
    display: flex;
    align-items: center;
    gap: .4rem;
    text-decoration: none;
    font-family: var(--f-body);
    font-size: 1.2rem;
    font-weight: 700;
    font-style: normal;
    color: #fff;
    letter-spacing: -.02em;
}
.ica-footer__tagline {
    font-size: .85rem;
    color: rgba(255,255,255,.65);
}
.ica-footer__links {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    justify-content: center;
}
.ica-footer__links a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: .875rem;
    transition: color .2s;
}
.ica-footer__links a:hover { color: #fff; }
.ica-footer__copy {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
}
