* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Page canvas = footer colour. iPhone (bounce past the end and the
     strip under the iOS 26+ floating toolbar) and short pages paint
     the canvas below the footer; with a white canvas that looked like
     an empty white page after the footer. The body stays white. */
  background-color: var(--navy-deep);
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.eyebrow {
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  margin-bottom: 10px;
}

.eyebrow.light {
  color: rgba(255, 255, 255, .85);
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
  transition:
    background .2s ease,
    color .2s ease,
    border .2s ease,
    transform .2s ease;
}

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

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.desktop-nav a:focus-visible,
.mobile-menu a:focus-visible,
.footer-nav a:focus-visible {
  outline: 2px solid #8fb4d3;
  outline-offset: 3px;
}

.btn-navy:hover {
  background: var(--navy-soft);
}

.btn-white {
  background: white;
  color: var(--navy-dark);
  border-color: white;
}

.btn-outline-white {
  color: white;
  border-color: rgba(255, 255, 255, .7);
  background: rgba(6, 23, 36, .18);
}

.btn-navy {
  color: white;
  background: var(--navy);
}


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

.site-header {
  position: relative;
  z-index: 100;
  background: var(--navy-dark);
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  flex-shrink: 0;
}

.brand img {
  width: 220px;
  max-height: 57px;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  font-size: 12px;
  color: rgba(255, 255, 255, .85);
  padding: 32px 0 28px;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: white;
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  height: 2px;
  background: white;
  left: 0;
  right: 0;
  bottom: 21px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-estimate {
  background: white;
  color: var(--navy-dark);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
}

.header-phone svg {
  width: 17px;
}

.menu-button {
  display: none;
  color: white;
  border: 0;
  background: transparent;
}

.mobile-menu {
  display: none;
}


/* ============================================================
   HERO
============================================================ */

.hero {
  min-height: 590px;
  position: relative;
  color: white;
  background: var(--navy-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("../assets/images/hero-main.jpg")
    center center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0 0 92px;
  background:
    linear-gradient(
      90deg,
      rgba(3, 18, 29, .93) 0%,
      rgba(4, 25, 41, .80) 30%,
      rgba(5, 28, 45, .35) 63%,
      rgba(5, 28, 45, .14) 100%
    );
}

.hero-layout {
  /* static so .hero-side anchors to the hero's right edge */
  position: static;
  min-height: 498px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 490px;
  max-width: 100%;
  padding: 55px 0;
}

.hero-copy h1 {
  font-family: var(--font-heading);
  font-size: clamp(54px, 5vw, 75px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 800;
  margin-bottom: 22px;
}

.hero-description {
  max-width: 485px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.hero-side {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 92px;
  width: 250px;
  padding: 0 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(
    90deg,
    rgba(7, 28, 45, .10) 0%,
    rgba(7, 28, 45, .72) 100%
  );
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero-side strong {
  font-family: var(--font-heading);
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: .05em;
}

.hero-side > span {
  width: 35px;
  height: 3px;
  background: white;
  margin: 22px 0;
}

.hero-side small {
  font-size: 11px;
  letter-spacing: .27em;
}

.hero-tagline {
  display: none;
}

.trust-bar {
  position: absolute;
  z-index: 4;
  bottom: 0;
  left: 0;
  width: 100%;
  min-height: 92px;
  display: flex;
  align-items: center;
  background: rgba(5, 27, 44, .98);
}

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

.trust-item {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, .13);
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  border: 0;
}

.trust-item svg {
  width: 25px;
  height: 25px;
}

.trust-item strong,
.trust-item span {
  display: block;
}

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

.trust-item span {
  font-size: 10px;
  color: rgba(255, 255, 255, .72);
}


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

.services-section {
  padding: 58px 0;
  background: white;
}

.services-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 42px;
  align-items: center;
}

.services-intro h2 {
  font-family: var(--font-heading);
  color: var(--navy-dark);
  font-size: 30px;
  line-height: 1.08;
}

.services-intro h2 span {
  display: block;
}

.services-intro > p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 13px;
  margin: 14px 0 22px;
}

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

.service-card {
  border: 1px solid var(--border);
  background: white;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}

.service-photo {
  height: 120px;
  overflow: hidden;
}

.service-card[data-has-gallery="false"] {
  cursor: default;
}

.placeholder-photo {
  background:
    linear-gradient(135deg, #e4e8eb, #f7f8f9);
}

.service-info {
  min-height: 62px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--navy-dark);
}

.service-info svg {
  width: 18px;
  min-width: 18px;
}

.service-info span {
  font-size: 10px;
  line-height: 1.2;
  font-weight: 700;
}


/* ============================================================
   PROJECTS — CORRECTED
============================================================ */

.projects-section {
  padding: 52px 0;
  color: white;
  background: var(--navy-dark);
}

.projects-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 40px;
  align-items: center;
}

.projects-intro h2 {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.03;
}

.projects-intro > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .70);
  font-size: 12px;
  margin: 14px 0 20px;
}

