/* ============================================================
   Maribel Digital Marketing — shared component styles
   Recreated from the hifi design reference:
   Claude Design/design_handoff_maribel_website/design/
   Values come from tokens.css only.
   ============================================================ */
@import url('tokens.css');

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--teal-deep);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
::selection { background: rgba(242, 179, 107, .5); }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- eyebrow labels ---------- */
.eyebrow {
  font-family: var(--font-ui); font-weight: 600; font-size: 13px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 10px;
}
.eyebrow.gold { color: var(--gold); }

/* ---------- pebble buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-ui); font-weight: 600; font-size: 16px;
  color: var(--white); background: var(--coral);
  padding: 15px 32px; border-radius: var(--pebble-btn);
  box-shadow: var(--shadow-btn-coral-sm);
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease, color .3s ease;
  cursor: pointer; border: 0;
}
.btn:hover { color: var(--white); transform: rotate(1.2deg) translateY(-2px); }
.btn-hero { font-size: 17px; padding: 17px 38px; box-shadow: var(--shadow-btn-coral); }
.btn-hero:hover { transform: rotate(1.2deg) translateY(-3px); box-shadow: 0 18px 38px rgba(224, 135, 108, .5); }
.btn-teal { background: var(--teal); box-shadow: var(--shadow-btn-teal); }
.btn-outline {
  color: var(--teal-deep); background: transparent;
  border: 2px solid var(--teal); box-shadow: none;
  padding: 13px 30px;
}
.btn-outline:hover { background: var(--teal); color: var(--white); transform: rotate(1.2deg); }
.btn-coffee {
  font-size: 15px; padding: 9px 20px;
  border-radius: var(--pebble-btn-sm);
  box-shadow: var(--shadow-btn-coral-sm);
}
.btn-coffee:hover { transform: rotate(1.3deg) translateY(-1px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  background: rgba(251, 243, 231, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 157, 151, .14);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 32px; width: auto; }
.nav-brand span {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--teal-deep);
}
.nav-brand span em { font-style: normal; color: var(--teal); }
.nav-links {
  display: flex; align-items: center; gap: 26px;
  font-family: var(--font-ui); font-weight: 500; font-size: 15px;
}
.nav-links > a { color: var(--teal-deep); }
.nav-links > a:hover { color: var(--teal); }
.lang-pill {
  color: var(--teal) !important; font-weight: 600;
  border: 1.5px solid rgba(42, 157, 151, .4);
  border-radius: 20px; padding: 4px 12px;
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 34px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 8px; width: 24px; height: 2.5px;
  background: var(--teal-deep); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span:nth-child(1) { top: 9px; }
.nav-toggle span:nth-child(2) { top: 16px; }
.nav-toggle span:nth-child(3) { top: 23px; }

/* ---------- sections & waves ---------- */
section { position: relative; overflow: hidden; }
.bg-sand { background: var(--sand); }
.bg-foam { background: var(--teal-foam); }
.bg-deep { background: var(--teal-deep); color: var(--teal-foam); }
.bg-deep h2 { color: var(--white); }

.wave {
  position: absolute; bottom: -1px; left: 0;
  width: 100%; height: 80px; display: block;
}

.section-pad { padding: 96px 0 140px; }
.section-head { max-width: 760px; margin: 0 0 50px; }
.section-head.centered { text-align: center; margin: 0 auto 46px; max-width: 640px; }
.section-head h2 { font-size: 38px; line-height: 1.18; margin: 0 0 12px; }
.section-head p { font-size: 18px; line-height: 1.6; color: var(--teal-muted); }
.bg-deep .section-head p { color: rgba(234, 244, 242, .82); }

/* ---------- hero ---------- */
.hero {
  min-height: 94vh; display: flex; align-items: center;
  background-image:
    linear-gradient(90deg, rgba(13, 75, 82, .62) 0%, rgba(13, 75, 82, .28) 42%, rgba(13, 75, 82, 0) 68%),
    url('../img/hero.jpg');
  background-size: cover; background-position: center right;
}
.hero-inner { padding: 120px var(--pad-x) 150px; width: 100%; max-width: var(--container); margin: 0 auto; }
.hero-content { max-width: 620px; color: var(--white); }
.hero-greeting {
  font-family: var(--font-script); font-weight: 700; font-size: 38px; line-height: 1;
  margin: 0 0 8px; color: var(--gold); text-shadow: 0 2px 12px rgba(13, 75, 82, .4);
}
.hero h1 {
  font-size: 52px; line-height: 1.12; margin: 0 0 22px;
  text-shadow: 0 2px 18px rgba(13, 75, 82, .35);
}
.hero-intro {
  font-size: 19px; line-height: 1.6; max-width: 52ch; margin: 0 0 30px;
  color: rgba(255, 255, 255, .94); text-shadow: 0 1px 10px rgba(13, 75, 82, .4);
}
.hero-invite { font-weight: 600; font-size: 18px; margin: 0 0 20px; }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: .85fr 1fr; gap: 60px; align-items: center;
}
.portrait-pebble {
  width: 100%; aspect-ratio: 4 / 5;
  border-radius: var(--pebble-portrait);
  overflow: hidden; box-shadow: var(--shadow-portrait);
}
.portrait-pebble img { width: 100%; height: 100%; object-fit: cover; }
.signature {
  font-family: var(--font-script); font-weight: 700; font-size: 30px;
  color: var(--teal); text-align: center; margin: 14px 0 0; transform: rotate(-3deg);
}
.about-copy h2 { font-size: 38px; line-height: 1.2; margin: 0 0 8px; }
.about-copy .subhead { font-weight: 700; font-size: 20px; margin: 0 0 18px; color: var(--teal); }
.about-copy p { font-size: 17px; line-height: 1.65; margin: 0 0 14px; }
.about-copy p:last-child { margin-bottom: 0; }

