* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    width:100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header styles */
.header-class {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 5%;
    background-color: #f8f8f8;
    border-bottom: 1px solid #e7e7e7;
    width: 100%;
}

.logo {
    grid-column: 2;
    text-align: center;
    max-width: 250px; /* Constrains logo width */
}

.logo img {
    height: 250px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Contact info containers */
.email-contact-info {
    grid-column: 1;
    padding-right: 15px;
    min-width: 0; /* Critical for text truncation */
    text-align: center;
}

.phone-contact-info {
    grid-column: 3;
    text-align: center;
    padding-left: 15px;
    min-width: 0; /* Critical for text truncation */
}

/* Text styles */
.header-class p {
    margin: 0;
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

.header-class a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    display: inline; /* Prevents line breaks */
}

.header-class a:hover {
    color: #0077cc;
}

/* ====================== */
/* BASE NAVIGATION STYLES */
/* ====================== */
nav {
    background-color: #333;
    padding: 10px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    font-size: 1.2rem;
    margin-bottom:0.1px;
}


nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

nav li {
    position: relative;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    display: block;
    padding: auto 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

nav a:hover {
    background-color: #3498db;
}

/* ================== */
/* DROPDOWN STYLES */
/* ================== */
.dropdown{
    color: white;
    text-decoration: none;
    display: block;
    padding:auto;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.dropdown-link{
    pointer-events:none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 100;
    left: 0;
    top: 100%;
    border-radius: 0 0 4px 4px;
}

.dropdown-content li {
    width: 100%;
}

.dropdown-content a {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #ecf0f1;
}

.dropdown-content a:hover {
    background-color: #2980b9;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* ================== */
/* ENHANCED STYLES */
/* ================== */
/* Active menu item indicator */
nav a.active {
    background-color: #3498db;
    font-weight: 600;
}

/* Smooth transitions */
nav, .dropdown-content {
    transition: all 0.3s ease;
}

/* Better focus states for accessibility */
nav a:focus {
    outline: 2px solid #f1c40f;
    outline-offset: -2px;
}

/* Mobile menu toggle button (hidden by default) */
.mobile-menu-toggle {
    display: none;
    background-color: #3498db;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
}

/* Footer styles */
.site-footer {
    background-color: #333;
    color: white;
    padding: 25px 0;
    margin-top: 30px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-email, 
.footer-phone {
    flex: 1;
    text-align: center;
}

.footer-email {
    text-align: left; /* Align email to left */
}

.footer-phone {
    text-align: right; /* Align phone to right */
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #0077cc;
}

/* Call-to-Action Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top:20px;
}

.cta-button {
    background-color: #0077cc;
    color: white;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.cta-button.secondary {
    background-color: transparent;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


.quote-hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('pictures/design.jpg') center/cover;
    min-height: 50vh;
    height:fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-top: 0.1px;
    margin-bottom: 0.1px;
}

.quote-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* page styles*/
/* Quote Form Section */
.quote-form-section {
    padding: 60px 5%;
    background-color: #f9f9f9;
}

.form-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.quote-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    transition: border 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: #0077cc;
    outline: none;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: normal;
}

.checkbox-group a {
    color: #0077cc;
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.submit-btn {
    background-color: #0077cc;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #005fa3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Form Sidebar */
.form-sidebar {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    align-self: start;
}

.form-sidebar h3 {
    color: #0077cc;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.step-number {
    background-color: #0077cc;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.process-step p {
    color: #555;
    line-height: 1.5;
    margin-top: 5px;
}

.contact-alternative {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.contact-alternative h3 {
    margin-bottom: 10px;
}

.contact-alternative p {
    color: #555;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.phone-link {
    display: inline-block;
    background-color: #0077cc;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin: 15px 0;
    transition: all 0.3s;
}

.phone-link:hover {
    background-color: #005fa3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-feedback {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
    display: none;
}

.form-feedback.success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.form-feedback.error {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

.form-feedback h3 {
    margin-top: 0;
    color: inherit;
}

/* Area Cover Text */
.area-cover {
    font-style: italic;
    margin: 30px auto;
    width: 100%;
    padding: 0 max(5%, env(safe-area-inset-left));
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-align: center;
}

strong{
    display:inline;
}

/* ===== DESKTOP: HIDE MOBILE ELEMENTS ===== */
.mobile-menu-button,
.mobile-menu-toggle,
.dropdown-toggle {
    display: none;
}

/* ===== MOBILE STYLES (768px and below) ===== */
@media (max-width: 768px) {
    /* Mobile menu toggle button */
    .mobile-menu-button {
        display: block;
        background: #3498db;
        color: white;
        padding: 12px 15px;
        cursor: pointer;
        text-align: center;
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    /* Main navigation - hidden by default */
    nav ul.main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #333;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    /* Show navigation when toggled */
    #mobile-menu-toggle:checked ~ nav ul.main-nav {
        display: flex;
    }

    /* Menu items */
    nav ul.main-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav ul.main-nav a {
        color: white;
        text-decoration: none;
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        position: relative;
    }

    .dropdown-link {
        position: relative;
        padding-right: 35px !important;
        pointer-events:none;
    }

    .dropdown-arrow {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        pointer-events: none;
    }

    /* Dropdown content - FIXED POSITIONING */
    .dropdown-content {
        display: none;
        background: rgba(0,0,0,0.6);
        padding: 10px 0;
        position: relative; /* Changed to relative */
        right: auto;
        width: calc(100% - 40px); /* Full width minus margins */
        margin: 5px 20px 15px 20px; /* Consistent margins */
        border-radius: 4px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        overflow: hidden; /* Keeps rounded corners */
    }

    /* Show dropdown without page jump */
    .dropdown:target .dropdown-content {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    @keyframes fadeIn {
        from { opacity: 0; max-height: 0; }
        to { opacity: 1; max-height: 1000px; }
    }

    /* Rotate arrow when dropdown is open */
    .dropdown:target .dropdown-arrow {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Close all dropdowns when mobile menu is closed */
    #mobile-menu-toggle:not(:checked) ~ nav .dropdown-content {
        display: none;
        animation: none;
    }

    /* Reset arrow rotation when menu closes */
    #mobile-menu-toggle:not(:checked) ~ nav .dropdown-arrow {
        transform: translateY(-50%) rotate(0deg);
    }

    /* Header adjustments */
    .header-class {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 5%;
        gap: 15px;
    }

    .logo {
        order: 1;
        margin-bottom: 10px;
    }

    .logo img {
        height: auto;
        max-height: 180px;
        width: auto;
        max-width: 100%;
    }

    .phone-contact-info {
        order: 2;
        text-align: center;
    }

    .email-contact-info {
        order: 3;
        text-align: center;
    }

    /* Contact info text */
    .header-class p {
        font-size: 1.1rem;
        margin: 5px 0;
        white-space: normal;
    }

    /* Hero section */
    .hero {
        min-height: 60vh;
        padding: 30px 15px;
    }

    .cta-buttons{
        flex-direction: column;
    }

    .quote-form{
        display:block;
    }

    .area-cover {
        display: block;
        text-align: center;
        white-space: normal; /* Allow natural wrapping */
        padding: 0 15px;
    }
    
    /* Fix for strong elements - keeps them inline */
    .area-cover strong {
        display: inline !important;
        white-space: nowrap; /* Keep strong text together */
        font-weight: bold;
    }
    
    /* Special treatment for the last strong element */
    .area-cover strong:last-child {
        white-space: normal; /* Allow last item to wrap */
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ===== SMALLER MOBILE (576px and below) ===== */
@media (max-width: 576px) {
    .logo img {
        max-height: 150px;
    }

    nav ul.main-nav a {
        padding: 12px 15px;
        font-size: 1rem;
    }

    .dropdown-arrow {
        right: 10px;
    }

    .dropdown-content {
        width: calc(100% - 30px);
        margin: 5px 15px 10px 15px;
    }

    .header-class p {
        font-size: 1rem;
    }
}