.projects-wrapper {
  position: relative;
  min-width: 0;
}

.projects-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  align-items: stretch;
}

.projects-track::-webkit-scrollbar {
  display: none;
}

.project-card {
  position: relative;
  flex: 0 0 calc((100% - 28px) / 3);
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .16);
  overflow: hidden;
  cursor: pointer;
}

/*
  FIX:
  Keep the photo inside the original 175px image area.
*/

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(255, 255, 255, .4);
  background: var(--navy-soft);
}

.project-image > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.project-image svg {
  width: 40px;
  height: 40px;
}

.project-info {
  position: relative;
  flex: 1 0 auto;
  width: 100%;
  padding: 13px;
}

.project-info h3 {
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.project-info span {
  color: rgba(255, 255, 255, .65);
  font-size: 11px;
}

.project-card:focus-visible {
  outline: 2px solid white;
  outline-offset: -2px;
}

.slider-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: white;
  color: var(--navy-dark);
}

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

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

.slider-arrow svg {
  width: 18px;
}

.slider-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.slider-arrow[hidden] {
  display: none;
}

.project-card:hover .project-image > img {
  transform: scale(1.03);
}

.project-image > img {
  transition: transform .4s ease;
}


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

.process-section {
  padding: 56px 0;
  background: var(--off-white);
}

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

.process-title h2 {
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 30px;
}

/* Approved estimate policy (Our Process + estimate form) */
.estimate-offer {
  margin-top: 10px;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.estimate-offer strong {
  display: block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.estimate-offer span {
  display: block;
  margin-top: 3px;
}

.form-heading .form-offer {
  margin-top: 8px;
}

.process-content {
  display: grid;
  grid-template-columns: 1fr 315px;
  gap: 42px;
  align-items: start;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.process-item {
  display: flex;
  gap: 13px;
  padding: 5px 20px;
  border-right: 1px solid var(--border);
}

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

.process-icon {
  flex: 0 0 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--navy);
}

.process-icon svg {
  width: 21px;
}

.process-item span {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.process-item h3 {
  color: var(--navy-dark);
  font-size: 13px;
}

.process-item p {
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 11px;
}

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

.why-card h3 {
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.why-card ul {
  list-style: none;
}

.why-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: var(--text-muted);
  font-size: 11px;
}

.why-card svg {
  width: 15px;
  color: var(--navy);
}


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

.estimate-section {
  padding: 70px 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 24, 39, .98),
      rgba(8, 43, 70, .95)
    );
  color: white;
}

.estimate-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.estimate-copy {
  padding-top: 25px;
}

.estimate-copy h2 {
  font-family: var(--font-heading);
  font-size: 46px;
  line-height: 1.02;
}

.estimate-copy > p:not(.eyebrow) {
  max-width: 410px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .74);
  font-size: 14px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 35px;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.contact-list svg {
  width: 19px;
}

.estimate-form {
  padding: 35px;
  color: var(--text-dark);
  background: white;
  border-radius: 7px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .24);
}

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

.form-heading > span {
  color: var(--navy);
  font-size: 10px;
  letter-spacing: .2em;
  font-weight: 800;
}

.form-heading h3 {
  margin-top: 4px;
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 26px;
}

.form-heading p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 17px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-dark);
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfd7df;
  border-radius: 4px;
  outline: none;
  background: white;
  color: var(--text-dark);
  font-size: 13px;
  transition: border .2s, box-shadow .2s;
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.field textarea {
  resize: vertical;
  padding: 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(16, 42, 72, .08);
}

.upload-box {
  min-height: 86px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 15px;
  border: 1px dashed #aeb9c4;
  border-radius: 4px;
  cursor: pointer;
  background: #f8fafb;
}

.upload-box svg {
  width: 28px;
  color: var(--navy);
}

.upload-box strong,
.upload-box span {
  display: block;
}

.upload-box span {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 10px;
}

