/* =========================================================
   ABOUT EBOOKHISTORY
   ========================================================= */

:root {
    --dark-green: #031b14;
    --deep-green: #06271e;
    --green: #0d3b2e;
    --gold: #c99116;
    --gold-light: #e3b84d;
    --cream: #f7ecd2;
    --paper: #f5ead1;
    --brown: #4b2d16;
    --text: #efe3c5;
    --muted: #cbbd9f;
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #f4eddf;
    color: #3b2a1b;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
}

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

/* =========================================================
   HERO ȘI MENIU
   ========================================================= */

.about-hero {
    position: relative;
    min-height: 760px;
    padding: 0 6% 90px;
    overflow: hidden;
    color: var(--text);
    background:
        radial-gradient(
            circle at 78% 42%,
            rgba(201, 145, 22, 0.18),
            transparent 28%
        ),
        linear-gradient(
            110deg,
            rgba(1, 18, 13, 0.98) 0%,
            rgba(4, 37, 28, 0.96) 58%,
            rgba(2, 20, 15, 0.98) 100%
        );
}

.about-hero::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(227, 184, 77, 0.42);
    pointer-events: none;
}

.about-hero::after {
    content: "✦";
    position: absolute;
    right: 9%;
    top: 51%;
    color: rgba(227, 184, 77, 0.12);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(250px, 34vw, 540px);
    line-height: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

.about-navbar {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 0;
    border-bottom: 1px solid rgba(227, 184, 77, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.menu a {
    position: relative;
    color: var(--text);
    font-size: 15px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: var(--gold-light);
    transition: width 0.25s ease;
}

.menu a:hover,
.menu a.active {
    color: var(--gold-light);
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

.back-home-button {
    position: relative;
    z-index: 3;
    display: inline-block;
    margin-top: 42px;
    color: var(--gold-light);
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 780px;
    margin: 105px auto 0;
    text-align: center;
}

.section-label {
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.22em;
}

.about-hero-content h1 {
    margin-bottom: 30px;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(52px, 6vw, 88px);
    font-weight: normal;
    line-height: 1.05;
    text-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

.about-hero-content > p:last-child {
    width: 85%;
    margin: 0 auto;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(19px, 1.7vw, 26px);
    line-height: 1.65;
}

/* =========================================================
   STRUCTURA GENERALĂ
   ========================================================= */

main section {
    padding: 100px 7%;
}

main h2 {
    margin-bottom: 25px;
    color: var(--brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 60px);
    font-weight: normal;
    line-height: 1.1;
}

/* =========================================================
   POVESTEA
   ========================================================= */

.origin-section {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
}

.origin-copy > p:not(.section-label) {
    margin-bottom: 18px;
    color: #66513d;
    font-size: 18px;
}

.origin-quote {
    position: relative;
    padding: 65px 50px 45px;
    border: 1px solid rgba(201, 145, 22, 0.55);
    border-radius: 4px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.82),
            rgba(238, 219, 181, 0.68)
        );
    box-shadow: 0 20px 55px rgba(79, 49, 18, 0.13);
}

.quote-mark {
    position: absolute;
    top: -20px;
    left: 35px;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 110px;
    line-height: 1;
}

.origin-quote blockquote {
    position: relative;
    color: var(--brown);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2vw, 32px);
    font-style: italic;
    line-height: 1.5;
}

.origin-quote p {
    margin-top: 30px;
    color: var(--gold);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.22em;
}

/* =========================================================
   MISIUNEA
   ========================================================= */

.mission-section {
    text-align: center;
    color: var(--text);
    background:
        radial-gradient(
            circle at center,
            rgba(201, 145, 22, 0.12),
            transparent 42%
        ),
        var(--dark-green);
}

.mission-section h2 {
    color: var(--gold-light);
}

.mission-introduction {
    width: min(760px, 90%);
    margin: 0 auto 55px;
    color: var(--muted);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
}

.values-grid {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.value-card {
    min-height: 310px;
    padding: 42px 28px;
    border: 1px solid rgba(227, 184, 77, 0.35);
    background: rgba(255, 255, 255, 0.035);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-light);
    background: rgba(227, 184, 77, 0.08);
}

.value-card > span {
    display: block;
    margin-bottom: 22px;
    font-size: 42px;
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: normal;
}

.value-card p {
    color: var(--muted);
    font-size: 15px;
}

/* =========================================================
   EXPERIENȚA ȘI CĂRȚILE
   ========================================================= */

.experience-section {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 70px;
    align-items: center;
    background:
        linear-gradient(
            135deg,
            #f8f0df,
            #ead9b8
        );
}

.experience-content {
    max-width: 600px;
    justify-self: end;
}

.experience-content > p:not(.section-label) {
    margin-bottom: 25px;
    color: #66513d;
    font-size: 18px;
}

.experience-content ul {
    margin: 0 0 38px;
    list-style: none;
}

.experience-content li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 28px;
    color: #58432f;
}

.experience-content li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 11px;
}

