/* ==========================================================================
   The Mali Dad - Dog Training Website
   Professional, Clean, Modern CSS
   ========================================================================== */

/* CSS Variables */
:root {
    /* Colors - Orange & Black Theme */
    --primary-color: #ff6b00;
    --primary-dark: #e55a00;
    --primary-light: #ff8533;
    --secondary-color: #ffaa00;
    --secondary-dark: #cc8800;
    --accent-color: #fff4e6;

    --text-color: #1a1a1a;
    --text-light: #4a4a4a;
    --text-muted: #777777;

    --bg-color: #ffffff;
    --bg-light: #fafafa;
    --bg-dark: #111111;

    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    /* Typography */
    --font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* Container */
    --container-width: 1200px;
    --container-padding: 1.5rem;

    /* Transitions */
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Base Styles */
html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--text-color);
    background-color: var(--bg-color);
}

body.popup-open {
    overflow: hidden;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: var(--bg-dark);
    color: white;
    padding: var(--spacing-xs) 0;
}

.contact-bar {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.contact-link {
    color: white;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.contact-link:hover {
    color: var(--secondary-color);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo:hover {
    color: var(--primary-dark);
}

.logo-image {
    height: 120px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-item a {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
}

.nav-item a:hover,
.nav-item.active a {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.nav-item.active a {
    border-bottom: 3px solid var(--primary-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #111 100%);
    position: relative;
    padding: var(--spacing-xxl) 0;
    overflow: hidden;
}

/* Floating paw prints background */
.hero-paws {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.paw {
    position: absolute;
    opacity: 0;
    width: 40px;
    height: 40px;
    animation: floatUp 8s ease-in-out infinite;
}

.paw svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

/* Mouse trail paw prints */
.paw-trail {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
    animation: pawFade 1.5s ease-out forwards;
    z-index: 2;
}

.paw-trail svg {
    width: 100%;
    height: 100%;
    fill: var(--primary-color);
}

@keyframes pawFade {
    0% {
        opacity: 0.8;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(20deg);
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100px) rotate(0deg) scale(0.5);
    }
    10% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-500px) rotate(45deg) scale(1);
    }
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    color: white;
    text-align: left;
}

.hero-logo {
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

.hero-logo .logo-image {
    height: 120px;
    width: auto;
    max-width: 300px;
}

.hero-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.hero-social .social-icon {
    width: 50px;
    height: 50px;
    border: none;
}

.hero-social .social-icon svg {
    width: 26px;
    height: 26px;
}

/* Brand colors for hero social icons */
.hero-social .social-facebook {
    background-color: #1877f2;
}

.hero-social .social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.hero-social .social-tiktok {
    background-color: #000;
    border: 2px solid #25f4ee;
}

.hero-social .social-twitter {
    background-color: #000;
}

.hero-social .social-youtube {
    background-color: #ff0000;
}

.hero-social .social-linkedin {
    background-color: #0A66C2;
}

.hero-social .social-github {
    background-color: #24292e;
}

.hero-social .social-dribbble {
    background-color: #EA4C89;
}

.hero-social .social-stackoverflow {
    background-color: #F48024;
}

.hero-social .social-whatsapp {
    background-color: #25D366;
}

.hero-social .social-threads {
    background-color: #000000;
}

.hero-cta {
    margin-top: var(--spacing-lg);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.5);
    transition: all var(--transition);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.6);
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 500px;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    line-height: 1.6;
}

.hero-image-wrapper {
    flex-shrink: 0;
    max-width: 350px;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Mobile hero layout */
@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-logo {
        display: block;
        text-align: center;
    }

    .hero-social {
        justify-content: center;
    }

    .hero-cta {
        display: block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image-wrapper {
        max-width: 250px;
        margin-bottom: var(--spacing-md);
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================================================
   Page Sections
   ========================================================================== */
.page-header {
    background-color: var(--bg-dark);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: var(--spacing-xs);
}

.page-intro {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.page-content {
    padding: var(--spacing-xxl) 0;
}

/* Content Layout */
.content-layout {
    display: grid;
    gap: var(--spacing-xl);
}

.content-layout.with-sidebar {
    grid-template-columns: 1fr 320px;
}

.content-layout.full-width {
    grid-template-columns: 1fr;
}

.main-content {
    min-width: 0;
}

.main-content p,
.main-content ul,
.main-content ol {
    margin-bottom: var(--spacing-md);
}

.main-content ul,
.main-content ol {
    padding-left: var(--spacing-lg);
}

.main-content li {
    margin-bottom: var(--spacing-xs);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.services-content {
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================================================
   Why Section / Features
   ========================================================================== */
.why-section {
    padding: var(--spacing-xxl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature {
    text-align: center;
    padding: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
    border-bottom: 3px solid var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.feature h3 {
    margin-bottom: var(--spacing-xs);
}

.feature p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* ==========================================================================
   Testimonial Section
   ========================================================================== */
.testimonial-section {
    background-color: var(--accent-color);
    padding: var(--spacing-xxl) 0;
    border-top: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
}

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial p {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.5;
}

.testimonial cite {
    display: block;
    margin-top: var(--spacing-md);
    font-size: 1rem;
    font-style: normal;
    color: var(--text-light);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background-color: var(--bg-dark);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

/* ==========================================================================
   Image Text Block
   ========================================================================== */
.image-text-block {
    padding: var(--spacing-xxl) 0;
}

.image-text-block:nth-child(even) {
    background: var(--bg-light);
}

.image-text-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.image-text-block.flipped .image-text-layout {
    direction: rtl;
}

.image-text-block.flipped .image-text-layout > * {
    direction: ltr;
}

.image-text-media {
    position: relative;
}

.image-text-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}


.image-text-content h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
}

.image-text-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.image-text-body p {
    margin-bottom: var(--spacing-md);
}

.image-text-body p:last-child {
    margin-bottom: 0;
}

.image-text-body ul,
.image-text-body ol {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.image-text-body li {
    margin-bottom: var(--spacing-sm);
}

.image-text-body strong {
    color: var(--heading-color);
}

@media (max-width: 768px) {
    .image-text-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .image-text-block.flipped .image-text-layout {
        direction: ltr;
    }

    .image-text-media::before {
        display: none;
    }

    .image-text-content h2 {
        font-size: 1.5rem;
    }

    .image-text-body {
        font-size: 1rem;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-color);
}

.about-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-lead .lead-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    line-height: 1.3;
}

.about-lead p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   Our Approach Section
   ========================================================================== */
.approach-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-light);
}

.approach-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.approach-card {
    background: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.approach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.approach-card:hover::before {
    transform: scaleX(1);
}

.approach-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.approach-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--heading-color);
}

.approach-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   Callout Section
   ========================================================================== */
.callout-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-color);
}

.callout-box {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a1a 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xxl);
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.callout-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.callout-content {
    flex: 1;
}

.callout-content h2 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 2rem;
}

.callout-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.callout-highlight {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 1.2rem !important;
    border-left: 3px solid var(--primary-color);
    padding-left: var(--spacing-md);
    margin-top: var(--spacing-lg) !important;
}

.callout-accent {
    flex-shrink: 0;
}

.paw-pattern {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    opacity: 0.3;
}

.paw-pattern span {
    font-size: 4rem;
    transform: rotate(-30deg);
}

/* ==========================================================================
   Location Section
   ========================================================================== */
.location-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.location-content {
    text-align: center;
    color: white;
    max-width: 700px;
    margin: 0 auto;
}

.location-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.location-content h2 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: 1.75rem;
}

.location-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
    margin: 0;
}

.location-content strong {
    font-weight: 700;
}

/* Responsive: About & Approach */
@media (max-width: 1024px) {
    .approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-lead .lead-text {
        font-size: 1.5rem;
    }

    .about-lead p {
        font-size: 1rem;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .approach-card {
        padding: var(--spacing-lg);
    }

    .callout-box {
        flex-direction: column;
        padding: var(--spacing-xl);
    }

    .callout-content h2 {
        font-size: 1.5rem;
    }

    .callout-accent {
        display: none;
    }

    .location-content h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-section {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.sidebar-section h3 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.sidebar-cta {
    background-color: var(--bg-dark);
    color: white;
    border-left: 4px solid var(--primary-color);
}

.sidebar-cta h3 {
    color: var(--primary-color);
}

.sidebar-phone {
    margin-top: var(--spacing-sm);
    font-size: 0.9375rem;
}

.sidebar-promo {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   Contact Page
   ========================================================================== */
.contact-section {
    background-color: var(--bg-light);
    padding: var(--spacing-xxl) 0;
}

.contact-section .section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
}

.contact-intro {
    margin-bottom: var(--spacing-lg);
}

.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-info-card,
.response-time-card {
    background-color: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.contact-info-card h3,
.response-time-card h3 {
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
}

.contact-info-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 1.25rem;
    width: 2rem;
    text-align: center;
}

.contact-info-item strong {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form {
    background: var(--bg-color);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.contact-form-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.contact-form-header h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}

.contact-form-header p {
    color: var(--text-muted);
    margin: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-light);
    transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: #ccc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
    background: #fff5f5;
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.required {
    color: var(--primary-color);
    font-weight: 700;
}

.form-submit {
    margin-top: var(--spacing-lg);
    text-align: center;
}

.form-submit .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    transition: all var(--transition);
}

.form-submit .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.5);
}

.form-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--spacing-md);
    text-align: center;
}

.form-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    color: #155724;
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-success h3 {
    color: #155724;
    margin-bottom: var(--spacing-sm);
}

.form-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: none;
    color: #721c24;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    text-align: center;
    font-weight: 500;
}

.form-error p {
    margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: #ccc;
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
}

.footer-grid {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xxl);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    text-align: center;
}

