/* ============================================
   MEDEWI SUNRISE - EARTHY, MINIMAL DESIGN
   Modern surf school website with natural aesthetics
   ============================================ */

:root {
  --color-primary: #8b6f47;
  --color-secondary: #d4a373;
  --color-accent: #4a8b7e;
  --color-bg: #f5f2ed;
  --color-bg-dark: #2c2415;
  --color-text: #2c2415;
  --color-text-light: #6b5d4f;
  --color-border: #e8e3d8;
  --color-white: #ffffff;
  
  --font-primary: 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'Courier New', monospace;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-3xl: 5rem;
  --spacing-2xl: 4rem;
  
  --transition: all 0.3s ease;
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 50px;
  background-color: transparent;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1rem;
}

body.is-loading {
  overflow: hidden;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background-color: var(--color-bg);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-logo {
  width: min(46vw, 200px);
  height: auto;
}

.loading-text {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--color-text);
}

.loading-percent {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.section-title-word {
  color: var(--color-text);
  font-weight: 900;
}

.section-title-word-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-text);
  text-stroke: 1.5px var(--color-text);
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
}

section {
  padding: var(--spacing-2xl) 0;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0);
  border-bottom: none;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: #e8dcc8 !important;
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 5px clamp(1rem, 2vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent !important;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  cursor: pointer;
  background: transparent;
}



.brand-text {
  display: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  background-color: transparent !important;
  transition: margin-top 0.3s ease;
}

.nav-menu.on-hero {
  margin-top: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  font-size: 1.5rem;
  position: relative;
  transition: color var(--transition);
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--color-accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  margin-top: 0;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: var(--spacing-2xl) var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo-container {
  position: absolute;
  top: 20px;
  left: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
}

.hero-logo {
  height: 150px;
  width: auto;
  border-radius: var(--radius);
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-img {
  height: 70px;
  width: auto;
  border-radius: var(--radius);
  display: block;
  transition: all 0.3s ease;
}

.logo-img.hidden {
  display: none !important;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.05rem, 2.6vw, 2.5rem);
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
}

.hero-subtitle .keyword {
  color: var(--color-white);
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-subtitle .connector {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.6rem, 8.8vw, 7rem);
  margin-bottom: var(--spacing-md);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: none;
}

.hero h1 .keyword {
  color: var(--color-white);
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.hero h1 .connector {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  text-stroke: 1.5px rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-group {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-primary);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: 2px solid var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-bg-dark);
  border-color: var(--color-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-submit {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  font-family: var(--font-primary);
}

.btn-submit:hover {
  background-color: var(--color-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  background-color: var(--color-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.service-card {
  text-align: center;
  padding: 0;
  background-color: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-border);
}

.service-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(74, 139, 126, 0.1);
  transform: translateY(-4px);
}

.service-card h3,
.service-card p {
  padding: 0 var(--spacing-lg);
}

.service-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
}

/* ============================================
   LESSONS SECTION
   ============================================ */

.lessons {
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.lessons-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.lessons-bg-intermediates {
  background-image: url('../media/Surfing/intermediates.JPG');
}

.lessons .container {
  position: relative;
  z-index: 1;
}

.instructor-bio {
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-2xl) 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
}

.bio-wrapper {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
}

.bio-image {
  flex: 0 0 50%;
  height: clamp(280px, 44vw, 600px);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bio-image-meet-herry {
  background-image: url('../media/Surfing/meet_herry.JPG');
}

.bio-image-homestay-main {
  background-image: url('../media/HomeStay/HomeStay1.JPG');
}

.bio-content {
  flex: 1;
  text-align: center;
}

.bio-subtitle {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
}

.bio-text {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

.bio-text-large {
  font-size: 1.4rem !important;
  font-weight: 500;
  line-height: 2;
}

.bio-text .highlight {
  color: var(--color-accent);
  font-weight: 700;
}

.wave-icon {
  font-size: 4rem;
  color: var(--color-accent);
  letter-spacing: 0.5rem;
  margin-top: var(--spacing-lg);
  text-align: center;
}

/* Creative Gallery Showcase */
.about-gallery-creative {
  position: relative;
  width: 100%;
  max-width: min(600px, 92vw);
  height: clamp(280px, 34vw, 450px);
  margin: var(--spacing-3xl) auto 0;
  perspective: 1200px;
}

.gallery-card {
  position: absolute;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
}

.gallery-card-1 {
  width: 280px;
  height: 340px;
  left: 20px;
  top: 40px;
  z-index: 2;
  transform: rotate(-8deg);
}

.gallery-card-2 {
  width: 300px;
  height: 280px;
  right: 30px;
  top: 120px;
  z-index: 1;
  transform: rotate(6deg);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  background: var(--color-border);
}

.card-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.card-label {
  color: white;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
}

/* Hover effects */
.gallery-card:hover {
  transform: rotate(0deg) scale(1.12);
  z-index: 10;
}

.gallery-card:hover .card-inner {
  box-shadow: 0 40px 80px rgba(74, 139, 126, 0.4);
}

.gallery-card:hover .card-inner img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.gallery-card:hover .card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
}

.lesson-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lesson-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-border);
}

.lesson-image-beginner {
  background-image: url('../media/Surfing/beginner_lesson_2.JPG');
}

.lesson-image-intermediate {
  background-image: url('../media/Surfing/intermediate_lesson.JPG');
}

.lesson-image-group {
  background-image: url('../media/Surfing/Group_lesson.JPG');
}

.lesson-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(139, 111, 71, 0.15);
}

.lesson-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 20px rgba(74, 139, 126, 0.1);
  transform: translateY(-4px);
}

