/*
 * First-clone visual theme
 *
 * This file intentionally contains presentation-only overrides. It is loaded
 * after style.css so the original theme remains intact and easy to restore.
 */

:root {
    --primary: #004fc4;
    --primary-dark: #00102d;
    --primary-light: #e5f3ff;
    --accent: #ff8500;
    --accent-dark: #ff3b0a;
    --bg-cream: #f4f9ff;
    --bg-light: #eaf4ff;
    --text-dark: #02070d;
    --text-light: #4b5f7a;
    --white: #ffffff;
    --clone-surface: #ffffff;
    --clone-surface-muted: #f8f2eb;
    --clone-border: #e6dbd1;
    --clone-shadow-sm: 0 8px 24px rgba(0, 16, 45, 0.07);
    --clone-shadow-md: 0 18px 45px rgba(0, 16, 45, 0.12);
    --clone-radius: 16px;
}

body {
    background: var(--bg-cream);
    color: var(--text-dark);
    font-family: 'Outfit', sans-serif;
    line-height: 1.65;
}

.hero-title,
.section-title,
.feature-title,
.blog-title,
.faq-question-text,
.newsletter-title,
.footer-title,
.contact-info-title,
.store-name,
.breadcrumbsection h1,
.store-detail-name,
.coupons-header h3,
.coupon-title,
.coupon-modal-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.025em;
}

/* A calmer editorial content width across all existing page sections. */
.topbar .container,
.main-header .container,
.category-bar .container,
.hero-banner .container,
.features-section .container,
.blogs-section .container,
.faqs-section .container,
.about-section .container,
.newsletter-section .container,
.main-footer .container,
.breadcrumbsection .container,
.contact-section .container,
.stores-section .container,
.store-detail-header .container,
.coupons-grid-section .container {
    max-width: 1220px;
    padding-left: 28px;
    padding-right: 28px;
}

/* Header and navigation */
.topbar {
    background: #00102d;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-contact a,
.topbar-social a {
    color: #eff8ff;
}

.topbar-contact a:hover,
.topbar-social a:hover {
    color: #ffb300;
}

.topbar-social a {
    border-radius: 9px;
    border-color: rgba(255, 255, 255, 0.22);
}

.topbar-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.main-header {
    background: rgba(255, 250, 244, 0.96);
    padding: 14px 0;
    border-bottom: 1px solid var(--clone-border);
    box-shadow: 0 8px 28px rgba(0, 16, 45, 0.06);
    backdrop-filter: blur(12px);
}

.logo img,
.footer-logo img {
    width: 240px !important;
    height: auto;
}

.main-nav {
    gap: 12px;
}

.main-nav a {
    display: block;
    padding: 9px 13px;
    border-radius: 10px;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 600;
}

.main-nav a::after {
    display: none;
}

.main-nav a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.cta-button {
    background: var(--primary-dark);
    padding: 12px 24px;
    border: 1px solid var(--primary-dark);
    border-radius: 11px;
    box-shadow: none;
}

.cta-button:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--clone-shadow-sm);
}

.category-bar {
    background: var(--primary);
    padding: 10px 0;
    border-bottom: 3px solid var(--accent);
}

.category-nav {
    gap: 8px;
}

.category-nav a {
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.category-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
}

