/*
  Layout wrapper shared by every header/section/footer:
  <header|section|footer> > .container > .header|section|footer-inner > content
  First breakpoint (1400px) = max-width 1340 + 30 + 30 padding.
*/
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;

  @media (max-width: 767px) {
    padding: 0 18px;
  }
}

.section-light {
  background: var(--color-background-2);
  color: var(--color-text-dark);
}

.eyebrow-dark {
  color: var(--color-muted-dark);
}

/* Section title block: heading left, intro right, bottom-aligned */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;

  @media (max-width: 767px) {
    margin-bottom: 36px;
  }
}

.section-head h2,
.solar-content h2,
.faq-head h2,
.contact-info h2,
.approach-title {
  max-width: 820px;
  font-size: 84px;
  line-height: 0.95;

  @media (max-width: 1400px) {
    font-size: 72px;
  }

  @media (max-width: 1024px) {
    font-size: 54px;
  }

  @media (max-width: 767px) {
    font-size: 42px;
  }
}

.section-head p {
  max-width: 380px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-muted-2);
}

.section-light .section-head p {
  color: var(--color-muted-dark);
}

/* Five-colour brand divider */
.rainbow-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 10px;
}

.rainbow-bar--thin {
  height: 6px;
}

.rainbow-bar span:nth-child(1) { background: var(--color-solar); }
.rainbow-bar span:nth-child(2) { background: var(--color-gas); }
.rainbow-bar span:nth-child(3) { background: var(--color-air); }
.rainbow-bar span:nth-child(4) { background: var(--color-water); }
.rainbow-bar span:nth-child(5) { background: var(--color-boiler); }

/* Colour dot + mono label */
.tag-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.tag-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--dot);
}

/* ==========================================================================
   HEADER
   Fixed + frosted. The blur lives on ::before so .site-header doesn't become
   the containing block for the fixed mobile drawer (CONVENTIONS §19).
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(243, 241, 235, 0.08);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 16, 13, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

main {
  padding-top: var(--header-height, 82px);
}

html {
  scroll-padding-top: var(--header-height, 82px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding-top 0.3s ease, padding-bottom 0.3s ease;
}

.site-header.is-scrolled .header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.logo img {
  width: 36px;
  height: 36px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-line {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-line-muted {
  font-weight: 400;
  color: var(--color-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav > a {
  position: relative;
  font-size: 15px;
  color: var(--color-muted-2);
}

.nav > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--color-gas);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav > a:hover {
  color: var(--color-text);
}

.nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: none;
}

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

.header-phone,
.header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 18px;
  border-radius: 100px;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.header-phone {
  border: 1px solid rgba(243, 241, 235, 0.22);
  font-family: var(--font-mono);
}

.header-phone span {
  font-family: var(--font-mono);
  font-size: 14px;
}

.header-phone i {
  font-size: 16px;
}

.header-phone:hover {
  background: var(--color-main-2);
  border-color: var(--color-main-2);
  color: var(--color-text-dark);
}

.header-whatsapp {
  background: var(--color-solar);
  color: var(--color-text-dark);
  font-weight: 600;
}

.header-whatsapp span:not(.status-dot) {
  font-size: 14px;
  font-weight: 600;
}

.header-whatsapp:hover {
  background: var(--color-main-2);
  color: var(--color-text-dark);
}

.nav-overlay,
.nav-close {
  display: none;
}

@media (max-width: 1200px) {
  .nav {
    gap: 24px;
  }

  .header-phone {
    display: none;
  }
}

/* Mobile nav: full-height side drawer from the right (CONVENTIONS §20) */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex;
  }

  .header-whatsapp {
    display: none;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    width: min(420px, 90vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 30px 30px;
    background: var(--color-background);
    border-left: 1px solid rgba(243, 241, 235, 0.08);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.5s var(--ease-out-expo), visibility 0s linear 0.5s;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.5s var(--ease-out-expo), visibility 0s;
  }

  .nav-close {
    display: flex;
    align-self: flex-end;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    background: none;
    border: 1px solid rgba(243, 241, 235, 0.22);
    border-radius: 50%;
    font-size: 20px;
    color: var(--color-text);
    cursor: pointer;
  }

  .nav > a {
    padding: 18px 0;
    border-bottom: 1px solid rgba(243, 241, 235, 0.08);
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text);
  }

  .nav > a::after {
    display: none;
  }

  .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }

  .nav-actions .button {
    width: 100%;
  }

  .nav-status {
    text-align: center;
    font-size: 12px;
    color: var(--color-muted);
  }
}

