/* tanso.day - Luxury Carbon Atelier */
/* Fonts: Quicksand (display), Nunito (body) */
/* Palette: Deep Burgundy
   #FFF5F0 - Rose White (primary bg)
   #4A0A1A - Deep Burgundy (headings)
   #2A0510 - Wine Dark (secondary emphasis)
   #C8808A - Muted Rose (secondary accent)
   #F5E8E0 - Blush Cream (alternate bg)
   #3A2828 - Warm Charcoal (body text)
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
    color: #3A2828;
    background-color: #FFF5F0;
    overflow-x: hidden;
}

/* =====================
   Section Base
   ===================== */

.section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.section-primary {
    background-color: #FFF5F0;
}

.section-alternate {
    background-color: #F5E8E0;
}

.section-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    width: 100%;
    padding: 4rem 1.5rem;
    margin: 0 auto;
}

/* =====================
   Botanical Backgrounds
   ===================== */

.botanical-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.12;
    pointer-events: none;
}

.botanical-leaf-veins {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cpath d='M400,50 C400,50 400,750 400,750' fill='none' stroke='%234A0A1A' stroke-width='3'/%3E%3Cpath d='M400,100 C350,130 280,150 200,160' fill='none' stroke='%234A0A1A' stroke-width='2'/%3E%3Cpath d='M400,100 C450,130 520,150 600,160' fill='none' stroke='%234A0A1A' stroke-width='2'/%3E%3Cpath d='M400,200 C350,230 280,250 180,265' fill='none' stroke='%234A0A1A' stroke-width='2'/%3E%3Cpath d='M400,200 C450,230 520,250 620,265' fill='none' stroke='%234A0A1A' stroke-width='2'/%3E%3Cpath d='M400,300 C350,330 280,355 160,370' fill='none' stroke='%234A0A1A' stroke-width='2'/%3E%3Cpath d='M400,300 C450,330 520,355 640,370' fill='none' stroke='%234A0A1A' stroke-width='2'/%3E%3Cpath d='M400,400 C350,430 280,455 150,475' fill='none' stroke='%234A0A1A' stroke-width='1.5'/%3E%3Cpath d='M400,400 C450,430 520,455 650,475' fill='none' stroke='%234A0A1A' stroke-width='1.5'/%3E%3Cpath d='M400,500 C350,530 290,555 170,575' fill='none' stroke='%234A0A1A' stroke-width='1.5'/%3E%3Cpath d='M400,500 C450,530 510,555 630,575' fill='none' stroke='%234A0A1A' stroke-width='1.5'/%3E%3Cpath d='M400,600 C360,625 310,645 200,665' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M400,600 C440,625 490,645 600,665' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M300,130 C285,145 265,155 240,160' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M500,130 C515,145 535,155 560,160' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M320,230 C305,245 280,258 250,265' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M480,230 C495,245 520,258 550,265' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M330,335 C315,350 290,365 255,370' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M470,335 C485,350 510,365 545,370' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.botanical-flower-cross {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Ccircle cx='300' cy='300' r='120' fill='none' stroke='%234A0A1A' stroke-width='2'/%3E%3Ccircle cx='300' cy='300' r='60' fill='none' stroke='%234A0A1A' stroke-width='1.5'/%3E%3Ccircle cx='300' cy='300' r='20' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M300,180 C330,220 330,280 300,300 C270,280 270,220 300,180Z' fill='none' stroke='%234A0A1A' stroke-width='1.2'/%3E%3Cpath d='M300,420 C330,380 330,320 300,300 C270,320 270,380 300,420Z' fill='none' stroke='%234A0A1A' stroke-width='1.2'/%3E%3Cpath d='M180,300 C220,270 280,270 300,300 C280,330 220,330 180,300Z' fill='none' stroke='%234A0A1A' stroke-width='1.2'/%3E%3Cpath d='M420,300 C380,270 320,270 300,300 C320,330 380,330 420,300Z' fill='none' stroke='%234A0A1A' stroke-width='1.2'/%3E%3Cpath d='M215,215 C245,235 275,275 300,300 C275,325 235,295 215,215Z' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M385,215 C355,235 325,275 300,300 C325,325 365,295 385,215Z' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M215,385 C245,365 275,325 300,300 C275,275 235,305 215,385Z' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M385,385 C355,365 325,325 300,300 C325,275 365,305 385,385Z' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cline x1='300' y1='180' x2='300' y2='420' stroke='%234A0A1A' stroke-width='0.5'/%3E%3Cline x1='180' y1='300' x2='420' y2='300' stroke='%234A0A1A' stroke-width='0.5'/%3E%3Cline x1='215' y1='215' x2='385' y2='385' stroke='%234A0A1A' stroke-width='0.5'/%3E%3Cline x1='385' y1='215' x2='215' y2='385' stroke='%234A0A1A' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 70%;
    background-position: center;
    background-repeat: no-repeat;
}

