/* ============================================================
   SHRINGAR PLYWOOD — "The Journey of Wood" Storybook Homepage
   Hand-drawn / storybook interactive experience
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Caveat:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --story-parchment: #f6ecd8;
    --story-parchment-2: #efe1c6;
    --story-ink: #3a2a1a;
    --story-wood: #8b5e3c;
    --story-wood-dark: #5c3a21;
    --story-wood-light: #c69c6d;
    --story-green: #4a7c3a;
    --story-green-dark: #2e5a1f;
    --story-green-light: #7fb069;
    --story-amber: #e0a458;
    --story-amber-deep: #cf8a3a;
    --story-sky: #bfe3f0;
    --story-sky-deep: #8ecae6;
    --font-display: 'Fredoka', sans-serif;
    --font-hand: 'Caveat', cursive;
    --font-body: 'Nunito', sans-serif;
}

/* ---------- Reset the page to a clean storybook canvas ---------- */
body.sp-story-page {
    margin: 0;
    font-family: var(--font-body);
    color: var(--story-ink);
    background: var(--story-parchment);
    overflow-x: hidden;
}

/* Break the story out of WoodMart's centered container → full-bleed edge to edge */
body.sp-story-page .main-page-wrapper > .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.sp-story-page .content-layout-wrapper,
body.sp-story-page .row.content-layout-wrapper {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.sp-story-page .content-layout-wrapper > .sp-story {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    flex: 0 0 100% !important;
}

.sp-story * { box-sizing: border-box; }

/* Paper grain texture overlay */
.sp-story {
    position: relative;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139,94,60,0.06) 0%, transparent 50%),
        var(--story-parchment);
}
.sp-story::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
}

/* Hand-drawn wobble filter target */
.sp-rough { filter: url(#sp-rough); }

/* ============================================================
   SCROLL PROGRESS — a growing vine on the side
   ============================================================ */
.sp-progress {
    position: fixed;
    top: 0; left: 0;
    height: 6px;
    width: 0%;
    z-index: 999;
    background: linear-gradient(90deg, var(--story-green-light), var(--story-green), var(--story-amber));
    border-radius: 0 4px 4px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: width 0.1s linear;
}

/* ============================================================
   THE GUIDE CHARACTER — "Timber the Sapling"
   Floats along, reacts as you scroll
   ============================================================ */
.sp-guide {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 130px;
    height: 130px;
    z-index: 50;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(.34,1.56,.64,1), opacity 0.5s ease;
    animation: sp-float 3.5s ease-in-out infinite;
}
.sp-guide svg { width: 100%; height: 100%; overflow: visible; }
@keyframes sp-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-14px) rotate(2deg); }
}
.sp-guide .sp-speech {
    position: absolute;
    bottom: 105%;
    right: 10%;
    background: #fff;
    border: 3px solid var(--story-wood-dark);
    border-radius: 18px;
    padding: 8px 14px;
    font-family: var(--font-hand);
    font-size: 1.25rem;
    color: var(--story-wood-dark);
    white-space: nowrap;
    box-shadow: 3px 4px 0 rgba(92,58,33,0.2);
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    transition: all 0.4s cubic-bezier(.34,1.56,.64,1);
}
.sp-guide.talking .sp-speech { opacity: 1; transform: translateY(0) scale(1); }
.sp-guide .sp-speech::after {
    content: "";
    position: absolute;
    bottom: -12px; right: 24px;
    border: 8px solid transparent;
    border-top-color: var(--story-wood-dark);
}

/* ============================================================
   GENERIC SECTION / CHAPTER LAYOUT
   ============================================================ */
.sp-chapter {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    overflow: hidden;
}
.sp-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.sp-chapter.sp-reverse .sp-inner { direction: rtl; }
.sp-chapter.sp-reverse .sp-inner > * { direction: ltr; }

.sp-chapter-num {
    font-family: var(--font-hand);
    font-size: 1.6rem;
    color: var(--story-amber-deep);
    margin: 0 0 6px;
    transform: rotate(-3deg);
    display: inline-block;
}
.sp-chapter h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    color: var(--story-wood-dark);
    margin: 0 0 18px;
}
.sp-chapter p {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--story-ink);
    margin: 0 0 14px;
    max-width: 30em;
}
.sp-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sp-art svg { width: 100%; max-width: 360px; height: auto; overflow: visible; }
/* About Us — keep illustrations compact */
.sp-about .sp-art svg { max-width: 220px; }