.lesson-card h3 {
  color: var(--color-primary);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  padding: 0 var(--spacing-lg);
  text-align: center;
}

.lesson-level {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 var(--spacing-lg);
  margin-bottom: var(--spacing-xs);
  text-align: center;
}

.lesson-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0 var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.lesson-details {
  color: var(--color-text-light);
  font-size: 0.9rem;
  padding: 0 var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  flex-grow: 1;
  text-align: center;
}

.lesson-card .btn {
  margin: 0 var(--spacing-lg) var(--spacing-lg) var(--spacing-lg);
  align-self: center;
}

.lesson-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(74, 139, 126, 0.1);
  transform: translateY(-4px);
}

.lesson-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
  text-align: center;
}

/* Video Recording Info */
.video-recording-info {
  margin-top: var(--spacing-3xl);
  padding: var(--spacing-lg) 0;
  text-align: center;
}

/* ============================================
   HOMESTAY SECTION
   ============================================ */

.homestay {
  background-color: var(--color-white);
}

.homestay-content {
  margin-top: var(--spacing-2xl);
  border-radius: 5px;
}

.homestay-info {
  text-align: center;
  max-width: none;
  margin: 0 auto;
}

.homestay-info h3 {
  color: var(--color-primary);
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
}

.homestay-info p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  font-size: 1rem;
  line-height: 1.8;
}

.amenities {
  margin-bottom: var(--spacing-lg);
}

.amenities-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.amenities-column {
  flex: 0 1 auto;
}

.amenities-column:first-child {
  text-align: right;
  padding-right: var(--spacing-md);
}

.amenities-column:last-child {
  text-align: left;
  padding-left: var(--spacing-md);
}

.amenities-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-md);
}

