/* ===================================================================
 *  proposal2.css — "The Storyteller" editorial scroll experience
 *  ITAMOA.COM landing page proposal
 * =================================================================== */

/* -------------------------------------------------------------------
 * # CSS Variables — Light Theme (default)
 * ------------------------------------------------------------------- */
:root {
    --p2-bg: #F8F7F5;
    --p2-text: #2C2C2C;
    --p2-text-muted: #6b6b6b;
    --p2-accent: #1a1a1a;
    --p2-highlight: rgba(200, 180, 140, 0.2);
    --p2-line: rgba(44, 44, 44, 0.15);
}

/* -------------------------------------------------------------------
 * # CSS Variables — Dark Theme
 * ------------------------------------------------------------------- */
.theme-dark {
    --p2-bg: #0a0a0a;
    --p2-text: #e8e8e8;
    --p2-text-muted: #a0a0a0;
    --p2-accent: #f0f0f0;
    --p2-highlight: rgba(200, 180, 140, 0.15);
    --p2-line: rgba(255, 255, 255, 0.15);
}

/* -------------------------------------------------------------------
 * # Body base styles
 * ------------------------------------------------------------------- */
body {
    margin: 0;
    padding: 0;
    background-color: var(--p2-bg);
    color: var(--p2-text);
    font-family: "montserrat-light", sans-serif;
    font-size: 10px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

/* -------------------------------------------------------------------
 * # Header
 * ------------------------------------------------------------------- */
.p2-header {
    position: relative;
    padding: 3rem 2rem;
    text-align: center;
}

.p2-header__logo {
    display: inline-block;
}

.p2-header__logo img {
    height: 30px;
    width: auto;
    filter: brightness(0);
    transition: filter 0.4s ease;
}

.theme-dark .p2-header__logo img {
    filter: brightness(0) invert(1);
}

/* -------------------------------------------------------------------
 * # Theme toggle
 * ------------------------------------------------------------------- */
.p2-theme-toggle {
    position: absolute;
    top: 3rem;
    right: 2rem;
    background: none;
    border: 1px solid var(--p2-line);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: border-color 0.3s ease;
}

.p2-theme-toggle:hover {
    border-color: var(--p2-accent);
}

.p2-theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--p2-text);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

/* -------------------------------------------------------------------
 * # Hero
 * ------------------------------------------------------------------- */
.p2-hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.p2-hero__headline {
    font-family: "lora-regular", serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 1.15;
    color: var(--p2-accent);
    max-width: 900px;
    margin: 0 0 2rem 0;
    letter-spacing: -0.02em;
}

.p2-hero__subtitle {
    font-family: "montserrat-light", sans-serif;
    font-size: 1.6rem;
    color: var(--p2-text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: 0;
}

.p2-hero__scroll {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.p2-hero__scroll-text {
    font-family: "montserrat-regular", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--p2-text-muted);
}

.p2-hero__scroll-chevron {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid var(--p2-text-muted);
    border-bottom: 1.5px solid var(--p2-text-muted);
    transform: rotate(45deg);
    animation: p2-bounce 2s ease infinite;
}

/* -------------------------------------------------------------------
 * # Scroll indicator animation
 * ------------------------------------------------------------------- */
@keyframes p2-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    40% {
        transform: rotate(45deg) translateY(8px);
    }
    60% {
        transform: rotate(45deg) translateY(4px);
    }
}

/* -------------------------------------------------------------------
 * # Chapter sections
 * ------------------------------------------------------------------- */
