/* ProPlumber - Global CSS Variables & Base Styles */

:root {
    /* Color Palette - Plumbing Industry Trust Colors */
    --navy: #001529;
    --navy-light: #002140;
    --trust-blue: #1890ff;
    --trust-blue-light: #40a9ff;
    --action-orange: #fa8c16;
    --success-green: #52c41a;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #d9d9d9;
    --dark-gray: #666666;
    --text-primary: #001529;
    --text-secondary: #666666;
    --text-muted: #999999;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 80px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.6;
}

/* Typography - Always Dark on Light Background */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--trust-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--trust-blue-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Section Styling */
.section {
    padding: var(--spacing-xxl) 0;
}

.section--gray {
    background: var(--light-gray);
}

.section--navy {
    background: var(--navy);
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy p {
    color: var(--white);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(24, 144, 255, 0.1);
    color: var(--trust-blue);
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: var(--spacing-sm);
}

.section-badge--orange {
    background: rgba(250, 140, 22, 0.1);
    color: var(--action-orange);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Highlight Colors */
.highlight {
    color: var(--trust-blue);
}

.highlight-orange {
    color: var(--action-orange);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Card Component */
.pro-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.pro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pro-card__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
    background: rgba(24, 144, 255, 0.1);
}

.pro-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--spacing-xs);
}

.pro-card__description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Page Hero - For Inner Pages */
.page-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 120px 0 80px;
    text-align: center;
}

.page-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.page-hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Ant Design Overrides */
.ant-btn-primary {
    background: linear-gradient(135deg, var(--trust-blue), var(--trust-blue-light)) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3) !important;
    transition: all var(--transition-normal) !important;
}

.ant-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(24, 144, 255, 0.4) !important;
}

.ant-card {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

.ant-card:hover {
    box-shadow: var(--shadow-md) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .page-hero {
        padding: 100px 0 60px;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}