/* ============================================================
   HERO
   ============================================================ */
.sp-hero {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px 24px 30px;
    position: relative;
    z-index: 2;
    background:
        linear-gradient(180deg, var(--story-sky) 0%, var(--story-sky-deep) 35%, var(--story-parchment) 100%);
}
.sp-hero-kicker {
    font-family: var(--font-hand);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--story-green-dark);
    transform: rotate(-2deg);
    margin: 0 0 8px;
}
.sp-hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 8vw, 6rem);
    line-height: 0.95;
    color: var(--story-wood-dark);
    margin: 0 0 18px;
    text-shadow: 3px 4px 0 rgba(255,255,255,0.5);
}
.sp-hero h1 .leaf { color: var(--story-green); }
.sp-hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    max-width: 30em;
    margin: 0 auto 30px;
    color: var(--story-wood-dark);
}
.sp-scroll-hint {
    margin-top: 20px;
    font-family: var(--font-hand);
    font-size: 1.4rem;
    color: var(--story-wood-dark);
    animation: sp-bob 1.8s ease-in-out infinite;
}
@keyframes sp-bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* Hero ground / hills */
.sp-hero-scene { width: 100%; max-width: 900px; margin-top: 10px; }
.sp-hero-scene svg { width: 100%; height: auto; overflow: visible; }

/* ============================================================
   FINALE — Shringar Plywood today
   ============================================================ */
.sp-finale {
    text-align: center;
    background: linear-gradient(180deg, var(--story-parchment) 0%, var(--story-green-dark) 100%);
    color: #fff;
    padding: 110px 24px 130px;
}
.sp-finale h2 { color: #fff; text-shadow: 2px 3px 0 rgba(0,0,0,0.2); }
.sp-finale p { color: #f3ead7; margin-left: auto; margin-right: auto; }
.sp-cta-row {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}
.sp-btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    padding: 16px 34px;
    border-radius: 40px;
    text-decoration: none;
    border: 3px solid var(--story-wood-dark);
    box-shadow: 4px 5px 0 rgba(0,0,0,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-block;
}
.sp-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 7px 0 rgba(0,0,0,0.25); }
.sp-btn:active { transform: translate(2px,3px); box-shadow: 1px 2px 0 rgba(0,0,0,0.25); }
.sp-btn-primary { background: var(--story-amber); color: var(--story-wood-dark); }
.sp-btn-ghost { background: #fff; color: var(--story-green-dark); }

/* ============================================================
   PLYWOOD LAYERS — the "birth of plywood" animated stack
   ============================================================ */
.sp-ply-stack { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 360px; }
.sp-ply-layer {
    height: 26px;
    border-radius: 6px;
    border: 2px solid var(--story-wood-dark);
    background: repeating-linear-gradient(90deg, var(--story-wood-light) 0 8px, var(--story-wood) 8px 16px);
    opacity: 0;
    transform: translateX(-40px);
}
.is-visible .sp-ply-layer { animation: sp-slide-in 0.5s forwards; }
.is-visible .sp-ply-layer:nth-child(2){animation-delay:.12s}
.is-visible .sp-ply-layer:nth-child(3){animation-delay:.24s}
.is-visible .sp-ply-layer:nth-child(4){animation-delay:.36s}
.is-visible .sp-ply-layer:nth-child(5){animation-delay:.48s}
.sp-ply-layer:nth-child(even){
    background: repeating-linear-gradient(0deg, var(--story-wood-light) 0 8px, var(--story-wood) 8px 16px);
}
@keyframes sp-slide-in { to { opacity: 1; transform: translateX(0); } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.sp-reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,1,.36,1); }
.sp-reveal.is-visible { opacity: 1; transform: none; }
.sp-reveal-left  { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,1,.36,1); }
.sp-reveal-left.is-visible { opacity: 1; transform: none; }
.sp-reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,1,.36,1); }
.sp-reveal-right.is-visible { opacity: 1; transform: none; }

/* SVG draw-in for connecting path */
.sp-draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 1.6s ease; }
.is-visible .sp-draw { stroke-dashoffset: 0; }

