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

:root {
    /* Humphrys Brand Colors */
    --humphrys-blue: #040057;
    --humphrys-orange: #FA0;
    --text-dark: #1A1A1A;
    --text-gray: #4A4A4A;
    --text-light: #7A7A7A;
    --border-gray: #E5E5E5;
    --bg-light: #F8F8F8;
    --white: #FFFFFF;
    --success: #10B981;
    --error: #EF4444;

    /* Typography */
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-s: 8px;
    --space-m: 16px;
    --space-l: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-xxxl: 64px;

    /* Border Radius */
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 12px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--humphrys-blue);
}

h1 { font-size: 48px; font-weight: 700; }
h2 { font-size: 36px; font-weight: 600; }
h3 { font-size: 28px; font-weight: 500; }
h4 { font-size: 24px; font-weight: 500; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-m);
}

/* Transition Banner */
.transition-banner {
    background: linear-gradient(90deg, var(--humphrys-orange), #ffcc33);
    color: var(--humphrys-blue);
    padding: var(--space-m) 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
}

.transition-banner strong {
    font-weight: 700;
}

/* Header */
.site-header {
    background: var(--white);
    padding: var(--space-l) 0;
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(4, 0, 87, 0.05);
}

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

.logo-section {
    display: flex;
    align-items: center;
}

.tarp-logo {
    height: 62.5px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-l);
}

.phone-link {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    color: var(--humphrys-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
}

.phone-link:hover {
    color: var(--humphrys-orange);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--humphrys-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: #030045;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 0, 87, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--humphrys-blue);
    border: 2px solid var(--humphrys-blue);
}

.btn-secondary:hover {
    background: var(--humphrys-blue);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--humphrys-blue);
}

.btn-white:hover {
    background: var(--bg-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-orange {
    background: var(--humphrys-orange);
    color: var(--humphrys-blue);
    font-weight: 700;
}

.btn-orange:hover {
    background: #e69900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 170, 0, 0.3);
}

/* Hero Section */
.hero {
    position: relative;
    padding: var(--space-xxxl) 0;
    background: linear-gradient(135deg, #040057 0%, #0a0088 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--space-l);
    font-size: 52px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto var(--space-xl);
    color: rgba(255, 255, 255, 0.95);
}

.hero-cta {
    display: flex;
    gap: var(--space-m);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.trust-badges {
    display: flex;
    gap: var(--space-l);
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-s) var(--space-m);
    border-radius: var(--radius-small);
    font-size: 14px;
    font-weight: 600;
}

/* Product Showcase */
.product-showcase {
    padding: var(--space-xxxl) 0;
    background: var(--white);
}

.product-showcase h2 {
    text-align: center;
    margin-bottom: var(--space-m);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: var(--space-xxl);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: var(--space-l);
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: var(--space-xl);
        max-width: 700px;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        max-width: 400px;
    }
}

.product-card {
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    width: 100%;
    height: auto;
    background: var(--white);
    overflow: hidden;
    display: block;
    line-height: 0;
    margin-bottom: var(--space-m);
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: var(--text-light);
    font-size: 18px;
    font-weight: 500;
}

.product-badge {
    position: absolute;
    top: var(--space-m);
    right: var(--space-m);
    background: var(--humphrys-orange);
    color: var(--humphrys-blue);
    padding: 6px 12px;
    border-radius: var(--radius-small);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.product-card h3 {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: var(--space-s);
    color: var(--humphrys-blue);
    min-height: auto;
}

.product-desc {
    color: var(--text-gray);
    font-size: 14px;
    flex-grow: 1;
    margin-bottom: var(--space-s);
}

.product-price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--humphrys-orange);
}

/* Category Cards */
.categories {
    padding: var(--space-xxxl) 0;
    background: var(--bg-light);
}

.categories h2 {
    text-align: center;
    margin-bottom: var(--space-m);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-l);
}

@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-medium);
    text-align: center;
    border: 1px solid var(--border-gray);
    cursor: default;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
    aspect-ratio: 2 / 3;
}