.btn-submit {
  width: 100%;
  margin-top: 22px;
  color: white;
  background: var(--navy);
  border-radius: 4px;
}

.form-status {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status.success,
.form-status.error {
  padding: 11px 13px;
  border-radius: 4px;
}

.form-status.success {
  color: #145c3c;
  background: #e8f6ef;
  border: 1px solid #bfe3cf;
}

.form-status.error {
  color: #8f1f1f;
  background: #fdeeee;
  border: 1px solid #f2c4c4;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c43b3b;
}

.field-hint {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
}

/* Message written under a field that needs a correction
   (same red as the existing error box). */
.field-error {
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: #8f1f1f;
  font-size: 12px;
  line-height: 1.4;
}

.field-error.is-note {
  color: var(--text-muted);
}

/* ---------- Attachments / Project Files ---------- */

.attachment-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

/* Visually hidden but still focusable / accessible */
.attachment-input,
.field input.attachment-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.field .attachment-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  background: white;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.field .attachment-button:hover {
  background: var(--navy);
  color: white;
}

.attachment-input:focus-visible + .attachment-button {
  outline: 2px solid #8fb4d3;
  outline-offset: 3px;
}

.attachment-button svg {
  width: 16px;
  height: 16px;
}

.attachment-picker .field-hint {
  margin-top: 0;
}

.attachment-error {
  overflow-wrap: anywhere;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #f2c4c4;
  border-radius: 4px;
  background: #fdeeee;
  color: #8f1f1f;
  font-size: 12px;
  line-height: 1.5;
}

.attachment-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dfe5eb;
  border-radius: 4px;
  background: #f8fafb;
}

.attachment-type {
  flex: 0 0 auto;
  min-width: 38px;
  padding: 5px 6px;
  border-radius: 3px;
  background: var(--navy);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-align: center;
}

.attachment-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.attachment-text strong {
  overflow: hidden;
  color: var(--navy-dark);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-text small {
  color: var(--text-muted);
  font-size: 11px;
}

.attachment-remove {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d3dae1;
  border-radius: 50%;
  background: white;
  color: var(--navy-dark);
  font-size: 18px;
  line-height: 1;
}

.attachment-remove:hover {
  border-color: #c43b3b;
  color: #c43b3b;
}

.attachment-remove:focus-visible {
  outline: 2px solid #8fb4d3;
  outline-offset: 2px;
}

.attachment-summary {
  color: var(--text-muted);
  font-size: 11px;
  text-align: right;
}

/* Spam trap — hidden from people, filled in by bots */
.estimate-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.estimate-form {
  position: relative;
}

.btn-submit:disabled,
.mobile-next-btn:disabled {
  opacity: .7;
  cursor: progress;
}


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

.site-footer {
  color: white;
  background: var(--navy-deep);
}

.footer-top {
  min-height: 115px;
  display: flex;
  align-items: center;
  gap: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-logo {
  width: 205px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.footer-nav a {
  font-size: 11px;
  color: rgba(255, 255, 255, .74);
}

.footer-nav a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 13px;
}

.social-links a {
  display: grid;
  place-items: center;
}

.social-links svg {
  width: 19px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.footer-contact a:hover {
  color: white;
}

.footer-contact svg {
  width: 15px;
  height: 15px;
}

.footer-bottom {
  gap: 16px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
}


/* ============================================================
   LOGO TRANSPARENTE DE FONDO — ESTIMATE
============================================================ */

.estimate-section {
  position: relative;
  overflow: hidden;
}

.estimate-section::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: 3%;
  top: 50%;
  transform: translateY(-50%);
  background:
    url("../assets/images/nl-mark-white.png")
    center / contain no-repeat;
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}

.estimate-section .container {
  position: relative;
  z-index: 1;
}


/* =========================================================
   SHARED UTILITIES (2026-10 update)
   ========================================================= */

/* The hidden attribute must always win, even over component
   rules such as "display: flex" (used by Admin → Settings →
   Sections and by the Gallery page states). */
[hidden] {
  display: none !important;
}

/* Footer social links — rendered only when filled in Settings. */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-contact .footer-social a {
  gap: 6px;
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 600px) {
  .footer-social {
    width: 100%;
  }
}


/* =========================================================
   MISSING PHOTOS
   A photo that cannot be loaded shows a clean placeholder
   (see js/image-fallback.js) instead of a broken-image icon.
   ========================================================= */

img.nl-img-missing {
  object-fit: cover;
  background: #e9eef3;
}