/* Hero */
.hero-banner {
    padding: 96px 0 106px;
    background:
        radial-gradient(circle at 88% 22%, rgba(255, 133, 0, 0.18), transparent 28%),
        radial-gradient(circle at 12% 88%, rgba(0, 79, 196, 0.12), transparent 30%),
        linear-gradient(145deg, #f4f9ff 0%, #eaf4ff 100%);
}

.hero-banner::before {
    width: 48%;
    background: linear-gradient(145deg, rgba(0, 79, 196, 0.06), transparent 70%);
    transform: skewX(-8deg);
}

.hero-banner .container {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 72px;
}

.hero-badge,
.section-badge {
    background: rgba(0, 79, 196, 0.09);
    color: var(--primary-dark);
    border: 1px solid rgba(0, 79, 196, 0.18);
    border-radius: 9px;
    box-shadow: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    max-width: 720px;
    font-size: clamp(3rem, 5vw, 4.65rem);
    line-height: 1.06;
    margin-bottom: 28px;
}

.hero-title .highlight,
.section-title .highlight {
    color: var(--accent-dark);
}

.hero-title .highlight::after {
    bottom: 5px;
    height: 9px;
    background: #ffd166;
    opacity: 0.45;
}

.hero-description {
    max-width: 650px;
    font-size: 1.1rem;
}

.btn-primary,
.btn-secondary,
.btn-view-all,
.newsletter-submit,
.contact-submit,
.store-button,
.coupon-btn,
.copy-code-btn,
.modal-shop-btn {
    border-radius: 11px;
}

.btn-primary,
.btn-view-all,
.newsletter-submit,
.contact-submit,
.store-button,
.coupon-btn,
.copy-code-btn {
    background: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(0, 16, 45, 0.16);
}

.btn-primary:hover,
.btn-view-all:hover,
.newsletter-submit:hover,
.contact-submit:hover,
.store-button:hover,
.coupon-btn:hover {
    background: var(--primary);
    box-shadow: 0 12px 28px rgba(0, 16, 45, 0.2);
}

.btn-secondary {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: var(--primary-dark);
}

.stat-card,
.featured-image {
    border-radius: var(--clone-radius);
    border: 1px solid var(--clone-border);
    box-shadow: var(--clone-shadow-sm);
}

.stat-card {
    padding: 28px;
}

.stat-card::before {
    height: 5px;
    background: var(--accent);
}

.stat-card:hover {
    box-shadow: var(--clone-shadow-md);
}

.featured-image {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary));
    box-shadow: 0 20px 48px rgba(0, 16, 45, 0.2);
}

/* Shared section rhythm */
.features-section,
.blogs-section,
.faqs-section,
.about-section,
.contact-section {
    padding-top: 88px;
    padding-bottom: 88px;
}

.features-section,
.faqs-section,
.store-detail-header {
    background: var(--bg-cream);
}

.blogs-section,
.about-section,
.contact-section,
.coupons-grid-section {
    background: var(--bg-light);
}

.section-header {
    margin-bottom: 48px;
}

