/* SHADE — components
   Each section is one block. Mobile-first, scaling up at 768 / 1024 / 1440. */

/* =====================================================
   HEADER — solid bar above the hero, sticks to top on scroll
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: var(--hairline) solid rgba(22, 96, 105, 0.10);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  max-width: var(--max-content);
  margin-inline: auto;
  padding: 8px var(--gutter);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
}

.site-header__brand img {
  height: 42px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .site-header__brand img { height: 52px; }
}

@media (min-width: 1024px) {
  .site-header__brand img { height: 60px; }
}

.site-header__nav {
  display: none;
  gap: clamp(var(--s-3), 2.5vw, var(--s-5));
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible { color: var(--sand); }

@media (min-width: 768px) {
  .site-header__nav { display: inline-flex; }
}

/* =====================================================
   1. HERO
   ===================================================== */
.hero {
  position: relative;
  width: 100%;
  /* Header height = logo + 16px (8 top + 8 bottom). Mirrors header at each breakpoint. */
  height: calc(100svh - 58px);
  min-height: 520px;
  overflow: hidden;
  background: var(--teal);
}

@media (min-width: 768px) {
  .hero { height: calc(100svh - 68px); }
}

@media (min-width: 1024px) {
  .hero { height: calc(100svh - 76px); }
}

.hero__photo,
.hero__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__photo img {
  object-fit: cover;
  /* Favor sky + Es Vedrà rock (upper-third of source photo). */
  object-position: 38% 28%;
}

@media (min-width: 768px) {
  .hero__photo img { object-position: center 30%; }
}
@media (min-width: 1440px) {
  .hero__photo img { object-position: center 34%; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      transparent 0%,
      transparent 30%,
      rgba(0, 0, 0, 0.35) 70%,
      rgba(0, 0, 0, 0.65) 100%);
  pointer-events: none;
}

.hero__headline {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(72px, 12vh, 140px);
  z-index: 2;
  margin: 0;
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(3rem, 12vw + 0.45rem, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .hero__headline {
    right: auto;
    max-width: 14ch;
    font-size: clamp(2rem, 6.5vw + 0.5rem, 9rem);
  }
}

@media (min-width: 768px) {
  .hero__headline { bottom: clamp(180px, 26vh, 280px); }
}

.hero__scrollcue {
  position: absolute;
  right: var(--gutter);
  bottom: var(--gutter);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  z-index: 2;
}

.hero__scrollcue-line {
  width: 1px;
  height: 56px;
  background: rgba(255, 255, 255, 0.55);
}

.hero__scrollcue-label {
  font-size: var(--fs-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .hero__scrollcue { display: flex; }
}

/* =====================================================
   2. POSITIONING STATEMENT
   ===================================================== */
.positioning {
  background: var(--white);
  text-align: center;
  padding-block: clamp(120px, 22vw, 280px);
}

.positioning__line {
  font-size: var(--fs-display);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 auto;
  width: 100%;
  max-width: 14ch;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* =====================================================
   3. WHAT WE DO
   ===================================================== */
.what {
  background: var(--teal);
  color: var(--white);
}

.what__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
}

.what__label, .what__body { min-width: 0; }

.what__body p {
  font-size: clamp(1.0625rem, 0.85rem + 1vw, 1.75rem);
  line-height: 1.45;
  max-width: 28ch;
  font-weight: 400;
}

.what__body p + p { margin-top: var(--s-3); }

.what__body strong {
  font-weight: 700;
  color: var(--sand);
}

.what__close {
  margin-top: var(--s-5) !important;
  font-style: italic;
  color: var(--sand);
  font-weight: 400;
}

@media (min-width: 1024px) {
  .what__grid {
    grid-template-columns: minmax(160px, 1fr) minmax(0, 4fr);
    gap: var(--s-6);
    align-items: start;
  }
  .what__label { padding-top: 14px; }
  .what__body p { max-width: 28ch; }
}

/* =====================================================
   4. WHO WE'RE FOR
   ===================================================== */
.for {
  background: var(--white);
  color: var(--teal);
}

.for .eyebrow { margin-bottom: var(--s-5); }

.for__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
}

.for__block { min-width: 0; }

.for__block {
  border-top: 1px solid rgba(22, 96, 105, 0.18);
  padding-top: var(--s-4);
}

.for__heading {
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--teal);
  margin-bottom: var(--s-4);
}

