/* =========================================================
   NEXT LEVEL RENOVATIONS & SERVICES
   RESPONSIVE.CSS

   1180px -  = SMALL LAPTOP
   1100px -  = TABLET / SMALL LAPTOP (stacked layouts)
    900px -  = TABLET PORTRAIT (menu button)
    600px -  = PHONE
    360px -  = VERY SMALL PHONES
   ========================================================= */


/* =========================================================
   DEFAULT
   ========================================================= */

.mobile-form-progress,
.mobile-form-buttons {
  display: none;
}


/* =========================================================
   SMALL LAPTOP
   ========================================================= */

@media (max-width: 1180px) {

  .header-inner {
    gap: 22px;
  }

  .desktop-nav {
    gap: 20px;
  }

  .header-phone {
    display: none;
  }

  /* The side panel would cover the photo subjects at this width */
  .hero-side {
    display: none;
  }

  .hero-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2em;
  }

  .hero-tagline::before {
    content: "";
    width: 28px;
    height: 2px;
    background: white;
  }
}


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 1100px) and (min-width: 601px) {

  /* HERO */

  .hero-shade {
    background:
      linear-gradient(
        90deg,
        rgba(3, 18, 29, .94) 0%,
        rgba(4, 25, 41, .82) 42%,
        rgba(5, 28, 45, .38) 75%,
        rgba(5, 28, 45, .18) 100%
      );
  }

  .hero-bg {
    background-position: 62% center;
  }

  .trust-item {
    padding: 0 12px;
    gap: 9px;
  }

  .trust-item svg {
    width: 21px;
    height: 21px;
    flex-shrink: 0;
  }

  /* SERVICES */

  .services-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .services-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 30px;
  }

  .services-intro .eyebrow,
  .services-intro h2,
  .services-intro > p:not(.eyebrow) {
    grid-column: 1;
  }

  .services-intro .btn {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    margin-bottom: 22px;
  }

  .service-scroll {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .service-photo {
    height: 150px;
  }

  .service-info span {
    font-size: 12px;
  }

  /* PROJECTS */

  .projects-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .projects-intro {
    max-width: 560px;
  }

  .projects-intro h2 br {
    display: none;
  }

  .project-card {
    flex-basis: calc((100% - 14px) / 2);
  }

  .slider-arrow.left {
    left: -12px;
  }

  .slider-arrow.right {
    right: -12px;
  }

  /* PROCESS */

  .process-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
  }

  .process-item {
    padding: 5px 18px 5px 0;
  }

  .process-item:nth-child(2n) {
    border-right: 0;
    padding-left: 18px;
  }

  .process-item:nth-child(2n + 1) {
    padding-left: 0;
  }

  .process-item h3 {
    font-size: 15px;
  }

  .process-item p {
    font-size: 13px;
  }

  .why-card {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .why-card ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
  }

  .why-card li {
    font-size: 13px;
  }

  /* ESTIMATE */

  .estimate-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .estimate-copy {
    padding-top: 0;
  }

  .estimate-copy h2 br {
    display: none;
  }

  .contact-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 24px;
  }

  /* FOOTER */

  .footer-top {
    flex-wrap: wrap;
    gap: 22px 40px;
    padding: 26px 0;
  }

  .footer-nav {
    flex-wrap: wrap;
    margin-left: 0;
  }
}


/* =========================================================
   TABLET PORTRAIT — MENU BUTTON
   ========================================================= */