.section-title {
    font-size: clamp(2.25rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-description {
    max-width: 650px;
}

.features-grid,
.blogs-grid,
.stores-grid {
    gap: 26px;
    margin-top: 46px;
}

/* Cards */
.feature-card,
.blog-card,
.store-card,
.faq-item,
.contact-form-wrapper,
.coupon-card,
.sidebar-widget,
body .blog-main-content {
    background: var(--clone-surface);
    border: 1px solid var(--clone-border);
    border-radius: var(--clone-radius);
    box-shadow: var(--clone-shadow-sm);
}

.feature-card {
    padding: 38px 30px;
}

.feature-card::before,
.store-card::before {
    background: linear-gradient(145deg, var(--primary-light), rgba(255, 133, 0, 0.18));
}

.feature-card:hover,
.blog-card:hover,
.store-card:hover,
.coupon-card:hover {
    border-color: rgba(0, 79, 196, 0.45);
    box-shadow: var(--clone-shadow-md);
    transform: translateY(-6px);
}

.feature-icon {
    width: 68px;
    height: 68px;
    background: var(--primary-dark);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(255, 133, 0, 0.22);
}

.blog-card {
    overflow: hidden;
}

.blog-image {
    height: 225px;
}

.blog-category {
    top: 16px;
    left: 16px;
    background: var(--accent);
    border-radius: 8px;
}

.blog-content {
    padding: 26px;
}

.blog-link,
.blog-meta i {
    color: var(--primary);
}

.blog-link:hover,
.blog-card:hover .blog-title {
    color: var(--accent-dark);
}

.faq-item {
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-item:hover,
.faq-item.active {
    border-color: rgba(0, 79, 196, 0.4);
    box-shadow: var(--clone-shadow-sm);
}

.faq-question {
    padding: 22px 25px;
}

.faq-question:hover {
    background: var(--clone-surface-muted);
}

.about-image-main,
.about-stats-box,
.about-feature-icon {
    border-radius: var(--clone-radius);
}

.about-image-main {
    border: 1px solid var(--clone-border);
    box-shadow: var(--clone-shadow-md);
}

.about-stats-box {
    background: var(--primary-dark);
    box-shadow: var(--clone-shadow-md);
}

.about-feature-icon {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* Newsletter and footer */
.newsletter-section {
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 133, 0, 0.28), transparent 28%),
        linear-gradient(145deg, #00102d, #004fc4);
    padding: 74px 0;
}

.newsletter-wrapper {
    gap: 48px;
}

.newsletter-icon,
.newsletter-input-group,
.newsletter-benefit {
    border-radius: 14px;
}

.newsletter-input-group {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.newsletter-submit {
    background: var(--accent);
}

.newsletter-submit:hover {
    background: var(--accent-dark);
}

.main-footer {
    background: #00102d;
    border-top: 4px solid var(--accent);
}

.footer-title {
    color: #ffffff;
}

.footer-tagline,
.footer-menu a,
.footer-disclosure p,
.footer-copyright {
    color: #b6c7df;
}

.footer-menu a:hover,
.footer-copyright a {
    color: #ffb300;
}

.footer-disclosure {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

/* Interior page headers and forms */
.breadcrumbsection {
    padding: 34px 0;
    background:
        linear-gradient(120deg, rgba(0, 79, 196, 0.08), rgba(255, 133, 0, 0.08)),
        var(--bg-light);
    border-bottom: 1px solid var(--clone-border);
}

.breadcrumbsection h1 {
    color: var(--primary-dark);
}

.contact-info {
    background: linear-gradient(145deg, var(--primary-dark), var(--primary));
    border-radius: var(--clone-radius);
    box-shadow: var(--clone-shadow-md);
}

.contact-form-wrapper {
    padding: 40px;
}

.form-group input,
.form-group textarea {
    background: var(--clone-surface-muted);
    border: 1px solid var(--clone-border);
    border-radius: 10px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 79, 196, 0.1);
}

/* Store and coupon pages */
.stores-section {
    background: var(--bg-cream);
    padding: 70px 0 88px;
}

.store-card {
    padding: 26px;
}

.store-logo,
.store-detail-logo,
.coupon-logo,
.coupon-modal-logo {
    background: var(--clone-surface-muted);
    border: 1px solid var(--clone-border);
    border-radius: 14px;
    box-shadow: none;
}

.store-offers {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 8px;
}

.store-detail-header {
    padding: 52px 0;
}

.store-detail-logo {
    box-shadow: var(--clone-shadow-sm);
}

.store-detail-stat {
    background: var(--clone-surface-muted);
    padding: 9px 13px;
    border: 1px solid var(--clone-border);
    border-radius: 9px;
}

.coupons-grid-section {
    padding: 64px 0 88px;
}

.filter-btn,
.category-btn {
    background: var(--clone-surface);
    color: var(--text-dark);
    border: 1px solid var(--clone-border);
    border-radius: 9px;
}

.filter-btn:hover,
.filter-btn.active,
.category-btn:hover,
.category-btn.active {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

.coupon-card {
    padding: 23px;
}

.coupon-modal-overlay {
    background: rgba(0, 16, 45, 0.78);
}

.coupon-modal-content {
    border: 1px solid var(--clone-border);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 16, 45, 0.3);
}

.coupon-modal-close,
.coupon-modal-detail,
.coupon-code-box {
    background: var(--clone-surface-muted);
}

.coupon-modal-detail,
.coupon-code-box {
    border-radius: 11px;
}

.coupon-code-box {
    border-color: var(--primary);
}

.modal-shop-btn {
    background: var(--accent);
    box-shadow: 0 8px 22px rgba(255, 133, 0, 0.22);
}

.pagination-wrapper .pagination a,
.pagination-wrapper .pagination span {
    border: 1px solid var(--clone-border);
    border-radius: 9px;
    color: var(--text-dark);
}

.pagination-wrapper .pagination a:hover,
.pagination-wrapper .pagination .active span {
    background: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
}

/*
 * Laravel's default paginator uses Tailwind utility classes, while this site
 * does not load Tailwind. Scope the missing layout and sizing behavior to the
 * paginator so its SVG arrows and responsive controls remain predictable.
 */
.pagination-wrapper {
    width: 100%;
    margin-top: 36px;
}

.pagination-wrapper nav[role="navigation"] {
    width: 100%;
    color: var(--text-light);
}

.pagination-wrapper nav[role="navigation"] > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.pagination-wrapper nav[role="navigation"] > div:last-child {
    display: none;
}

.pagination-wrapper nav[role="navigation"] a,
.pagination-wrapper nav[role="navigation"] > div:first-child > span,
.pagination-wrapper nav[role="navigation"] span[aria-current="page"] > span,
.pagination-wrapper nav[role="navigation"] span[aria-disabled="true"] > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 40px;
    height: 40px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--clone-border);
    border-radius: 9px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    vertical-align: middle;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pagination-wrapper nav[role="navigation"] a:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: var(--white);
}

.pagination-wrapper nav[role="navigation"] a:focus-visible {
    outline: 3px solid rgba(255, 133, 0, 0.28);
    outline-offset: 2px;
}

.pagination-wrapper nav[role="navigation"] span[aria-current="page"] > span {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: var(--white);
}

.pagination-wrapper nav[role="navigation"] > div:first-child > span,
.pagination-wrapper nav[role="navigation"] span[aria-disabled="true"] > span {
    background: var(--clone-surface-muted);
    color: var(--text-light);
    cursor: not-allowed;
    opacity: 0.7;
}

.pagination-wrapper nav[role="navigation"] svg {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

@media (min-width: 640px) {
    .pagination-wrapper nav[role="navigation"] > div:first-child {
        display: none;
    }

    .pagination-wrapper nav[role="navigation"] > div:last-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        width: 100%;
    }

    .pagination-wrapper nav[role="navigation"] > div:last-child p {
        margin: 0;
        color: var(--text-light);
        font-size: 14px;
        line-height: 1.5;
    }

    .pagination-wrapper nav[role="navigation"] > div:last-child > div:last-child > span {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }
}

@media (max-width: 639.98px) {
    .pagination-wrapper {
        margin-top: 28px;
    }

    .pagination-wrapper nav[role="navigation"] > div:first-child > a,
    .pagination-wrapper nav[role="navigation"] > div:first-child > span {
        min-width: 0;
        padding-right: 16px;
        padding-left: 16px;
    }
}

/*
 * Blog detail has page-local styles after the shared include. The body prefix
 * raises specificity without altering that template or its dynamic content.
 */
body .blog-detail-hero {
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 133, 0, 0.35), transparent 28%),
        linear-gradient(145deg, var(--primary-dark), var(--primary));
}