.for__block p {
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  max-width: 38ch;
  overflow-wrap: break-word;
}

@media (min-width: 1024px) {
  .for__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

/* =====================================================
   5. ABOUT (typographic, no portraits)
   ===================================================== */
.about {
  background: var(--sand);
  color: var(--teal);
  text-align: left;
}

.about .eyebrow { color: var(--teal); margin-bottom: var(--s-4); }

.about__inner {
  max-width: 1100px;
}

.about__lede {
  font-size: clamp(1.375rem, 0.9rem + 1.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  max-width: 24ch;
  overflow-wrap: break-word;
}

/* =====================================================
   6. CONTACT
   ===================================================== */
.contact {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background-color: var(--teal); /* fallback while image loads */
  background-image:
    linear-gradient(
      180deg,
      rgba(22, 96, 105, 0.55) 0%,
      rgba(22, 96, 105, 0.45) 35%,
      rgba(0, 0, 0, 0.55) 100%
    ),
    url("../assets/img/contact-bg.jpg");
  background-size: cover;
  background-position: center calc(35% + var(--contact-parallax, 0px));
  background-repeat: no-repeat;
}

@media (max-width: 767px) {
  .contact {
    /* Extra image scale gives the mobile parallax room to move without exposing edges. */
    background-size: auto 118%;
  }
}

/* On wider screens, fix the background for a subtle parallax feel.
   Disabled on touch/mobile where fixed backgrounds cause jank. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .contact {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact {
    background-attachment: scroll;
    --contact-parallax: 0px;
  }
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}

.contact__intro, .contact__form { min-width: 0; }

.contact__intro {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.contact__eyebrow { color: var(--sand); }

.contact__heading {
  margin-top: var(--s-3);
  font-weight: 900;
  font-size: var(--fs-h1);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--white);
}

.contact__note {
  margin-top: var(--s-4);
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 600;
}

.contact__form {
  display: grid;
  gap: var(--s-4);
  padding: clamp(24px, 4vw, 40px);
  background: rgba(22, 96, 105, 0.78);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  border: 1px solid rgba(208, 164, 82, 0.28);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .contact__form {
    background: rgba(22, 96, 105, 0.92);
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.field label {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 0;
  font-size: var(--fs-body);
  color: var(--white);
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  resize: none;
  transition: border-color var(--t-fast) var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--sand);
}

.contact__submit {
  justify-self: start;
  margin-top: var(--s-2);
  padding: 14px 28px;
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--sand);
  border-radius: 0;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.contact__submit:hover,
.contact__submit:focus-visible {
  background: var(--white);
  transform: translateY(-2px);
}

.contact__submit span { margin-left: 10px; }

.contact__status {
  font-size: var(--fs-caption);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
  min-height: 1.2em;
}

@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-8);
  }
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--teal);
  color: var(--white);
  padding-block: var(--s-6);
  border-top: 1px solid rgba(208, 164, 82, 0.2);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: end;
}

.site-footer__brand img {
  height: 28px;
  width: auto;
}

.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-body);
  color: var(--sand);
}

.site-footer__contact a:hover,
.site-footer__contact a:focus-visible { color: var(--white); }

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__socials a,
.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(208, 164, 82, 0.65);
  border-radius: 999px;
  color: var(--sand);
  font-size: var(--fs-caption);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-footer__socials a:hover,
.site-footer__socials a:focus-visible {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--teal);
}

.site-footer__social-link.is-disabled {
  cursor: default;
  opacity: 0.52;
}

.site-footer__legal {
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: auto 1fr auto;
    gap: var(--s-6);
    row-gap: var(--s-5);
  }
  .site-footer__legal { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: auto 1fr auto auto;
  }
  .site-footer__legal { grid-column: auto; }
}

/* =====================================================
   TOUCH STATES (PRD §5.2)
   ===================================================== */
@media (hover: none) {
  .site-header__nav a:active,
  .contact__submit:active,
  .site-footer__contact a:active { color: var(--sand); }

  .site-footer__socials a:active {
    background: var(--sand);
    border-color: var(--sand);
    color: var(--teal);
  }
}
