/* Claire Sorelle - Static Website Styles */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Forum&display=swap');

/* CSS Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 17px;
    line-height: 1.7;
    color: #2b2b2b;
    background-color: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Forum', serif;
    font-weight: 400;
    line-height: 1.2;
}

h1 {
    font-size: 85px;
}

h2 {
    font-size: 45px;
}

h3 {
    font-size: 35px;
}

p {
    margin-bottom: 1em;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 20px;
}

.section--dark {
    background-color: #1a1a1a;
    color: #fff;
}

.section--with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section--with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.section--with-bg > * {
    position: relative;
    z-index: 1;
}

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

.text-justify {
    text-align: justify;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header__logo {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: 0.05em;
    color: #2b2b2b;
}

.header__logo:hover {
    color: #555;
}

/* Navigation */
.nav {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2b2b2b;
    transition: color 0.3s;
}

.nav__link:hover,
.nav__link--active {
    color: #8b7355;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #2b2b2b;
    margin: 5px 0;
    transition: 0.3s;
}

/* Social sidebar */

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    background-color: #f9f7f4;
    position: relative;
}

.hero__content {
    max-width: 600px;
}

.hero__portrait {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    margin: 0 auto 30px;
}

.hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 85px;
    font-weight: 600;
    margin-top: 60px;
    margin-bottom: 30px;
    color: #282936;
}

.hero__subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 23px;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #666;
}

.hero__copy-link {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: none;
    z-index: 10;
}

.hero__copy-link:hover {
    background: transparent;
    transform: scale(1.05);
    border-color: #888;
}

.hero__copy-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s;
    filter: grayscale(100%) brightness(0.4);
}

.hero__copy-link:hover img {
    opacity: 0.9;
    filter: grayscale(100%) brightness(0.5);
}

/* Book section */
.book-section {
    padding: 100px 20px 120px;
    padding-left: 20px;
    padding-right: 20px;
    background-size: cover;
    background-position: 30% top !important;
    background-attachment: scroll;
    position: relative;
}

.book-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 10px);
    max-width: 1200px;
    background: rgba(240, 240, 240, 0.7);
    z-index: 0;
}

.book-section > * {
    position: relative;
    z-index: 1;
}

.book-section__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: center;
}

.book-cover {
    order: 2;
    position: relative;
    align-self: flex-start;
    margin-top: 180px;
    margin-left: -40px;
}

.book-cover--mobile {
    display: none;
}

@media (min-width: 969px) {
    .book-cover {
        display: block;
    }
    
    .book-cover--mobile {
        display: none !important;
    }
}

.book-info {
    order: 1;
}

