/* --- Reset and Core Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Syne', sans-serif;
    line-height: 1.5;
}

.container {
    width: 90%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #ffd700; /* Gold hover color for links */
}

/* --- Theme Classes --- */
.dark-theme {
    background-color: #000;
    color: #fff;
}

.light-theme {
    background-color: #fff;
    color: #333;
}

/* --- Header --- */
.main-header {
    background: #000;
    width: 100%;
    padding: 30px 0 20px;
}

.header-container {
    display: flex;
    flex-direction: column; /* Stacks logo and nav */
    align-items: center;    /* Centers them */
    gap: 30px;
}

.main-header .logo img {
    max-height: 320px;
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
}

/* --- Main Sections --- */
main {
    margin-top: 0; /* Removed previous fixed header offset */
}

/* --- Hero Section & Typography --- */
.hero {
    text-align: center;
    padding: 60px 0 100px;
}

.hero-kicker {
    display: block;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-main {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-sub {
    font-size: 1.5rem;
    font-weight: 400;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

/* --- Global Call To Action Button --- */
.cta-btn {
    display: inline-block;
    background-color: #ffd700;
    color: #000;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    padding: 18px 45px;
    border-radius: 50px;
    transition: all 0.3s ease;
    line-height: 1.5; 
}

.cta-btn:hover {
    background-color: #ffffff;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* --- Image Gallery (Scattered Layout) --- */
.image-gallery {
    padding-top: 20px;
    width: 100%;
    position: relative;
    z-index: 3;
    clip-path: none; 
    margin-bottom: 0;
}

.image-gallery::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #000;
    clip-path: ellipse(75% 100% at 50% 0%);
}

.gallery-wrapper {
    position: relative;
    max-width: 1150px; 
    width: 70%;
    aspect-ratio: 1150 / 600; 
    height: auto; 
    margin: 0 auto;
}

.gallery-img {
    position: absolute;
    height: auto;
    /* Optional: Subtle border to match the slight edge in the original */
    border: 1px solid rgba(255,255,255,0.05); 
}


.gal-1 { top: 5%; left: -15%; width: 32%; z-index: 2; }
.gal-2 { top: 45%; left: 1%; width: 30%; z-index: 1; }
.gal-3 { top: 0%; left: 35%; width: 27%; z-index: 1; }
.gal-4 { top: 5%; right: -15%; width: 30%; z-index: 2; }
.gal-5 { top: 35%; right: 0%; width: 30%; z-index: 1; }
.gal-6 { top: 55%; left: 45%; width: 28%; z-index: 4; }

/* --- NASCAR Discount Car (Parallax & Curve) --- */
.discount-car {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;

    background-image: url('assets/nascar.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    z-index: 2;
    clip-path: none; 
    margin-top: 0;
    margin-bottom: 0;
}

/* We recreate the background here so the image continues into the curve */
.discount-car::after {
    content: "";
    position: absolute;
    bottom: -80px; /* Hangs down over the Services section */
    left: 0;
    width: 100%;
    height: 80px;
    background-image: url('assets/nascar.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    clip-path: ellipse(75% 100% at 50% 0%);
}

.discount-car .container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.discount-text {
    color: #ffd700; 
    font-size: 3.5rem;
    text-align: center;
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 3px 3px 10px rgba(0,0,0,0.9), -1px -1px 4px rgba(0,0,0,0.5);
    z-index: 2;
}


/* --- 3. Services (Bottom of the Stack) --- */
.services {
    padding: 160px 0 60px;
    background-color: #ffffff;
    position: relative;
    z-index: 1;
    clip-path: none;
    margin-top: 0;
}

.services::after {
    content: "";
    position: absolute;
    bottom: -80px; /* Hangs down into the Footer */
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    clip-path: ellipse(75% 100% at 50% 0%);
}

.services .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services-grid {
    display: flex;
    gap: 40px;
    width: 100%;
    justify-content: space-between;
}

.service-column {
    flex: 1;
    min-width: 300px;
}

.service-column h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-column h3 u {
    text-decoration-color: #ffd700;
}

.service-column ul li {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.fine-print {
    margin-top: 40px;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    font-style: italic;
    margin-left: auto;
    margin-right: auto;
}

.tagline {
    margin-top: 60px;
    text-align: center;
    font-size: 1.2rem;
    width: 80%;
    line-height: 1.6;
}

.award {
    width: 25%;
    margin-top: 60px;
}

/* --- Footer --- */
.main-footer {
    padding: 120px 0 80px;
    background-color: #000;
    position: relative;
    z-index: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Stretches left column to match height of center logo */
    gap: 40px;
}

/* --- Left Column --- */
.footer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px;
    flex: 1 1 200px; /* Allows it to grow and shrink, but keeps a baseline width */
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.little-ratchet-img {
    width: 150px; /* Adjust based on your asset size */
    height: auto;
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 1.3rem;
}

.social-icons a:hover {
    color: #ffd700;
}

/* --- Center Column --- */
.footer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 640px; 
}

.footer-main-logo {
    width: 100%;
    max-width: 640px;
    height: auto;
}

/* --- Right Column --- */
.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 200px;
}

.gold-text {
    color: #ffd700; /* Keeping your gold touch */
}

.footer-right h3 {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-right ul {
    list-style: none;
    padding: 0;
}

.footer-right ul li {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Copyright Bar Styles */
.copyright-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #cccccc;
}

.copyright-bar p {
    margin: 0;
}

.copyright-bar a {
    text-decoration: none;
}

.copyright-bar a:hover {
    color: #ffd700;
}

.veteran-discount {
    margin-top: 40px;
    font-weight: 700;
    font-size: 1.05rem;
}

/* --- Scroll Reveal Animations --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Load Reveal Animation (For Hero Section) --- */
.load-reveal {
    opacity: 0; /* Start invisible */
    animation: fadeUpOnLoad 0.8s ease-out forwards;
    animation-delay: 0.2s; /* Tiny delay so it feels smooth on load */
}

@keyframes fadeUpOnLoad {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navigation Active State --- */
.nav-link.active-page {
  text-decoration: underline;
  text-underline-offset: 6px;
  /* Add whatever your specific active brand color/styling is here */
}

/* --- Team Section Layout --- */
.team-section {
  padding: 4rem 1rem 60px;
  background-color: #ffffff;
  text-align: center;
  position: relative;
  z-index: 1;
}

.team-section::after {
  content: "";
  position: absolute;
  bottom: -80px; 
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #ffffff;
  clip-path: ellipse(75% 100% at 50% 0%);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 4rem;
  color: #000;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start; /* Keeps names aligned even if someone is missing a photo */
}

/* --- Team Member Cards --- */
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Optional: adds a slight lift */
  object-position: center top;
}

.member-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: #000;
}

.member-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  margin: 0;
}

/* --- Who We Are Page Copy --- */
.about-copy {
    max-width: 800px;
    margin: 4rem auto 0;
    text-align: left;
    font-size: 1.1rem;
    color: #222;
}

.about-copy p {
    margin-bottom: 1.5rem;
}

.about-copy h3 {
    font-size: 1.6rem;
    color: #000;
    margin: 3rem 0 1.5rem;
    text-align: center;
}

.about-copy ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 2rem;
}

.about-copy ul li {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-copy ul li::before {
    content: "•";
    color: #ffd700; 
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -4px;
}

.about-cta {
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #000;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.cta-wrapper {
    text-align: center;
    margin-top: 2rem;
}

/* --- Contact Section Layout & Curve --- */
.contact-section {
    padding: 4rem 1rem 60px; 
    background-color: #ffffff;
    color: #000;
    position: relative;
    z-index: 1;
}

.contact-section::after {
    content: "";
    position: absolute;
    bottom: -80px; 
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #ffffff;
    clip-path: ellipse(75% 100% at 50% 0%);
}

/* --- Contact Grid (Info & Map) --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    align-items: center;
}

.contact-info {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
}

.contact-info a {
    font-weight: 600;
}

.contact-info address {
    font-style: normal;
    margin: 2rem 0;
}

.google-reviews {
    font-weight: 700;
    margin-top: 2rem;
}

.contact-map {
    width: 100%;
    height: 300px;
    background-color: #f4f4f4; /* Placeholder color before iframe loads */
}

/* --- Form Styling --- */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group label span {
    font-weight: 400;
    color: #666;
    font-size: 0.8rem;
    margin-left: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background-color: #fafafa;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    background-color: #fafafa;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    resize: none;
    height: 150px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.submit-btn {
    display: inline-block;
    width: 100%;
    max-width: 200px;
    margin-top: 1rem;
    padding: 15px 30px;
    background-color: #e0e0e0; /* Matches the grey from his screenshot */
    color: #000;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #ffd700; /* Swaps to brand gold on hover */
}

.form-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Success Message Styling */
#success-message {
    display: none;
    text-align: center;
    padding: 40px 0 0;
}

#success-message h2 {
    color: #ffd700;
    margin-bottom: 15px;
}

#success-message p {
    font-size: 1.1rem;
}

