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

:root {
  --blue-deep: #1a5588;
  --blue-mid: #3d85b8;
  --blue-light: #9ec5e8;
  --blue-pale: #e4f2fa;
  --lavender: #b8d4f0;
  --white: #f8fcff;
  --gold: #c9a962;
  --shadow: rgba(26, 85, 136, 0.1);
  --shadow-hover: rgba(26, 85, 136, 0.2);
  --font: 'Montserrat', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-logo: 'Playfair Display', Georgia, serif;
  --cream: #faf8f5;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --hero-title: #2a6b9c;
  --header-h: 4rem;
  --hero-h: calc(100vh - var(--header-h));
  --hero-h-min: 480px;
  --site-gutter: 1.5rem;
  --safe-inline: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

body {
  font-family: var(--font);
  color: var(--blue-deep);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

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

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

/* Ambient background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orbFloat 18s ease-in-out infinite;
}

.page-bg__orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--lavender) 0%, transparent 70%);
  animation-delay: 0s;
}

.page-bg__orb--2 {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, var(--blue-pale) 0%, transparent 70%);
  animation-delay: -6s;
}

.page-bg__orb--3 {
  width: 280px;
  height: 280px;
  top: 45%;
  right: 15%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-20px, 30px) scale(1.05); }
  66% { transform: translate(15px, -20px) scale(0.95); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* Header — example style */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--cream);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.35s ease;
}

.header--scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--site-gutter) + var(--safe-inline));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header__logo {
  font-family: var(--font-logo);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: opacity 0.25s ease;
}

.header__logo:hover {
  opacity: 0.75;
}

.header__tm {
  font-size: 0.5em;
  font-weight: 500;
  vertical-align: super;
  line-height: 0;
  margin-left: 0.05em;
  letter-spacing: 0;
  text-transform: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.75rem);
}

.header__nav a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: opacity 0.25s ease, border-color 0.2s ease;
}

.header__nav a.is-active {
  font-weight: 600;
  border-bottom-color: var(--text);
}

.header__nav a:not(.is-active):hover {
  opacity: 0.65;
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.header__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero — example front page */
.hero {
  position: relative;
  min-height: max(var(--hero-h), var(--hero-h-min));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--blue-pale) url('../assets/hero.png') center 42% / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  margin: 2vh auto 0;
  padding: 2rem calc(var(--site-gutter) + var(--safe-inline));
  box-sizing: border-box;
}

.hero__title-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__title {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  text-align: center;
  font-family: var(--font);
  font-size: clamp(1.5rem, 8vw, 3.25rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding-right: 0.06em;
  text-transform: uppercase;
  color: var(--hero-title);
  line-height: 1.3;
  white-space: nowrap;
  text-shadow:
    0 0 18px rgba(255, 255, 255, 1),
    0 0 36px rgba(255, 255, 255, 0.85),
    0 1px 3px rgba(255, 255, 255, 1);
  opacity: 0;
  transform: translateY(16px);
  animation: heroTextIn 0.9s var(--ease-out) 0.25s forwards;
}

@media (min-width: 900px) {
  .hero__title {
    font-size: clamp(2rem, 3.8vw, 3.75rem);
    letter-spacing: 0.14em;
  }
}

@keyframes heroTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  position: relative;
  padding: 5rem calc(var(--site-gutter) + var(--safe-inline));
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.section--whatsapp {
  padding-top: 4rem;
}

.section--whatsapp::before,
.section--contact::before,
.section--instagram::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
}

.section__title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.section__line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.8s var(--ease-out) 0.2s;
}

.section__line--right {
  background: linear-gradient(90deg, var(--blue-light), transparent);
  transform-origin: left;
}

.section__title-wrap.is-visible .section__line {
  transform: scaleX(1);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--blue-deep);
  white-space: nowrap;
}

.section__title span {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(158, 197, 232, 0.45);
  border-radius: 20px;
  box-shadow: 0 10px 40px var(--shadow);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out),
    border-color 0.35s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.6s ease;
}

.card:hover::before {
  left: 150%;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px var(--shadow-hover);
  border-color: var(--blue-light);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  border-radius: 50%;
  background: var(--blue-pale);
  transition: transform 0.4s var(--ease-spring), background 0.3s ease;
}