.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(4, 0, 87, 0.85) 0%, rgba(4, 0, 87, 0.4) 40%, transparent 70%);
    z-index: 1;
}

.category-content {
    position: relative;
    z-index: 2;
    padding: var(--space-xl);
    width: 100%;
    color: var(--white);
}

.category-content h3 {
    color: var(--white);
    margin-bottom: var(--space-s);
}

.category-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.category-content a {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.category-content a:hover {
    color: var(--humphrys-orange);
    text-decoration: underline;
}


/* Story Section */
.story-section {
    padding: var(--space-xxxl) 0;
    background: var(--white);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxxl);
    align-items: center;
}

.story-text h2 {
    margin-bottom: var(--space-l);
}

.story-text p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-gray);
    margin-bottom: var(--space-l);
}

.benefits-list {
    list-style: none;
    margin-top: var(--space-xl);
}

.benefits-list li {
    padding: var(--space-s) 0;
    font-size: 16px;
    color: var(--text-dark);
}

.story-image {
    position: relative;
    border-radius: var(--radius-large);
    overflow: hidden;
}

.history-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-large);
    box-shadow: 0 10px 30px rgba(4, 0, 87, 0.1);
}

/* Buy Direct Section */
.buy-direct-section {
    padding: var(--space-xxxl) 0;
    background: var(--white);
}

.buy-direct-content {
    max-width: 900px;
    margin: 0 auto;
}

.buy-direct-content h2 {
    text-align: center;
    margin-bottom: var(--space-l);
}

.buy-direct-intro {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: var(--space-xxl);
}

.buy-direct-content h3 {
    font-size: 28px;
    text-align: center;
    margin-bottom: var(--space-xl);
    color: var(--humphrys-blue);
}

.manufacturer-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-l);
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-m);
}

.benefit-check {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--humphrys-orange);
    color: var(--humphrys-blue);
    font-weight: bold;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-dark);
    margin: 0;
}


/* CTA Section */
.cta-section {
    padding: var(--space-xxxl) 0;
    background: linear-gradient(135deg, var(--humphrys-orange), #ffcc33);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    color: var(--humphrys-blue);
    margin-bottom: var(--space-m);
}

.cta-content p {
    font-size: 20px;
    color: var(--humphrys-blue);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-m);
    justify-content: center;
}

/* Footer */
.site-footer {
    background: var(--humphrys-blue);
    color: var(--white);
    padding: var(--space-xxl) 0 var(--space-l);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl) var(--space-l);
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        align-items: center;
    }

    .footer-logo-section {
        align-items: center !important;
        justify-content: center;
        padding-right: 0 !important;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-section ul {
        text-align: center;
    }

    .footer-section h4 {
        text-align: center;
    }
}

.footer-section h4 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: var(--space-m);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-s);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 4px 0;
    line-height: 1.5;
}

.footer-section a:hover {
    color: var(--humphrys-orange);
}


.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: var(--space-l);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--space-m);
}

.footer-tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-l);
    font-style: italic;
}

.certifications {
    margin-top: var(--space-l);
    padding-top: var(--space-l);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-l);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .manufacturer-benefits {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 350px;
    }

    h1 { font-size: 36px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo-section {
        display: none;
    }

    .header-nav {
        width: 100%;
        justify-content: space-between;
    }

    .site-header {
        padding: var(--space-m) 0;
    }

    .btn-primary {
        padding: 10px 20px;
        font-size: 15px;
    }

    .phone-link {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .product-card h3 {
        font-size: 17px;
    }

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

    .story-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-section a {
        padding: var(--space-xs) 0;
        font-size: 15px;
    }

    .footer-section ul li {
        margin-bottom: var(--space-s);
    }

    .transition-banner {
        font-size: 14px;
        padding: var(--space-s) var(--space-m);
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: 300px;
        aspect-ratio: 2 / 3;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }

    .hero-cta {
        padding: 0 var(--space-m);
    }

    .product-grid {
        padding: 0 var(--space-s);
    }

    .product-card h3 {
        font-size: 16px;
        min-height: auto;
    }

    .phone-link {
        font-size: 16px;
    }
}