/* =========================
   NAVBAR
========================= */
nav {
    background-color: #004466;
    padding: 1rem 0;
}

nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
}

nav ul li a:hover {
    background-color: #006699;
    border-radius: 5px;
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    background-color: #add8e6 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 150px;
    position: relative;
    overflow: hidden;
}

.top-bar-left .logo {
    height: 125px;
    width: 370px;
    object-fit: contain;
}

.top-bar-right {
    margin-left: auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #004466;
    white-space: nowrap;
}

.top-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.call-text {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: #222;
    text-transform: uppercase;
}

.phone-icon {
    width: 28px;
    height: auto;
}

.phone-number {
    font-size: 1.3rem;
    font-weight: bold;
}

.copy-text {
    cursor: pointer;
    color: #000;
    position: relative;
}

.copy-text:hover {
    text-decoration: underline;
    color: #000;
}

.copy-text::after {
    content: "Click to copy";
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    font-size: 0.8rem;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-text:hover::after {
    opacity: 1;
}

/* =========================
   MAIN CONTENT
========================= */
.center-image {
    display: block;
    margin: 20px auto;
    max-width: 80%;
    height: auto;
    border: 4px solid #004466;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.about-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 5%;
}

.about-textbox {
    order: 2;
    flex: 1;
    border: 2px solid #004466;
    border-radius: 6px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.before-after {
    order: 1;
    flex: 1;
    text-align: center;
}

.before-after h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #004466;
}

.before-after-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.before, .after {
    flex: 1 1 300px;
    max-width: 400px;
    text-align: center;
}

.before img, .after img {
    max-width: 100%;
    height: auto;
    border: 3px solid #004466;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* =========================
   SERVICE AREAS
========================= */
.service-areas {
    max-width: 800px;
    margin: 40px auto;
    padding: 25px;
    border: 2px solid #004466;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: left;
}

.service-areas h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #004466;
    text-align: center;
}

.service-areas ul {
    list-style-type: disc;
    padding-left: 20px;
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #333;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 30px;
}

/* =========================
   GALLERIES
========================= */
.galleries-title {
    font-family: 'Montserrat', sans-serif;
    color: #004466;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
}

.galleries {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin: 0 auto 60px auto;
    max-width: 1200px;
    flex-wrap: wrap;
}

.gallery {
    flex: 1 1 500px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border: 3px solid #004466;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.estimate-btn {
    background-color: #004466;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 1rem;
    margin-left: 15px;
    white-space: nowrap;
}

.estimate-btn:hover {
    background-color: #006699;
    transform: scale(1.05);
}

h1, h2, h3, h4, h5, h6 {
    font-size: 38px;
}

.title-bar {
    text-align: center;
}

h2 {
    text-align: center;
}

section {
    font-size: 24px;
}

.hero-section {
    display: flex;
    height: 800px;
    width: 100%;
}

.hero-overlay {
    flex: 1;
    background: #004466;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-text {
    color: #fff;
    max-width: 500px;
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-btn {
    background: #0044cc;
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s;
}

.hero-btn:hover {
    background: #002a80;
}

.hero-image {
    flex: 1;
    background: url("img/StairsD.jpg") no-repeat center center/cover;
}

/* =========================
   Add Message Width corrections
========================= */

.estimate-form input,
.estimate-form select,
.estimate-form textarea,
.estimate-form button {
  width: 100%;
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

/* =========================
   RESPONSIVE STYLES
========================= */

/* Tablet and smaller screens */
@media (max-width: 1024px) {
    .top-bar {
        height: auto;
        min-height: 120px;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .top-bar-left .logo {
        height: 95px;
        width: 280px;
    }

    .top-bar-center {
        position: static;
        transform: none;
        flex-direction: column;
        gap: 10px;
    }

    .call-text {
        font-size: 1.4rem;
    }

    .phone-number {
        font-size: 1.1rem;
    }

    .estimate-btn {
        margin-left: 0;
        margin-top: 10px;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero-section {
        flex-direction: column;
        height: auto;
    }

    .hero-overlay,
    .hero-image {
        min-height: 400px;
    }

    .service-areas ul {
        grid-template-columns: repeat(2, 1fr);
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 32px;
    }

    section {
        font-size: 20px;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .top-bar {
        padding: 15px;
    }

    .top-bar-left .logo {
        height: 95px;
        width: 280px;
    }

    .call-text {
        font-size: 1.2rem;
    }

    .phone-number {
        font-size: 1rem;
    }

    .phone-icon {
        width: 24px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav ul li {
        margin: 5px 0;
    }

    nav ul li a {
        display: block;
        padding: 10px 20px;
    }

    .hero-section {
        height: auto;
    }

    .hero-overlay,
    .hero-image {
        min-height: 300px;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .about-section {
        flex-direction: column;
        padding-left: 15px;
        padding-right: 15px;
        margin: 30px 0;
        gap: 20px;
    }

    .before-after-row {
        flex-direction: column;
        gap: 30px;
    }

    .before, .after {
        max-width: 100%;
    }

    .galleries {
        flex-direction: column;
        padding: 0 15px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-areas {
        margin: 20px 15px;
        padding: 20px;
    }

    .service-areas ul {
        grid-template-columns: 1fr;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 28px;
    }

    section {
        font-size: 18px;
        padding: 0 15px;
    }

    .galleries-title {
        font-size: 1.5rem;
    }

    .before-after h2 {
        font-size: 1.4rem;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .top-bar-left .logo {
        height: 95px;
        width: 280px;
    }

    .call-text {
        font-size: 1rem;
    }

    .phone-number {
        font-size: 0.9rem;
    }

    .estimate-btn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .hero-text h1 {
        font-size: 1.3rem;
    }

    .hero-text p {
        font-size: 0.9rem;
    }

    .hero-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    h1, h2, h3, h4, h5, h6 {
        font-size: 24px;
    }

    section {
        font-size: 16px;
    }

    .service-areas h2,
    .galleries-title,
    .before-after h2 {
        font-size: 1.2rem;
    }
}

/* Responsive: stack galleries vertically on smaller screens */
@media (max-width: 900px) {
    .galleries {
        flex-direction: column;
        gap: 40px;
    }
}
