/* ========================================
   Divivo Homepage Clone - Styles
   High-fidelity recreation of divivo.com
   ======================================== */

/* CSS Variables */
:root {
    /* Primary Purple Palette */
    --purple-primary: #663c8a;
    --purple-light: #946199;
    --purple-dark: #5b1960;
    --purple-accent: #7c0bbb;

    /* Accent Colors */
    --gold: #EAB95F;
    --gold-bright: #efb443;

    /* Backgrounds */
    --bg-lavender: #efddf9;
    --bg-white: #FCF9FD;

    /* Text */
    --text-dark: #424753;
    --text-light: #eceeef;

    /* Footer */
    --footer-bg: #4D2571;

    /* Layout */
    --container-max: 75rem;
    --nav-height: 125px;
    --section-padding: 3rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Raleway', 'Lato', 'Helvetica', 'Tahoma', 'Geneva', 'Arial', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    background: var(--bg-lavender);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--purple-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #de6400;
}

/* Container */
.g-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

/* ========================================
   Navigation
   ======================================== */
#g-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--purple-primary);
    background-image: url('../images/city.jpg');
    background-repeat: repeat-x;
    background-position-y: bottom;
    z-index: 999;
}

#g-navigation .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    padding: 0 2rem;
}

#g-navigation .logo img {
    height: 60px;
    width: auto;
}

#g-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

#g-navigation .nav-menu li a {
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
}

#g-navigation .nav-menu li a:hover {
    color: var(--gold-bright);
}

#g-navigation .nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-bright);
    transition: width 0.3s ease;
}

#g-navigation .nav-menu li a:hover::after {
    width: 100%;
}

/* Nav spacer to push content below fixed nav */
.nav-spacer {
    height: var(--nav-height);
}

/* ========================================
   Page Surround
   ======================================== */
#g-page-surround {
    background: var(--bg-lavender);
    overflow: hidden;
}

/* ========================================
   Main Content / Article Section
   ======================================== */
#g-mainbar {
    background: var(--bg-white);
    padding: var(--section-padding) 0;
}

.article-section {
    background-color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 1.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.article-ribbon {
    position: absolute;
    top: -3px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: url('../images/new-ribbon.png') no-repeat top right;
    background-size: contain;
    transform: scale(1.1);
}

.blog-article h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-article h2 a {
    color: var(--purple-dark);
}

.blog-article h2 a:hover {
    color: var(--purple-primary);
}

.blog-article p {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.readmore {
    text-align: right;
    margin-top: 1rem;
}

/* Buttons */
.button {
    display: inline-block;
    font-family: 'Poppins', 'Lato', 'Helvetica', 'Tahoma', 'Geneva', 'Arial', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.15;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    background: var(--purple-light);
    color: #ffffff;
    border: 1px solid transparent;
    border-radius: 2.5rem;
    padding: 1rem 2.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.button:hover {
    background: #764d7a;
    color: #ffffff;
}

/* ========================================
   Book Promotion Section
   ======================================== */
.book-intro {
    color: #ffffff;
    background-color: var(--purple-primary);
    background-image: url('../images/book-intro-bg-left.png');
    background-repeat: no-repeat;
    background-position: left center;
    min-height: 441px;
    display: flex;
    align-items: center;
}

.book-intro-inside {
    background-image: url('../images/book-intro-bg-right.png');
    background-repeat: no-repeat;
    background-position: right center;
    min-height: 441px;
    width: 100%;
    display: flex;
    align-items: center;
}

.book-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
}

.book-image {
    flex: 0 0 auto;
}

.book-image img {
    max-width: 280px;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.book-text {
    flex: 1;
}

.book-intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.book-intro-text strong {
    color: var(--gold-bright);
    font-weight: 700;
}

.book-points {
    list-style: none;
    margin-bottom: 2rem;
}

.book-points li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
}

.book-points li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold-bright);
    font-size: 1.2rem;
}

.book-points li em {
    font-style: italic;
    color: var(--gold);
}

.btn-success {
    display: inline-block;
    background: #ffffff;
    color: var(--purple-primary);
    border: 1px solid lightgray;
    border-radius: 0;
    padding: 1.25rem 2.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-success:hover {
    background: var(--gold);
    color: var(--purple-dark);
}

/* ========================================
   Quote Section
   ======================================== */
#g-above {
    background: var(--bg-white);
    padding: var(--section-padding) 0;
}

.quote-section {
    text-align: center;
    padding: 2rem 0;
}

.quote-section blockquote {
    border: none;
    max-width: 700px;
    margin: 0 auto;
}

.quote-avatar {
    margin-bottom: 1.5rem;
}

.quote-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--purple-light);
}

.quote-section blockquote p {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
}

/* ========================================
   Services CTA Section
   ======================================== */
.services-intro {
    color: #ffffff;
    background-color: var(--purple-dark);
    background-image: url('../images/services-bg-left.png');
    background-repeat: no-repeat;
    background-position: left center;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.services-inside {
    background-image: url('../images/services-bg-right.png');
    background-repeat: no-repeat;
    background-position: right center;
    min-height: 480px;
    width: 100%;
    display: flex;
    align-items: center;
}

.services-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
}

.services-image {
    flex: 0 0 auto;
}

.services-image img {
    max-width: 300px;
    height: auto;
}

.services-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.services-list {
    list-style: none;
}

.services-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
}

.services-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold-bright);
    font-size: 1.2rem;
}

/* ========================================
   Testimonials Section
   ======================================== */
#g-expanded {
    background: var(--purple-primary);
    background: linear-gradient(40deg, var(--purple-light), var(--purple-dark));
    padding: var(--section-padding) 0;
    position: relative;
}

#g-expanded::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(40deg, rgba(148, 97, 153, 0.9), rgba(91, 25, 96, 0.9));
    z-index: 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

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

.testimonial-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.testimonial-card:hover img {
    transform: translateY(-5px);
}

/* ========================================
   Footer
   ======================================== */
#g-footer {
    background: var(--footer-bg);
    padding: 1.5rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.g-copyright {
    color: #ffffff;
    font-size: 0.875rem;
}

.g-social {
    display: flex;
    gap: 0.75rem;
}

.fa-social-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: var(--footer-bg);
    border-radius: 50%;
    text-align: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.fa-social-small:hover {
    background: var(--gold-bright);
    color: #ffffff;
}

/* ========================================
   Back to Top Button
   ======================================== */
#g-totop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--gold-bright);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

#g-totop.visible {
    opacity: 1;
    visibility: visible;
}

#g-totop:hover {
    background: var(--purple-primary);
    transform: translateY(-3px);
}

#g-totop i {
    font-size: 1.1rem;
    padding-top: 0;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 1200px) {
    .g-container {
        max-width: 60rem;
    }
}

@media (max-width: 992px) {
    .g-container {
        max-width: 48rem;
    }

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

    .book-content,
    .services-content {
        flex-direction: column;
        text-align: center;
    }

    .book-intro-text {
        text-align: left;
    }

    .book-points,
    .services-list {
        text-align: left;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 80px;
    }

    #g-navigation .nav-menu {
        display: none;
    }

    #g-navigation .logo img {
        height: 45px;
    }

    .article-section {
        padding: 1.5rem;
    }

    .blog-article h2 {
        font-size: 1.5rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