.card:hover .card__icon {
  transform: scale(1.1) rotate(-5deg);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card--whatsapp .card__icon {
  color: #25d366;
  background: rgba(37, 211, 102, 0.12);
}

.card--contact .card__icon {
  color: var(--blue-deep);
}

.card__name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.card__detail {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--blue-mid);
  word-break: break-word;
  text-align: center;
}

.card__arrow {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-size: 1rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
  color: var(--blue-mid);
}

.card:hover .card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#contact {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.section--contact .section__title-wrap {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(158, 197, 232, 0.45);
  border-radius: 24px;
  box-shadow: 0 12px 48px var(--shadow);
  position: relative;
  overflow: hidden;
}

.contact-form::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form__label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
}

.contact-form__field input,
.contact-form__field textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--blue-deep);
  padding: 0.8rem 1rem;
  border: 1px solid rgba(158, 197, 232, 0.55);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 4px rgba(61, 133, 184, 0.12);
  transform: translateY(-1px);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.contact-form__submit {
  position: relative;
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  border: none;
  border-radius: 999px;
  padding: 1rem 2.5rem;
  cursor: pointer;
  align-self: flex-start;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease;
}

.contact-form__submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.contact-form__submit:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px var(--shadow-hover);
}

.contact-form__submit:hover::after {
  transform: translateX(100%);
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-form__status {
  font-size: 0.8rem;
  font-weight: 500;
  animation: statusPop 0.4s var(--ease-out);
}

@keyframes statusPop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-form__status--ok { color: #1a7a4a; }
.contact-form__status--err { color: #b03030; }

.contact-info .cards--contact {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

.contact-info .card {
  width: 100%;
}

/* Instagram */
.section--instagram {
  text-align: center;
  padding-bottom: 5.5rem;
}

.instagram-wrap {
  display: flex;
  justify-content: center;
}

.instagram-card {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 3rem 3.5rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(158, 197, 232, 0.45);
  border-radius: 28px;
  box-shadow: 0 12px 48px var(--shadow);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
}

.instagram-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 30px;
  background: conic-gradient(from 0deg, var(--blue-light), var(--gold), var(--blue-mid), var(--blue-light));
  z-index: -1;
  opacity: 0;
  animation: ringRotate 4s linear infinite;
  transition: opacity 0.4s ease;
}

.instagram-card:hover::before {
  opacity: 1;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.instagram-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 56px var(--shadow-hover);
}

.instagram-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--blue-deep);
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.instagram-card__icon svg {
  width: 100%;
  height: 100%;
}

.instagram-card__handle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

/* Footer */
.footer {
  padding: 2.5rem calc(var(--site-gutter) + var(--safe-inline));
  text-align: center;
  background: linear-gradient(180deg, var(--blue-pale) 0%, rgba(228, 242, 250, 0.5) 100%);
  border-top: 1px solid rgba(158, 197, 232, 0.35);
}

.footer p {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-mid);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__bg {
    transform: scale(1);
    animation: none;
  }

  .hero__title {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --site-gutter: 1.25rem;
  }

  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: max-height 0.4s var(--ease-out), opacity 0.3s ease;
  }

  .header__nav--open {
    max-height: 16rem;
    opacity: 1;
    pointer-events: auto;
    padding: 0.5rem 0 1rem;
  }

  .header__nav a {
    text-align: center;
    padding: 0.85rem 1.25rem;
    border-bottom-width: 2px;
    margin: 0 auto;
    width: fit-content;
  }

  .hero {
    min-height: max(calc(100vh - var(--header-h)), 420px);
  }

  .hero__title {
    font-size: 1.75rem;
    letter-spacing: 0.06em;
    line-height: 1.35;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem var(--site-gutter);
  }

  .section__title {
    white-space: normal;
    font-size: 1.35rem;
  }

  .section__line {
    max-width: 40px;
  }

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

  .instagram-card {
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 340px;
  }

}

@media (max-width: 380px) {
  .header__logo {
    font-size: 1.15rem;
  }

  .hero__title {
    font-size: 1.5rem;
    letter-spacing: 0.05em;
  }
}
