/* ========================================
   RAMIREZ DIAGNOSTIC & REPAIR
   Bold Editorial — Burgundy & Blush
   ======================================== */

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

:root {
    --burgundy: #781c26;
    --burgundy-dark: #5a141c;
    --burgundy-deep: #3d0e14;
    --blush: #f5e6e0;
    --blush-light: #faf3f0;
    --blush-mid: #f0d5cc;
    --cream: #fdf8f5;
    --white: #ffffff;
    --charcoal: #1a1a1a;
    --text-dark: #2a2222;
    --text-mid: #5c4a4a;
    --text-light: #8a7070;
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(120, 28, 38, 0.06);
    --shadow-md: 0 8px 30px rgba(120, 28, 38, 0.10);
    --shadow-lg: 0 20px 60px rgba(120, 28, 38, 0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--sans);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--burgundy);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
}

.skip-link:focus {
    top: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Typography --- */
.serif-accent {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    color: var(--burgundy);
}

.emph {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
}

.section-eyebrow {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.section-title em {
    font-style: italic;
    color: var(--burgundy);
    font-weight: 400;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

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

.btn-ghost {
    background: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.btn-ghost:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--burgundy);
    border-color: var(--white);
    font-weight: 600;
}

.btn-white:hover {
    background: var(--blush);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-2px);
}

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

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 248, 245, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120, 28, 38, 0.08);
    transition: all var(--transition);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.logo-mark {
    width: 40px;
    height: 40px;
    background: var(--burgundy);
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

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

.logo-name {
    font-family: var(--serif);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--charcoal);
}

.logo-sub {
    font-family: var(--sans);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.04em;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-nav a {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
    border-radius: 50px;
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--burgundy);
    background: rgba(120, 28, 38, 0.06);
}

.nav-cta {
    background: var(--burgundy) !important;
    color: var(--white) !important;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--burgundy-dark) !important;
    transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
}

.nav-toggle-line {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}

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

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

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

/* --- Hero --- */
.hero {
    padding-top: 72px;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.hero-title .serif-accent {
    font-style: italic;
    font-weight: 400;
    color: var(--burgundy);
}

.hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--burgundy);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-mid);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-credentials {
    display: flex;
    gap: 2rem;
}

.credential {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-mid);
}

.credential svg {
    color: var(--burgundy);
    flex-shrink: 0;
}

.hero-image {
    position: relative;
}

.hero-img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 680/860;
}

.hero-accent-block {
    position: absolute;
    bottom: -1.5rem;
    left: -2rem;
    background: var(--burgundy);
    color: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.accent-stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.accent-number {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.accent-label {
    font-size: 0.8125rem;
    opacity: 0.85;
    line-height: 1.4;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    color: var(--cream);
}

/* --- Services --- */
.services {
    padding: 6rem 0;
    background: var(--cream);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(120, 28, 38, 0.07);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(120, 28, 38, 0.15);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--blush);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--burgundy);
    margin-bottom: 1.25rem;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: var(--burgundy);
    color: var(--white);
}

.service-card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.625rem;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-mid);
    line-height: 1.7;
}

/* --- About --- */
.about {
    padding: 6rem 0;
    background: var(--blush-light);
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 580/700;
}

.about-img-secondary {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--blush-light);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 400/300;
}

.about-content .section-eyebrow {
    margin-bottom: 0.75rem;
}

.about-text {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-values {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--burgundy);
    color: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-item strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.125rem;
}

.value-item span {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* --- Why Us --- */
.why-us {
    padding: 5rem 0;
    background: var(--burgundy);
    color: var(--white);
}

.why-us-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-us-header .section-eyebrow {
    color: rgba(255,255,255,0.6);
}

.why-us-header .section-title {
    color: var(--white);
}

.why-us-header .section-title em {
    color: var(--blush);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.why-stat {
    text-align: center;
    padding: 1.5rem;
}

.why-stat-number {
    display: block;
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--blush);
    margin-bottom: 0.5rem;
}

.why-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

/* --- CTA Banner --- */
.cta-banner {
    padding: 5rem 0;
    background: var(--blush);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-title {
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.cta-title em {
    font-style: italic;
    color: var(--burgundy);
    font-weight: 400;
}

.cta-desc {
    font-size: 1rem;
    color: var(--text-mid);
    max-width: 480px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* --- Contact --- */
.contact {
    padding: 6rem 0;
    background: var(--cream);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-desc {
    font-size: 1.0625rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item dt {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--burgundy);
    margin-bottom: 0.375rem;
}

.contact-item dt svg {
    color: var(--burgundy);
}

.contact-item dd a {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.7;
    transition: color var(--transition);
}

.contact-item dd a:hover {
    color: var(--burgundy);
}

/* Form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(120, 28, 38, 0.07);
    box-shadow: var(--shadow-sm);
}

.form-title {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-mid);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--blush-mid);
    border-radius: var(--radius-sm);
    font-family: var(--sans);
    font-size: 0.9375rem;
    color: var(--text-dark);
    background: var(--blush-light);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--burgundy);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(120, 28, 38, 0.08);
}

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

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

.form-success {
    text-align: center;
    padding: 2rem;
}

.form-success svg {
    color: var(--burgundy);
    margin: 0 auto 1rem;
}

.form-success h4 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-mid);
    font-size: 0.9375rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
}

.footer-inner {
    padding: 4rem 1.5rem 2.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand .logo-mark {
    background: var(--burgundy);
}

.footer-brand .logo-name {
    color: var(--white);
}

.footer-brand .logo-sub {
    color: rgba(255,255,255,0.5);
}

.footer-tagline {
    margin-top: 1rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

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

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-contact p {
    font-size: 0.9375rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--blush);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
}

/* --- Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-layout {
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 248, 245, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 1rem 1.5rem 1.5rem;
        border-bottom: 1px solid rgba(120, 28, 38, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
    }
    
    .main-nav a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
    }
    
    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: 0.5rem;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        padding-bottom: 6rem;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-img-wrapper {
        aspect-ratio: 4/3;
    }
    
    .hero-accent-block {
        left: 1rem;
        right: 1rem;
        bottom: -1rem;
    }
    
    .hero-wave {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-img-secondary {
        right: 1rem;
        bottom: -1.5rem;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-actions .btn {
        justify-content: center;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
    }
    
    .hero-credentials {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrap {
        padding: 1.5rem;
    }
}