body .blog-detail-container {
    max-width: 1220px;
    padding-left: 28px;
    padding-right: 28px;
}

body .blog-detail-content {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
}

body .blog-main-content,
body .sidebar-widget {
    border: 1px solid var(--clone-border);
    border-radius: var(--clone-radius);
    box-shadow: var(--clone-shadow-sm);
}

body .blog-featured-image,
body .recent-post-image {
    border-radius: 12px;
}

body .blog-detail-title,
body .blog-detail-body h2,
body .blog-detail-body h3,
body .sidebar-widget-title,
body .related-blogs-title {
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
}

body .blog-detail-body,
body .meta-item,
body .recent-post-date {
    color: var(--text-light);
}

body .meta-item i,
body .recent-post-title:hover {
    color: var(--accent-dark);
}

body .blog-detail-body blockquote {
    border-left-color: var(--accent);
    background: var(--clone-surface-muted);
    padding: 18px 20px;
    border-radius: 0 10px 10px 0;
}

body .category-list-item a {
    background: var(--clone-surface-muted);
    color: var(--text-dark);
    border: 1px solid var(--clone-border);
    border-radius: 9px;
}

body .category-list-item a:hover {
    background: var(--primary-dark);
    color: var(--white);
}

body .related-blogs-section {
    background: var(--bg-light);
}