.p2-chapter {
    position: relative;
    padding: 12rem 4rem 10rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* -------------------------------------------------------------------
 * # Alternating chapter layouts
 * ------------------------------------------------------------------- */
.p2-chapter--left {
    text-align: left;
    padding-left: 10rem;
}

.p2-chapter--right {
    text-align: right;
    padding-right: 10rem;
}

.p2-chapter--right .p2-body,
.p2-chapter--right .p2-fresh {
    margin-left: auto;
    margin-right: 0;
}

.p2-chapter--left .p2-body,
.p2-chapter--left .p2-fresh {
    margin-left: 0;
    margin-right: auto;
}

.p2-chapter--center {
    text-align: center;
}

.p2-chapter--center .p2-body,
.p2-chapter--center .p2-fresh {
    margin-left: auto;
    margin-right: auto;
}

/* -------------------------------------------------------------------
 * # Chapter watermark numbers
 * ------------------------------------------------------------------- */
.p2-watermark {
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: "lora-regular", serif;
    font-size: clamp(10rem, 20vw, 20rem);
    line-height: 1;
    color: var(--p2-text);
    opacity: 0.04;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

/* -------------------------------------------------------------------
 * # Pull quotes
 * ------------------------------------------------------------------- */
.p2-pull-quote {
    font-family: "lora-italic", serif;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.35;
    color: var(--p2-accent);
    border-left: 3px solid var(--p2-accent);
    padding-left: 2rem;
    margin: 0 0 4rem 0;
    position: relative;
    z-index: 1;
}

.p2-chapter--right .p2-pull-quote {
    border-left: none;
    border-right: 3px solid var(--p2-accent);
    padding-left: 0;
    padding-right: 2rem;
}

.p2-chapter--center .p2-pull-quote {
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
    display: inline-block;
    border-bottom: 3px solid var(--p2-accent);
    padding-bottom: 1rem;
}

/* -------------------------------------------------------------------
 * # Labels
 * ------------------------------------------------------------------- */
.p2-label {
    font-family: "montserrat-regular", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--p2-text-muted);
    margin: 0 0 3rem 0;
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------
 * # Body text
 * ------------------------------------------------------------------- */
.p2-body {
    max-width: 600px;
    font-family: "montserrat-light", sans-serif;
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--p2-text);
    margin: 0 0 3rem 0;
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------
 * # Fresh line / additional paragraph
 * ------------------------------------------------------------------- */
.p2-fresh {
    max-width: 600px;
    font-family: "lora-italic", serif;
    font-size: 1.8rem;
    line-height: 1.7;
    color: var(--p2-text-muted);
    margin: 0 0 3rem 0;
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------------------------
 * # Highlighted text
 * ------------------------------------------------------------------- */
.p2-highlight {
    background-color: var(--p2-highlight);
    padding: 0.1em 0.3em;
    border-radius: 2px;
    transition: background-color 0.4s ease;
}

/* -------------------------------------------------------------------
 * # Large number callout
 * ------------------------------------------------------------------- */
.p2-number-callout {
    margin: 5rem 0;
    position: relative;
    z-index: 1;
}

.p2-number-callout__number {
    font-family: "lora-regular", serif;
    font-size: clamp(5rem, 10vw, 9rem);
    line-height: 1;
    color: var(--p2-accent);
    margin: 0;
    letter-spacing: -0.03em;
}

.p2-number-callout__subtitle {
    font-family: "montserrat-light", sans-serif;
    font-size: 1.4rem;
    color: var(--p2-text-muted);
    margin: 1rem 0 0 0;
    letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------
 * # Thin editorial line separators
 * ------------------------------------------------------------------- */
.p2-line {
    border: none;
    height: 1px;
    background-color: var(--p2-line);
    max-width: 100px;
    margin: 0 auto;
    transition: background-color 0.4s ease;
}

.p2-chapter--left .p2-line {
    margin: 0;
}

.p2-chapter--right .p2-line {
    margin: 0 0 0 auto;
}

/* -------------------------------------------------------------------
 * # Marketing section — subtle bg shift
 * ------------------------------------------------------------------- */
.p2-marketing-section {
    background-color: var(--p2-highlight);
    transition: background-color 0.4s ease;
}

.p2-marketing-words {
    position: relative;
    z-index: 1;
    margin: 0 0 4rem 0;
}

.p2-marketing-word {
    font-family: "lora-regular", serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.4;
    color: var(--p2-accent);
    margin: 0;
    letter-spacing: -0.01em;
}

/* -------------------------------------------------------------------
 * # Language navigation
 * ------------------------------------------------------------------- */
.p2-lang-nav {
    position: absolute;
    top: 3rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.p2-lang-nav a {
    font-size: 2rem;
    line-height: 1;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.p2-lang-nav a:hover {
    opacity: 1;
    text-decoration: none;
}

/* -------------------------------------------------------------------
 * # ITAMOAi section
 * ------------------------------------------------------------------- */
.p2-itamoai-section {
    padding: 10rem 4rem;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.p2-itamoai-box {
    border: 1px solid var(--p2-line);
    border-radius: 4px;
    padding: 6rem 4rem;
    transition: border-color 0.4s ease;
}

.p2-itamoai-heading {
    font-family: "lora-regular", serif;
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.3;
    color: var(--p2-accent);
    margin: 0 0 2rem 0;
}

.p2-itamoai-label {
    font-family: "montserrat-regular", sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--p2-text-muted);
    margin: 0 0 3rem 0;
}

.p2-itamoai-body {
    font-family: "montserrat-light", sans-serif;
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--p2-text);
    max-width: 500px;
    margin: 0 auto 4rem auto;
}

/* -------------------------------------------------------------------
 * # Visual-only form
 * ------------------------------------------------------------------- */
.p2-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.p2-form__input {
    font-family: "montserrat-light", sans-serif;
    font-size: 1.4rem;
    padding: 1.2rem 1.8rem;
    border: 1px solid var(--p2-line);
    border-radius: 3px;
    background: transparent;
    color: var(--p2-text);
    width: 260px;
    max-width: 100%;
    outline: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.p2-form__input::placeholder {
    color: var(--p2-text-muted);
    opacity: 0.7;
}

.p2-form__input:focus {
    border-color: var(--p2-accent);
}

.p2-form__button {
    font-family: "montserrat-regular", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1.3rem 2.4rem;
    border: 1px solid var(--p2-accent);
    border-radius: 3px;
    background-color: var(--p2-accent);
    color: var(--p2-bg);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.p2-form__button:hover {
    background-color: transparent;
    color: var(--p2-accent);
}

/* -------------------------------------------------------------------
 * # Contact section
 * ------------------------------------------------------------------- */
.p2-contact {
    padding: 10rem 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.p2-contact__heading {
    font-family: "lora-regular", serif;
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.3;
    color: var(--p2-accent);
    margin: 0 0 3rem 0;
}

.p2-contact__email {
    font-family: "montserrat-light", sans-serif;
    font-size: 1.8rem;
    color: var(--p2-text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--p2-line);
    padding-bottom: 0.3rem;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.p2-contact__email:hover {
    color: var(--p2-accent);
    border-color: var(--p2-accent);
}

/* -------------------------------------------------------------------
 * # Footer
 * ------------------------------------------------------------------- */
.p2-footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--p2-line);
    transition: border-color 0.4s ease;
}

.p2-footer__text {
    font-family: "montserrat-light", sans-serif;
    font-size: 1.2rem;
    color: var(--p2-text-muted);
    margin: 0;
    letter-spacing: 0.05em;
}

/* -------------------------------------------------------------------
 * # ITAMOAi form — functional Netlify form
 * ------------------------------------------------------------------- */
.p2-itamoai-subhead {
    font-family: "lora-regular", serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.3;
    color: var(--p2-accent);
    margin: 3rem 0 1rem 0;
    font-weight: normal;
}

.p2-itamoai-hint {
    font-family: "montserrat-light", sans-serif;
    font-size: 1.3rem;
    color: var(--p2-text-muted);
    margin: 0 0 2rem 0;
}

.p2-request-success {
    font-family: "montserrat-light", sans-serif;
    font-size: 1.6rem;
    color: var(--p2-text);
    margin-top: 1.5rem;
}

.p2-request-error {
    font-family: "montserrat-light", sans-serif;
    font-size: 1.3rem;
    color: var(--p2-text-muted);
    margin-top: 1rem;
}

.p2-request-error a {
    color: var(--p2-accent);
    text-decoration: underline;
}

/* -------------------------------------------------------------------
 * # Responsive — tablet (max-width: 800px)
 * ------------------------------------------------------------------- */
@media screen and (max-width: 800px) {
    .p2-chapter--left {
        text-align: center;
        padding-left: 4rem;
    }

    .p2-chapter--right {
        text-align: center;
        padding-right: 4rem;
    }

    .p2-chapter--left .p2-body,
    .p2-chapter--left .p2-fresh,
    .p2-chapter--right .p2-body,
    .p2-chapter--right .p2-fresh {
        margin-left: auto;
        margin-right: auto;
    }

    .p2-chapter--left .p2-line,
    .p2-chapter--right .p2-line {
        margin: 0 auto;
    }

    .p2-chapter--right .p2-pull-quote {
        border-right: none;
        border-left: 3px solid var(--p2-accent);
        padding-right: 0;
        padding-left: 2rem;
        text-align: left;
        display: inline-block;
    }

    .p2-chapter--left .p2-pull-quote {
        display: inline-block;
        text-align: left;
    }
}

/* -------------------------------------------------------------------
 * # Responsive — mobile (max-width: 600px)
 * ------------------------------------------------------------------- */
@media screen and (max-width: 600px) {
    .p2-chapter {
        padding: 8rem 2rem 6rem 2rem;
    }

    .p2-chapter--left {
        padding-left: 2rem;
    }

    .p2-chapter--right {
        padding-right: 2rem;
    }

    .p2-hero__headline {
        font-size: clamp(2.8rem, 10vw, 4.5rem);
    }

    .p2-hero__subtitle {
        font-size: 1.3rem;
    }

    .p2-pull-quote {
        font-size: clamp(1.8rem, 5vw, 2.8rem);
        padding-left: 1.5rem;
    }

    .p2-body {
        font-size: 1.4rem;
    }

    .p2-fresh {
        font-size: 1.5rem;
    }

    .p2-marketing-word {
        font-size: clamp(2.2rem, 7vw, 3.2rem);
    }

    .p2-number-callout__number {
        font-size: clamp(4rem, 15vw, 7rem);
    }

    .p2-itamoai-box {
        padding: 4rem 2rem;
    }

    .p2-itamoai-heading {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .p2-contact__heading {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
    }

    .p2-contact {
        padding: 6rem 2rem;
    }

    .p2-itamoai-section {
        padding: 6rem 2rem;
    }

    .p2-form {
        flex-direction: column;
    }

    .p2-form__input {
        width: 100%;
    }

    .p2-form__button {
        width: 100%;
    }

    .p2-theme-toggle {
        top: 2rem;
        right: 1.5rem;
        width: 38px;
        height: 38px;
    }

    .p2-lang-nav {
        top: 2rem;
        left: 1.5rem;
    }

    .p2-lang-nav a {
        font-size: 1.6rem;
    }

    .p2-header {
        padding: 2rem 1.5rem;
    }

    .p2-watermark {
        font-size: clamp(8rem, 25vw, 14rem);
    }
}
