@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Permanent+Marker&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --brand-red: #A31D21;
    --brand-dark: #1A1A1A;
    --brand-white: #FFFFFF;
}

html{
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Nav Styles */
.nav-container {
    background-color: var(--brand-dark);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Permanent Marker';
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.05em;
    color: var(--brand-red);
    background: var(--brand-white);
    padding: .5rem 1.5rem;
    border-radius: 5px;
}

.text-brand-red { color: var(--brand-red); }

.btn-nav {
    background-color: var(--brand-red);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background 0.3s;
}

.btn-nav:hover { background-color: #8a181b; }

/* Hero Styles */
.hero-overlay {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 5rem 1.5rem;
    color: white;
    background: linear-gradient(to right, rgba(26, 26, 26, 0.9), rgba(163, 29, 33, 0.7)), 
                url('https://images.unsplash.com/photo-1546241072-48010ad28c2c?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.hero-content { max-width: 48rem; margin-left: auto; margin-right: auto; }

.badge {
    background-color: var(--brand-red);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-subtitle { font-size: 1.25rem; margin-bottom: 2.5rem; color: #e5e7eb; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn-white {
    background-color: white;
    color: var(--brand-dark);
    padding: 1rem 2rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
}

.btn-brand {
    background-color: var(--brand-red);
    color: white;
    padding: 1rem 2rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px;
}

/* Product Grid */
.section-container { padding: 5rem 1.5rem; max-width: 80rem; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.25rem; font-weight: 900; margin-bottom: 1rem; }
.brand-divider { height: 6px; width: 80px; background-color: var(--brand-red); margin: 0 auto; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    aspect-ratio: 1/1;
}

.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img { transform: scale(1.1); }

.product-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--brand-dark);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
}

.product-name { font-size: 1.5rem; font-weight: 900; text-transform: uppercase; }
.product-meta { color: #78716c; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #e7e5e4; pt: 1rem; }
.product-price { font-size: 1.5rem; font-weight: 900; color: var(--brand-red); }
.product-link { font-size: 0.875rem; font-weight: 700; border-bottom: 2px solid var(--brand-red); }

/* Locations Section */
.locations-section { background-color: var(--brand-dark); color: white; padding: 5rem 1.5rem; }
.locations-grid { max-width: 64rem; margin: 0 auto; display: grid; gap: 4rem; }

@media (min-width: 768px) {
    .locations-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

.locations-title { font-size: 2.25rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1.5rem; }
.location-list { margin-top: 2rem; }
.location-item { border-left: 4px solid var(--brand-red); padding-left: 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 1rem; }

.contact-card {
    background-color: var(--brand-red);
    padding: 2.5rem;
    border-radius: 1rem;
    transform: rotate(2deg);
}

.phone-link {
    display: block;
    text-align: center;
    background: white;
    color: var(--brand-red);
    padding: 1rem;
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 1.5rem 0;
}

.location-container {
    padding: 5rem .5rem;
    background-color: #f9f8f7;
}

.location-wrapper {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr; /* Stack on mobile */
    gap: 2rem;
}

@media (min-width: 1024px) {
    .location-wrapper {
        grid-template-columns: 350px 1fr; /* Side-by-side on desktop */
        align-items: start;
    }
}

.branch-selector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.branch-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.branch-btn {
    text-align: left;
    padding: 1.25rem;
    background: white;
    border: 2px solid #e7e5e4;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.branch-btn.active {
    border-color: var(--brand-red);
    background-color: #fff1f2;
}

.branch-btn.active .branch-name {
    color: var(--brand-red);
}

.branch-name {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--brand-dark);
}

.branch-addr {
    color: #78716c;
}

.map-display {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e7e5e4;
}

.map-display {
    position: relative;
    width: 100%;
    /* This ensures the map maintains a clear "box" shape on mobile */
    aspect-ratio: 16 / 9; 
    border-radius: 12px;
    overflow: hidden;
}

.map-display iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* Mobile Specific Adjustment */
@media (max-width: 640px) {
    .map-display {
        aspect-ratio: 1 / 1; /* Makes the map a square on mobile so the pin is harder to miss */
        height: 400px;
    }
}

.footer { padding: 2.5rem .5rem; text-align: center; color: #78716c; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; border-top: 1.5px solid #e7e5e4;}

.footer h3{
    margin-bottom: 1rem;
}
.footer i{
    font-size: 1rem;
}