/* ============================================
   Sunridge Subic - Styles
   Colors: #2c5f2d (forest green) / #f4a460 (sandy brown)
   Fonts: Rokkitt + Libre Franklin
   ============================================ */

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

:root {
  --green: #2c5f2d;
  --green-dark: #1e4220;
  --green-light: #3a7d3e;
  --sand: #f4a460;
  --sand-light: #f8c896;
  --sand-pale: #fdf0e2;
  --white: #ffffff;
  --off-white: #faf9f7;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-600: #666666;
  --gray-800: #333333;
  --black: #1a1a1a;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Libre Franklin', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Rokkitt', serif;
  color: var(--green);
  line-height: 1.3;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--sand);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--green);
  color: var(--white);
  padding: 8px 16px;
  z-index: 10000;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* ---------- Header & Navigation ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Rokkitt', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
}

.logo span {
  color: var(--sand);
}

.nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-list a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-800);
  position: relative;
  padding: 4px 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sand);
  transition: width var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--green);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  margin: 6px 0;
  transition: var(--transition);
}

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

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

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30, 66, 32, 0.6) 0%,
    rgba(30, 66, 32, 0.4) 50%,
    rgba(30, 66, 32, 0.7) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content h1 span {
  color: var(--sand-light);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 32px;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--sand);
  color: var(--green-dark);
  border-color: var(--sand);
}

.btn-primary:hover {
  background: var(--sand-light);
  color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.btn-green:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--off-white);
}

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

.section-green h2,
.section-green h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.section-green .section-header p {
  color: rgba(255,255,255,0.85);
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--sand);
  margin: 16px auto;
  border-radius: 2px;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.page-hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(30, 66, 32, 0.65) 0%,
    rgba(30, 66, 32, 0.55) 100%
  );
}

.page-hero .hero-content h1 {
  font-size: 2.75rem;
}

.page-hero .hero-content p {
  font-size: 1.125rem;
}

/* ---------- Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--sand-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--green);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* ---------- Room Cards ---------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.room-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

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

.room-card:hover .room-card-image img {
  transform: scale(1.05);
}

.room-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--sand);
  color: var(--green-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.room-card-body {
  padding: 24px;
}

.room-card-body h3 {
  font-size: 1.375rem;
  margin-bottom: 8px;
}

.room-card-body p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.room-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.room-amenity {
  font-size: 0.8125rem;
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--gray-800);
}

.room-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.room-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sand);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(44, 95, 45, 0);
  transition: background var(--transition);
}

.gallery-item:hover::after {
  background: rgba(44, 95, 45, 0.2);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* ---------- About Sections ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray-600);
}

.about-text ul {
  margin-bottom: 24px;
}

.about-text ul li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  color: var(--gray-600);
}

.about-text ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Attractions ---------- */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.attraction-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.attraction-card:hover {
  transform: translateY(-3px);
}

.attraction-card h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.attraction-card .distance {
  font-size: 0.8125rem;
  color: var(--sand);
  font-weight: 600;
  margin-bottom: 8px;
}

.attraction-card p {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.contact-info-card .icon {
  width: 48px;
  height: 48px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.contact-form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--gray-800);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.9375rem;
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(44, 95, 45, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- Map ---------- */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- CTA Section ---------- */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
}

.cta-section h2 {
  font-size: 2.25rem;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-col h4 {
  font-family: 'Rokkitt', serif;
  color: var(--sand);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--sand);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--transition);
}

.social-links a:hover {
  background: var(--sand);
  color: var(--green-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8125rem;
  opacity: 0.6;
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--sand);
  color: var(--green-dark);
  transform: translateY(-2px);
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .page-hero .hero-content h1 {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list a {
    display: block;
    padding: 12px 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--gray-200);
  }

  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1.0625rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 40vh;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.875rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}
