/* ============================================
   LEAVITT MACHINERY - INDUSTRIAL WEBSITE STYLES
   Author: Leavitt Machinery Design Team
   Version: 1.0.0
   ============================================ */

/* CSS VARIABLES */
:root {
    /* Primary Colors */
    --primary-dark: #0a1628;
    --primary-blue: #1a365d;
    --secondary-blue: #2c5282;
    --accent-orange: #ed8936;
    --accent-yellow: #f6ad55;
    
    /* Neutral Colors */
    --black: #000000;
    --dark-gray: #1a202c;
    --medium-gray: #4a5568;
    --light-gray: #a0aec0;
    --lighter-gray: #e2e8f0;
    --off-white: #f7fafc;
    --white: #ffffff;
    
    /* Semantic Colors */
    --success: #48bb78;
    --warning: #ed8936;
    --error: #f56565;
    --info: #4299e1;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    
    /* Container */
    --container-max: 1280px;
    --container-padding: 1rem;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.container-narrow {
    max-width: 960px;
}

.container-wide {
    max-width: 1440px;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-6);
}

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

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

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

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

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

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

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display */
.block { display: block; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Spacing */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mt-20 { margin-top: var(--space-20); }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
.mb-20 { margin-bottom: var(--space-20); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.py-24 { padding-top: var(--space-24); padding-bottom: var(--space-24); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

/* Colors */
.text-white { color: var(--white); }
.text-primary { color: var(--primary-blue); }
.text-accent { color: var(--accent-orange); }
.text-gray { color: var(--medium-gray); }
.text-light { color: var(--light-gray); }

.bg-primary { background-color: var(--primary-blue); }
.bg-dark { background-color: var(--primary-dark); }
.bg-light { background-color: var(--off-white); }
.bg-white { background-color: var(--white); }
.bg-accent { background-color: var(--accent-orange); }

/* Typography */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.text-sm { font-size: var(--text-sm); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.logo-text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.025em;
}

.logo-text span {
    color: var(--accent-orange);
}

/* Navigation */
.nav {
    display: none;
}

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

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--dark-gray);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Header CTA */
.header-cta {
    display: none;
    align-items: center;
    gap: var(--space-4);
}

.header-phone {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary-blue);
}

.header-phone svg {
    width: 18px;
    height: 18px;
    color: var(--accent-orange);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark-gray);
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--white);
    z-index: 999;
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
}

.mobile-nav.active {
    transform: translateX(0);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.mobile-nav-link {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark-gray);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--lighter-gray);
    display: block;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--accent-orange);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #dd6b20;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

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

.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn-full {
    width: 100%;
}

.btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5" x="0" y="0" width="100" height="100"/></svg>');
    background-size: 40px 40px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-title span {
    color: var(--accent-orange);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--light-gray);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    mask-image: linear-gradient(to right, transparent, black 50%);
    -webkit-mask-image: linear-gradient(to right, transparent, black 50%);
}

/* Hero Alt (Light version) */
.hero-alt {
    background: var(--off-white);
    color: var(--dark-gray);
}

.hero-alt::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(26,54,93,0.05)" stroke-width="0.5" x="0" y="0" width="100" height="100"/></svg>');
}

.hero-alt .hero-subtitle {
    color: var(--medium-gray);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.page-header-subtitle {
    font-size: var(--text-lg);
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--light-gray);
    margin-top: var(--space-4);
}

.breadcrumbs a {
    color: var(--accent-yellow);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--space-20) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-12);
}

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.section-description {
    font-size: var(--text-lg);
    color: var(--medium-gray);
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background-color: var(--accent-orange);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
}

.card-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space-2);
}

.card-title a:hover {
    color: var(--accent-orange);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-sm);
    color: var(--medium-gray);
    margin-bottom: var(--space-4);
}

.card-text {
    font-size: var(--text-sm);
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: var(--space-4);
    flex: 1;
}

.card-footer {
    padding-top: var(--space-4);
    border-top: 1px solid var(--lighter-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent-orange);
}

.card-price span {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--medium-gray);
}

/* Feature Cards */
.feature-card {
    padding: var(--space-8);
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.feature-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space-3);
}

.feature-text {
    font-size: var(--text-sm);
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Stat Cards */
.stat-card {
    text-align: center;
    padding: var(--space-8);
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   EQUIPMENT CARDS
   ============================================ */
.equipment-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.equipment-card:hover {
    box-shadow: var(--shadow-xl);
}

.equipment-image {
    position: relative;
    height: 240px;
    background-color: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-image img {
    max-height: 200px;
    object-fit: contain;
}

.equipment-type {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-sm);
}

.equipment-content {
    padding: var(--space-6);
}

.equipment-name {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space-4);
}

.equipment-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--medium-gray);
}

.spec-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-orange);
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card {
    text-align: center;
    padding: var(--space-6);
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

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

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--white);
}

