/* ========================================
   Frozen Trailer Solutions - Main Stylesheet
   Brand Colors & Typography
   ======================================== */

/* === 1. CSS Variables & Reset === */
:root {
    /* Brand Colors */
    --primary-blue: #003366;
    --glacier-white: #F8FAFC;
    --metal-silver: #C0C0C0;
    --safety-orange: #FF6600;
    --deep-gray: #2D3748;
    --light-gray: #E2E8F0;
    --text-dark: #1A202C;
    
    /* Typography */
    --font-heading: 'Arial Black', 'Arial', sans-serif;
    --font-body: 'Arial', 'Helvetica', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global image responsiveness */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

video,
iframe {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--glacier-white);
    font-size: 16px;
}

/* === 2. Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3.5rem; letter-spacing: 1px; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--deep-gray);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* === 3. Header & Navigation === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--deep-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    border-bottom: 3px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
    border-bottom-color: var(--safety-orange);
}

.nav-phone {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--safety-orange);
    white-space: nowrap;
}

.nav-phone:hover {
    transform: scale(1.05);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue);
    transition: var(--transition-fast);
}

/* === 4. Buttons === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-medium);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--safety-orange);
    color: white;
    border-color: var(--safety-orange);
}

.btn-primary:hover {
    background-color: #E65C00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
}

/* === 5. Hero Section === */
.hero {
    margin-top: 80px;
    height: 50vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 51, 102, 0.7), rgba(0, 51, 102, 0.5)), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    padding: 3rem 2rem;
}

.hero-content {
    max-width: 1200px;
    padding: 0 2rem;
}

.hero h1 {
    color: white;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 400;
    color: var(--glacier-white);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.hero-feature-icon {
    font-size: 2.2rem;
    color: var(--safety-orange);
}

.hero-feature-text {
    font-size: 1rem;
    font-weight: 500;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 2rem;
    font-size: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === 6. Sections === */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.25rem;
    color: var(--deep-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* === 7. Product Grid === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: var(--spacing-lg);
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-medium);
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 51, 102, 0.2);
    border-color: var(--primary-blue);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: var(--light-gray);
}

.product-info {
    padding: 2rem;
}

.product-name {
    font-size: 1.35rem;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-specs {
    list-style: none;
    margin: 1.5rem 0;
}

.product-specs li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--deep-gray);
}

.product-specs li::before {
    content: "✓";
    color: var(--safety-orange);
    font-weight: 700;
    font-size: 1.2rem;
}

.product-price {
    font-size: 1.35rem;
    color: var(--safety-orange);
    font-weight: 700;
    margin: 1.5rem 0;
    white-space: nowrap;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.product-actions .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* === 8. Features Section === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: var(--spacing-lg);
}

.feature-item {
    text-align: center;
    padding: 2.5rem 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition-medium);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.15);
}

.feature-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 1rem;
    line-height: 1.7;
}

/* === 9. Footer === */
.footer {
    background-color: var(--primary-blue);
    color: white;
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: var(--spacing-md);
}

.footer-column h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--glacier-white);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--safety-orange);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}

.newsletter-btn {
    padding: 0.75rem 1.5rem;
    background-color: var(--safety-orange);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.newsletter-btn:hover {
    background-color: #E65C00;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: var(--glacier-white);
    margin-bottom: 0.5rem;
}

/* === 10. Floating CTA === */
.floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--safety-orange);
    color: white;
    padding: 1.25rem 2rem;
    border-radius: 50px;
    box-shadow: 0 6px 25px rgba(255, 102, 0, 0.4);
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 999;
    display: none;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: var(--transition-medium);
}

.floating-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 102, 0, 0.5);
}

.floating-cta.visible {
    display: flex;
}

/* === 11. Utility Classes === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.highlight {
    color: var(--safety-orange);
    font-weight: 700;
}

/* === 12. Loading Overlay === */
.loading-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.loading-message.show {
    display: block;
}