.book-collection {
    min-height: 500px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-collection img {
    width: 31%;
    max-width: 245px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 20px 45px rgba(47, 29, 12, 0.32);
    transition: transform 0.3s ease;
}

.book-collection img:nth-child(1) {
    transform: rotate(-7deg) translateX(25px);
}

.book-collection img:nth-child(2) {
    position: relative;
    z-index: 2;
    transform: translateY(-25px);
}

.book-collection img:nth-child(3) {
    transform: rotate(7deg) translateX(-25px);
}

.book-collection img:hover {
    position: relative;
    z-index: 5;
    transform: translateY(-15px) scale(1.05);
}

/* =========================================================
   BUTOANE
   ========================================================= */

.gold-button,
.outline-button {
    display: inline-flex;
    min-height: 54px;
    padding: 14px 28px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.gold-button {
    background: var(--gold);
    color: #fff;
    box-shadow: 0 10px 24px rgba(143, 93, 7, 0.22);
}

.gold-button:hover {
    background: #aa7411;
    transform: translateY(-3px);
}

.outline-button {
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
}

.outline-button:hover {
    background: var(--gold-light);
    color: var(--dark-green);
    transform: translateY(-3px);
}

/* =========================================================
   PREZENT ȘI VIITOR
   ========================================================= */

.present-section {
    text-align: center;
    background: #fffaf0;
}

.present-section h2,
.present-section > p:not(.section-label) {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.present-section > p:not(.section-label) {
    margin-bottom: 18px;
    color: #66513d;
    font-size: 18px;
}

.future-section {
    min-height: 560px;
    color: var(--text);
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(227, 184, 77, 0.18),
            transparent 30%
        ),
        linear-gradient(
            110deg,
            #031b14,
            #0b382a
        );
}

.future-section > div {
    width: min(800px, 100%);
    margin: 0 auto;
    text-align: center;
}

.future-section h2 {
    color: var(--gold-light);
}

.future-section p:not(.section-label) {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 18px;
}

/* =========================================================
   SECȚIUNEA FINALĂ
   ========================================================= */

.about-cta {
    text-align: center;
    background:
        linear-gradient(
            135deg,
            #f4e5c7,
            #fffaf0
        );
}

.about-cta h2 {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.about-cta > p:not(.section-label) {
    margin-bottom: 35px;
    color: #66513d;
    font-size: 19px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.about-cta .outline-button {
    border-color: var(--brown);
    color: var(--brown);
}

.about-cta .outline-button:hover {
    background: var(--brown);
    color: white;
}

/* =========================================================
   TELEFON ȘI TABLETĂ
   ========================================================= */

@media (max-width: 1050px) {

    .about-navbar {
        flex-direction: column;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .origin-section,
    .experience-section {
        grid-template-columns: 1fr;
    }

    .experience-content {
        max-width: 800px;
        justify-self: center;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {

    .about-hero {
        min-height: 700px;
        padding-left: 8%;
        padding-right: 8%;
    }

    .about-navbar {
        align-items: flex-start;
    }

    .menu {
        justify-content: flex-start;
        gap: 16px 22px;
    }

    .about-hero-content {
        margin-top: 75px;
    }

    .about-hero-content h1 {
        font-size: 46px;
    }

    main section {
        padding: 75px 7%;
    }

    .origin-section {
        gap: 45px;
    }

    .origin-quote {
        padding: 60px 30px 35px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card {
        min-height: auto;
    }

    .experience-section {
        gap: 25px;
    }

    .book-collection {
        min-height: 370px;
        padding: 25px 0;
    }

    .book-collection img {
        width: 35%;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================================
   POVESTEA REALĂ — BEDTIME STORY
   ========================================================= */

.real-story-section {
    position: relative;
    overflow: hidden;
    color: var(--text);
    background:
        radial-gradient(
            circle at 15% 35%,
            rgba(227, 184, 77, 0.14),
            transparent 28%
        ),
        linear-gradient(
            120deg,
            var(--dark-green),
            var(--deep-green)
        );
}

.real-story-section::before {
    content: "☾";
    position: absolute;
    top: 50%;
    left: 5%;
    color: rgba(227, 184, 77, 0.06);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(260px, 35vw, 520px);
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.real-story-heading {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto 55px;
    text-align: center;
}

.real-story-heading h2 {
    color: var(--gold-light);
}

.real-story-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 65px;
    align-items: start;
}

.story-introduction {
    padding: 55px 40px;
    border: 1px solid rgba(227, 184, 77, 0.45);
    background: rgba(255, 255, 255, 0.035);
    text-align: center;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
}

.story-icon {
    display: block;
    margin-bottom: 25px;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 72px;
    line-height: 1;
}

.story-introduction p {
    color: var(--cream);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2vw, 30px);
    font-style: italic;
    line-height: 1.5;
}

.story-text p {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.story-text p:first-child::first-letter {
    float: left;
    margin: 9px 10px 0 0;
    color: var(--gold-light);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 70px;
    line-height: 0.75;
}

.story-text blockquote {
    position: relative;
    margin-top: 38px;
    padding: 28px 32px;
    border-left: 3px solid var(--gold);
    color: var(--gold-light);
    background: rgba(227, 184, 77, 0.07);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(21px, 2vw, 28px);
    font-style: italic;
    line-height: 1.55;
}

/* =========================================================
   POVESTEA REALĂ — TELEFON ȘI TABLETĂ
   ========================================================= */

@media (max-width: 900px) {

    .real-story-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-introduction {
        max-width: 650px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {

    .real-story-heading {
        margin-bottom: 38px;
    }

    .story-introduction {
        padding: 40px 25px;
    }

    .story-icon {
        font-size: 58px;
    }

    .story-text p {
        font-size: 16px;
    }

    .story-text blockquote {
        padding: 22px;
    }
}