.team-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space-1);
}

.team-role {
    font-size: var(--text-sm);
    color: var(--accent-orange);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.team-email {
    font-size: var(--text-xs);
    color: var(--medium-gray);
}

.team-email:hover {
    color: var(--accent-orange);
}

/* Executive Team Card */
.team-card.executive {
    border: 2px solid var(--accent-orange);
}

.team-card.executive .team-avatar {
    background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
}

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

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

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: var(--space-6);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-xs);
    color: var(--medium-gray);
    margin-bottom: var(--space-3);
}

.blog-category {
    color: var(--accent-orange);
    font-weight: 600;
}

.blog-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: var(--space-3);
    line-height: 1.4;
}

.blog-title a:hover {
    color: var(--accent-orange);
}

.blog-excerpt {
    font-size: var(--text-sm);
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.blog-read-more {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-orange);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

.blog-read-more:hover {
    gap: var(--space-2);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--dark-gray);
    margin-bottom: var(--space-2);
}

.form-label-required::after {
    content: ' *';
    color: var(--error);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--dark-gray);
    background-color: var(--white);
    border: 1px solid var(--lighter-gray);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--light-gray);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--light-gray);
    margin-top: var(--space-1);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--error);
    margin-top: var(--space-1);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-orange);
}

.form-check-label {
    font-size: var(--text-sm);
    color: var(--medium-gray);
}

/* Contact Form Layout */
.contact-form-wrapper {
    background-color: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   TABS
   ============================================ */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    border-bottom: 2px solid var(--lighter-gray);
    margin-bottom: var(--space-8);
}

.tab-btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--medium-gray);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary-blue);
}

.tab-btn.active {
    color: var(--accent-orange);
    border-bottom-color: var(--accent-orange);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ACCORDION
   ============================================ */
.accordion {
    border: 1px solid var(--lighter-gray);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--lighter-gray);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--primary-dark);
    text-align: left;
    background-color: var(--white);
    transition: background-color var(--transition-fast);
}

.accordion-header:hover {
    background-color: var(--off-white);
}

.accordion-header svg {
    width: 20px;
    height: 20px;
    color: var(--accent-orange);
    transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-header svg {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.accordion-item.active .accordion-body {
    max-height: 500px;
}

.accordion-content {
    padding: 0 var(--space-6) var(--space-6);
    font-size: var(--text-sm);
    color: var(--medium-gray);
    line-height: 1.6;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
}

.alert-success {
    background-color: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background-color: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.alert-warning {
    background-color: #feebc8;
    color: #744210;
    border: 1px solid #fbd38d;
}

.alert-info {
    background-color: #bee3f8;
    color: #2a4365;
    border: 1px solid #90cdf4;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
}

.pagination-btn,
.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--medium-gray);
    background-color: var(--white);
    border: 1px solid var(--lighter-gray);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.pagination-btn:hover,
.pagination-link:hover {
    background-color: var(--off-white);
    color: var(--primary-blue);
}

.pagination-link.active {
    background-color: var(--accent-orange);
    color: var(--white);
    border-color: var(--accent-orange);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   CALL TO ACTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: var(--space-20) 0;
    text-align: center;
}

.cta-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.cta-text {
    font-size: var(--text-lg);
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--primary-dark);
    color: var(--light-gray);
    padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.footer-logo-text {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
}

.footer-logo-text span {
    color: var(--accent-orange);
}

.footer-description {
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.social-link:hover {
    background-color: var(--accent-orange);
}

.social-link svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.footer-column-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    font-size: var(--text-sm);
    color: var(--light-gray);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--accent-orange);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-orange);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-sm);
    text-align: center;
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    font-size: var(--text-sm);
    color: var(--light-gray);
}

.footer-legal a:hover {
    color: var(--accent-orange);
}

/* ============================================
   ERROR PAGES
   ============================================ */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: var(--space-8);
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: var(--space-4);
}

.error-title {
    font-size: var(--text-3xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.error-text {
    font-size: var(--text-lg);
    color: var(--light-gray);
    max-width: 500px;
    margin: 0 auto var(--space-8);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--lighter-gray), var(--off-white));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-gray);
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-yellow));
    margin: var(--space-6) auto;
}

.divider-left {
    margin-left: 0;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    :root {
        --container-padding: 1.5rem;
    }
    
    .hero {
        min-height: 700px;
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .grid-md-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-md-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav {
        display: block;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .mobile-nav {
        display: none;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }
    
    .header-cta {
        display: flex;
    }
    
    .hero {
        min-height: 800px;
    }
    
    .grid-lg-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-lg-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .section-title {
        font-size: var(--text-4xl);
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .footer,
    .mobile-menu-btn,
    .hero-buttons,
    .cta-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .page-header {
        padding: 40px 0;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--lighter-gray);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
