/* ========================================
   Gold Tire Shop — Custom Styles
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: #059669;
    color: #fefdf8;
}

/* --- Navigation --- */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(254, 253, 248, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav-fixed.scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(6, 78, 59, 0.08);
}

/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    background: rgba(254, 253, 248, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid transparent;
}

.mobile-menu.active {
    max-height: 400px;
    border-top-color: rgba(6, 78, 59, 0.1);
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.08);
}

.mobile-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(6, 78, 59, 0.06);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-link:hover {
    color: #059669;
    padding-left: 0.5rem;
}

.mobile-link:last-child {
    border-bottom: none;
}

/* Hamburger */
#menuBtn {
    overflow: hidden;
}

.hamburger-line {
    transition: transform 0.3s ease, top 0.3s ease, width 0.3s ease;
}

#menuBtn.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

#menuBtn.active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

#menuBtn.active .hamburger-line:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 5;
}

/* --- Hero --- */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(254, 253, 248, 0.06);
}

.circle-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -80px;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    left: 10%;
    border-color: rgba(254, 253, 248, 0.04);
    animation: float-slow 12s ease-in-out infinite;
}

.hero-tire-ring {
    border-radius: 50%;
    border: 1px solid rgba(254, 253, 248, 0.15);
    animation: spin-slow 30s linear infinite;
}

.ring-1 {
    width: 280px;
    height: 280px;
}

.ring-2 {
    width: 180px;
    height: 180px;
}

.hero-badge {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero-subtitle {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-ctas {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-trust {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(203, 213, 225, 0.6), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

/* --- Section Headers --- */
.section-label {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.section-subtitle {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.section-header.visible .section-label,
.section-header.visible .section-title,
.section-header.visible .section-subtitle {
    opacity: 1;
    transform: translateY(0);
}

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

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: white;
    border: 1px solid rgba(6, 78, 59, 0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #059669, #34d399);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: rgba(5, 150, 105, 0.2);
    box-shadow: 0 8px 40px rgba(6, 78, 59, 0.08);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fefdf8;
    transform: scale(1.05);
}

.service-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #064e3b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.service-card-desc {
    font-size: 0.9rem;
    color: #065f46;
    opacity: 0.7;
    font-weight: 300;
    line-height: 1.65;
}

.service-card-line {
    height: 1px;
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.2), transparent);
    margin-top: 1.25rem;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-line {
    transform: scaleX(1);
}

/* --- About --- */
.about-image-wrapper {
    position: relative;
}

.about-image-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(2, 44, 34, 0.2);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-frame:hover .about-image {
    transform: scale(1.03);
}

.about-stat-card {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: white;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    box-shadow: 0 15px 40px rgba(2, 44, 34, 0.15);
    text-align: center;
}

.about-stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #059669;
    line-height: 1;
}

.about-stat-label {
    font-size: 0.8rem;
    color: #065f46;
    font-weight: 500;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.about-feature-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    flex-shrink: 0;
}

/* --- Why Us --- */
.why-us-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.why-us-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.why-us-image-stack {
    position: relative;
    height: 620px;
}

.why-us-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(2, 44, 34, 0.12);
}

.why-us-img-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 65%;
}

.why-us-img-2 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 65%;
    height: 45%;
    border: 4px solid #fefdf8;
}

/* --- CTA Pattern --- */
.cta-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(254, 253, 248, 0.3) 1px, transparent 0);
    background-size: 32px 32px;
    width: 100%;
    height: 100%;
}

/* --- Contact --- */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    flex-shrink: 0;
}

/* Form */
.form-input,
.form-select,
.form-textarea {
    background: #fefdf8;
    border: 1px solid rgba(6, 78, 59, 0.15);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.9rem;
    color: #064e3b;
    transition: all 0.25s ease;
    outline: none;
    width: 100%;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #065f46;
    opacity: 0.4;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
    background: white;
}

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

.form-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='%23065f46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-btn {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fefdf8;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.form-btn:active {
    transform: translateY(0);
}

.form-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ecfdf5;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(15px, -20px) rotate(2deg); }
    66% { transform: translate(-10px, 10px) rotate(-1deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stat-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-block;
    }
    
    .why-us-image-stack {
        height: 400px;
    }
    
    .why-us-img-1 {
        width: 100%;
        height: 65%;
    }
    
    .why-us-img-2 {
        width: 70%;
        height: 50%;
    }
    
    .section-title {
        font-size: 2.25rem !important;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .service-card,
    .why-us-item {
        opacity: 1;
        transform: none;
    }
}
