/* ==========================================================================
   Jihfmo Store — Coastal Resort Editorial Landing Page
   Pure static CSS, mobile-first responsive, zero frameworks.
   ========================================================================== */

:root {
  --bg-ivory: #FAF8F5;
  --bg-white: #FFFFFF;
  --ink-navy: #162B3A;
  --ink-ocean: #1B3E54;
  --ink-slate: #4A5B68;
  --accent-ocean: #2C5C78;
  --accent-gold: #C89B54;
  --border-sand: #E6DFD5;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-pill: 999px;
  --radius-card: 16px;
  --shadow-soft: 0 18px 45px rgba(16, 32, 46, 0.12);
  --shadow-btn: 0 10px 28px rgba(10, 22, 34, 0.28);
  --container-max: 1220px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-navy);
  background-color: var(--bg-ivory);
  line-height: 1.65;
  overflow-x: clip;
}

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

a {
  color: inherit;
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section-full {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background-color: var(--ink-navy);
}

.section-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.section-padded {
  padding-block: clamp(4.25rem, 7vw, 6.75rem);
}

.editorial-heading {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.35rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink-ocean);
}

/* ==========================================================================
   Buttons — Clear Primary vs Secondary Visual Hierarchy
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

.btn-icon-arrow,
.btn-icon-shield {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

/* Primary CTA on dark/photo backdrops: Solid crisp white */
.btn-primary {
  background-color: #FFFFFF;
  color: var(--ink-navy);
  border: 1.5px solid #FFFFFF;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background-color: #FAF8F5;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(10, 22, 34, 0.36);
}

.btn-primary:hover .btn-icon-arrow {
  transform: translateX(3px);
}

/* Primary CTA on bright sand (Screen 2): Solid deep coastal navy */
.btn-primary-navy {
  background-color: var(--ink-navy);
  color: #FFFFFF;
  border: 1.5px solid var(--ink-navy);
  box-shadow: 0 12px 30px rgba(22, 43, 58, 0.32);
}

.btn-primary-navy:hover {
  background-color: #244A64;
  border-color: #244A64;
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(22, 43, 58, 0.42);
}

.btn-primary-navy:hover .btn-icon-arrow {
  transform: translateX(3px);
}

/* Secondary CTA: Frosted glass outline, clearly subordinate */
.btn-secondary {
  background-color: rgba(14, 29, 43, 0.48);
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn-secondary:hover {
  background-color: rgba(14, 29, 43, 0.72);
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* ==========================================================================
   Sticky Header
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding-block: 0.9rem;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
  color: #FFFFFF;
}

.site-header.is-scrolled {
  background-color: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink-navy);
  box-shadow: 0 1px 0 rgba(22, 43, 58, 0.09);
}

.header-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.site-header.is-scrolled .brand-wordmark {
  text-shadow: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 2rem);
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.92;
  padding-block: 0.35rem;
  border-bottom: 1.5px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.38);
}

.site-header.is-scrolled .site-nav a {
  text-shadow: none;
}

.site-nav a:hover {
  opacity: 1;
  border-bottom-color: currentColor;
}

/* ==========================================================================
   Screen 1: Hero
   ========================================================================== */

.hero-bg {
  object-position: center 42%;
}

.hero-scrim {
  background: linear-gradient(
    95deg,
    rgba(10, 20, 30, 0.10) 0%,
    rgba(10, 20, 30, 0.34) 48%,
    rgba(10, 20, 30, 0.72) 100%
  );
}

.hero-container {
  display: flex;
  justify-content: flex-end;
  padding-top: 5rem;
  padding-bottom: 3rem;
}

.hero-content {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #FFFFFF;
}

.hero-eyebrow {
  margin: 0 0 0.45rem;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-title {
  margin: 0 0 1.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.6rem, 7vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-shadow: 0 6px 26px rgba(8, 16, 24, 0.45);
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  width: min(100%, 290px);
}

/* ==========================================================================
   Screen 2: Jihfmo Beach Cabana
   ========================================================================== */

.cabana-section {
  justify-content: space-between;
  padding-block: clamp(3rem, 6vw, 4.75rem);
  background-color: #D8C7AF;
}

.cabana-bg {
  object-position: center center;
}

.cabana-scrim {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(0deg, rgba(20, 15, 10, 0.24) 0%, rgba(20, 15, 10, 0) 32%);
}

.cabana-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(min(100svh, 860px) - clamp(6rem, 12vw, 9.5rem));
}

.cabana-header {
  max-width: 420px;
}

.cabana-brand {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.05;
  color: var(--ink-ocean);
}

.cabana-title {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.85rem);
  line-height: 1.02;
  color: var(--ink-ocean);
}

.cabana-cta {
  padding-top: 2rem;
}

.cabana-cta .btn {
  min-width: 230px;
}

/* ==========================================================================
   Screen 3: Why Jihfmo?
   ========================================================================== */

