/* ============================================
   Studley Tire & Oil — Brand Styles
   Charcoal (#3D405B) + Coral (#E07A5F)
   Playfair Display + Inter
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --charcoal: #3D405B;
    --charcoal-deep: #2B2D42;
    --charcoal-light: #5B5B7A;
    --coral: #E07A5F;
    --coral-dark: #C4624A;
    --coral-light: #F2A894;
    --cream: #F4F1DE;
    --cream-light: #FAF8F0;
    --white: #FFFFFF;
    --off-white: #FDFCFA;
    --text-dark: #1A1A2E;
    --text-muted: #6B6B8A;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(61, 64, 91, 0.08);
    --shadow-md: 0 4px 20px rgba(61, 64, 91, 0.1);
    --shadow-lg: 0 8px 40px rgba(61, 64, 91, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--off-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 64, 91, 0.08);
    transition: var(--transition);
}

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

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--charcoal);
}

.nav__logo-accent {
    color: var(--coral);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal-light);
    transition: color var(--transition);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--coral);
    transition: width var(--transition);
}

.nav__link:hover {
    color: var(--charcoal);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--coral);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background var(--transition), transform var(--transition);
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--coral-dark);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.nav__toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: var(--transition);
    transform-origin: center;
}

.nav__toggle.active .nav__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active .nav__toggle-line:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active .nav__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    padding-top: 72px;
    background: var(--off-white);
    overflow: hidden;
}

.hero__split {
    flex: 1;
    min-height: 0;
}

.hero__split--left {
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.hero__content {
    max-width: 560px;
    padding: 0 48px;
}

.hero__eyebrow {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 24px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--charcoal-deep);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero__subheadline {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

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

.hero__trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero__trust-num {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
}

.hero__trust-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.hero__trust-divider {
    width: 1px;
    height: 36px;
    background: rgba(61, 64, 91, 0.15);
}

.hero__split--right {
    position: relative;
    min-height: 500px;
}

.hero__image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(43, 45, 66, 0.3), transparent);
    pointer-events: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--coral);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(224, 122, 95, 0.35);
}

.btn--primary:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 122, 95, 0.4);
}

.btn--ghost {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid var(--charcoal);
}

.btn--ghost:hover {
    background: var(--charcoal);
    color: var(--white);
}

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

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

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

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

/* ============================================
   Section Header
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-header__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 16px;
}

.section-header__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal-deep);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-header__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ============================================
   Services
   ============================================ */
.services {
    padding: 100px 0;
    background: var(--off-white);
}

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

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    border: 1px solid rgba(61, 64, 91, 0.06);
    transition: all var(--transition);
}

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

.service-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 122, 95, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.service-card__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ============================================
   About
   ============================================ */
.about {
    padding: 100px 0;
    background: var(--cream);
}

.about__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__image-stack {
    position: relative;
}

.about__image-stack img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 620px;
    object-fit: cover;
}

.about__image-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--charcoal-deep);
    color: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius-md);
    max-width: 200px;
}

.about__badge-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
}

.about__text-col {
    padding: 16px 0;
}

.about__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal-deep);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}

.about__body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.about__values {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about__value {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--charcoal);
}

.about__value svg {
    flex-shrink: 0;
}

/* ============================================
   Why Us
   ============================================ */
.why-us {
    padding: 100px 0;
    background: var(--charcoal-deep);
}

.why-us__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.why-us__text {
    text-align: center;
    margin-bottom: 64px;
}

.why-us__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--cream);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.why-us__desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(244, 241, 222, 0.6);
    max-width: 520px;
    margin: 0 auto;
}

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

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

.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(224, 122, 95, 0.3);
    transform: translateY(-2px);
}

.why-card__num {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(224, 122, 95, 0.25);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card__title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 12px;
}

.why-card__desc {
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(244, 241, 222, 0.55);
}

/* ============================================
   CTA Strip
   ============================================ */
.cta-strip {
    padding: 80px 0;
    background: var(--coral);
}

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

.cta-strip__title {
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 8px;
}