@media (max-width: 420px) {
  .header-actions .lang-toggle {
    width: 84px;
  }

  .logo-line {
    font-size: 14px;
  }
}

/* Small phones (320-360px): logo + EN/ES + menu must still fit one row */
@media (max-width: 360px) {
  .header-inner {
    gap: 12px;
  }

  .logo {
    gap: 6px;
  }

  .logo img {
    width: 30px;
    height: 30px;
  }

  .logo-line {
    font-size: 13px;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .lang-toggle {
    width: 72px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* ----- Hero ----- */

.hero {
  padding-top: 120px;
  padding-bottom: 120px;
  overflow: hidden;

  @media (max-width: 1400px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 48px;
    padding-bottom: 60px;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 90px;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 36px;

  @media (max-width: 767px) {
    gap: 24px;
  }
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.hero h1 {
  font-size: 84px;
  line-height: 1.02;
  letter-spacing: -0.05em;

  @media (max-width: 1400px) {
    font-size: 72px;
  }

  @media (max-width: 767px) {
    font-size: 48px;
  }

  @media (max-width: 380px) {
    font-size: 42px;
  }
}

.hero h1 .line {
  display: block;
  font-size: inherit;
  line-height: inherit;
}

.hero-lede {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--color-muted-2);

  @media (max-width: 767px) {
    font-size: 17px;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;

  @media (max-width: 1024px) {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }
}

/* The brand mark, built from divs so each stripe can animate in */
.hero-mark {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
}

.mark-sun {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 49%;
  background: var(--color-solar);
}

.mark-stripe {
  position: absolute;
  left: 0;
  right: 0;
  height: 7%;
  background: var(--stripe);
}

.hero-coords {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-muted);
}

/* ----- Trust strip ----- */

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 30px;
  border-top: 1px solid rgba(243, 241, 235, 0.1);

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 30px 0;

  @media (max-width: 1024px) {
    padding: 24px 0;
    border-bottom: 1px solid rgba(243, 241, 235, 0.08);
  }
}

.trust-item:last-child {
  border-bottom: none;
}

.trust-num {
  font-size: 12px;
  color: var(--color-muted);
}

.trust-item .content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trust-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.trust-item p {
  font-size: 15px;
  color: var(--color-muted);
}

/* ----- Services ----- */

.services {
  padding-top: 150px;
  padding-bottom: 150px;

  @media (max-width: 1400px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-text-dark);
}

/* Hover/tap fills the row in its service colour from left to right */
.service-row {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-text-dark);
  cursor: pointer;
}

.service-fill {
  position: absolute;
  inset: 0;
  background: var(--svc);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-in-out);
}

.service-row.is-active .service-fill {
  transform: scaleX(1);
}

.service-body {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1.1fr) minmax(0, 1.2fr) 220px;
  align-items: center;
  gap: 18px 42px;
  padding: 30px 30px;
  transition: color 0.3s ease;

  @media (max-width: 1200px) {
    grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.3fr);
  }

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 12px;
  }
}

.service-num {
  font-size: 14px;
}

.service-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.service-dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--svc);
  transition: background-color 0.3s ease;
}

.service-title h3 {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.04em;

  @media (max-width: 1400px) {
    font-size: 48px;
  }

  @media (max-width: 767px) {
    font-size: 36px;
  }
}

.service-desc {
  font-size: 17px;
  line-height: 1.5;
}

.service-desc strong {
  font-weight: 600;
}

.service-tags {
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.85;

  @media (max-width: 1200px) {
    grid-column: 2 / -1;
  }

  @media (max-width: 767px) {
    grid-column: auto;
  }
}

