/* =============================================
   STITCH SITE — style.css
   Aesthetic: Playful space + tropical — deep
   indigo night sky meets Hawaiian warmth
   ============================================= */

/* ---- TOKENS ---- */
:root {
  --blue-deep:    #0d1b4e;
  --blue-mid:     #1a3a8f;
  --blue-bright:  #2e70e8;
  --blue-light:   #7eb8f7;
  --teal:         #00c8b4;
  --yellow:       #ffd44d;
  --pink:         #ff6b9d;
  --white:        #ffffff;
  --bg:           #f0f6ff;
  --text:         #1a2540;
  --text-muted:   #5a6a8a;

  --font-display: 'Baloo 2', cursive;
  --font-body:    'Nunito', sans-serif;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    28px;
  --radius-xl:    48px;

  --shadow-sm:    0 2px 8px rgba(30,60,140,.10);
  --shadow-md:    0 8px 32px rgba(30,60,140,.15);
  --shadow-lg:    0 20px 60px rgba(30,60,140,.20);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ---- CONTAINER ---- */
.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue-deep) 0%, #0a2070 50%, #1a1060 100%);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(60px, 10vw, 110px) 80px;
}

/* Starfield dots */
.hero__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 55% 12%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 50%, rgba(255,255,255,.4) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 85% 22%, rgba(255,255,255,.65) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 75%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(2px 2px at 20% 88%, rgba(255,255,255,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 47% 40%, rgba(255,255,255,.6) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 65% 80%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 8% 55%, rgba(255,255,255,.4) 0%, transparent 100%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: .7; }
  to   { opacity: 1; }
}

/* Decorative blobs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  pointer-events: none;
}
.hero::before {
  width: 500px; height: 500px;
  background: var(--blue-bright);
  top: -120px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.hero::after {
  width: 300px; height: 300px;
  background: var(--teal);
  bottom: 60px; left: -60px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-24px) scale(1.05); }
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  flex-wrap: wrap;
  justify-content: center;
}

.hero__logo-wrap {
  flex-shrink: 0;
  width: clamp(180px, 28vw, 340px);
  filter: drop-shadow(0 12px 40px rgba(46,112,232,.6));
  animation: float 7s ease-in-out infinite;
}

.hero__text {
  flex: 1;
  min-width: 260px;
  max-width: 540px;
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(0,200,180,.12);
  border: 1px solid rgba(0,200,180,.3);
  border-radius: 50px;
  padding: .25rem .9rem;
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 0%, var(--blue-light) 60%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .5rem;
}

.hero__subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 2rem;
  max-width: 420px;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blue-deep);
  background: linear-gradient(135deg, var(--teal), var(--blue-light));
  padding: .75rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(0,200,180,.4);
  transition: transform .2s, box-shadow .2s;
}
.hero__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,200,180,.55);
}

.hero__wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  z-index: 1;
}
.hero__wave svg { width: 100%; height: 60px; }

/* =============================================
   SHARED SECTION STYLES
   ============================================= */
.section {
  padding-block: clamp(56px, 8vw, 100px);
}

.section__label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(46,112,232,.08);
  border-radius: 50px;
  padding: .2rem .8rem;
  margin-bottom: .75rem;
}
.section__label--center { display: block; text-align: center; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.section__title--center { text-align: center; }

/* =============================================
   ABOUT SECTION — two-column
   ============================================= */
.section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section__text-col p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.section__text-col p:last-child { margin-bottom: 0; }
.section__text-col strong { color: var(--text); font-weight: 700; }

/* Image card */
.img-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.img-card__img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  transition: transform .5s ease;
}
.img-card:hover .img-card__img { transform: scale(1.04); }

.img-card__badge {
  position: absolute;
  bottom: 20px; right: 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-bright), var(--teal));
  padding: .4rem 1.1rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  letter-spacing: .05em;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section {
  padding-block: clamp(56px, 8vw, 100px);
  background: linear-gradient(180deg, var(--bg) 0%, #e6f0ff 100%);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 240px 240px;
  gap: 16px;
  margin-top: 2rem;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.gallery__item--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.07); }

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,78,.75) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity .3s;
}
.gallery__item:hover .gallery__overlay { opacity: 1; }

.gallery__overlay span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* =============================================
   FACTS / CARDS
   ============================================= */
.facts-section {
  background: var(--bg);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(46,112,232,.08);
  transition: transform .25s, box-shadow .25s;
  text-align: center;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  display: block;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}

.card__text {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,.6);
  padding-block: 2.5rem;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.footer__text {
  font-size: .9rem;
}

.footer__ohana {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .05em;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* Tablet: ≤ 900px */
@media (max-width: 900px) {
  .section__grid {
    grid-template-columns: 1fr;
  }
  .img-card {
    max-width: 480px;
    margin-inline: auto;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 200px 200px 200px;
  }
  .gallery__item--wide {
    grid-column: span 2;
    grid-row: span 1;
    height: 240px;
  }
}

/* Mobile: ≤ 600px */
@media (max-width: 600px) {
  .hero__content {
    flex-direction: column;
    text-align: center;
  }
  .hero__logo-wrap {
    width: clamp(150px, 55vw, 240px);
  }
  .hero__subtitle { margin-inline: auto; }
  .hero__btn { margin-inline: auto; }

  .cards {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .gallery__item { height: 220px; }
  .gallery__item--wide {
    grid-column: span 1;
    height: 260px;
  }
  .gallery__overlay { opacity: 1; }
}