/* Responsive refinements preserve the original breakpoints and stacking. */
@media (max-width: 1024px) {
    .hero-banner {
        padding: 76px 0 84px;
    }

    .hero-banner .container {
        gap: 44px;
    }

    .main-nav {
        gap: 4px;
    }

    .main-nav a {
        padding: 8px 9px;
    }

    body .blog-detail-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topbar .container,
    .main-header .container,
    .category-bar .container,
    .hero-banner .container,
    .features-section .container,
    .blogs-section .container,
    .faqs-section .container,
    .about-section .container,
    .newsletter-section .container,
    .main-footer .container,
    .breadcrumbsection .container,
    .contact-section .container,
    .stores-section .container,
    .store-detail-header .container,
    .coupons-grid-section .container,
    body .blog-detail-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .main-header {
        padding: 10px 0;
    }

    .logo img,
    .footer-logo img {
        width: 210px !important;
    }

    .category-bar {
        padding: 8px 0;
    }

    .category-nav {
        gap: 5px;
    }

    .category-nav a {
        padding: 6px 9px;
        font-size: 0.82rem;
    }

    .hero-banner {
        padding: 58px 0 66px;
    }

    .hero-title {
        font-size: clamp(2.45rem, 12vw, 3.25rem);
    }

    .features-section,
    .blogs-section,
    .faqs-section,
    .about-section,
    .contact-section,
    .stores-section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .section-title {
        font-size: 2.15rem;
    }

    .feature-card,
    .store-card,
    .contact-form-wrapper {
        padding: 28px 22px;
    }

    .blog-content {
        padding: 22px;
    }

    .coupon-card {
        padding: 22px;
    }

    body .blog-main-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .coupon-code-box {
        align-items: stretch;
        flex-direction: column;
    }

    .copy-code-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .hero-visual,
    .section-header,
    .featured-icon,
    .floating-badge {
        animation: none;
    }
}

/* Promvella mobile hero: a purposeful content-first composition. */
@media (max-width: 768px) {
    html, body { overflow-x: hidden; }

    .hero-banner {
        padding: 42px 0 48px;
        background:
            radial-gradient(circle at 88% 4%, rgba(0, 168, 255, 0.2), transparent 36%),
            radial-gradient(circle at 8% 80%, rgba(255, 179, 0, 0.13), transparent 34%),
            linear-gradient(160deg, #f4f9ff 0%, #eaf4ff 100%);
    }

    .hero-banner::before { display: none; }

    .hero-banner .container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content { min-width: 0; text-align: left; }

    .hero-badge {
        margin-bottom: 15px;
        padding: 7px 11px;
        font-size: .7rem;
        letter-spacing: .055em;
    }

    .hero-title {
        max-width: 12ch;
        margin: 0 0 16px;
        font-size: clamp(2.05rem, 10.5vw, 3rem);
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .hero-title .highlight::after { bottom: 2px; height: 7px; }

    .hero-description {
        max-width: 38rem;
        margin-bottom: 22px;
        font-size: 1rem;
        line-height: 1.62;
    }

    .hero-buttons { align-items: stretch; width: 100%; }
    .hero-buttons .btn-primary { width: 100%; min-height: 50px; padding: 13px 20px; }

    .hero-visual { min-width: 0; }

    .visual-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .featured-image {
        grid-column: 1 / -1;
        min-height: 0;
        aspect-ratio: 3 / 2;
        border-radius: 15px;
    }

    .featured-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .stat-card { min-width: 0; padding: 17px 10px; border-radius: 13px; }
    .stat-number { margin-bottom: 3px; font-size: clamp(1.55rem, 7vw, 2rem); }
    .stat-label { font-size: .78rem; line-height: 1.25; }
}

@media (max-width: 430px) {
    .logo img, .footer-logo img { width: min(188px, 62vw) !important; }
    .hero-banner { padding-top: 36px; }
    .hero-title { font-size: clamp(1.95rem, 10.25vw, 2.5rem); }
}

@media (max-width: 390px) {
    .hero-banner .container { padding-left: 16px; padding-right: 16px; }
    .hero-title { font-size: 2rem; }
    .hero-description { font-size: .94rem; }
    .hero-badge { font-size: .64rem; }
    .stat-card { padding: 15px 8px; }
}

@media (max-width: 360px) {
    .hero-title { font-size: 1.85rem; }
    .hero-buttons .btn-primary { font-size: .94rem; }
}