.service-row.is-active .service-dot {
  background: var(--color-text-dark);
}

/* Water is the one dark fill - flip text to light on it */
.service-row--dark.is-active .service-body {
  color: var(--color-text);
}

.service-row--dark.is-active .service-dot {
  background: var(--color-text);
}

/* ----- Service calendar ----- */

.calendar {
  padding-top: 150px;
  padding-bottom: 150px;

  @media (max-width: 1400px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.calendar-scroll {
  overflow-x: auto;
  margin: 0 -30px;
  padding: 0 30px 12px;
  scrollbar-width: thin;

  @media (max-width: 767px) {
    margin: 0 -18px;
    padding: 0 18px 12px;
  }
}

.calendar-grid {
  min-width: 920px;
  display: flex;
  flex-direction: column;
}

.cal-row {
  display: grid;
  grid-template-columns: 210px repeat(12, minmax(0, 1fr));
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid rgba(243, 241, 235, 0.1);
}

.cal-head {
  border-top: none;
  padding-top: 0;
}

.cal-month {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.cal-month.is-now {
  color: var(--color-text);
}

.cal-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 12px;
}

.cal-label strong {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
}

.cal-label strong::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--svc);
}

.cal-label span {
  padding-left: 22px;
  font-size: 13px;
  color: var(--color-muted);
}

.cal-cell {
  height: 36px;
  border-radius: 3px;
  background: rgba(243, 241, 235, 0.05);
  transform-origin: bottom;
}

/* Mobile: no horizontal scroll - the label sits on its own line above a
   full-width strip of 12 month cells */
@media (max-width: 767px) {
  .calendar-scroll {
    overflow: visible;
    margin: 0;
    padding: 0;
  }

  .calendar-grid {
    min-width: 0;
  }

  .cal-row {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px 3px;
    padding: 18px 0;
  }

  .cal-head {
    padding: 0 0 6px;
  }

  .cal-head > span:first-child {
    display: none;
  }

  .cal-label {
    grid-column: 1 / -1;
    padding-right: 0;
  }

  .cal-month {
    font-size: 9px;
    letter-spacing: 0;
  }

  .cal-cell {
    height: 24px;
    border-radius: 2px;
  }

  .cal-cell.is-now {
    outline-offset: 1px;
  }
}

.cal-cell.is-on {
  background: var(--svc);
}

.cal-row--periodic .cal-cell {
  background: repeating-linear-gradient(90deg, rgba(244, 201, 27, 0.28) 0 2px, transparent 2px 8px);
}

.cal-cell.is-now {
  outline: 1px solid rgba(243, 241, 235, 0.7);
  outline-offset: 2px;
}

.calendar-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid rgba(243, 241, 235, 0.14);
}

.cal-now-key {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--color-muted);
}

.cal-now-key span {
  font-family: var(--font-mono);
  font-size: 12px;
}

.cal-now-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  outline: 1px solid var(--color-text);
  outline-offset: 2px;
}

.cal-cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-solar);
}

/* ----- Solar ----- */

.solar {
  background: var(--color-solar);
  color: var(--color-text-dark);
  padding-top: 150px;
  padding-bottom: 150px;

  @media (max-width: 1400px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.solar-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 90px;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.solar-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;

  @media (max-width: 1024px) {
    aspect-ratio: 4 / 3;
  }
}

.solar-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  transform: scale(1.08);
}

.solar-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.solar-content .eyebrow {
  color: var(--color-text-dark);
}

.solar-content h2 {
  font-size: 76px;

  @media (max-width: 1400px) {
    font-size: 64px;
  }

  @media (max-width: 1024px) {
    font-size: 54px;
  }

  @media (max-width: 767px) {
    font-size: 42px;
  }
}

.solar-lede {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.55;
}

.solar-steps {
  list-style: none;
  padding: 0;
  border-top: 1px solid rgba(15, 16, 13, 0.35);
}

.solar-steps li {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(15, 16, 13, 0.35);
  font-size: 18px;
  font-weight: 500;
}

.solar-steps li span {
  font-size: 18px;
  font-weight: 500;
}