.story-section {
  justify-content: flex-start;
  padding-top: clamp(3.75rem, 7vw, 5.5rem);
  padding-bottom: clamp(4rem, 7vw, 5.5rem);
  background-color: #1D6E8C;
}

.story-bg {
  object-position: center 62%;
}

.story-scrim {
  background: linear-gradient(
    180deg,
    rgba(13, 52, 74, 0.68) 0%,
    rgba(13, 52, 74, 0.42) 34%,
    rgba(13, 52, 74, 0.05) 68%,
    rgba(13, 52, 74, 0.12) 100%
  );
}

.story-content {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  color: #FFFFFF;
}

.story-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 4.8vw, 3.75rem);
  line-height: 1.06;
  text-shadow: 0 4px 18px rgba(8, 28, 42, 0.35);
}

.story-copy {
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 12px rgba(8, 28, 42, 0.45);
}

/* ==========================================================================
   Screen 4: Crafted to Last
   ========================================================================== */

.craft-section {
  background-color: var(--bg-ivory);
}

.section-heading-row {
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.craft-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-white);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(22, 43, 58, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.craft-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.craft-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #EFEAE2;
}

.craft-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.craft-card:hover .craft-media img {
  transform: scale(1.04);
}

.craft-body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.craft-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--ink-ocean);
}

.craft-desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-slate);
}

/* ==========================================================================
   Screen 5: Client Reviews
   ========================================================================== */

.reviews-section {
  background-color: var(--bg-white);
  border-top: 1px solid rgba(230, 223, 213, 0.7);
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.55fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.reviews-intro {
  position: sticky;
  top: 6rem;
}

.reviews-subtitle {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  color: var(--ink-slate);
  max-width: 28ch;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  background-color: var(--bg-ivory);
  border: 1px solid var(--border-sand);
  border-radius: var(--radius-card);
}

.review-thumb {
  width: 160px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: #EAE4DA;
}

.review-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.review-author {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink-navy);
}

.review-stars {
  color: #D49A2A;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.review-quote {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink-slate);
}

/* ==========================================================================
   Screen 6: Contact Us (Dark Semi-Transparent Overlay + Primary/Secondary CTA)
   ========================================================================== */

.contact-section {
  justify-content: space-between;
  padding-top: clamp(4.5rem, 8vw, 6.5rem);
  padding-bottom: 0;
  background-color: #0E1B27;
}

.contact-bg {
  object-position: center center;
}

.contact-scrim {
  background: linear-gradient(
    95deg,
    rgba(10, 19, 29, 0.30) 0%,
    rgba(10, 19, 29, 0.66) 46%,
    rgba(10, 19, 29, 0.86) 100%
  );
}

.contact-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.contact-panel {
  width: min(100%, 500px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 20px;
  background-color: rgba(11, 21, 32, 0.66);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  color: #FFFFFF;
}

.contact-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.2vw, 3.2rem);
  line-height: 1.05;
  color: #FFFFFF;
}

.contact-details {
  margin: 0 0 1.85rem;
  display: grid;
  gap: 1.15rem;
}

.contact-item dt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 0.15rem;
}

.contact-item dd {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

.contact-email {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 4px;
}

.contact-email:hover {
  text-decoration-color: #FFFFFF;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.contact-actions .btn {
  flex: 1 1 190px;
}

.site-footer {
  position: relative;
  z-index: 2;
  background-color: rgba(8, 16, 24, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
  .craft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reviews-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reviews-intro {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-nav {
    gap: 0.85rem;
  }

  .site-nav a:nth-child(1),
  .site-nav a:nth-child(3) {
    display: none;
  }

  .hero-section {
    min-height: 92svh;
    justify-content: flex-end;
  }

  .hero-bg {
    object-position: 38% 36%;
  }

  .hero-scrim {
    background: linear-gradient(
      180deg,
      rgba(10, 20, 30, 0.28) 0%,
      rgba(10, 20, 30, 0.18) 38%,
      rgba(10, 20, 30, 0.78) 100%
    );
  }

  .hero-container {
    justify-content: center;
    padding-bottom: 3.5rem;
  }

  .cabana-section {
    min-height: 85svh;
  }

  .cabana-bg {
    object-position: 54% center;
  }

  .cabana-container {
    min-height: calc(85svh - 6.5rem);
  }

  .story-section {
    min-height: 80svh;
  }

  .story-scrim {
    background: linear-gradient(
      180deg,
      rgba(13, 52, 74, 0.78) 0%,
      rgba(13, 52, 74, 0.56) 45%,
      rgba(13, 52, 74, 0.14) 100%
    );
  }

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

  .review-card {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }

  .review-thumb {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 11;
  }

  .contact-section {
    min-height: auto;
  }

  .contact-scrim {
    background: rgba(10, 19, 29, 0.70);
  }

  .contact-container {
    justify-content: center;
  }

  .contact-panel {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .brand-wordmark {
    font-size: 1.55rem;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .cta-stack,
  .cabana-cta .btn {
    width: 100%;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .btn {
    width: 100%;
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