.botanical-root-system {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cpath d='M400,100 L400,300' fill='none' stroke='%234A0A1A' stroke-width='3'/%3E%3Cpath d='M400,300 C380,400 340,500 280,650' fill='none' stroke='%234A0A1A' stroke-width='2.5'/%3E%3Cpath d='M400,300 C420,400 460,500 520,650' fill='none' stroke='%234A0A1A' stroke-width='2.5'/%3E%3Cpath d='M400,300 C400,400 400,550 400,700' fill='none' stroke='%234A0A1A' stroke-width='2'/%3E%3Cpath d='M400,350 C370,380 330,400 280,420' fill='none' stroke='%234A0A1A' stroke-width='1.5'/%3E%3Cpath d='M400,350 C430,380 470,400 520,420' fill='none' stroke='%234A0A1A' stroke-width='1.5'/%3E%3Cpath d='M340,450 C310,480 270,510 220,550' fill='none' stroke='%234A0A1A' stroke-width='1.2'/%3E%3Cpath d='M460,450 C490,480 530,510 580,550' fill='none' stroke='%234A0A1A' stroke-width='1.2'/%3E%3Cpath d='M280,420 C260,450 230,470 190,490' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M520,420 C540,450 570,470 610,490' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M300,550 C275,580 245,610 210,650' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M500,550 C525,580 555,610 590,650' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M400,500 C385,530 360,560 330,600' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M400,500 C415,530 440,560 470,600' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Ccircle cx='280' cy='650' r='4' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Ccircle cx='520' cy='650' r='4' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Ccircle cx='400' cy='700' r='4' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Ccircle cx='210' cy='650' r='3' fill='none' stroke='%234A0A1A' stroke-width='0.6'/%3E%3Ccircle cx='590' cy='650' r='3' fill='none' stroke='%234A0A1A' stroke-width='0.6'/%3E%3C/svg%3E");
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

.botanical-closing-frame {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Crect x='80' y='80' width='440' height='440' rx='8' fill='none' stroke='%234A0A1A' stroke-width='1.5'/%3E%3Cpath d='M80,150 C120,140 150,120 150,80' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M80,450 C120,460 150,480 150,520' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M520,150 C480,140 450,120 450,80' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M520,450 C480,460 450,480 450,520' fill='none' stroke='%234A0A1A' stroke-width='1'/%3E%3Cpath d='M100,100 C115,95 125,85 130,80' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M100,100 C95,115 85,125 80,130' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M500,100 C485,95 475,85 470,80' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M500,100 C505,115 515,125 520,130' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M100,500 C115,505 125,515 130,520' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M100,500 C95,485 85,475 80,470' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M500,500 C485,505 475,515 470,520' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3Cpath d='M500,500 C505,485 515,475 520,470' fill='none' stroke='%234A0A1A' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: 90%;
    background-position: center;
    background-repeat: no-repeat;
}

/* =====================
   Corner Motifs
   ===================== */

.corner-motif {
    position: absolute;
    z-index: 1;
    opacity: 0.12;
    pointer-events: none;
}

.corner-motif svg {
    width: 160px;
    height: 160px;
}

.corner-top-left {
    top: 20px;
    left: 20px;
}

.corner-top-right {
    top: 20px;
    right: 20px;
}

.corner-bottom-left {
    bottom: 20px;
    left: 20px;
}

.corner-bottom-right {
    bottom: 20px;
    right: 20px;
}

/* =====================
   Hero Section
   ===================== */

#hero {
    min-height: 100vh;
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
}