.amenities-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.amenities-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.amenities-list li {
  color: var(--color-text-light);
  padding: var(--spacing-xs) 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.amenity-logo {
  width: 24px;
  height: 24px;
  display: inline-block;
  flex-shrink: 0;
}

.pricing-options {
  background-color: var(--color-bg);
  padding: var(--spacing-lg);
  border-radius: var(--radius);
  margin-bottom: var(--spacing-lg);
}

.pricing-options h4 {
  margin-bottom: var(--spacing-md);
  font-size: 1.8rem;
  text-align: center;
  letter-spacing: -0.01em;
}

.pricing-options h4 .section-title-word {
  color: var(--color-text);
  font-weight: 900;
}

.pricing-options h4 .section-title-word-stroke {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-text);
  text-stroke: 1.5px var(--color-text);
  font-weight: 700;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-light);
}

.price-item:last-child {
  border-bottom: none;
}

.price-label {
  font-weight: 500;
}

.price-value {
  font-weight: 700;
  color: var(--color-primary);
}

/* ============================================
   GALLERY SECTION (Horizontal Scroll)
   ============================================ */

.gallery-section {
  margin: var(--spacing-3xl) 0;
  padding: var(--spacing-lg) 0;
}

.gallery-container {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: var(--spacing-lg) 0;
  -webkit-overflow-scrolling: touch;
}

.gallery-container::-webkit-scrollbar {
  height: 8px;
}

.gallery-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.gallery-container::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 10px;
}

.gallery-container::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