.cta-strip__desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.cta-strip__actions .btn--primary {
    background: var(--white);
    color: var(--coral);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.cta-strip__actions .btn--primary:hover {
    background: var(--cream);
}

.cta-strip__actions .btn--outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-strip__actions .btn--outline:hover {
    background: var(--white);
    color: var(--coral);
}

/* ============================================
   Contact
   ============================================ */
.contact {
    padding: 100px 0;
    background: var(--off-white);
}

.contact__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--charcoal-deep);
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 32px;
}

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

.contact__detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 122, 95, 0.1);
    border-radius: var(--radius-sm);
}

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

.contact__detail-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact__detail-value {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.6;
}

.contact__detail-link {
    font-size: 1.05rem;
    color: var(--coral);
    font-weight: 600;
    transition: color var(--transition);
}

.contact__detail-link:hover {
    color: var(--coral-dark);
}

.contact__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact__form-col {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 44px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(61, 64, 91, 0.06);
}

.contact__form-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.contact__form-subtitle {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

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

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal-light);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream-light);
    border: 1.5px solid rgba(61, 64, 91, 0.1);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-input:focus {
    border-color: var(--coral);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.12);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

.form-input option {
    background: var(--white);
}

.contact__form-success {
    text-align: center;
    padding: 40px 20px;
}

.contact__form-success-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 16px 0 8px;
}

.contact__form-success-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact__form-success-text a {
    color: var(--coral);
    font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--charcoal-deep);
    color: var(--cream);
    padding: 64px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(244, 241, 222, 0.1);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 12px;
}

.footer__tagline {
    font-size: 0.88rem;
    color: rgba(244, 241, 222, 0.5);
    max-width: 240px;
    line-height: 1.6;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer__links a {
    font-size: 0.9rem;
    color: rgba(244, 241, 222, 0.6);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--coral);
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.footer__phone {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--coral);
    transition: color var(--transition);
}

.footer__phone:hover {
    color: var(--coral-light);
}

.footer__address {
    font-size: 0.88rem;
    color: rgba(244, 241, 222, 0.5);
    line-height: 1.6;
}

.footer__bottom {
    padding: 24px 0;
    text-align: center;
}

.footer__bottom p {
    font-size: 0.82rem;
    color: rgba(244, 241, 222, 0.3);
}

/* ============================================
   Scroll Animations
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero__content {
        padding: 0 32px;
    }
    
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about__split {
        gap: 48px;
    }
    
    .contact__split {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 252, 250, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 32px 24px;
        gap: 24px;
        border-bottom: 1px solid rgba(61, 64, 91, 0.08);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }
    
    .nav__links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .hero {
        flex-direction: column;
        min-height: auto;
    }
    
    .hero__split--left {
        order: 2;
        padding: 40px 24px 24px;
    }
    
    .hero__content {
        max-width: 100%;
        padding: 0;
    }
    
    .hero__headline {
        font-size: 2.2rem;
    }
    
    .hero__actions {
        flex-direction: column;
    }
    
    .hero__actions .btn {
        justify-content: center;
    }
    
    .hero__trust {
        gap: 16px;
    }
    
    .hero__split--right {
        order: 1;
        min-height: 360px;
        max-height: 50vh;
    }
    
    .services {
        padding: 72px 0;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .service-card {
        padding: 28px 24px;
    }
    
    .about {
        padding: 72px 0;
    }
    
    .about__split {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about__image-stack img {
        height: 400px;
    }
    
    .about__image-badge {
        right: 16px;
        bottom: -16px;
    }
    
    .why-us {
        padding: 72px 0;
    }
    
    .why-us__grid {
        grid-template-columns: 1fr;
    }
    
    .cta-strip {
        padding: 60px 0;
    }
    
    .cta-strip__inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .cta-strip__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-strip__actions .btn {
        justify-content: center;
    }
    
    .contact {
        padding: 72px 0;
    }
    
    .contact__split {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .contact__form-col {
        padding: 32px 24px;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .footer__logo {
        justify-content: center;
    }
    
    .footer__tagline {
        max-width: 100%;
    }
    
    .footer__links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer__contact {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__headline {
        font-size: 1.85rem;
    }
    
    .hero__trust {
        flex-wrap: wrap;
    }
    
    .hero__trust-divider {
        display: none;
    }
    
    .section-header__title {
        font-size: 1.8rem;
    }
    
    .contact__form-col {
        padding: 24px 20px;
    }
}