.typewriter {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #4A0A1A;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid #4A0A1A;
    width: 0;
    animation: typing 2s steps(9, end) 0.5s forwards, blink-caret 0.6s step-end infinite;
    letter-spacing: 0.02em;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 9ch;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: #4A0A1A;
    }
    50% {
        border-color: transparent;
    }
}

.hero-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: #C8808A;
    margin-top: 1.5rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-in 1s ease 3s forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   Section 2: Philosophy
   ===================== */

.content-card {
    position: relative;
    padding: 3rem 2.5rem;
}

.botanical-framed {
    border: 1px solid rgba(74, 10, 26, 0.15);
    border-radius: 4px;
    background-color: rgba(255, 245, 240, 0.5);
}

.botanical-frame-top,
.botanical-frame-bottom {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.botanical-frame-top {
    margin-bottom: 1.5rem;
}

.botanical-frame-bottom {
    margin-top: 1.5rem;
}

.botanical-frame-top svg,
.botanical-frame-bottom svg {
    width: 100%;
    height: 40px;
    opacity: 0.4;
}

.content-card h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 700;
    color: #4A0A1A;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.content-card p {
    color: #3A2828;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.accent-line {
    display: block;
    width: 60px;
    height: 2px;
    background-color: #C8808A;
    margin: 1.5rem 0;
}

.detail-text {
    color: #3A2828;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* =====================
   Section 3: Carbon Cycle
   ===================== */

.pull-quote {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #4A0A1A;
    line-height: 1.6;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 3rem;
    position: relative;
    border-left: 3px solid #C8808A;
    padding-left: 1.5rem;
    text-align: left;
}

.pull-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.3rem;
    left: -0.8rem;
    font-size: 4rem;
    color: #2A0510;
    opacity: 0.25;
    font-family: 'Quicksand', sans-serif;
    line-height: 1;
}

.cycle-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.cycle-item {
    text-align: center;
    padding: 1.5rem 1rem;
}

.cycle-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.cycle-icon svg {
    width: 100%;
    height: 100%;
}

.cycle-item h3 {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4A0A1A;
    margin-bottom: 0.5rem;
}

.cycle-item p {
    color: #3A2828;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =====================
   Section 4: Closing
   ===================== */

#section-closing {
    min-height: 80vh;
}

.closing-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.closing-card {
    background-color: #F5E8E0;
    border: 1px solid rgba(74, 10, 26, 0.12);
    border-radius: 6px;
    padding: 3.5rem 3rem;
    max-width: 480px;
    margin: 0 auto;
}

.botanical-frame-ornament {
    width: 100%;
    display: flex;
    justify-content: center;
}

.botanical-frame-ornament svg {
    width: 250px;
    height: 50px;
    opacity: 0.35;
}

.closing-domain {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #2A0510;
    margin: 1.5rem 0 0.5rem;
    letter-spacing: 0.03em;
}

.closing-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #C8808A;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* =====================
   Responsive
   ===================== */

@media (min-width: 768px) {
    .cycle-details {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 2rem;
    }

    .corner-motif svg {
        width: 200px;
        height: 200px;
    }

    .content-card {
        padding: 3.5rem 3rem;
    }
}

@media (max-width: 480px) {
    .corner-motif svg {
        width: 100px;
        height: 100px;
    }

    .content-card {
        padding: 2rem 1.5rem;
    }

    .closing-card {
        padding: 2.5rem 2rem;
    }

    .pull-quote {
        font-size: 1.1rem;
    }
}
