/* ==========================================
   Enright Truck Service — Stylesheet
   Classic & Elegant Auto Repair Website
   ========================================== */

/* --- CSS Custom Properties --- */
:root {
    --navy-950: #0A1628;
    --navy-900: #1B2A4A;
    --navy-800: #243660;
    --navy-700: #2E4475;
    --navy-600: #3D5A99;
    --gold-500: #C8A45C;
    --gold-400: #D4B76E;
    --gold-300: #E0CA82;
    --gold-600: #A8873E;
    --cream-50: #FAF8F5;
    --cream-100: #F5F2ED;
    --cream-200: #EDE8E0;
    --warm-gray-50: #F9F8F6;
    --warm-gray-100: #F2EFEB;
    --warm-gray-200: #E8E4DD;
    --warm-gray-300: #D4CFC7;
    --warm-gray-400: #B8B0A5;
    --warm-gray-500: #8A8279;
    --warm-gray-600: #6B645C;
    --warm-gray-700: #4A453E;
    --warm-gray-800: #2E2A26;
    --warm-gray-900: #1A1714;
    
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.06);
    --shadow-md: 0 4px 20px rgba(27, 42, 74, 0.08);
    --shadow-lg: 0 8px 40px rgba(27, 42, 74, 0.12);
    --shadow-xl: 0 16px 60px rgba(27, 42, 74, 0.16);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--warm-gray-800);
    background-color: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

/* --- Accessibility --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--navy-900);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-size: 14px;
    font-weight: 500;
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 2px;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.25;
    color: var(--navy-900);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-500);
    color: var(--navy-950);
    border: 2px solid var(--gold-500);
}

.btn-primary:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
    background: var(--navy-900);
    color: #fff;
    transform: translateY(-2px);
}

.btn-gold {
    background: var(--gold-500);
    color: var(--navy-950);
    border: 2px solid var(--gold-500);
}

.btn-gold:hover {
    background: var(--gold-400);
    border-color: var(--gold-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--navy-900);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Section Labels --- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 12px;
}

.section-label-light {
    color: var(--gold-300);
}

.section-title {
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 16px;
}

.section-title-light {
    color: #fff;
}

.section-subtitle {
    font-family: var(--font-sans);
    font-size: 17px;
    color: var(--warm-gray-600);
    max-width: 600px;
    line-height: 1.7;
}

.section-subtitle-light {
    color: rgba(255, 255, 255, 0.75);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--warm-gray-200);
    transition: all var(--transition-base);
}

.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: 12px;
    color: var(--navy-900);
    text-decoration: none;
}

.logo-mark {
    color: var(--gold-500);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--navy-900);
    letter-spacing: 0.01em;
}

.logo-tagline {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    color: var(--warm-gray-500);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo-footer .logo-name {
    color: #fff;
}

.logo-footer .logo-tagline {
    color: rgba(255, 255, 255, 0.6);
}

/* --- Navigation --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--warm-gray-700);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold-500);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--navy-900);
}

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

.nav-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-600);
    font-weight: 600;
}

.nav-phone:hover {
    color: var(--gold-500);
}

.nav-phone::after {
    display: none;
}

/* --- Hero --- */
.hero {
    padding-top: 80px;
    background: var(--cream-50);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 60px 0 80px;
}

.hero-greeting {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    color: var(--gold-600);
    margin-bottom: 16px;
}

.hero-headline {
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 500;
    color: var(--navy-900);
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 17px;
    color: var(--warm-gray-600);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-credentials {
    display: flex;
    align-items: center;
    gap: 24px;
}

.credential {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.credential-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--warm-gray-400);
}

.credential-value {
    font-family: var(--font-serif);
    font-size: 15px;
    color: var(--navy-900);
}

.credential-divider {
    width: 1px;
    height: 36px;
    background: var(--warm-gray-300);
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 700px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.hero-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    border: 3px solid var(--gold-500);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.4;
}

.hero-wave {
    color: var(--cream-50);
    margin-top: -1px;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

/* --- Services --- */
.services {
    padding: 100px 0;
    background: var(--cream-50);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 36px 28px;
    border: 1px solid var(--warm-gray-200);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-500);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--gold-500);
}

.service-name {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--navy-900);
}