/* Floating leaves decoration */
.sp-leaf {
    position: absolute;
    width: 26px; height: 26px;
    color: var(--story-green-light);
    opacity: 0.8;
    animation: sp-fall 9s linear infinite;
    z-index: 2;
}
@keyframes sp-fall {
    0%   { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.9; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Gentle bob for scene props */
.sp-bobber { animation: sp-float 4s ease-in-out infinite; transform-origin: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
    .sp-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
    .sp-chapter.sp-reverse .sp-inner { direction: ltr; }
    .sp-chapter p { margin-left: auto; margin-right: auto; }
    .sp-art { order: -1; }
    .sp-guide { width: 90px; height: 90px; bottom: 14px; right: 14px; }
    .sp-guide .sp-speech { font-size: 1rem; white-space: normal; width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
    .sp-guide, .sp-bobber, .sp-leaf, .sp-scroll-hint { animation: none !important; }
    .sp-reveal, .sp-reveal-left, .sp-reveal-right { transition: none; opacity: 1; transform: none; }
}

/* ============================================================
   ABOUT US PAGE
   ============================================================ */

/* Hero */
.sp-about-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 70px 24px 0;
    overflow: hidden;
    background: linear-gradient(180deg, var(--story-sky) 0%, var(--story-parchment) 100%);
    z-index: 2;
}
.sp-about-hero-inner { position: relative; z-index: 2; }
.sp-about-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--story-wood-dark);
    line-height: 1;
    margin: 8px 0 20px;
    text-shadow: 2px 3px 0 rgba(255,255,255,0.5);
}
.sp-about-lead {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--story-wood-dark);
    max-width: 34em;
    margin: 0 auto;
}
.sp-about-scene {
    width: 100%;
    margin-top: auto;
    line-height: 0;
}
.sp-about-scene svg { width: 100%; height: 70px; }

/* Section title */
.sp-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--story-wood-dark);
    text-align: center;
    margin: 0 0 40px;
}

/* Three pillars */
.sp-about-pillars {
    background: var(--story-parchment-2);
    padding: 70px 24px;
    position: relative;
    z-index: 2;
}
.sp-about-pillars-inner { max-width: 1100px; margin: 0 auto; }
.sp-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.sp-pillar {
    background: var(--story-parchment);
    border: 2.5px solid var(--story-wood-light);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 4px 5px 0 rgba(92,58,33,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sp-pillar:hover {
    transform: translateY(-4px);
    box-shadow: 4px 9px 0 rgba(92,58,33,0.14);
}
.sp-pillar-icon { width: 64px; height: 64px; margin: 0 auto 18px; }
.sp-pillar h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--story-wood-dark);
    margin: 0 0 12px;
}
.sp-pillar p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--story-ink);
    margin: 0;
    max-width: none;
}

/* About CTA */
.sp-about-cta { padding: 100px 24px 120px; }

@media (max-width: 820px) {
    .sp-pillars-grid { grid-template-columns: 1fr; }
    .sp-about-hero { min-height: 45vh; }
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.sp-woods-grid { grid-template-columns: repeat(4, 1fr); }

.sp-prod-cards-section {
    padding: 70px 24px;
    background: var(--story-parchment);
    position: relative;
    z-index: 2;
}
.sp-prod-cards-inner { max-width: 1100px; margin: 0 auto; }

.sp-prod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.sp-prod-card {
    background: #fff;
    border: 2.5px solid var(--story-wood-light);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 4px 5px 0 rgba(92,58,33,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sp-prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 4px 10px 0 rgba(92,58,33,0.14);
}
.sp-prod-img { width: 100%; height: 200px; overflow: hidden; }
.sp-prod-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-prod-body { padding: 24px 26px 28px; }
.sp-prod-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--story-wood-dark);
    margin: 0 0 10px;
}
.sp-prod-body p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--story-ink);
    margin: 0 0 16px;
    max-width: none;
}
.sp-prod-link {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--story-wood);
    text-decoration: none;
    border-bottom: 2px solid var(--story-amber);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.sp-prod-link:hover { color: var(--story-wood-dark); border-color: var(--story-wood-dark); }

/* Products page — keep art compact */
.sp-products-page .sp-art svg { max-width: 200px; }