.solar-steps li .mono {
  width: 24px;
  font-size: 13px;
  font-weight: 400;
  line-height: 2;
}

/* ----- Work ----- */

.work {
  padding-top: 150px;
  padding-bottom: 150px;

  @media (max-width: 1400px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;

  @media (max-width: 1024px) {
    grid-template-columns: repeat(2, 1fr);
  }

  @media (max-width: 480px) {
    grid-template-columns: 1fr;
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.work-media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: #1A1B17;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-expo), filter 0.6s ease;
  filter: saturate(0.9);
}

.work-card:hover .work-media img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.work-dot {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--svc);
  box-shadow: 0 0 0 4px rgba(15, 16, 13, 0.35);
}

.work-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.work-card figcaption span {
  font-size: 15px;
  line-height: 1.4;
}

.work-card figcaption .mono {
  flex: none;
  font-size: 12px;
  color: var(--color-muted);
}

/* ----- Approach ----- */

.approach {
  padding-top: 150px;
  padding-bottom: 150px;

  @media (max-width: 1400px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.approach-title {
  max-width: 900px;
  margin-bottom: 60px;

  @media (max-width: 767px) {
    margin-bottom: 36px;
  }
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(15, 16, 13, 0.18);
  border: 1px solid rgba(15, 16, 13, 0.18);

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
  }
}

.approach-step {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 42px 30px 48px;
  background: var(--color-background-2);
  transition: background-color 0.4s ease;

  @media (max-width: 1024px) {
    gap: 30px;
    padding: 30px 24px 36px;
  }
}

.approach-step:hover {
  background: var(--color-background-3);
}

.approach-step > .mono {
  font-size: 13px;
  color: var(--color-muted-dark);
}

.approach-step .content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.approach-step h3 {
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.approach-step p {
  color: var(--color-muted-dark);
  line-height: 1.55;
}

/* ----- FAQ ----- */

.faq {
  padding-top: 150px;
  padding-bottom: 150px;

  @media (max-width: 1400px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 90px;
  align-items: start;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.faq-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: calc(var(--header-height, 82px) + 30px);

  @media (max-width: 1024px) {
    position: static;
  }
}

.faq-head h2 {
  font-size: 76px;

  @media (max-width: 1400px) {
    font-size: 64px;
  }

  @media (max-width: 767px) {
    font-size: 42px;
  }
}

/* ----- Contact ----- */

.contact {
  padding-top: 150px;
  padding-bottom: 150px;

  @media (max-width: 1400px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-info h2 {
  font-size: 76px;

  @media (max-width: 1400px) {
    font-size: 60px;
  }

  @media (max-width: 767px) {
    font-size: 42px;
  }
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-status {
  margin-top: -12px;
  font-size: 13px;
  color: var(--color-muted-dark);
}

.contact-area {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--color-text-dark);
}

.contact-area p {
  max-width: 460px;
  font-size: 18px;
  line-height: 1.5;
}

.contact-form-box .row {
  gap: 30px 24px;
}

.chips {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chips legend {
  margin-bottom: 12px;
}

.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--color-text-dark);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.chip span {
  font-size: 15px;
  font-weight: 500;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--svc);
  outline: 1px solid rgba(15, 16, 13, 0.25);
}

.chip:hover {
  background: var(--color-background-3);
}

.chip:has(input:checked) {
  background: var(--color-text-dark);
  color: var(--color-text);
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--color-water);
  outline-offset: 2px;
}

.contact-button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.form-consent {
  font-size: 13px;
  color: var(--color-muted-dark);
}

.form-consent a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-consent a:hover {
  color: var(--color-water);
}

/* ----- Legal pages ----- */

.legal-page {
  background: var(--color-background-2);
  color: var(--color-text-dark);
  padding-top: 90px;
  padding-bottom: 120px;

  @media (max-width: 767px) {
    padding-top: 48px;
    padding-bottom: 60px;
  }
}

.legal-inner {
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  gap: 90px;
  align-items: start;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height, 82px) + 30px);
  display: flex;
  flex-direction: column;

  @media (max-width: 1024px) {
    position: static;
  }
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted-dark);
}

.legal-back span {
  font-family: var(--font-mono);
  font-size: 13px;
}

.legal-back i {
  transition: transform 0.3s var(--ease-out-expo);
}

.legal-back:hover {
  color: var(--color-text-dark);
}

.legal-back:hover i {
  transform: translateX(-4px);
}

.legal-tabs {
  display: flex;
  flex-direction: column;
}

.legal-tabs a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line-dark);
  font-size: 18px;
}

