/* ============================================================
   Love, The Greatest of All — order page
   Palette + type lifted from the book's own dawn/heart-in-sand cover.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --midnight:   #16273B;
    --navy:       #1E3049;
    --parchment:  #F6F0E4;
    --parchment-2:#EFE6D4;
    --terracotta: #BF6A35;
    --terracotta-dark: #9E5427;
    --sand:       #C9A277;
    --ink:        #21262B;
    --ink-soft:   #5B5C55;
    --cream-text: #F2EAD9;
    --line:       rgba(33, 38, 43, 0.12);
    --line-light: rgba(242, 234, 217, 0.22);

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius: 14px;
    --shadow-soft: 0 20px 50px -25px rgba(22, 39, 59, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--parchment);
    line-height: 1.55;
}

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

a { color: inherit; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------- Hero ---------------- */

.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(18, 27, 41, 0.55) 0%, rgba(18, 27, 41, 0.78) 55%, rgba(15, 22, 33, 0.94) 100%),
                url('../img/hero-lifestyle.jpeg') center 30% / cover no-repeat;
    color: var(--cream-text);
    padding: 140px 0 96px;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sand);
    font-weight: 600;
    margin: 0 0 18px;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.6rem, 5.4vw, 4.4rem);
    line-height: 1.02;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.hero h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--terracotta);
    font-optical-sizing: auto;
}

.hero__subtitle {
    font-size: 1.15rem;
    max-width: 46ch;
    color: rgba(242, 234, 217, 0.88);
    margin: 22px 0 30px;
}

.hero__author {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--cream-text);
    opacity: 0.9;
    margin-bottom: 34px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
    background: var(--terracotta);
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(191, 106, 53, 0.65);
}
.btn--primary:hover { background: var(--terracotta-dark); }

.btn--ghost {
    background: transparent;
    color: var(--cream-text);
    border-color: var(--line-light);
}
.btn--ghost:hover { background: rgba(242, 234, 217, 0.08); }

.hero__price-pill {
    margin-top: 34px;
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-body);
    color: rgba(242, 234, 217, 0.75);
    font-size: 0.9rem;
}
.hero__price-pill strong {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--cream-text);
}

/* Floating cover */
.hero__cover {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero__cover img {
    width: 78%;
    max-width: 340px;
    border-radius: 6px;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,0.65), 0 10px 30px -10px rgba(0,0,0,0.5);
    transform: rotate(3deg);
}

/* ---------------- Verse strip (signature element) ---------------- */

.verse-strip {
    background: var(--terracotta);
    color: #fff;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.verse-strip__track {
    display: flex;
    width: max-content;
    animation: verse-scroll 34s linear infinite;
}
.verse-strip:hover .verse-strip__track { animation-play-state: paused; }
.verse-strip__set { display: flex; }
.verse-strip__item {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    padding: 16px 34px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.25);
}
.verse-strip__item b {
    font-style: normal;
    font-weight: 600;
    margin-right: 6px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.8;
}

@keyframes verse-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .verse-strip__track { animation: none; overflow-x: auto; }
}

/* ---------------- About section ---------------- */

.about {
    padding: 88px 0 40px;
}
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}
.section-label {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--terracotta-dark);
    margin: 0 0 14px;
}
.about h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.1rem;
    line-height: 1.15;
    margin: 0 0 20px;
    color: var(--midnight);
}
.about p { color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 16px; }

.author-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 28px;
}
.author-card__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0 0 4px;
    color: var(--midnight);
}
.author-card__role {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin: 0;
}

.about__attributes {
    background: var(--parchment-2);
    border-radius: var(--radius);
    padding: 30px;
}
.about__attributes h3 {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.2rem;
    margin: 0 0 18px;
    color: var(--midnight);
}
.attr-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}
.attr-list li {
    font-size: 0.95rem;
    color: var(--ink);
    padding-left: 20px;
    position: relative;
}
.attr-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terracotta);
}

/* ---------------- Order section ---------------- */

.order {
    padding: 70px 0 110px;
}

.order__panel {
    background: var(--midnight);
    border-radius: 22px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 52px;
    color: var(--cream-text);
    box-shadow: var(--shadow-soft);
}

.order__intro .section-label { color: var(--sand); }
.order__intro h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2rem;
    margin: 0 0 16px;
    color: #fff;
}
.order__intro p {
    color: rgba(242, 234, 217, 0.78);
    font-size: 1rem;
    margin-bottom: 26px;
}

.trust-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.trust-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.94rem;
    color: rgba(242, 234, 217, 0.85);
}
.trust-list svg { flex-shrink: 0; margin-top: 2px; color: var(--terracotta); }

.order__cover-thumb {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px -18px rgba(0,0,0,0.6);
    max-width: 220px;
}

/* Form */
.order-form {
    background: var(--parchment);
    border-radius: 16px;
    padding: 32px;
    color: var(--ink);
}

.form-row { margin-bottom: 20px; }
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-bottom: 7px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.96rem;
    color: var(--ink);
}
input:focus, select:focus {
    outline: 2px solid var(--terracotta);
    outline-offset: 1px;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}
.qty-stepper button {
    width: 40px;
    height: 42px;
    border: none;
    background: var(--parchment-2);
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--ink);
}
.qty-stepper input {
    width: 54px;
    text-align: center;
    border: none;
    padding: 0;
    font-weight: 600;
}
.qty-stepper input:focus { outline: none; }

.order-summary {
    border-top: 1px dashed var(--line);
    margin-top: 24px;
    padding-top: 18px;
}
.order-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.92rem;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.order-summary__row--total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 12px;
}

.form-error {
    background: #FBE7E1;
    border: 1px solid #E6A78F;
    color: #8A3A21;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 0.9rem;
    margin-bottom: 18px;
    display: none;
}
.form-error.is-visible { display: block; }

.form-note {
    font-size: 0.78rem;
    color: var(--ink-soft);
    margin-top: 14px;
    text-align: center;
}

/* ---------------- Footer ---------------- */

footer {
    background: var(--midnight);
    color: rgba(242, 234, 217, 0.65);
    padding: 34px 0;
    font-size: 0.86rem;
    text-align: center;
}
footer strong { color: var(--cream-text); }

/* ---------------- Responsive ---------------- */

@media (max-width: 880px) {
    .hero__grid { grid-template-columns: 1fr; }
    .hero__cover { order: -1; }
    .hero__cover img { width: 55%; }
    .about__grid { grid-template-columns: 1fr; gap: 40px; }
    .order__panel { grid-template-columns: 1fr; padding: 30px; border-radius: 16px; }
    .form-row--split { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero { padding: 120px 0 70px; min-height: auto; }
    .order-form { padding: 22px; }
}