.footer-section {
    max-width: 280px;
}

.footer-section h3 {
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
}

.footer-section p {
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-contact,
.footer-links {
    list-style: none;
    text-align: left;
}

.footer-contact li,
.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-contact a,
.footer-links a {
    color: #ccc;
    transition: color var(--transition);
}

.footer-contact a:hover,
.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    transition: all var(--transition);
}

.social-icon svg {
    width: 22px;
    height: 22px;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: white;
}

/* Brand colors for social icons */
.social-facebook {
    background-color: #1877f2;
}

.social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-tiktok {
    background-color: #000;
    border: 2px solid #25f4ee;
}

.social-twitter {
    background-color: #000;
}

.social-youtube {
    background-color: #ff0000;
}

.social-linkedin {
    background-color: #0A66C2;
}

.social-github {
    background-color: #24292e;
}

.social-dribbble {
    background-color: #EA4C89;
}

.social-stackoverflow {
    background-color: #F48024;
}

.social-whatsapp {
    background-color: #25D366;
}

.social-threads {
    background-color: #000000;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom .location {
    margin-top: var(--spacing-xs);
    color: var(--text-muted);
}

.footer-bottom .affiliate-disclosure {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.footer-bottom .site-credit {
    margin-top: var(--spacing-md);
    font-size: 1rem;
    color: var(--text-muted);
}

.footer-bottom .site-credit a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.footer-bottom .site-credit a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Popup Modal
   ========================================================================== */
.popup-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.popup-modal[hidden] {
    display: none;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.popup-content {
    position: relative;
    background-color: white;
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color var(--transition);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    color: var(--text-color);
}

.popup-body {
    padding: var(--spacing-xl);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        gap: var(--spacing-xl);
    }

    .content-layout.with-sidebar {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-base: 15px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 10px 20px var(--shadow-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: var(--spacing-lg);
    }

    .contact-form-header h3 {
        font-size: 1.25rem;
    }

    .form-submit .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .footer-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .contact-bar {
        justify-content: center;
        font-size: 0.8125rem;
    }

    .testimonial p {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        --container-padding: 1rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .popup-modal,
    .btn {
        display: none;
    }

    .content-layout.with-sidebar {
        grid-template-columns: 1fr;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    .product-showcase,
    .featured-gear {
        display: none !important;
    }
}

/* ==========================================================================
   Product Showcases & Featured Gear
   ========================================================================== */

/* Common gear label styles */
.gear-label {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

.gear-affiliate-note {
    font-weight: 400;
    font-size: 10px;
    opacity: 0.8;
    letter-spacing: 0.5px;
}

.gear-content {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gear-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    padding: var(--spacing-sm);
}

.gear-placeholder .gear-size {
    display: block;
    font-size: 11px;
    margin-top: 5px;
    opacity: 0.7;
}

/* Product Showcases (Wide screens only) */
.product-showcase {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 100;
    display: none;
}

.product-showcase-left {
    left: 10px;
}

.product-showcase-right {
    right: 10px;
}

.product-showcase .gear-placeholder {
    width: 160px;
    height: 600px;
}

/* Featured Gear Banners (Smaller screens) */
.featured-gear {
    display: block;
    padding: var(--spacing-md) 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.featured-gear-top {
    border-top: 1px solid var(--border-color);
}

.featured-gear-bottom {
    border-bottom: none;
    border-top: 1px solid var(--border-color);
}

.featured-gear .gear-content {
    max-width: 728px;
    margin: 0 auto;
}

.featured-gear .gear-placeholder {
    width: 100%;
    height: 100px;
}

/* Mobile: Shorter banner */
@media (max-width: 767px) {
    .featured-gear .gear-placeholder {
        height: 80px;
    }
}

/* Wide screens: Hide featured gear banners, show product showcases */
@media (min-width: 1600px) {
    .featured-gear {
        display: none;
    }

    .product-showcase {
        display: block;
    }
}

/* Extra wide screens */
@media (min-width: 1800px) {
    .product-showcase-left {
        left: 20px;
    }

    .product-showcase-right {
        right: 20px;
    }
}

/* ==========================================================================
   Product Cards (Affiliate)
   ========================================================================== */

/* Product Carousel */
.product-carousel {
    position: relative;
    overflow: hidden;
}

.product-carousel-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.product-carousel-horizontal {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: var(--spacing-sm) 0;
}

.product-carousel-horizontal::-webkit-scrollbar {
    display: none;
}

/* Carousel dots/indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-sm);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Product Card Base */
.product-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 107, 0, 0.15);
    border-color: var(--primary-color);
}

.product-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Product Image Wrapper */
.product-image-wrapper {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* Vertical Product Card (Side Ads) */
.product-card-vertical {
    width: 160px;
}

.product-card-vertical .product-image-wrapper {
    padding: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card-vertical .product-image {
    width: 100%;
    height: 100px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card-vertical:hover .product-image {
    transform: scale(1.05);
}

.product-card-vertical .product-info {
    padding: var(--spacing-sm);
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

.product-card-vertical .product-name {
    font-size: 12px;
    font-weight: 700;
    margin: 0 0 var(--spacing-sm);
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.product-card-vertical .product-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 0, 0.25);
    width: 100%;
}

.product-card-vertical .cta-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.product-card-vertical:hover .product-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #cc4a00 100%);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.35);
}

.product-card-vertical:hover .cta-icon {
    transform: translateX(3px);
}

.product-card-vertical .amazon-badge {
    display: block;
    font-size: 9px;
    color: var(--text-muted);
    margin-top: var(--spacing-xs);
    opacity: 0.8;
}

/* Horizontal Product Card (Inline Ads) */
.product-card-horizontal {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.product-card-horizontal a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: 500px;
    margin: 0 auto;
}

.product-card-horizontal .product-image-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
}

.product-card-horizontal .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card-horizontal:hover .product-image {
    transform: scale(1.1);
}

.product-card-horizontal .product-info {
    flex: 1;
    min-width: 0;
}

.product-card-horizontal .product-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-color);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-horizontal .product-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.product-card-horizontal .cta-icon {
    transition: transform 0.3s ease;
}

.product-card-horizontal:hover .product-cta {
    color: var(--primary-dark);
}

.product-card-horizontal:hover .cta-icon {
    transform: translateX(4px);
}

/* Mobile adjustments for horizontal cards */
@media (max-width: 767px) {
    .product-card-horizontal a {
        gap: var(--spacing-md);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .product-card-horizontal .product-image-wrapper {
        width: 80px;
        height: 80px;
    }

    .product-card-horizontal .product-name {
        font-size: 13px;
    }
}

/* Rotation for vertical carousels */
.product-carousel-vertical[data-rotate="true"] {
    min-height: 220px;
    position: relative;
}

.product-carousel-vertical[data-rotate="true"] .product-card {
    transition: opacity 0.5s ease-in-out;
}

/* Before JS runs: show first card only */
.product-carousel-vertical[data-rotate="true"] .product-card:first-child {
    opacity: 1;
}

.product-carousel-vertical[data-rotate="true"] .product-card:not(:first-child) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

/* Once JS adds .active class, it takes control */
.product-carousel-vertical[data-rotate="true"].js-ready .product-card {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.product-carousel-vertical[data-rotate="true"].js-ready .product-card.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}
