/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d97706;
    --primary-dark: #b45309;
    --primary-light: #fcd34d;
    --secondary-color: #92400e;
    --text-dark: #fef3c7;
    --text-light: #fffffc;;
    --bg-light: #1c1917;
    --bg-white: #292524;
    --bg-alt: #44403c;
    --border-color: #78716c;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.45);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    background: linear-gradient(
        135deg,
        #bf953f 0%,
        #fcf6ba 25%,
        #b38728 50%,
        #fbf5b7 75%,
        #aa771c 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand .tagline {
    font-size: 0.75rem;
    color: var(--text-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 4rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    min-height: 100%;
}

.hero-content {
    padding: 4rem 2rem;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    flex: 0 0 auto;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: left 1s ease-in-out;
}

.hero-bg.active {
    left: 0;
}

.hero-bg.slide-out {
    left: -100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-text-large {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.placeholder-image {
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.placeholder-image svg {
    width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Section Styles */
.section {
    /* Extra top padding to account for fixed navbar height so headings aren't hidden */
    padding: 6.5rem 0 4rem;
}

.section-alt {
    background-color: var(--bg-light);
}

.section-head {
    max-width: 1100px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: var(--primary-light);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 1.3rem;
}

.section-copy {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 1000px;
    margin: 0.75rem auto 0;
    line-height: 1.8;
    text-align: left;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    line-height: 1.15;
}

.intro-card,
.capability-card,
.process-card,
.design-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.intro-card:hover,
.capability-card:hover,
.process-card:hover,
.design-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.intro-card h3,
.capability-card h3,
.process-card h3,
.design-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.intro-card p,
.capability-card p,
.process-card p,
.design-copy p {
    color: var(--text-light);
    line-height: 1.8;
}

.intro-highlight {
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.intro-card ul,
.design-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.intro-card ul li,
.design-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.85rem;
    color: var(--text-light);
}

.intro-card ul li::before,
.design-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0.15rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    line-height: 1;
}

/* Repair Capabilities */
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 1.5rem;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.5rem;
}

.capability-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.capability-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.capability-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 968px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }
}

@media (max-width: 720px) {
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}


/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1.5rem;
}

.process-card {
    text-align: center;
}

.process-step {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.process-card h3 {
    margin-bottom: 0.75rem;
}

/* Custom Design */
.design-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.design-content {
    display: flex;
    flex-direction: column;
}

.design-copy {
    padding: 1rem 0;
}

.design-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.design-images {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}

.design-card .design-img {
    width: 48%;
    max-width: 400px;
}

.design-button {
    margin-top: 2rem;
}

.design-img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 840px) {
    .design-grid {
        grid-template-columns: 1fr;
    }

    .design-card {
        grid-template-columns: 1fr;
    }
}

.capability-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-lg);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 2.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.about-features {
    display: grid;
    gap: 1.5rem;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.resource-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.resource-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.resource-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.resource-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background-color: var(--bg-alt);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-info > p {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
}

.contact-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.location-map-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.location-map-toggle {
    border: 0;
    background: none;
    padding: 0;
    text-align: left;
    cursor: pointer;
    display: block;
    max-width: 320px;
    flex: 0 1 320px;
}

.location-map-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 8px;
}

.contact-location-img {
    width: 160px;
    max-width: 100%;
    display: block;
    margin-top: 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-map-toggle:hover .contact-location-img,
.location-map-toggle:focus-visible .contact-location-img {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.location-map-panel {
    display: none;
    width: min(320px, 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-white);
}

.location-map-card:hover .location-map-panel,
.location-map-card:focus-within .location-map-panel {
    display: block;
}

.location-map-panel iframe {
    width: 100%;
    min-height: 260px;
    border: 0;
    display: block;
}

.contact-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.5;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-grid,
    .contact-grid,
    .intro-grid,
    .capabilities-grid,
    .process-grid,
    .design-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
        white-space: normal;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section {
        padding-top: 5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .services-grid,
    .products-grid,
    .resources-grid,
    .intro-grid,
    .capabilities-grid,
    .process-grid,
    .design-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .location-map-card {
        flex-direction: column;
    }

    .location-map-panel {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