/* ---------- tide underline ---------- */
.tide {
  background: linear-gradient(180deg, transparent 58%, rgba(242, 179, 107, .6) 58%);
  padding: 0 2px;
}

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .13);
  padding: 30px 28px;
  transition: transform .3s ease, background .3s ease;
}
.service-card:nth-child(4n+1) { border-radius: var(--pebble-card-a); }
.service-card:nth-child(4n+2) { border-radius: var(--pebble-card-b); }
.service-card:nth-child(4n+3) { border-radius: var(--pebble-card-c); }
.service-card:nth-child(4n)   { border-radius: var(--pebble-card-d); }
.service-card:hover { background: rgba(255, 255, 255, .09); transform: rotate(-1deg) translateY(-4px); }
.service-card:nth-child(even):hover { transform: rotate(1deg) translateY(-4px); }
.service-card.tint-coral { background: linear-gradient(150deg, rgba(224, 135, 108, .22), rgba(255, 255, 255, .05)); border-color: rgba(242, 179, 107, .3); }
.service-card.tint-gold { background: linear-gradient(150deg, rgba(242, 179, 107, .22), rgba(255, 255, 255, .05)); border-color: rgba(242, 179, 107, .3); }
.service-num { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--gold); margin: 0 0 10px; }
.service-card h3 { font-weight: 500; font-size: 21px; color: var(--white); margin: 0 0 10px; }
.service-card p { font-size: 15.5px; line-height: 1.6; color: rgba(234, 244, 242, .8); }

/* ---------- help list (horizon-sun bullets) ---------- */
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 44px; margin: 0 0 36px; }
.help-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 17px; font-weight: 500; padding: 6px 0;
}
.sun {
  position: relative; display: inline-block;
  width: 26px; height: 15px; flex: none; overflow: hidden;
}
.sun::before {
  content: ''; position: absolute; left: 4px; top: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold), var(--coral));
}
.sun::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 26px; height: 2px; background: var(--teal); border-radius: 2px;
}

/* ---------- offers ---------- */
.offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 920px; margin: 0 auto; }
.offer-card {
  background: var(--white); padding: 38px 34px;
  box-shadow: var(--shadow-card); border: 1px solid rgba(42, 157, 151, .14);
}
.offer-card:nth-child(odd) { border-radius: var(--pebble-offer-a); }
.offer-card:nth-child(even) { border-radius: var(--pebble-offer-b); }
.offer-pill {
  display: inline-block; font-family: var(--font-ui); font-weight: 600; font-size: 13px;
  padding: 5px 14px; border-radius: 20px; margin: 0 0 16px;
  color: var(--teal); background: var(--teal-foam);
}
.offer-pill.coral { color: var(--coral); background: #FBEAE2; }
.offer-card h3 { font-size: 24px; margin: 0 0 12px; }
.offer-card > p { font-size: 16px; line-height: 1.6; margin: 0 0 24px; }

/* ---------- brands marquee ---------- */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll 55s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: stretch; gap: 18px; padding-right: 18px; }
.brand-item {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid rgba(42, 157, 151, .16);
  border-radius: 22px; padding: 18px 30px; min-height: 88px; min-width: 150px;
  box-shadow: var(--shadow-card-soft);
  font-family: var(--font-display); font-weight: 500; font-size: 16px;
  color: var(--teal-deep); white-space: nowrap;
}
.brand-item img { max-height: 44px; max-width: 170px; width: auto; }
a.brand-item { transition: transform .3s ease, box-shadow .3s ease; }
a.brand-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(13, 75, 82, .14);
}
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---------- testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  padding: 30px 28px;
}
.testimonial-card:nth-child(3n+1) { border-radius: 38px 48px 40px 50px / 48px 38px 50px 42px; }
.testimonial-card:nth-child(3n+2) { border-radius: 48px 38px 50px 40px / 38px 48px 42px 50px; }
.testimonial-card:nth-child(3n)   { border-radius: 40px 50px 38px 48px / 50px 40px 48px 38px; }
.quote-mark { font-family: var(--font-display); font-size: 44px; line-height: .6; color: var(--gold); margin: 0 0 6px; }
.testimonial-card blockquote { font-size: 16.5px; line-height: 1.65; margin: 0 0 22px; color: rgba(234, 244, 242, .92); border: 0; }
.testimonial-name { font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--white); }
.testimonial-role { font-size: 13.5px; color: rgba(234, 244, 242, .6); margin: 2px 0 0; }
.testimonial-stars { font-size: 14px; color: var(--gold); letter-spacing: 3px; margin: 4px 0 0; }