.book-cover__image {
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.book-cover__stars {
    text-align: left;
    font-size: 28px;
    color: #f4a261;
    margin-top: 15px;
    margin-left: 30px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.book-cover__stars-text {
    font-size: 18px;
    color: #282936;
    margin-left: 5px;
    line-height: 1;
}

.book-cover__badge {
    position: absolute;
    top: -15px;
    left: -15px;
    background: #8b7355;
    color: #fff;
    padding: 8px 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.book-info {
    color: #282936;
}

.book-info__title {
    font-family: 'Forum', serif;
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 30px;
    margin-top: -1px;
    margin-left: 0;
    color: #282936;
    max-width: 65ch;
    width: 100%;
    position: relative;
    left: 5ch;
    line-height: 1.2;
}

.book-info__title-line1 {
    display: block;
    text-align: left;
}

.book-info__title-line2 {
    display: block;
    text-align: center;
    margin-left: 5.5ch;
    transform: translateX(-50%);
}

.book-info__intro {
    font-size: 20px;
    line-height: 1.8;
    margin-top: 60px;
    margin-bottom: 1em;
    margin-left: 15px;
    color: #282936;
    font-style: italic;
    max-width: 65ch;
    width: 100%;
    text-align: justify;
}

.book-info__signature {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    margin-left: 15px;
    color: #282936;
    font-style: italic;
    max-width: 65ch;
    width: 100%;
    text-align: justify;
}

.book-info__description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
    margin-left: 15px;
    text-align: justify;
    max-width: 65ch;
    width: 100%;
}

.book-info__description p {
    text-align: justify;
    margin-bottom: 1em;
    font-size: 20px;
}

.book-info__quote {
    font-style: italic;
    font-size: 20px;
    padding: 20px;
    border-left: 3px solid #8b7355;
    margin: 30px 0;
    margin-left: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.book-info__quote-br-desktop {
    display: inline;
}

.book-info__link {
    color: #282936;
    text-decoration: underline;
}

.book-info__link:hover {
    color: #282936;
}

/* Purchase buttons */
.purchase-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 0;
    margin-left: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid #2E4168;
    color: #fff;
    background: #2E4168;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 8px;
}

.btn:hover {
    background: #243550;
    border-color: #243550;
    color: #fff;
}

.btn--filled {
    background: #2E4168;
    color: #fff;
}

.btn--filled:hover {
    background: #243550;
    border-color: #243550;
}

/* Reviews section */
.reviews-section {
    padding: 80px 20px;
    background: #f9f7f4;
}

.reviews-section__title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 35px;
    color: #11284B;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: #fff;
    padding: 30px;
    position: relative;
    border-radius: 8px;
}

.review-card__stars {
    color: #c9a87c;
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.review-card__text {
    font-style: italic;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.review-card__author {
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

/* Quote section */
.quote-section {
    padding: 100px 20px;
    background: #556B8D;
    color: #fff;
}

.quote-section__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-section__title {
    font-size: 38px;
    margin-bottom: 40px;
    color: #fff;
}

.quote-section__text {
    font-style: italic;
    font-size: 22px;
    line-height: 1.9;
    text-align: justify;
}

.quote-section__text p {
    font-size: 22px;
}

/* Page header (for inner pages) */
.page-header {
    padding: 150px 20px 80px;
    text-align: center;
    background: #f9f7f4;
}

.page-header__title {
    font-size: 85px;
    color: #11284B;
}

/* Author page */
.author-section {
    padding: 80px 20px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.author-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(230, 221, 221, 0.92);
}

.author-section > * {
    position: relative;
    z-index: 1;
}

.author-section__inner {
    max-width: 900px;
    margin: 0 auto;
}

.author-portrait {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.author-bio {
    font-size: 20px;
    line-height: 1.8;
    text-align: justify;
}

.author-details {
    margin-top: 50px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.87);
    text-align: center;
    border-radius: 8px;
}

.author-details p {
    margin-bottom: 15px;
    font-size: 20px;
}

.author-details strong {
    color: #8b7355;
}

.book-list {
    text-align: justify;
    max-width: 700px;
    margin: 20px auto;
    font-size: 20px;
}

.book-list li {
    margin-bottom: 15px;
    padding-left: 0;
    position: relative;
    list-style: none;
}

.book-list li strong {
    font-style: italic;
}

.book-list li::before {
    display: none;
}

/* Approach section */
.approach-section {
    padding: 80px 20px 150px;
    background: rgba(255, 255, 255, 0.87);
    min-height: auto;
    overflow: visible;
    color: #282936;
}

.approach-section__inner {
    max-width: 800px;
    margin: 0 auto;
}

.approach-section__title {
    font-size: 58px;
    text-align: center;
    margin-bottom: 50px;
    color: #11284B;
}

.approach-section__text {
    font-size: 22px;
    line-height: 1.9;
    font-style: italic;
    text-align: center;
    color: #282936;
}

.approach-section__text p {
    font-size: 22px;
}

/* Excerpt sections */
.excerpt-section {
    min-height: 100vh;
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
}

.excerpt-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.excerpt-section--transparent::before {
    background: rgba(0, 0, 0, 0.1);
}

.excerpt-section--solid::before {
    display: none;
}

.excerpt-section > * {
    position: relative;
    z-index: 1;
}

.excerpt-section__inner {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 80px;
    color: #11284B;
    border-radius: 8px;
}

.excerpt-section__title {
    font-size: 56px;
    text-align: center;
    margin-bottom: 40px;
    color: #11284B;
}

.excerpt-section__text {
    font-style: italic;
    font-size: 22px;
    line-height: 1.9;
    text-align: justify;
    color: #11284B;
}

/* Contact page */
.contact-section {
    min-height: calc(100vh - 80px);
    padding: 150px 20px 80px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.contact-section > * {
    position: relative;
    z-index: 1;
}

.contact-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 80px;
    text-align: center;
    max-width: 600px;
    border-radius: 8px;
}

.contact-box__title {
    font-size: 45px;
    margin-bottom: 30px;
    color: #11284B;
}

.contact-box__link {
    font-size: 28px;
    color: #8b7355;
    text-decoration: underline;
}

.contact-box__link:hover {
    color: #6d5a43;
}

/* Order page */
.order-section {
    padding: 80px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.order-section__text {
    font-size: 20px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 90px;
}

.order-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 80px;
}

/* Footer */
.footer {
    padding: 30px 20px;
    text-align: center;
    background: #11284B;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    .book-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .book-section__inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 20px !important;
    }

    .book-info__intro,
    .book-info__signature,
    .book-info__description,
    .book-info__quote {
        padding: 0 20px !important;
        max-width: calc(100% - 40px) !important;
        box-sizing: border-box;
    }

    .book-info__quote {
        padding: 20px !important;
    }

    .book-info__title {
        padding: 0 20px !important;
        max-width: calc(100% - 40px) !important;
        box-sizing: border-box;
    }

    .book-cover__image {
        margin: 0 auto;
        max-width: 100%;
    }

    .book-info__description {
        text-align: center;
    }

    .book-info__intro,
    .book-info__signature,
    .book-info__description,
    .book-info__quote {
        margin-left: 0;
    }

    .purchase-buttons {
        margin-left: 0;
        padding: 0 20px !important;
    }

    .book-cover {
        margin-left: 0 !important;
    }

    .book-info__title {
        left: 0 !important;
        position: static !important;
        font-weight: bold !important;
    }

    .book-info__title-line1 {
        text-align: center !important;
    }

    .book-info__title-line2 {
        margin-left: 0 !important;
        transform: none !important;
        text-align: center !important;
    }

    h1, .hero__title, .page-header__title {
        font-size: 55px;
    }

    h2, .book-info__title {
        font-size: 35px;
    }

    .excerpt-section__title {
        font-size: 40px;
    }

    .excerpt-section__inner {
        padding: 40px 20px;
    }

    .contact-box {
        padding: 40px 30px;
    }

    .contact-box__title {
        font-size: 32px;
    }

    .contact-box__link {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .header__inner {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        text-align: center;
    }

    .nav--open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }


    .hero {
        padding-top: 100px;
    }

    .hero__portrait {
        width: 150px;
        height: 165px;
    }

    h1, .hero__title, .page-header__title {
        font-size: 40px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .hero__copy-link {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .hero__copy-link img {
        width: 20px;
        height: 20px;
        object-fit: contain;
    }

    .book-info__intro,
    .book-info__signature,
    .book-info__description,
    .book-info__quote {
        margin-left: 0;
    }

    .book-info__quote-br-desktop {
        display: none !important;
    }

    .book-info__intro {
        margin-top: 30px !important;
    }

    .purchase-buttons {
        justify-content: center;
        margin-left: 0;
        padding: 0 20px !important;
    }

    .approach-section__title {
        font-size: 40px;
    }

    .excerpt-section {
        background-attachment: scroll;
    }

    .book-section {
        background-attachment: scroll;
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-bottom: 100px !important;
        overflow-x: hidden;
    }

    .book-section__inner {
        padding: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .book-info {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .book-info__title {
        order: 1;
    }

    .book-info__intro {
        order: 2;
    }

    .book-info__signature {
        order: 3;
    }

    .book-cover {
        display: none !important;
    }

    .book-cover--mobile {
        display: block !important;
        text-align: center;
        margin: 30px auto 50px auto !important;
        max-width: 300px;
    }

    .book-cover--mobile .book-cover__image {
        max-width: 100% !important;
        width: auto !important;
        margin: 0 auto;
    }

    .book-info__title {
        left: 0 !important;
        position: static !important;
        max-width: 90% !important;
        padding: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
        text-align: center;
        font-weight: bold !important;
    }

    .book-info__title-line1 {
        text-align: center !important;
    }

    .book-info__title-line2 {
        margin-left: 0 !important;
        transform: none !important;
        text-align: center !important;
    }

    .book-info__intro,
    .book-info__signature {
        max-width: 90% !important;
        padding: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
        text-align: center;
    }

    .book-info__intro {
        margin-top: 30px !important;
    }

    .book-cover--mobile {
        order: 3;
        margin: 20px auto 50px auto !important;
    }

    .book-info__description {
        order: 4;
        max-width: 90% !important;
        padding: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 15px !important;
        box-sizing: border-box;
        text-align: center;
    }

    .book-info__quote {
        order: 5;
        max-width: 90% !important;
        padding: 20px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 15px !important;
        box-sizing: border-box;
        text-align: justify;
    }

    .purchase-buttons {
        order: 6;
    }

    .book-info__quote {
        padding: 20px !important;
        text-align: justify;
    }

    .book-info__quote-br-desktop {
        display: none !important;
    }

    .excerpt-section__inner {
        padding: 30px 15px !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .excerpt-section__text {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        text-align: center;
    }

    .purchase-buttons,
    .order-buttons {
        flex-direction: column;
    }

    .excerpt-section__inner {
        padding: 25px 15px;
    }

    .excerpt-section__text {
        font-size: 16px;
    }

    .book-section {
        padding-left: 10px;
        padding-right: 10px;
    }
}
