/* Dallas Access Flooring - Stylesheet */
/* Mobile-first responsive design */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Header and Navigation */
header {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
}

.logo img {
    height: 100px;
    display: block;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    text-align: center;
}

nav ul li {
    position: relative;
    margin-bottom: 0.5rem;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    background: #e9ecef;
    border-radius: 4px;
    color: #ff6b35;
}

/* Dropdown menu */
.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 200px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    z-index: 1000;
    border-radius: 4px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    white-space: nowrap;
    padding: 0.75rem 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f5f5f5;
    padding: 0.75rem 0;
    font-size: 0.9rem;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #ff6b35;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #333;
}

/* Phone CTA */
.phone-cta {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin: 0;
    transition: transform 0.3s;
}

.phone-cta:hover {
    transform: scale(1.05);
}

/* Phone Number Updates */
.tel-link {
    color: #0066cc;
    text-decoration: none;
}

.tel-link:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Service Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.service-card p {
    margin-bottom: 1.5rem;
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.location-card {
    background: #fff;
    border: 2px solid #e0e0e0;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s;
}

.location-card:hover {
    border-color: #ff6b35;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

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

/* Contact Info */
.contact-info {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Contact Layout - Two Column */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-right {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-right h2 {
    margin-top: 0;
    font-size: 1.5rem;
}

.contact-right .form-group {
    margin-bottom: 1rem;
}

.contact-right .form-group input,
.contact-right .form-group select,
.contact-right .form-group textarea {
    padding: 0.5rem;
    font-size: 0.95rem;
}

.contact-right .form-group textarea {
    min-height: 80px;
}

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

.contact-info a {
    color: #0066cc;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.faq h3 {
    margin-bottom: 1rem;
    color: #1a1a1a;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Call to Action Section */
section.mt-2 {
    text-align: center;
}

section.mt-2 .container {
    text-align: center;
}

section.mt-2 .container > div {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-top: 2rem !important;
}

section.mt-2 .phone-cta {
    margin: 0 !important;
}

section.mt-2 .btn {
    margin: 0 !important;
}

@media (max-width: 576px) {
    section.mt-2 .container > div {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    section.mt-2 .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Footer */
footer {
    background: #f8f9fa;
    color: #333;
    padding: 4rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section {
    padding: 0;
}

.footer-section:not(:last-child) {
    border-right: 1px solid #e0e0e0;
    padding-right: 2rem;
}

@media (max-width: 992px) {
    .footer-section:not(:last-child) {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.footer-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Footer logo section specific styling */
.footer-section:first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-section:first-child > div {
    margin-bottom: 1rem;
}

.footer-section:first-child img {
    max-width: 100%;
    height: auto;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6b35;
}

.footer-section p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
    color: #666;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ff6b35;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .logo {
        text-align: left;
        margin-bottom: 0;
    }
    
    nav ul {
        text-align: right;
    }
    
    nav ul li {
        display: inline-block;
        margin-bottom: 0;
        margin-left: 1rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: 0.3s;
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f8f9fa;
        border-bottom: 1px solid #e0e0e0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        padding: 1rem 0;
    }
    
    nav ul li {
        margin: 0;
    }
    
    nav ul li a {
        padding: 1rem;
        border-bottom: 1px solid #e0e0e0;
        color: #333;
        font-size: 1.1rem;
    }
    
    nav ul li a:hover {
        background: #e9ecef;
        color: #ff6b35;
    }
    
    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: #f0f0f0;
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown > a {
        position: relative;
    }
    
    .dropdown > a:after {
        content: ' ▼';
        font-size: 0.8em;
    }
    
    header {
        position: relative;
        padding-bottom: 0;
    }
    
    header .container {
        position: relative;
    }
}

/* Map Container */
.text-center {
    text-align: center;
}

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

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

/* Map iframe */
.map-iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 8px;
    margin: 2rem 0;
}