.service-desc {
    font-size: 15px;
    color: var(--warm-gray-600);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 100px 0;
    background: #fff;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 640px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-badge {
    position: absolute;
    bottom: -24px;
    left: 32px;
    background: var(--navy-900);
    color: #fff;
    padding: 20px 28px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
}

.badge-number {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--gold-500);
    line-height: 1;
}

.badge-text {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.about-content .section-title {
    margin-bottom: 24px;
}

.about-body {
    font-size: 16px;
    color: var(--warm-gray-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-values {
    margin-top: 36px;
    display: grid;
    gap: 16px;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.value-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--gold-500);
    margin-top: 2px;
}

.value-text {
    font-size: 15px;
    color: var(--warm-gray-700);
    line-height: 1.6;
}

/* --- Why Us --- */
.why-us {
    padding: 100px 0;
    background: var(--navy-900);
    position: relative;
    overflow: hidden;
}

.why-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(200, 164, 92, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    position: relative;
}

.why-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    transition: all var(--transition-base);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(200, 164, 92, 0.3);
    transform: translateY(-4px);
}

.why-number {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 600;
    color: var(--gold-500);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 16px;
}

.why-title {
    font-size: 22px;
    color: #fff;
    margin-bottom: 12px;
}

.why-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-600) 100%);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-title {
    font-size: clamp(24px, 3vw, 36px);
    color: var(--navy-950);
    margin-bottom: 8px;
}

.cta-desc {
    font-size: 16px;
    color: rgba(10, 22, 40, 0.7);
    max-width: 480px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}

/* --- Contact --- */
.contact {
    padding: 100px 0;
    background: var(--cream-50);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .section-title {
    margin-bottom: 16px;
}

.contact-intro {
    font-size: 16px;
    color: var(--warm-gray-600);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: grid;
    gap: 28px;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    border-radius: var(--radius-md);
    color: var(--gold-500);
}

.contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray-400);
    margin-bottom: 4px;
}

.contact-value {
    display: block;
    font-size: 15px;
    color: var(--warm-gray-800);
    line-height: 1.6;
}

.contact-note {
    display: block;
    font-size: 13px;
    color: var(--warm-gray-500);
    font-style: italic;
    margin-top: 2px;
}

.contact-link {
    font-size: 15px;
    color: var(--navy-900);
    font-weight: 500;
    border-bottom: 1px solid var(--warm-gray-300);
    padding-bottom: 2px;
    transition: all var(--transition-fast);
}

.contact-link:hover {
    color: var(--gold-600);
    border-color: var(--gold-500);
}

/* --- Contact Form --- */
.contact-form-wrap {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 44px;
    border: 1px solid var(--warm-gray-200);
    box-shadow: var(--shadow-md);
}

.form-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.form-intro {
    font-size: 15px;
    color: var(--warm-gray-500);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm-gray-700);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--warm-gray-800);
    background: var(--cream-50);
    border: 1px solid var(--warm-gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

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

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8279' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* Form Success */
.form-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--gold-500);
}

.success-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.success-text {
    font-size: 15px;
    color: var(--warm-gray-600);
    margin-bottom: 24px;
}

/* --- Map --- */
.map-section {
    background: var(--warm-gray-100);
}

.map-container {
    height: 380px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: saturate(0.7) contrast(1.05);
}

/* --- Footer --- */
.footer {
    background: var(--navy-950);
    color: #fff;
    padding: 72px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 20px;
}

.footer-links ul {
    display: grid;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold-400);
}

.footer-contact address {
    font-style: normal;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-phone a,
.footer-email a {
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
}

.footer-phone a:hover,
.footer-email a:hover {
    color: var(--gold-400);
    border-color: var(--gold-500);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        gap: 48px;
    }
    
    .contact-container {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(250, 248, 245, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--warm-gray-200);
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 14px 0;
        border-bottom: 1px solid var(--warm-gray-200);
        font-size: 15px;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-phone {
        border-bottom: none;
        padding-top: 16px;
        justify-content: center;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0 60px;
        min-height: auto;
    }
    
    .hero-image img {
        height: 400px;
    }
    
    .hero-image-accent {
        display: none;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-wrap img {
        height: 400px;
    }
    
    .about-image-badge {
        left: 16px;
        bottom: -16px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact-form-wrap {
        padding: 28px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .service-card {
        padding: 28px 22px;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
