/* ============================================
   The Sunhouse - Bataan, Philippines
   styles.css
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --sunshine: #e6a817;
  --sunshine-light: #f5c842;
  --sunshine-dark: #c48f10;
  --navy: #1e3a5f;
  --navy-light: #2c5282;
  --navy-dark: #132843;
  --warm-white: #fffdf5;
  --warm-cream: #fef9e7;
  --text-dark: #1a1a2e;
  --text-muted: #5a6577;
  --border-light: #e8e3d5;
  --shadow-sm: 0 1px 3px rgba(30, 58, 95, 0.08);
  --shadow-md: 0 4px 12px rgba(30, 58, 95, 0.12);
  --shadow-lg: 0 8px 30px rgba(30, 58, 95, 0.16);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --font-heading: 'Josefin Sans', sans-serif;
  --font-body: 'Lato', sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul,
ol {
  list-style: none;
}

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

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p {
  margin-bottom: 1rem;
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background-color: var(--warm-cream);
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--sunshine);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background-color: var(--sunshine);
  color: var(--navy-dark);
  border-color: var(--sunshine);
}

.btn--primary:hover {
  background-color: var(--sunshine-dark);
  border-color: var(--sunshine-dark);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn--outline:hover {
  background-color: #fff;
  color: var(--navy);
}

.btn--navy {
  background-color: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn--navy:hover {
  background-color: var(--navy-light);
  border-color: var(--navy-light);
}

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

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

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar--transparent {
  background: transparent;
}

.navbar--scrolled {
  background: rgba(255, 253, 245, 0.97);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sunshine);
  letter-spacing: 1px;
}

.navbar--transparent .navbar__logo {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.navbar--scrolled .navbar__logo {
  color: var(--navy);
}

.navbar__logo span {
  color: var(--sunshine);
}

.navbar__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar__links a {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  padding-bottom: 4px;
}

.navbar--transparent .navbar__links a {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.navbar--scrolled .navbar__links a {
  color: var(--navy);
}

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

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__links a.active {
  color: var(--sunshine);
}

.navbar--transparent .navbar__links a.active {
  color: var(--sunshine-light);
  text-shadow: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

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

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

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

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

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(255, 253, 245, 0.98);
    backdrop-filter: blur(12px);
    padding: 2rem 0;
    gap: 0;
    transform: translateY(-120%);
    transition: transform 0.4s ease;
    box-shadow: var(--shadow-lg);
  }

  .navbar__links.open {
    transform: translateY(0);
  }

  .navbar__links a {
    color: var(--navy) !important;
    text-shadow: none !important;
    padding: 1rem 2rem;
    width: 100%;
    text-align: center;
  }

  .navbar__links a:hover {
    background: var(--warm-cream);
  }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--sunshine-dark);
}

.breadcrumbs a:hover {
  color: var(--navy);
}

.breadcrumbs span {
  margin: 0 0.5rem;
  color: var(--border-light);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 40, 67, 0.45) 0%,
    rgba(19, 40, 67, 0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 0 1.5rem;
}

.hero__content h1 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
}

.hero__content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero (shorter for subpages) */
.page-hero {
  position: relative;
  padding: 10rem 0 4rem;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.page-hero .hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(19, 40, 67, 0.5) 0%,
    rgba(19, 40, 67, 0.7) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__content h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-hero__content p {
  opacity: 0.85;
  font-size: 1.1rem;
}

/* ---------- Features Grid ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- About Preview (Home) ---------- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-preview__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-preview__text .section-label {
  margin-bottom: 0.5rem;
}

.about-preview__text h2 {
  margin-bottom: 1rem;
}

.about-preview__text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .about-preview {
    grid-template-columns: 1fr;
  }
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  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.05);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(19, 40, 67, 0.6) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

.gallery-item__overlay p {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

/* ---------- Rooms / Property ---------- */
.room-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.room-card__image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.room-card__body {
  padding: 1.5rem;
}

.room-card__body h3 {
  margin-bottom: 0.5rem;
}

.room-card__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.room-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.room-card__amenities li {
  background: var(--warm-cream);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 600;
}

/* Rooms grid */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

/* ---------- Amenities List ---------- */
.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.amenity-item__icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.review-card__stars {
  color: var(--sunshine);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.review-card p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.review-card__author {
  font-weight: 700;
  color: var(--navy);
  font-style: normal;
  font-size: 0.9rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-banner p {
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

.contact-info-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.contact-info-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-cream);
  border-radius: var(--radius-sm);
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--warm-white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--sunshine);
}

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

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

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

/* ---------- Map ---------- */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 2rem;
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer__brand h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer__brand h3 span {
  color: var(--sunshine);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--sunshine);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.footer__social a:hover {
  background: var(--sunshine);
  color: var(--navy-dark);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

.lightbox.active {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.lightbox__close:hover {
  color: var(--sunshine);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color var(--transition);
}

.lightbox__nav:hover {
  color: var(--sunshine);
}

.lightbox__prev {
  left: 1.5rem;
}

.lightbox__next {
  right: 1.5rem;
}

/* ---------- Rating Badge ---------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sunshine);
  color: var(--navy-dark);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- About Page Specifics ---------- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-content--reverse {
  direction: rtl;
}

.about-content--reverse > * {
  direction: ltr;
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-content--reverse {
    direction: ltr;
  }
}

/* ---------- Stat Cards ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.stat-card__number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sunshine);
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ---------- Activities ---------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.activity-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.activity-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.activity-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.activity-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--sunshine);
  color: var(--navy-dark);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  z-index: 900;
}

.scroll-top.visible {
  display: flex;
}

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