@media (max-width: 820px) {
    .sp-prod-grid { grid-template-columns: 1fr; }
    .sp-woods-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   TIMBER TALK — BLOG PAGE
   ============================================================ */
.sp-blog-section {
    padding: 70px 24px 80px;
    background: var(--story-parchment);
    position: relative; z-index: 2;
}
.sp-blog-inner { max-width: 1100px; margin: 0 auto; }
.sp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.sp-blog-card {
    background: #fff;
    border: 2.5px solid var(--story-wood-light);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 4px 5px 0 rgba(92,58,33,0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sp-blog-card:hover { transform: translateY(-5px); box-shadow: 4px 10px 0 rgba(92,58,33,0.14); }
.sp-blog-illus {
    width: 100%;
    background: #e8dcc8;
    border-bottom: 2.5px solid var(--story-wood-light);
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    transition: transform 0.35s ease;
}
.sp-blog-illus svg { width: 100%; height: auto; display: block; }
.sp-blog-card:hover .sp-blog-illus { transform: scale(1.03); transform-origin: center top; }
.sp-blog-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.sp-blog-date {
    font-family: var(--font-hand);
    font-size: 1rem;
    color: var(--story-amber-deep);
    margin-bottom: 6px;
    display: block;
}
.sp-blog-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--story-wood-dark);
    margin: 0 0 10px;
    line-height: 1.3;
}
.sp-blog-body h3 a { color: inherit; text-decoration: none; }
.sp-blog-body h3 a:hover { color: var(--story-wood); }
.sp-blog-body p { font-size: 1rem; line-height: 1.65; color: var(--story-ink); margin: 0 0 16px; flex: 1; max-width: none; }
.sp-blog-full {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--story-ink);
    margin-bottom: 14px;
    animation: sp-fade-in 0.3s ease;
}
.sp-blog-full p { margin: 0 0 12px; max-width: none; }
.sp-blog-full strong { color: var(--story-wood-dark); }
.sp-blog-full ul, .sp-blog-full ol { padding-left: 20px; margin: 0 0 12px; }
.sp-blog-full li { margin-bottom: 4px; }
@keyframes sp-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sp-blog-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--story-wood);
    background: none;
    border: 2px solid var(--story-wood-light);
    border-radius: 20px;
    padding: 7px 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    align-self: flex-start;
    margin-top: auto;
}
.sp-blog-toggle:hover,
.sp-blog-toggle[aria-expanded="true"] { background: var(--story-wood-dark); color: var(--story-parchment); border-color: var(--story-wood-dark); }
.sp-toggle-arrow { transition: transform 0.25s ease; display: inline-block; }
.sp-blog-toggle[aria-expanded="true"] .sp-toggle-arrow { transform: rotate(180deg); }
.sp-blog-empty { text-align: center; font-family: var(--font-hand); font-size: 1.4rem; color: var(--story-wood); padding: 60px 0; }

@media (max-width: 820px) { .sp-blog-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT US PAGE
   ============================================================ */
.sp-contact-body {
    padding: 70px 24px 90px;
    background: var(--story-parchment);
    position: relative; z-index: 2;
}
.sp-contact-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}
.sp-contact-details .sp-chapter-num { margin-bottom: 4px; display: block; }
.sp-contact-details h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--story-wood-dark); margin: 0 0 32px; }
.sp-contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 26px;
}
.sp-contact-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--story-parchment-2);
    border: 2px solid var(--story-wood-light);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--story-wood-dark);
}
.sp-contact-item strong { font-family: var(--font-display); font-size: 1rem; color: var(--story-wood-dark); display: block; margin-bottom: 4px; }
.sp-contact-item p { margin: 0; font-size: 1rem; line-height: 1.6; color: var(--story-ink); max-width: none; }
.sp-contact-item a { color: var(--story-wood); text-decoration: none; font-weight: 600; }
.sp-contact-item a:hover { text-decoration: underline; }
.sp-contact-hours { font-size: 0.88rem; color: var(--story-wood-light); }
.sp-contact-map-art { margin-top: 28px; max-width: 220px; }
.sp-contact-map-art svg { width: 100%; height: auto; }

/* Form */
.sp-contact-form-wrap .sp-chapter-num { margin-bottom: 4px; display: block; }
.sp-contact-form-wrap h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--story-wood-dark); margin: 0 0 28px; }
.sp-contact-form { display: flex; flex-direction: column; gap: 18px; }
.sp-field { display: flex; flex-direction: column; gap: 6px; }
.sp-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-field label { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--story-wood-dark); }
.sp-field input,
.sp-field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--story-ink);
    background: #fff;
    border: 2px solid var(--story-wood-light);
    border-radius: 12px;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}
