/* ====================================
   PETERSON'S TYRES - STYLESHEET
   ==================================== */

/* Color Variables */
:root {
    --primary-red: #E31937;
    --dark-red: #B91530;
    --white: #FFFFFF;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --light-gray: #f5f5f5;
    --medium-gray: #666666;
    --border-gray: #ddd;
}

/* ====================================
   RESET & BASE STYLES
   ==================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

a {
    color: var(--primary-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-red);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 3em;
    font-weight: 700;
}

h2 {
    font-size: 2.2em;
    font-weight: 700;
}

h3 {
    font-size: 1.4em;
    font-weight: 600;
}

p {
    margin-bottom: 1em;
}

/* ====================================
   CONTAINER & LAYOUT
   ==================================== */

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

/* ====================================
   TEMPORARY BANNER
   ==================================== */

.temp-banner {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    padding: 0.75rem 0;
    text-align: center;
}

.temp-banner p {
    margin: 0;
    font-weight: 600;
    font-size: 1em;
}

/* ====================================
   HEADER BANNER
   ==================================== */

.header-banner {
    background-color: var(--black);
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-logo {
    display: block;
    transition: transform 0.3s ease;
}

.banner-logo:hover {
    transform: scale(1.05);
}

.banner-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ====================================
   NAVIGATION
   ==================================== */

.navbar {
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-red);
}

.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-red);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9em;
    }
    
    .banner-logo-img {
        height: 100px;
    }
    
    .header-banner {
        padding: 1rem 0;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.6em;
    }
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
    padding-left: 2rem;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 2rem;
    color: #ccc;
    padding-left: 2rem;
}

.hero-points {
    list-style: none;
    font-size: 1.1em;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.hero-points li {
    color: #ccc;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.hero-points li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 1.3em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-left: 2rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.placeholder-image {
    object-fit: cover;
    object-position: center;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.8em;
    }
}

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 25, 55, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--black);
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-large {
    padding: 1.2rem 2rem;
    font-size: 1.1em;
}

/* ====================================
   ABOUT SECTION
   ==================================== */

.about {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

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

.about-content h2 {
    color: var(--black);
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-red);
}

.feature h3 {
    color: var(--primary-red);
    font-size: 1.1em;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--medium-gray);
    font-size: 0.95em;
    margin: 0;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about-grid,
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about {
        padding: 2rem 0;
    }
}

/* ====================================
   SERVICES PREVIEW
   ==================================== */

.services-preview {
    padding: 4rem 0;
    background-color: var(--white);
}

.services-preview h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--black);
}

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

.service-card {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 4px;
    text-align: center;
    border-top: 4px solid var(--primary-red);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 3em;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: var(--black);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.service-card a {
    color: var(--primary-red);
    font-weight: 600;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .services-preview {
        padding: 2rem 0;
    }
}

/* ====================================
   TESTIMONIALS SECTION
   ==================================== */

.testimonials {
    padding: 4rem 0;
    background-color: var(--black);
    color: var(--white);
}

.testimonials h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 3rem;
}

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

.testimonial {
    background-color: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 4px;
    border-left: 4px solid var(--primary-red);
}

.stars {
    color: var(--primary-red);
    font-size: 1.2em;
    margin-bottom: 1rem;
    display: block;
}

.testimonial p {
    color: #ddd;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.customer-name {
    color: var(--primary-red);
    font-weight: 600;
    margin: 0;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials {
        padding: 2rem 0;
    }
}

/* ====================================
   CTA SECTION
   ==================================== */

.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-size: 1.1em;
}

/* ====================================
   PAGE HEADER
   ==================================== */

.page-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--black) 0%, var(--dark-gray) 100%);
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1em;
    color: #ccc;
}

/* ====================================
   SERVICE DETAIL
   ==================================== */

.service-detail {
    padding: 4rem 0;
}

.service-detail.alternate {
    background-color: var(--light-gray);
}

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

.service-layout.alternate {
    grid-template-columns: 1fr 1fr;
}

.service-text h2 {
    color: var(--black);
    margin-bottom: 1.5rem;
}

.service-text p {
    color: var(--medium-gray);
    line-height: 1.8;
}

.service-text h3 {
    color: var(--primary-red);
    font-size: 1.2em;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    margin-bottom: 2rem;
}

.service-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--medium-gray);
    position: relative;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .service-layout {
        grid-template-columns: 1fr;
    }
    
    .service-detail {
        padding: 2rem 0;
    }
}

/* ====================================
   SERVICE PROMISE
   ==================================== */

.service-promise {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.service-promise h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.promise-item {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 4px;
    border-top: 4px solid var(--primary-red);
}

.promise-item h3 {
    color: var(--primary-red);
    margin-bottom: 0.8rem;
}

.promise-item p {
    color: var(--medium-gray);
    margin: 0;
}

@media (max-width: 768px) {
    .promise-grid {
        grid-template-columns: 1fr;
    }
    
    .service-promise {
        padding: 2rem 0;
    }
}

/* ====================================
   CONTACT SECTION
   ==================================== */

.contact-section {
    padding: 4rem 0;
}

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

.contact-form-wrapper h2,
.contact-info h2 {
    color: var(--black);
    margin-bottom: 2rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(227, 25, 55, 0.1);
}

textarea {
    resize: vertical;
}

.info-block {
    margin-bottom: 2.5rem;
}

.info-block h3 {
    color: var(--primary-red);
    font-size: 1.1em;
    margin-bottom: 1rem;
}

.info-block p {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
}

.info-block .note {
    font-size: 0.9em;
    color: #999;
}

.info-block a {
    display: inline-block;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-section {
        padding: 2rem 0;
    }
}

/* ====================================
   MAP SECTION
   ==================================== */

.map-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.map-wrapper {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-wrapper iframe {
    display: block;
}

/* ====================================
   CONTACT ABOUT
   ==================================== */

.contact-about {
    padding: 4rem 0;
    background-color: var(--white);
}

.contact-about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

@media (max-width: 768px) {
    .contact-about .about-features {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   FOOTER
   ==================================== */

.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: var(--primary-red);
    margin-bottom: 1rem;
    font-size: 1em;
}

.footer-section p {
    color: #ccc;
    font-size: 0.95em;
    line-height: 1.8;
}

.footer-section a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: #999;
    font-size: 0.9em;
}

.google-link {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: var(--primary-red);
    color: var(--white);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.google-link:hover {
    background-color: var(--dark-red);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* ====================================
   UTILITIES
   ==================================== */

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

.mt-2 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-red);
    outline-offset: 2px;
}
