/* =====================================
   MDC – MOBILE STYLES ONLY
   Breakpoint: 768px / 900px
===================================== */

/* =====================================
   GLOBAL MOBILE SAFETY
===================================== */
@media (max-width: 768px) {
    html, body {
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* =====================================
   HEADER + NAV (MOBILE)
===================================== */
@media (max-width: 768px) {

    /* Hide desktop estimate button */
    .btn-estimate {
        display: none;
    }

    /* Show hamburger */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop nav */
    .main-nav {
        display: none;
    }

    /* Mobile nav open */
    .main-nav.mobile-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(to bottom, #c40000, #a30000);
        z-index: 9999;
    }

    .main-nav ul {
        flex-direction: column;
        margin: 0;
        padding: 0;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .main-nav a {
        padding: 18px 0;
        font-size: 16px;
        background: transparent;
    }

    .main-nav a:hover {
        background: rgba(255,255,255,0.1);
    }
}

/* =====================================
   MOBILE ESTIMATE BUTTON (MENU)
===================================== */
@media (max-width: 768px) {

    .mobile-estimate {
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.2);
        background: transparent;
    }

    .mobile-estimate-btn {
        display: block;
        width: 100%;
        background: #ffffff;
        color: #bb0000;
        padding: 16px 0;
        text-align: center;
        font-size: 17px;
        font-weight: 700;
        border-radius: 6px;
        text-decoration: none;
    }

    .mobile-estimate-btn:hover {
        background: #f2f2f2;
    }
}

/* =====================================
   HERO SECTION (MOBILE)
===================================== */
@media (max-width: 900px) {

    .hero-container {
        flex-direction: column;
        gap: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-text {
        margin-top: 0;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-image-box img {
        height: 220px;
    }
}

/* =====================================
   HERO FORM (MOBILE)
===================================== */
@media (max-width: 768px) {

    .hero-form {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        margin: 0 auto;
    }

    .hero-form label {
        font-size: 13px;
        margin-top: 12px;
        margin-bottom: 4px;
    }

    .hero-form input,
    .hero-form select,
    .hero-form textarea,
    .hero-form button {
        width: 100%;
        max-width: 100%;
    }

    .hero-form textarea {
        height: 110px;
    }

    .hero-form button {
        padding: 15px;
        font-size: 15px;
        border-radius: 6px;
    }
}

/* =====================================
   DIVIDERS (PREVENT OVERFLOW)
===================================== */
@media (max-width: 768px) {

    .hero-title::after,
    .mdc-roofing-importance__divider,
    .mdc-roof-types-split__divider,
    .mdc-simple-roofing__divider {
        width: 100%;
        max-width: 300px;
    }
}



/* =====================================
   ROOFING – IMPORTANCE SECTION
===================================== */
@media (max-width: 900px) {

    .mdc-roofing-importance {
        padding: 60px 20px;
    }

    .mdc-roofing-importance__text {
        font-size: 16px;
    }

    .mdc-roofing-importance__images {
        grid-template-columns: 1fr;
    }

    .mdc-roofing-importance__images img {
        height: 220px;
    }

    .mdc-roofing-importance__cards {
        grid-template-columns: 1fr;
    }

    .mdc-roofing-importance__card img {
        height: 220px;
    }
}

/* =====================================
   ROOF TYPES SPLIT (MOBILE)
===================================== */
@media (max-width: 900px) {

    .mdc-roof-types-split {
        padding: 60px 20px;
    }

    .mdc-roof-types-split__row {
        grid-template-columns: 1fr;
        gap: 25px;
        min-height: auto;
        margin-bottom: 50px;
    }

    .mdc-roof-types-split__row.reverse {
        direction: ltr;
    }

    .mdc-roof-types-split__text {
        margin: 0 !important;
        padding: 28px;
    }

    .mdc-roof-types-split__image img {
        height: 220px;
    }
}

/* =====================================
   SIMPLE ROOFING PROCESS
===================================== */
@media (max-width: 768px) {

    .mdc-simple-roofing {
        padding: 60px 20px;
    }

    .mdc-simple-roofing__steps li {
        flex-direction: column;
        gap: 15px;
    }

    .mdc-simple-roofing__steps li::before {
        margin-bottom: 10px;
    }

    .mdc-simple-roofing__steps p {
        font-size: 15px;
    }
}

@media (max-width: 768px) {

    .mdc-simple-roofing {
        padding: 60px 20px;
    }

    .mdc-simple-roofing__steps li {
        flex-direction: column;
        gap: 15px;
        align-items: center; /* centers the circle + text */
    }

    /* 🔴 FIX RED CIRCLE OVAL ISSUE */
    .mdc-simple-roofing__steps li::before {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 50%;
        flex-shrink: 0;
        margin-bottom: 10px;
    }

    .mdc-simple-roofing__steps p {
        font-size: 15px;
        text-align: center;
    }
}

/* =====================================
   FINAL ESTIMATE SECTION
===================================== */
@media (max-width: 900px) {

    .mdc-final-estimate {
        padding: 60px 20px;
    }

    .mdc-final-estimate__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mdc-final-estimate__content {
        text-align: center;
    }

    .mdc-final-estimate__content h2 {
        font-size: 28px;
    }

    .mdc-final-estimate__content p {
        max-width: 100%;
        font-size: 16px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* =====================================
   SERVICES SECTION (MOBILE)
===================================== */
@media (max-width: 768px) {

    .service-card {
        width: 100%;
        max-width: 320px;
    }
}

/* =====================================
   FOOTER (MOBILE)
===================================== */
@media (max-width: 768px) {

    .footer-container {
        padding: 0 20px;
        gap: 30px;
        text-align: center;
    }

    .footer-social {
        margin-top: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .mdc-simple-roofing__steps li {
        flex-direction: column;
    }

    .mdc-simple-roofing__steps li::before {
        margin-bottom: 10px;
    }
}

/* =====================================
   MDC – FINAL ESTIMATE SECTION
===================================== */

.mdc-final-estimate {
    background: #fff9f9;
    padding: 90px 20px;
}

.mdc-final-estimate__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left text */
.mdc-final-estimate__content h2 {
    font-size: 2.3rem;
    color: #222;
    margin-bottom: 20px;
}

.mdc-final-estimate__content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    max-width: 500px;
}

/* Right form wrapper (no form styling) */
.mdc-final-estimate__form {
    display: flex;
    justify-content: center;
}






/* Mobile */
@media (max-width: 900px) {
    .mdc-final-estimate__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mdc-final-estimate__content {
        text-align: center;
    }

    .mdc-final-estimate__content p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* =====================================
   GLOBAL MOBILE FIXES
===================================== */
@media (max-width: 768px) {

    /* ===== GENERAL ===== */
    body {
        overflow-x: hidden;
    }

    /* ===== DIVIDERS (prevent overflow) ===== */
    .hero-title::after,
    .mdc-roofing-importance__divider,
    .mdc-roof-types-split__divider,
    .mdc-simple-roofing__divider {
        width: 100% !important;
        max-width: 280px;
    }

    /* ===== HERO SECTION ===== */
    .hero {
        padding: 40px 20px;
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-image-box img {
        height: 220px;
    }

    /* ===== HERO FORM ===== */
    .hero-form {
        padding: 30px 25px;
    }

    .hero-form h2 {
        font-size: 20px;
    }

    /* ===== IMPORTANCE SECTION ===== */
    .mdc-roofing-importance {
        padding: 60px 20px;
    }

    .mdc-roofing-importance__text {
        font-size: 16px;
    }

    /* ===== ROOF TYPES SPLIT ===== */
    .mdc-roof-types-split {
        padding: 60px 20px;
    }

    .mdc-roof-types-split__title {
        font-size: 28px;
    }

    .mdc-roof-types-split__row {
        margin-bottom: 50px;
    }

    /* REMOVE OVERLAP ON MOBILE */
    .mdc-roof-types-split__text {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 28px;
    }

    .mdc-roof-types-split__image img {
        height: 220px;
    }

    /* ===== SIMPLE ROOFING PROCESS ===== */
    .mdc-simple-roofing {
        padding: 60px 20px;
    }

    .mdc-simple-roofing__steps li {
        gap: 15px;
    }

    .mdc-simple-roofing__steps p {
        font-size: 15px;
    }

    /* ===== FINAL ESTIMATE SECTION ===== */
    .mdc-final-estimate {
        padding: 60px 20px;
    }

    .mdc-final-estimate__content h2 {
        font-size: 28px;
    }

    .mdc-final-estimate__content p {
        max-width: 100%;
        font-size: 16px;
    }

    /* ===== WHY MDC ===== */
    .why-mdc {
        padding: 60px 20px;
    }

    .why-content h2 {
        font-size: 28px;
    }

    .why-content p {
        font-size: 16px;
    }

    /* ===== SERVICES CARDS ===== */
    .service-card {
        width: 100%;
        max-width: 320px;
    }

    /* ===== FOOTER ===== */
    .footer-container {
        padding: 0 20px;
        gap: 30px;
    }

    .footer-social {
        margin-top: 40px;
    }
}


/* =====================================
   MOBILE HAMBURGER MENU
===================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background: #bb0000;
    border-radius: 2px;
}

/* Mobile only */
@media (max-width: 768px) {

    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop nav */
    .main-nav {
        display: none;
    }

    /* Mobile nav open state */
    .main-nav.mobile-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(to bottom, #c40000, #a30000);
        z-index: 9999;
    }

    .main-nav ul {
        flex-direction: column;
    }

    .main-nav li {
        border-top: 1px solid rgba(255,255,255,0.15);
    }

    .main-nav a {
        padding: 16px 0;
        font-size: 16px;
    }
}

/* =====================================
   FINAL RESPONSIVE ESTIMATE BUTTON LOGIC
===================================== */

/* DESKTOP DEFAULT */
.btn-estimate {
    display: inline-block;
}

.mobile-menu-toggle {
    display: none;
}

.mobile-estimate {
    display: none;
}

/* MOBILE BEHAVIOR */
@media (max-width: 768px) {

    /* Hide top-right estimate button */
    .btn-estimate {
        display: none;
    }

    /* Show hamburger */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile menu estimate (inside nav) */
    .mobile-estimate {
        display: block;
        padding: 18px;
        background: #ffffff;
    }

    .mobile-estimate-btn {
        display: block;
        width: 100%;
        text-align: center;
        background: #bb0000;
        color: #ffffff;
        padding: 14px 0;
        font-size: 16px;
        font-weight: bold;
        border-radius: 6px;
        text-decoration: none;
    }

    .mobile-estimate-btn:hover {
        background: #9a0000;
    }
}
/* =====================================
   CLEAN MOBILE NAVBAR (UNIFIED RED)
===================================== */

@media (max-width: 768px) {

    /* Entire mobile nav background */
    .main-nav {
        background: linear-gradient(to bottom, #c40000, #a30000);
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    /* Menu items */
    .main-nav li {
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .main-nav a {
        padding: 18px 0;
        font-size: 16px;
        background: transparent;
    }

    /* Remove white hover blocks */
    .main-nav a:hover {
        background: rgba(255,255,255,0.1);
    }

    /* ===============================
       MOBILE ESTIMATE BUTTON (CLEAN)
    =============================== */

    .mobile-estimate {
        background: transparent;
        padding: 20px;
        border-top: 1px solid rgba(255,255,255,0.2);
    }

    .mobile-estimate-btn {
        background: #ffffff;
        color: #bb0000;
        padding: 16px 0;
        border-radius: 6px;
        font-size: 17px;
        font-weight: 700;
        text-align: center;
        display: block;
        width: 100%;
    }

    .mobile-estimate-btn:hover {
        background: #f2f2f2;
    }
}

/* =====================================
   MOBILE FORM FIXES (SAFE OVERRIDES)
===================================== */

@media (max-width: 768px) {
    .hero-form {
        width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        margin: 0 auto;
    }

    /* Reduce label spacing */
    .hero-form label {
        font-size: 13px;
        margin-top: 12px;
        margin-bottom: 4px;
    }

    .hero-form input,
    .hero-form select,
    .hero-form textarea,
    .hero-form button {
        width: 100%;
        max-width: 100%;
    }

    .hero-form textarea {
        height: 110px;
    }

    /* Button fits nicely */
    .hero-form button {
        padding: 15px;
        font-size: 15px;
        border-radius: 6px;
    }

    /* Remove any side overflow */
    .hero-container,
    .mdc-final-estimate__form {
        padding-left: 0;
        padding-right: 0;
    }
}

/* =====================================
   GUTTER IMPORTANCE SECTION (MOBILE)
===================================== */
@media (max-width: 768px) {

    .mdc-gutter-install-importance {
        padding: 60px 20px;
    }

    .mdc-gutter-install-importance__title {
        font-size: 1.6rem;
    }

    .mdc-gutter-install-importance__divider {
        width: 100%;
        max-width: 280px;
    }

    .mdc-gutter-install-importance__text {
        font-size: 1rem;
        line-height: 1.6;
    }
}


@media (max-width: 768px) {

    .mdc-gutter-importance {
        padding: 60px 20px;
    }

    .mdc-gutter-importance__title {
        font-size: 1.6rem;
    }

    .mdc-gutter-importance__divider {
        width: 100%;
        max-width: 280px;
    }

    .mdc-gutter-importance__text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* =====================================
   GUTTER TYPES SECTION (MOBILE)
===================================== */
@media (max-width: 900px) {
  .mdc-gutter-services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .mdc-gutter-services__grid {
    grid-template-columns: 1fr;
  }

  .gutter-card {
    height: 230px;
  }
}

/* =====================================
   GUTTER INSTALLATION PROCESS (MOBILE)
===================================== */
@media (max-width: 900px) {
  .mdc-gutter-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .mdc-gutter-card.reverse {
    direction: ltr;
  }

  .mdc-gutter-card__image img {
    height: 240px;
  }
}

/* =====================================
   Our Simple Gutter Process (MOBILE)
===================================== */
@media (max-width: 768px) {

  .mdc-simple-gutter {
    padding: 60px 20px;
  }

  .mdc-simple-gutter__divider {
    width: 100%;
    max-width: 280px;
  }

  .mdc-simple-gutter__steps li {
    flex-direction: column;
    gap: 12px;
  }

  .mdc-simple-gutter__steps li::before {
    margin-bottom: 6px;
  }
}

@media (max-width: 768px) {
  .mdc-simple-gutter__steps li::before {
    margin-bottom: 8px;
  }
}

/* MOBILE */
@media (max-width: 900px) {
  .mdc-gutter-final__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mdc-gutter-final__content {
    text-align: center;
  }

  .mdc-gutter-final__divider {
    margin-left: auto;
    margin-right: auto;
  }
}


@media (max-width: 768px) {

    .call-now {
        font-size: 14px;        /* smaller so it fits */
        white-space: nowrap;   /* 🔑 prevents wrapping */
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .call-now i {
        font-size: 14px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {

    body {
        padding-top: 40px;   /* match mobile header height */
    }

    /* FORCE the white bar to be smaller */
    .top-bar {
        height: 52px;          /* 🔑 controls the white box size */
        padding: 0 12px;       /* remove vertical padding */
        display: flex;
        align-items: center;
    }

    /* Logo */
    .logo {
        height: 38px;
        max-height: 100%;
        display: block;
    }

    /* Phone text */
    .call-now {
        font-size: 13px;
        line-height: 1;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .call-now i {
        font-size: 13px;
        line-height: 1;
        flex-shrink: 0;
    }

    /* Hamburger */
    .menu-toggle,
    .hamburger {
        height: 100%;
        display: flex;
        align-items: center;
    }
}

/* ===============================
   COMMERCIAL ROOFING – MOBILE
   =============================== */

@media (max-width: 900px) {

    /* HERO SECTION */
    .commercial-hero {
        padding: 50px 15px;
        text-align: center;
    }

    .commercial-hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .commercial-hero p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* SERVICES SECTION */
    .commercial-services {
        margin: 40px auto;
        padding: 0 15px;
    }

    .commercial-service {
        padding: 25px;
        margin-bottom: 25px;
        border-radius: 8px;
    }

    .commercial-service h2 {
        font-size: 22px;
    }

    .commercial-service p {
        font-size: 15px;
        line-height: 1.6;
    }

    .commercial-service ul {
        padding-left: 18px;
    }

    .commercial-service li {
        font-size: 15px;
    }

    /* CTA SECTION */
    .commercial-cta {
        padding: 50px 15px;
    }

    .commercial-cta h2 {
        font-size: 24px;
    }

    .commercial-cta p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* BUTTONS */
    .commercial-hero .btn-estimate,
    .commercial-cta .btn-estimate {
        display: inline-block;
        width: 100%;
        max-width: 320px;
        padding: 14px;
        font-size: 16px;
        margin-top: 15px;
    }
}

@media (max-width: 900px) {

    .section-header {
        flex-direction: column;
        gap: 12px;
    }

    .section-divider {
        width: 50px;
    }

    .section-header h2 {
        font-size: 26px;
    }

    .service-with-image,
    .service-with-image.reverse {
        flex-direction: column;
    }

    .service-image img {
        margin-bottom: 20px;
    }

    .service-content h3 {
        font-size: 22px;
    }
}

@media (max-width: 900px) {
    .section-header h2 {
        font-size: 26px;
    }

    .section-divider {
        width: 60px;
    }
}

@media (max-width: 900px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .commercial-why {
        padding: 60px 15px;
    }
}

/* ===== MOBILE DROPDOWN FIX (full width to the sides) ===== */
@media (max-width: 768px) {

  /* make sure the nav list touches the edges */
  .main-nav ul {
    margin: 0(accounts);
    padding: 0;
    width: 100%;
  }

  .main-nav ul li {
    width: 100%;
    margin: 0;
  }

  /* dropdown should not float on mobile */
  .nav-dropdown .dropdown-menu {
    position: static;          /* IMPORTANT: no absolute on mobile */
    width: 100%;
    min-width: 0;              /* remove 287px min-width */
    left: auto;
    right: auto;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
  }

  /* links inside dropdown: full width, clean padding */
  .nav-dropdown .dropdown-menu li a {
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
  }
}