@media (max-width: 900px) {

  .desktop-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .menu-button svg {
    width: 24px;
    height: 24px;
  }

  .mobile-menu {
    flex-direction: column;
    padding: 4px 24px 16px;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

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

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 3px;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .mobile-menu a[aria-current="page"] {
    color: white;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
  }

  .trust-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .trust-item svg {
    display: none;
  }
}


/* =========================================================
   PHONE
   ========================================================= */

@media (max-width: 600px) {


  /* =======================================================
     GENERAL
     ======================================================= */

  .container {
    width: calc(100% - 32px);
    max-width: none;
  }

  .eyebrow {
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: .18em;
  }

  .btn {
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 5px;
  }

  .btn svg {
    width: 16px;
    height: 16px;
  }


  /* =======================================================
     HEADER
     ======================================================= */

  .header-inner {
    height: 64px;
    min-height: 64px;
  }

  .brand {
    display: flex;
    align-items: center;
  }

  .brand img {
    width: 150px;
    max-width: 150px;
    max-height: 44px;
  }

  .header-estimate,
  .header-phone {
    display: none !important;
  }

  .mobile-menu {
    padding: 4px 16px 16px;
  }


  /* =======================================================
     HERO — photo on top, copy below on navy
     ======================================================= */

  .hero {
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--navy-dark);
  }

  .hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 62vh;
    background-size: cover;
    background-position: 64% 30%;
  }

  .hero-shade {
    display: none;
  }

  .hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(
        180deg,
        rgba(7, 28, 45, 0) 50%,
        rgba(7, 28, 45, .7) 84%,
        var(--navy-dark) 100%
      );
  }

  .hero-layout {
    width: calc(100% - 32px);
    min-height: 0;
    margin: -34px auto 0;
    display: block;
    padding: 0 0 34px;
  }

  .hero-copy {
    width: 100%;
    padding: 0;
  }

  .hero-copy .eyebrow {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, .8);
    font-size: 10px;
    letter-spacing: .16em;
  }

  .hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 12.5vw, 54px);
    line-height: .93;
    letter-spacing: -.045em;
  }

  .hero-description {
    max-width: none;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
  }

  .hero-tagline {
    margin-top: 24px;
    font-size: 10px;
    letter-spacing: .16em;
  }

  .hero-side {
    display: none !important;
  }

  .trust-bar {
    position: relative;
    min-height: 0;
    padding: 6px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, .1);
  }

  .trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .trust-item,
  .trust-item:first-child {
    min-height: 54px;
    padding: 10px 0;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .trust-item svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .trust-item strong {
    font-size: 13px;
  }

  .trust-item span {
    font-size: 12px;
  }

  .trust-item.trust-last {
    grid-column: 1 / -1;
    border-bottom: 0;
  }


  /* =======================================================
     SERVICES
     ======================================================= */

  .services-section {
    padding: 44px 0;
  }

  .services-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .services-intro h2 {
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -.025em;
  }

  .services-intro > p:not(.eyebrow) {
    margin: 12px 0 18px;
    font-size: 15px;
    line-height: 1.55;
  }

  .service-scroll {
    width: calc(100% + 16px);
    margin-right: -16px;
    display: grid;
    grid-template-columns: repeat(6, 168px);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 4px 0;
  }

  .service-scroll::-webkit-scrollbar {
    display: none;
  }

  .service-card {
    scroll-snap-align: start;
    border-radius: 5px;
    overflow: hidden;
  }

  .service-photo {
    height: 120px;
  }

  .service-info {
    min-height: 56px;
    gap: 8px;
    padding: 10px;
  }

  .service-info svg {
    width: 17px;
    height: 17px;
  }

  .service-info span {
    font-size: 13px;
  }


  /* =======================================================
     PROJECTS
     ======================================================= */

  .projects-section {
    padding: 44px 0;
  }

  .projects-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .projects-intro h2 {
    font-size: 30px;
    line-height: 1.02;
  }

  .projects-intro h2 br {
    display: none;
  }

  .projects-intro > p:not(.eyebrow) {
    margin: 12px 0 18px;
    font-size: 15px;
    line-height: 1.55;
  }

  .projects-track {
    width: calc(100% + 16px);
    margin-right: -16px;
    gap: 12px;
    padding-right: 16px;
    scroll-padding-left: 0;
  }

  .project-card {
    flex: 0 0 82%;
  }

  .project-info {
    padding: 14px;
  }

  .project-info h3 {
    font-size: 15px;
  }

  .project-info span {
    font-size: 13px;
  }

  .slider-arrow {
    display: none !important;
  }


  /* =======================================================
     PROCESS
     ======================================================= */

  .process-section {
    padding: 44px 0;
  }

  .process-title {
    margin-bottom: 22px;
  }

  .process-title h2 {
    font-size: 28px;
    line-height: 1.08;
  }

  .process-content {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .process-item {
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .process-item:first-child {
    padding-top: 0;
  }

  .process-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .process-icon {
    flex: 0 0 42px;
    height: 42px;
  }

  .process-icon svg {
    width: 19px;
    height: 19px;
  }

  .process-item span {
    font-size: 11px;
  }

  .process-item h3 {
    margin: 1px 0 2px;
    font-size: 16px;
  }

  .process-item p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  .why-card {
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .why-card h3 {
    font-size: 20px;
  }

  .why-card li {
    margin: 10px 0;
    font-size: 14px;
  }

  .why-card li svg {
    width: 17px;
    height: 17px;
  }


  /* =======================================================
     ESTIMATE SECTION
     ======================================================= */

  .estimate-section {
    padding: 44px 0;
  }

  .estimate-section::before {
    width: 260px;
    height: 260px;
    left: -110px;
    opacity: .03;
  }

  .estimate-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .estimate-copy {
    padding: 0;
  }

  .estimate-copy h2 {
    font-size: 34px;
    line-height: 1.02;
  }

  .estimate-copy > p:not(.eyebrow) {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.55;
  }

  .contact-list {
    gap: 12px;
    margin-top: 20px;
  }

  .contact-list a,
  .contact-list span {
    gap: 10px;
    font-size: 15px;
    word-break: break-word;
  }

  .contact-list svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .estimate-form {
    padding: 22px 18px;
    border-radius: 6px;
  }

  .form-heading {
    margin-bottom: 18px;
  }

  .form-heading > span {
    display: none;
  }

  .form-heading h3 {
    font-size: 22px;
    line-height: 1.15;
  }

  .form-heading p {
    margin-top: 6px;
    font-size: 14px;
  }

  .estimate-offer {
    font-size: 14px;
  }


  /* PROGRESS */

  .mobile-form-progress {
    display: block;
    margin-bottom: 18px;
  }

  .mobile-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }

  #mobileStepText {
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
  }

  #mobileStepName {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
  }

  .mobile-progress-track {
    width: 100%;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e9ed;
  }

  .mobile-progress-bar {
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: var(--navy);
    transition: width .25s ease;
  }


  /* FORM STEPS */

  #estimateForm .form-grid {
    display: block;
  }

  #estimateForm .form-grid > .field[data-step] {
    display: none;
  }

  #estimateForm .form-grid > .field[data-step].mobile-step-active {
    display: block;
  }

  #estimateForm .field[data-step].mobile-step-active ~ .field[data-step].mobile-step-active {
    margin-top: 16px;
  }

  #estimateForm .field label {
    margin-bottom: 6px;
    font-size: 13px;
  }

  /* 16px prevents iOS from zooming into focused fields */
  #estimateForm .field input,
  #estimateForm .field select {
    height: 50px;
    padding: 0 12px;
    font-size: 16px;
  }

  #estimateForm .field textarea {
    min-height: 120px;
    padding: 12px;
    font-size: 16px;
    line-height: 1.45;
  }

  .field-hint {
    font-size: 12px;
  }

  #estimateForm .field .attachment-button {
    display: inline-flex;
    margin-bottom: 0;
    width: 100%;
    justify-content: center;
    min-height: 50px;
    font-size: 15px;
  }

  .attachment-text strong {
    font-size: 14px;
  }

  .attachment-text small,
  .attachment-error {
    font-size: 13px;
  }

  .attachment-remove {
    position: relative;
    width: 40px;
    height: 40px;
  }

  /* 44 px touch area without changing the 40 px look */
  .attachment-remove::after {
    content: "";
    position: absolute;
    inset: -2px;
  }

  .field-error {
    font-size: 13px;
  }

  #estimateSubmit {
    display: none !important;
  }

  .mobile-form-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
  }

  .mobile-form-buttons button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 700;
  }

  .mobile-form-buttons button svg {
    width: 16px;
    height: 16px;
  }

  .mobile-back-btn {
    flex: 0 0 96px;
    border: 1px solid #ccd3da;
    background: white;
    color: var(--navy-dark);
  }

  .mobile-next-btn {
    flex: 1;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: white;
  }

  .mobile-back-btn:disabled {
    opacity: .35;
    cursor: default;
  }

  .form-status {
    margin-top: 12px;
    font-size: 14px;
  }


  /* =======================================================
     FOOTER
     ======================================================= */

  .footer-top {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    padding: 30px 0 22px;
    gap: 22px;
  }

  .footer-logo {
    width: 160px;
  }

  .footer-nav {
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
  }

  .footer-nav a {
    font-size: 14px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 12px;
  }

  .footer-contact a,
  .footer-contact span {
    font-size: 14px;
    word-break: break-word;
  }

  .footer-bottom {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 0 24px;
    font-size: 12px;
    line-height: 1.5;
  }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

  .container,
  .hero-layout {
    width: calc(100% - 24px);
  }

  .brand img {
    width: 136px;
  }

  .service-scroll,
  .projects-track {
    width: calc(100% + 12px);
    margin-right: -12px;
    padding-right: 12px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .services-intro h2,
  .process-title h2,
  .projects-intro h2 {
    font-size: 26px;
  }

  .estimate-copy h2 {
    font-size: 30px;
  }

  .estimate-form {
    padding: 18px 14px;
  }

  .mobile-step-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  #mobileStepName {
    text-align: left;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .projects-track {
    scroll-behavior: auto;
  }

  .btn,
  .project-image > img {
    transition: none;
  }
}


/* =========================================================
   DESIGN PARTNERS LINK — header fit (added 14 Oct 2026)
   The main menu has one more item. Keep every item on one
   line; between 901 and 979 px use the same menu button the
   site already shows below 901 px.
   ========================================================= */

@media (min-width: 901px) {

  .desktop-nav a,
  .header-estimate {
    white-space: nowrap;
  }
}

@media (min-width: 980px) and (max-width: 1100px) {

  .header-inner {
    gap: 16px;
  }

  .desktop-nav {
    gap: 14px;
  }
}

@media (min-width: 1181px) and (max-width: 1240px) {

  .desktop-nav {
    gap: 22px;
  }
}

@media (min-width: 901px) and (max-width: 979px) {

  .desktop-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .menu-button svg {
    width: 24px;
    height: 24px;
  }

  .mobile-menu {
    flex-direction: column;
    padding: 4px 24px 16px;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }

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

  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 3px;
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .mobile-menu a[aria-current="page"] {
    color: white;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
  }
}
