/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

:root {
    /* Premium Color Palette */
    --color-primary: #0f172a;
    /* Slate 900 */
    --color-secondary: #334155;
    /* Slate 700 */
    --color-accent: #3b82f6;
    /* Blue 500 */
    --color-background: #f8fafc;
    /* Slate 50 */
    --color-text: #1e293b;
    /* Slate 800 */
    --color-white: #ffffff;

    /* Typography */
    --font-primary: 'Obyoy', 'Inter', sans-serif;
    --font-heading: 'Obyoy', 'Outfit', sans-serif;
}

/* Local Font Registration */
@font-face {
    font-family: 'Obyoy';
    src: url('fonts/Obyoy  Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Obyoy';
    src: url('fonts/Obyoy Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Obyoy';
    src: url('fonts/Obyoy Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary);
}

/* Card Styling for Blog Posts & Products */
.generate-columns .inside-article,
.woocommerce ul.products li.product {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
}

.generate-columns .inside-article:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Hero Section */
.bluwave-hero-section {
    padding: 40px 20px;
    background-color: var(--color-background);
}

.hero-inner {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    color: var(--color-white);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hero-title {
    color: var(--color-white);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: #cbd5e1;
    /* Slate 300 */
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-btn-primary {
    background-color: var(--color-primary);
    /* Darker for contrast against gradient */
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
}

.hero-btn-primary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.hero-btn-secondary {
    background-color: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-white);
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
}

.hero-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

.hero-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.placeholder-content {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        padding: 30px;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Features Section */
.bluwave-features-section {
    padding: 80px 20px;
    background-color: #f1f5f9;
    /* Slate 100 */
    text-align: center;
}

.features-header {
    margin-bottom: 60px;
}

.features-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.features-subtitle {
    font-size: 1.125rem;
    color: var(--color-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 16px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: #e2e8f0;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #eff6ff;
    /* Blue 50 */
    color: var(--color-accent);
    border-radius: 12px;
    margin-bottom: 24px;
}

.feature-heading {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.feature-desc {
    color: var(--color-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: var(--color-accent);
    gap: 8px;
}

.feature-link:hover {
    color: var(--color-primary);
}

.feature-link .arrow {
    transition: transform 0.2s ease;
}

.feature-link:hover .arrow {
    transform: translateX(4px);
}

/* Email Capture Section */
.bluwave-email-section {
    padding: 40px 20px 80px 20px;
    background-color: #f1f5f9;
    /* Slate 100 - matching features section */
}

.email-capture-inner {
    background-color: #556b63;
    /* Dark Green/Slate from image */
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    color: var(--color-white);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.email-content {
    flex: 1;
}

.email-title {
    color: var(--color-white);
    font-size: 1.75rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.email-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.email-form-wrapper {
    flex: 1;
    max-width: 500px;
}

.email-capture-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.email-capture-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 1rem;
}

.email-capture-form button {
    background-color: #0f172a;
    /* Dark button */
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.email-capture-form button:hover {
    background-color: #1e293b;
}

.email-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

@media (max-width: 768px) {
    .email-capture-inner {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .email-capture-form {
        flex-direction: column;
    }

    .email-capture-form button {
        width: 100%;
    }
}

/* Blog Recommendation Section */
.bluwave-blog-section {
    padding: 80px 20px;
    background-color: #f8fafc;
    /* Slate 50 */
}

.blog-header {
    text-align: center;
    margin-bottom: 60px;
}

.blog-section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.blog-section-subtitle {
    font-size: 1.125rem;
    color: var(--color-secondary);
    margin-bottom: 40px;
}

.blog-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.blog-search-form {
    display: flex;
    align-items: center;
    background: var(--color-white);
    border-radius: 8px;
    /* Slightly rounded */
    border: 1px solid #e2e8f0;
    padding: 8px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

.blog-search-field {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.blog-search-submit {
    background-color: #0056b3;
    /* Dark Blue from image */
    color: var(--color-white);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    /* Circle button */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.blog-search-submit:hover {
    background-color: #004494;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    /* Increased gap for better balance */
}

.blog-card {
    background: var(--color-white);
    border-radius: 16px;
    /* Added corner radius */
    padding: 0;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
    /* Subtle border */
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Ensure image respects border radius */
}

.blog-card:hover {
    transform: translateY(-8px);
    /* More pronounced lift */
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #e2e8f0;
    overflow: hidden;
    margin-bottom: 24px;
    /* Increased spacing */
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Smooth zoom effect */
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
    /* Zoom in on hover */
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #cbd5e1, #94a3b8);
}

.blog-card-content {
    padding: 0 24px 32px 24px;
    /* Added padding inside the card */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    color: #2563eb;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #64748b;
    /* Slate 500 */
    margin-bottom: 16px;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-author img {
    border-radius: 50%;
    width: 24px;
    height: 24px;
}

.meta-separator {
    color: #cbd5e1;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
    font-weight: 800;
}

.blog-title a {
    color: var(--color-primary);
    transition: color 0.2s ease;
}

.blog-title a:hover {
    color: #2563eb;
}

.blog-excerpt {
    color: #475569;
    /* Slate 600 */
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Push read more to bottom */
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #334155;
    /* Dark Slate */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 6px;
    margin-top: auto;
    /* Ensure it stays at bottom */
}

.read-more-link:hover {
    color: #2563eb;
}

.read-more-link .arrow {
    transition: transform 0.2s ease;
}

.read-more-link:hover .arrow {
    transform: translateX(4px);
}

/* Team Section */
.bluwave-team-section {
    padding: 80px 20px;
    background-color: var(--color-white);
}

.team-header {
    text-align: center;
    margin-bottom: 60px;
}

.team-section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.team-section-subtitle {
    font-size: 1.125rem;
    color: var(--color-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.team-card {
    background: #f8fafc;
    /* Slate 50 */
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.team-stars {
    color: #f59e0b;
    /* Amber 500 */
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.team-quote {
    color: var(--color-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
}

.team-profile {
    display: flex;
    align-items: center;
    gap: 16px;
}

.team-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.team-info {
    display: flex;
    flex-direction: column;
}

.team-name {
    font-size: 1.125rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.875rem;
    color: #64748b;
    /* Slate 500 */
    font-weight: 500;
}

/* eBook Section */
.bluwave-ebook-section {
    padding: 80px 20px;
    background-color: #f8fafc;
    /* Slate 50 */
}

.ebook-header {
    text-align: center;
    margin-bottom: 60px;
}

.ebook-section-title {
    font-size: 2.5rem;
    color: #1e1b4b;
    /* Dark Indigo */
    margin-bottom: 16px;
    font-weight: 800;
}

.ebook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.ebook-card {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ebook-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.ebook-image {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square for books or 4:5 */
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.ebook-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.15);
    /* Book shadow */
}

/* Placeholder Book Style */
.placeholder-book {
    width: 120px;
    height: 180px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    position: relative;
    border-radius: 4px 8px 8px 4px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

.book-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px 0 0 4px;
}

.ebook-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ebook-title {
    font-size: 1.25rem;
    color: #1e1b4b;
    /* Dark Indigo */
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.ebook-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.ebook-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.ebook-price {
    font-size: 1.25rem;
    color: #2563eb;
    /* Blue */
    font-weight: 700;
}

.ebook-btn {
    background-color: #1e1b4b;
    /* Dark Indigo */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.ebook-btn:hover {
    background-color: #312e81;
}

/* Testimonials Section */
.bluwave-testimonials-section {
    padding: 80px 20px;
    background-color: var(--color-white);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.testimonials-section-subtitle {
    font-size: 1.125rem;
    color: var(--color-secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f8fafc;
    /* Slate 50 */
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.testimonial-stars {
    color: #f59e0b;
    /* Amber 500 */
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--color-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 1.125rem;
}

.user-role {
    font-size: 0.875rem;
    color: #64748b;
    /* Slate 500 */
    font-weight: 500;
}

/* Social Media Section */
.bluwave-social-section {
    padding: 80px 20px;
    background-color: #f1f5f9;
    /* Slate 100 */
}

.social-header {
    text-align: center;
    margin-bottom: 60px;
}

.social-section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.social-section-subtitle {
    font-size: 1.125rem;
    color: var(--color-secondary);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.social-card {
    background: var(--color-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    /* Override default link styles */
}

.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.social-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-icon svg {
    width: 32px;
    height: 32px;
}

/* Platform specific colors */
.facebook-card .social-icon {
    background-color: #e7f5ff;
    color: #1877f2;
}

.youtube-card .social-icon {
    background-color: #ffe4e6;
    color: #ff0000;
}

.linkedin-card .social-icon {
    background-color: #e0f2fe;
    color: #0a66c2;
}

.telegram-card .social-icon {
    background-color: #e0f7fa;
    color: #0088cc;
}

.social-name {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.social-desc {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.social-link-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-card:hover .social-link-text {
    color: var(--color-primary);
}