/* --- Media Queries for Responsiveness --- */

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-main {
        font-size: 3rem;
    }
    
    .award {
        width: 35%;
    }

    .footer-container {
        gap: 10px;
    }
    .services-grid {
        gap: 30px;
    }

    .footer-center {
        flex: 1 1 auto;
        max-width: 40%;
        padding: 0;
    }

    .footer-main-logo {
        width: 100%;
        height: auto;
        max-width: 350px;
    }

    .footer-right {
        flex: 0 0 250px;
        text-align: right;
    }

    .footer-left {
        flex: 0 0 200px;
    }

    .services-grid {
        flex-direction: column;
    }
}

/* Mobile (Under 768px) */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 10px;
    }

    .main-header .logo img {
        max-width: 100%;
        height: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-small { font-size: 1.8rem; }
    .hero-large { font-size: 2.2rem; }

    .image-gallery::after,
    .discount-car::after,
    .services::after,
    .team-section::after,
    .contact-section::after {
        bottom: -40px;
        height: 40px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .services-grid {
        flex-direction: column;
    }

    .discount-text {
        font-size: 2rem;
    }

    .discount-car {
        height: 400px;
        background-attachment: scroll;        
        clip-path: ellipse(200% 100% at 50% 0%);
        padding-bottom: 40px;
        z-index: 2;
    }

    .discount-car::after {
        display: none;
    }

    .services {
        margin-top: -60px;
        padding-top: 120px;
    }

    .award {
        width: 50%;
        margin-top: 40px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 60px;
    }

    .footer-left {
        align-items: center;
    }

    .footer-bottom-left {
        align-items: center;
    }

    .footer-main-logo {
        max-width: 80%;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        flex: none; 
        width: 100%;
    }

/* --- Mobile Horizontal Swipe Gallery --- */
    .image-gallery {
        height: auto;
        padding-bottom: 80px;
    }

    .gallery-wrapper {
        display: flex;
        flex-direction: row;
        gap: 15px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        width: 100vw; 
        margin-left: calc(-50vw + 50%); 
        padding: 0 20px 20px 20px; 
        scrollbar-width: none;
        height: auto;
        aspect-ratio: auto;
    }

    .gallery-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    .gallery-img {
        position: relative;
        top: auto; 
        left: auto; 
        right: auto; 
        bottom: auto;
        flex: 0 0 80%; 
        scroll-snap-align: center;
        height: 300px; 
        object-fit: cover;
        border-radius: 8px;
        border: none;
    }
}