.gallery-image {
  flex: 0 0 280px;
  height: 220px;
  object-fit: cover;
  background-color: var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-image.image-pending,
.about-gallery-creative img.image-pending {
  opacity: 0.22;
}

.gallery-image.image-ready,
.about-gallery-creative img.image-ready {
  opacity: 1;
}

.gallery-image,
.about-gallery-creative img {
  transition: opacity 0.28s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 1280px) {
  .nav-link {
    font-size: 1.2rem;
  }

  .hero-logo {
    height: clamp(92px, 10vw, 140px);
  }

  .about-gallery-creative {
    max-width: 520px;
    height: 380px;
  }

  .gallery-card-1 {
    width: 230px;
    height: 285px;
    left: 12px;
    top: 28px;
  }

  .gallery-card-2 {
    width: 245px;
    height: 220px;
    right: 16px;
    top: 100px;
  }
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   LIGHTBOX MODAL
   ============================================ */

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.lightbox.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  color: var(--color-accent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
  background: linear-gradient(135deg, #f5f2ed 0%, #e8e3d8 100%);
  position: relative;
  overflow: hidden;
}

.about-bg-palm-trees {
  background-image: url('../media/HomeStay/palm_trees.JPG');
}

.about-bg-image {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 500px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about-content {
  max-width: 800px;
  margin: 0 auto var(--spacing-2xl);
  text-align: center;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-2xl);
}

.stat {
  text-align: center;
  padding: var(--spacing-lg);
  background-color: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
}

.stat-label {
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
  background-color: var(--color-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
}

.contact-info h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-lg);
  font-size: 1.5rem;
}

.contact-item {
  margin-bottom: var(--spacing-lg);
}

.contact-item label {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-item p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 1rem;
}

.whatsapp-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-widget:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, #20BA5A 0%, #1FA952 100%);
}

.whatsapp-widget:active {
  transform: translateY(0);
}

.whatsapp-widget i {
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--spacing-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  color: var(--color-text);
  transition: var(--transition);
  background-color: var(--color-bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74, 139, 126, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.success-message {
  color: var(--color-accent);
  font-weight: 600;
  text-align: center;
  display: none;
  padding: var(--spacing-md);
  background-color: rgba(74, 139, 126, 0.1);
  border-radius: var(--radius);
}

.success-message.show {
  display: block;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background-color: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
}

.social-links a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  font-size: 1.5rem;
}

.social-links a:hover {
  color: var(--color-accent);
}

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

/* ---- Tablet (up to 768px) ---- */
@media (max-width: 768px) {
  :root {
    --spacing-2xl: 2rem;
    --spacing-xl: 1.75rem;
    --spacing-lg: 1.25rem;
  }

  h2 {
    font-size: 2rem;
    text-align: center;
  }

  .section-title-word,
  .section-title-word-stroke {
    display: inline;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .contact-info {
    text-align: center;
  }

  .contact-item {
    text-align: center;
  }

  .whatsapp-widget {
    display: inline-flex;
    margin: 0.75rem auto 0;
  }

  .gallery-image {
    flex: 0 0 240px;
    height: 180px;
  }

  .about-gallery-creative {
    max-width: 500px;
    height: 380px;
  }

  .gallery-card-1 {
    width: 240px;
    height: 290px;
    left: 15px;
    top: 30px;
  }

  .gallery-card-2 {
    width: 260px;
    height: 240px;
    right: 20px;
    top: 100px;
  }

  .card-inner {
    border-radius: 16px;
  }
}

/* ---- Mobile (up to 480px) ---- */
@media (max-width: 480px) {
  :root {
    --spacing-3xl: 2.5rem;
    --spacing-2xl: 2rem;
    --spacing-xl: 1.5rem;
    --spacing-lg: 1.1rem;
    --spacing-md: 0.85rem;
  }

  /* Base typography */
  h1 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  h2 { font-size: clamp(1.6rem, 7vw, 2rem); text-align: center; margin-bottom: 1.1rem; }
  h3 { font-size: 1.15rem; text-align: center; }
  h4 { font-size: 1rem; }

  .section-title-word,
  .section-title-word-stroke {
    display: inline;
  }

  .container {
    padding: 0 1.1rem;
  }

  /* ---- Navbar ---- */
  .nav-container {
    padding: 0.5rem 1rem;
  }

  .logo-img {
    height: 55px;
  }

  .hamburger span {
    background-color: var(--color-white);
  }

  .navbar.scrolled .hamburger span {
    background-color: var(--color-text);
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background-color: rgba(245, 242, 237, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 999;
    transform-origin: top;
    animation: none;
  }

  .nav-menu.active {
    display: flex;
    animation: slideDown 0.25s ease forwards;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-link {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: var(--color-text);
    letter-spacing: 0.03em;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--color-primary);
    background-color: rgba(139, 111, 71, 0.06);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* ---- Hero ---- */
  .hero {
    min-height: 100svh;
  }

  .hero-logo-container {
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .hero-logo {
    height: 110px;
  }

  .hero-content {
    padding: 0 1.25rem;
    padding-top: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
    letter-spacing: -0.01em;
    line-height: 1.05;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.35);
  }

  .hero-subtitle {
    font-size: clamp(0.9rem, 4vw, 1.1rem);
    letter-spacing: 0.04em;
    margin-bottom: var(--spacing-lg);
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    font-size: 0.95rem;
    padding: 0.8rem 1.5rem;
    min-height: 48px;
  }

  /* ---- Sections general ---- */
  section {
    padding: 2.5rem 0;
  }

  /* ---- Lessons / Surf section ---- */
  .lessons-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .lesson-card {
    text-align: center;
    border-radius: 12px;
  }

  .lesson-image {
    height: 210px;
    border-radius: 12px 12px 0 0;
  }

  .lesson-card h3 {
    font-size: 1.15rem;
    margin-top: 1rem;
  }

  .lesson-price {
    font-size: 0.95rem;
    font-weight: 700;
  }

  .lesson-details {
    font-size: 0.85rem;
    padding: 0 1rem;
  }

  .lesson-card .btn {
    min-height: 48px;
    width: calc(100% - 2rem);
  }

  /* Instructor bio */
  .bio-wrapper {
    flex-direction: column;
    gap: 1.25rem;
    padding: 0;
  }

  .bio-image {
    flex: none;
    width: 100%;
    height: 240px;
    background-attachment: scroll;
    border-radius: 10px;
  }

  .bio-text-large {
    font-size: 1rem;
    line-height: 1.75;
    text-align: center;
  }

  .bio-content {
    text-align: center;
  }

  .wave-icon {
    font-size: 1.8rem;
    margin-top: 0.75rem;
    letter-spacing: 0.3rem;
  }

  .video-recording-info {
    margin-top: 1.5rem;
    padding: 0 0.5rem;
  }

  .video-recording-info .bio-text-large {
    font-size: 0.95rem;
  }

  /* ---- Gallery (Horizontal Scroll) ---- */
  .gallery-section {
    margin: 1.5rem 0;
    padding: 0.5rem 0;
  }

  .gallery-container {
    gap: 0.75rem;
    padding: 0.75rem 1.1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .gallery-container::-webkit-scrollbar {
    height: 4px;
  }

  .gallery-image {
    flex: 0 0 220px;
    height: 165px;
    border-radius: 10px;
    scroll-snap-align: start;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  }

  /* ---- Homestay ---- */
  .homestay-content {
    margin-top: 1rem;
  }

  .pricing-options {
    padding: 1rem;
    border-radius: 10px;
  }

  .pricing-options h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }

  .price-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
  }

  .price-label {
    font-size: 0.9rem;
  }

  .price-value {
    font-size: 0.9rem;
    text-align: right;
  }

  /* Amenities */
  .amenities-layout {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .amenities-column {
    width: 100%;
    text-align: center !important;
    padding: 0 !important;
  }

  .amenities-list li {
    justify-content: center;
    font-size: 0.9rem;
  }

  .amenities-logo img {
    width: 50px;
    height: 50px;
  }

  /* ---- About ---- */
  .about-bg-image {
    display: none;
  }

  .about-gallery-creative {
    max-width: 100%;
    height: 260px;
    margin: 1.5rem auto 0;
  }

  .gallery-card-1 {
    width: 150px;
    height: 185px;
    left: 8px;
    top: 15px;
    transform: rotate(-5deg);
  }

  .gallery-card-2 {
    width: 160px;
    height: 150px;
    right: 8px;
    top: 55px;
    transform: rotate(4deg);
  }

  .card-inner {
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }

  .gallery-card:hover {
    transform: rotate(0deg) scale(1.1);
  }

  .card-label {
    font-size: 0.85rem;
  }

  /* ---- Stats ---- */
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .stat {
    padding: 1rem 0.5rem;
    border-radius: 10px;
  }

  .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* ---- Contact ---- */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contact-info {
    text-align: center;
  }

  .contact-info h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
  }

  .contact-item {
    text-align: center;
    margin-bottom: 1rem;
  }

  .contact-item label {
    font-size: 0.75rem;
  }

  .contact-item p {
    font-size: 0.95rem;
  }

  .whatsapp-widget {
    display: inline-flex;
    margin: 0.75rem auto 0;
    font-size: 0.9rem;
    padding: 0.75rem 1.1rem;
    min-height: 48px;
  }

  .form-group label {
    font-size: 0.75rem;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 1rem;
    padding: 0.75rem;
    min-height: 48px;
    border-radius: 8px;
  }

  .form-group textarea {
    min-height: 100px;
  }

  .btn-submit {
    font-size: 1rem;
    padding: 0.9rem;
    min-height: 52px;
    border-radius: 8px;
  }

  /* ---- Lightbox ---- */
  .lightbox-close {
    top: 15px;
    right: 15px;
    font-size: 32px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .lightbox-image {
    max-width: 95%;
    max-height: 88vh;
  }

  /* ---- Footer ---- */
  .footer {
    padding: 1.25rem 1rem;
  }

  .footer p {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .social-links {
    justify-content: center;
    margin-top: 0.75rem;
  }
}

/* ---- Very small phones (up to 360px) ---- */
@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.9rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .gallery-image {
    flex: 0 0 190px;
    height: 145px;
  }

  .gallery-card-1 {
    width: 130px;
    height: 160px;
  }

  .gallery-card-2 {
    width: 140px;
    height: 130px;
  }
}