.legal-tabs a::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C9C6BC;
  transition: background-color 0.25s ease;
}

.legal-tabs a:hover::before,
.legal-tabs a.is-current::before {
  background: var(--dot);
}

.legal-tabs a.is-current {
  font-weight: 600;
}

.legal-article h1 {
  margin-bottom: 24px;
  font-size: 76px;
  line-height: 0.95;

  @media (max-width: 1024px) {
    font-size: 54px;
  }

  @media (max-width: 767px) {
    font-size: 40px;
  }
}

.legal-intro {
  margin-bottom: 36px;
  font-size: 18px;
  line-height: 1.6;
  color: #3F403B;
}

.legal-article section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--color-line-dark);
}

.legal-article h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.legal-article p,
.legal-article li {
  font-size: 16px;
  line-height: 1.65;
  color: #3F403B;
}

.legal-article ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 18px;
}

.legal-article a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  color: var(--color-water);
}

.legal-article strong {
  font-weight: 600;
  color: var(--color-text-dark);
}

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

.site-footer {
  border-top: 1px solid rgba(243, 241, 235, 0.1);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  padding-top: 90px;
  padding-bottom: 30px;

  @media (max-width: 767px) {
    padding-top: 60px;
  }
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 60px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(243, 241, 235, 0.1);

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 42px;
  }
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-description {
  max-width: 320px;
  color: var(--color-muted);
}

.footer-col h3 {
  margin-bottom: 18px;
}

.footer-nav,
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.footer-nav span,
.footer-contacts span {
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--color-muted);
}

/* The year sits in its own span - base `span` sizing would make it 16px */
.footer-bottom p span {
  font-size: inherit;
  line-height: inherit;
}

.legal-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.legal-nav a {
  font-size: 14px;
  color: var(--color-muted);
}

.legal-nav a:hover,
.credit a:hover {
  color: var(--color-gas);
}

/* Text and link share one face/size; .footer-bottom p would otherwise win */
.footer-bottom .credit,
.footer-bottom .credit a {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
}

.credit a {
  color: var(--color-text);
}

/* ==========================================================================
   FLOATING WHATSAPP (tablet / mobile)
   ========================================================================== */

.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 15px 21px;
  background: var(--color-solar);
  color: var(--color-text-dark);
  border-radius: 100px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.wa-fab span:not(.status-dot) {
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .wa-fab {
    display: inline-flex;
  }

  .scroll-top-btn {
    display: none;
  }
}

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */

.accept-cookies-block {
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: flex;
  max-width: 640px;
  border-radius: 18px;
  padding: 24px;
  background: var(--color-background-2);
  color: var(--color-text-dark);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.accept-cookies-block .content-inner {
  display: flex;
  gap: 24px;
  align-items: center;
}

.accept-cookies-block .content-text p {
  font-size: 14px;
  line-height: 160%;
}

.accept-cookies-block .content-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.accept-cookies-block .content-inner .button {
  min-height: 42px;
  padding: 0 24px;
  flex-shrink: 0;
  background: var(--color-main-1);
  color: var(--color-main-2);
  font-size: 14px;
}

.accept-cookies-block .content-inner .button:hover {
  background: var(--color-water);
}

@media (max-width: 1024px) {
  .accept-cookies-block {
    right: 18px;
    bottom: 90px;
  }
}

@media (max-width: 450px) {
  .accept-cookies-block .content-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .accept-cookies-block .content-inner .button {
    width: 100%;
  }
}

/* Elements revealed by GSAP start hidden only once JS is confirmed */
.js-reveal [data-reveal] {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
  }

  .service-fill,
  .work-media img {
    transition: none;
  }
}