.sp-field input:focus,
.sp-field textarea:focus {
    border-color: var(--story-wood);
    box-shadow: 0 0 0 3px rgba(139,94,60,0.15);
}
.sp-field textarea { resize: vertical; min-height: 130px; }
.sp-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--story-parchment);
    background: var(--story-wood-dark);
    border: 2.5px solid var(--story-wood-dark);
    border-radius: 30px;
    padding: 14px 32px;
    cursor: pointer;
    box-shadow: 4px 5px 0 rgba(61,34,16,0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    align-self: flex-start;
}
.sp-submit-btn:hover { transform: translate(-2px,-2px); box-shadow: 6px 7px 0 rgba(61,34,16,0.25); }
.sp-form-success {
    background: #d4edda;
    border: 2px solid #4a7c3a;
    color: #2e5a1f;
    border-radius: 10px;
    padding: 12px 18px;
    font-family: var(--font-display);
    font-size: 1rem;
    margin-top: 4px;
}

@media (max-width: 820px) {
    .sp-contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .sp-field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — TABLET / IPAD  (≤1024px)
   ============================================================ */
@media (max-width: 1024px) {
    /* Blog: 3 col → 2 col */
    .sp-blog-grid { grid-template-columns: repeat(2, 1fr); }

    /* Woods: 4 col → 2 col */
    .sp-woods-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Pillars: 3 col → 2 col */
    .sp-pillars-grid { grid-template-columns: repeat(2, 1fr); }

    /* Section padding */
    .sp-about-pillars,
    .sp-prod-cards-section,
    .sp-blog-section,
    .sp-contact-body { padding-left: 20px; padding-right: 20px; }

    /* Contact grid stays 2 col on landscape iPad, stacks on portrait handled below */
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤640px)
   ============================================================ */
@media (max-width: 640px) {
    /* Grids → single column */
    .sp-blog-grid { grid-template-columns: 1fr; }
    .sp-pillars-grid { grid-template-columns: 1fr; }
    .sp-woods-grid { grid-template-columns: 1fr !important; }
    .sp-prod-grid { grid-template-columns: 1fr; }

    /* Tighter section padding */
    .sp-about-pillars,
    .sp-wood-types,
    .sp-prod-cards-section,
    .sp-blog-section,
    .sp-contact-body { padding-top: 48px; padding-bottom: 56px; padding-left: 16px; padding-right: 16px; }

    .sp-about-cta,
    .sp-finale { padding: 60px 16px 72px; }

    /* Hero */
    .sp-about-hero { padding: 48px 16px 0; min-height: 40vh; }
    .sp-about-hero h1 { font-size: clamp(2rem, 10vw, 3rem); }
    .sp-about-lead { font-size: 1rem; }

    /* Section titles */
    .sp-section-title { font-size: clamp(1.5rem, 6vw, 2rem); margin-bottom: 28px; }

    /* CTA buttons stack */
    .sp-cta-row { flex-direction: column; align-items: center; gap: 12px; }
    .sp-btn { width: 100%; max-width: 300px; text-align: center; justify-content: center; }

    /* Contact form */
    .sp-submit-btn { width: 100%; justify-content: center; }
    .sp-contact-details h2,
    .sp-contact-form-wrap h2 { font-size: 1.6rem; }

    /* Product action buttons */
    .sp-product-actions { flex-direction: column; }
    .sp-action-btn { justify-content: center; }

    /* Blog toggle */
    .sp-blog-toggle { width: 100%; justify-content: center; }

    /* Timber guide smaller on phones */
    .sp-guide { width: 72px; height: 72px; bottom: 10px; right: 10px; }
    .sp-guide .sp-speech { font-size: 0.85rem; width: 130px; }

    /* Chapter sections */
    .sp-inner { padding: 0 16px; }
    .sp-chapter { padding: 48px 0; }
    .sp-chapter h2 { font-size: clamp(1.5rem, 7vw, 2.2rem); }
    .sp-chapter p { font-size: 1rem; }
}

/* ============================================================
   RESPONSIVE — SMALL PHONES  (≤380px)
   ============================================================ */
@media (max-width: 380px) {
    .sp-about-hero h1 { font-size: 1.9rem; }
    .sp-section-title { font-size: 1.4rem; }
    .sp-header-inner { padding: 0 14px; }
    .sp-pillar { padding: 24px 18px; }
    .sp-blog-body,
    .sp-prod-body { padding: 18px 18px 22px; }
}