/* ---------- instagram ---------- */
.ig-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 18px; margin: 0 0 34px;
}
.ig-head h2 { font-size: 36px; margin: 0; }
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.ig-tile { aspect-ratio: 1; border-radius: 22px; overflow: hidden; transition: transform .3s ease; }
.ig-tile:hover { transform: translateY(-4px); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.contact-phrase { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.3; margin: 0 0 18px; }
.contact-sub { font-size: 19px; line-height: 1.6; margin: 0 0 30px; max-width: 34ch; }
.contact-card {
  background: var(--white); border-radius: var(--pebble-contact);
  padding: 40px 38px; box-shadow: 0 22px 50px rgba(13, 75, 82, .12);
}
.contact-card h2 { font-size: 28px; margin: 0 0 22px; }
.contact-label { font-size: 16px; margin: 0 0 6px; color: var(--teal-muted); }
.contact-link { font-size: 19px; font-weight: 600; }
.contact-thanks {
  font-family: var(--font-display); font-weight: 500; font-size: 17px;
  line-height: 1.5; color: var(--coral); margin: 28px 0 4px;
}

/* ---------- legal pages (terms / privacy) ---------- */
.legal-main { max-width: 760px; margin: 0 auto; padding: 140px var(--pad-x) 90px; }
.legal-main h1 { font-size: 34px; line-height: 1.2; margin: 0 0 6px; }
.legal-updated { font-size: 14px; color: var(--teal-muted); margin: 0 0 36px; }
.legal-main h2 { font-size: 22px; margin: 36px 0 12px; color: var(--teal); }
.legal-main p, .legal-main li { font-size: 16px; line-height: 1.7; }
.legal-main p { margin: 0 0 14px; }
.legal-main ul { padding-left: 1.3em; margin: 0 0 14px; }
.legal-main li { margin-bottom: 6px; }
.legal-main a { font-weight: 600; }

/* ---------- footer ---------- */
footer { background: var(--teal-deep); color: rgba(234, 244, 242, .85); padding: 56px 0 34px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x);
  display: flex; flex-wrap: wrap; gap: 28px;
  justify-content: space-between; align-items: flex-start;
}
.footer-brand { max-width: 320px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.footer-brand-row img { height: 30px; width: auto; }
.footer-brand-row span { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--white); }
.footer-brand p { font-size: 14.5px; line-height: 1.6; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; font-family: var(--font-ui); font-size: 14.5px; }
.footer-cols > div { display: flex; flex-direction: column; gap: 9px; }
.footer-cols a { color: rgba(234, 244, 242, .85); }
.footer-cols a:hover { color: var(--gold); }
.footer-legal {
  max-width: var(--container); margin: 30px auto 0; padding: 20px var(--pad-x) 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 13px; color: rgba(234, 244, 242, .55);
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: flex-start;
    gap: 18px; padding: 22px var(--pad-x) 26px;
    background: var(--sand); border-bottom: 1px solid rgba(42, 157, 151, .18);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero h1 { font-size: 36px; }
  .hero-greeting { font-size: 32px; }
  .section-head h2, .about-copy h2 { font-size: 30px; }
  .section-pad { padding: 72px 0 110px; }

  .about-grid, .help-grid, .offers-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 40px; }
  .portrait-pebble { max-width: 380px; margin: 0 auto; }
  .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { background-image:
    linear-gradient(180deg, rgba(13, 75, 82, .55) 0%, rgba(13, 75, 82, .25) 100%),
    url('../img/hero-mobile.jpg'); background-position: center; }
}
@media (min-width: 821px) and (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card, .ig-tile, a.brand-item { transition: none; }
  .btn:hover, .service-card:hover, .ig-tile:hover, a.brand-item:hover { transform: none; }
  /* marquee stops; strip becomes a normal horizontal scroller */
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-set[aria-hidden="true"] { display: none; }
}
