/* ============================================================
   IslandStays — Brand Style Sheet
   Based on style.md design language
   Used alongside Tailwind CSS (CDN)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Nunito+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Brand Colours */
  --color-primary:        #1a4a6e;
  --color-primary-dark:   #122f47;
  --color-secondary:      #1a6e5f;
  --color-accent:         #c8922a;
  --color-whatsapp:       #25D366;

  /* Neutrals */
  --color-white:          #ffffff;
  --color-bg:             #f8f6f2;
  --color-border:         #e0e0e0;
  --color-text:           #1c1c1c;
  --color-text-body:      #3a3a3a;
  --color-text-muted:     #767676;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:    'Nunito Sans', 'Avenir Next', 'Lato', Helvetica, sans-serif;

  /* Font Sizes */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   24px;
  --text-xl:   32px;
  --text-2xl:  42px;
  --text-3xl:  56px;

  /* Spacing */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* Layout */
  --max-width:         1280px;
  --border-radius-sm:  4px;
  --border-radius-md:  8px;
  --border-radius-lg:  12px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 12px rgba(0,0,0,0.12);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.16);
}

/* ── Base Reset / Global ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.25;
}

h1 { font-size: var(--text-2xl); font-weight: 500; }
h2 { font-size: var(--text-xl);  font-weight: 500; }
h3 { font-size: var(--text-lg);  font-weight: 500; }

p { color: var(--color-text-body); }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-secondary); }

/* ── Layout Container ───────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

@media (max-width: 767px) {
  .container { padding: 0 var(--space-lg); }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--color-border);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.site-nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.site-nav__logo-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}

.site-nav__logo-tagline {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
}

.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--color-secondary);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
}

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

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

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  padding: 10px 20px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-sm);
}

/* WhatsApp floating/nav icon */
.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.whatsapp-icon:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
  color: #fff;
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.hero h1 {
  color: var(--color-white);
  font-size: var(--text-3xl);
  max-width: 780px;
  margin: 0 auto var(--space-md);
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-md);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}

@media (max-width: 767px) {
  .hero { padding: var(--space-2xl) var(--space-lg); }
  .hero h1 { font-size: var(--text-2xl); }
}

/* ── Section Styles ─────────────────────────────────────────── */
.section {
  padding: var(--space-3xl) 0;
}

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

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__header h2 {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.section__header p {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Destination / Hotel Cards ──────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1023px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.card__image-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.card__body {
  padding: var(--space-lg);
}

.card__stars {
  color: var(--color-accent);
  font-size: 14px;
  margin-bottom: var(--space-xs);
  letter-spacing: 2px;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.card__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-md) 0;
}

/* ── Pricing / Package Card ─────────────────────────────────── */
.package-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.package-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.package-card__body {
  padding: var(--space-lg);
}

.package-card__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.package-card__dates {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

/* Meal plan rows */
.meal-plan {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.meal-plan:last-of-type { border-bottom: none; }

.meal-plan__label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-body);
}

.meal-plan__price {
  font-weight: 600;
  color: var(--color-accent);
  font-size: var(--text-base);
}

/* Inclusions */
.inclusions {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.inclusions li {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  padding: var(--space-xs) 0;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.inclusions li::before {
  content: '✔';
  color: var(--color-secondary);
  font-weight: 600;
  flex-shrink: 0;
}

/* Package card CTA row */
.package-card__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.package-card__actions .btn {
  flex: 1;
  justify-content: center;
  font-size: var(--text-sm);
}

/* ── Badges / Pills ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge-available  { background: #e8f5e9; color: #2e7d32; }
.badge-on-request { background: #fff3e0; color: #e65100; }
.badge-sold-out   { background: #fce4ec; color: #c62828; }
.badge-special    { background: #fff8e1; color: #f57f17; border: 1px solid #ffe082; }
.badge-honeymoon  { background: #fce4ec; color: #ad1457; border: 1px solid #f48fb1; }

/* ── Search / Quote Form ────────────────────────────────────── */
.search-form {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  font-family: var(--font-body);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-body);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(26, 110, 95, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1023px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .form-grid { grid-template-columns: 1fr; }
  .search-form { padding: var(--space-lg); }
}

/* ── Trust / USP Block ──────────────────────────────────────── */
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-base);
  color: var(--color-text-body);
}

.trust-list li .trust-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-list li strong {
  color: var(--color-text);
  display: block;
  margin-bottom: 2px;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1023px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.testimonial {
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-border);
}

.testimonial__text {
  font-size: var(--text-base);
  color: var(--color-text-body);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  font-style: italic;
}

.testimonial__attribution {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 767px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: 0 var(--space-lg);
  }
}

.site-footer__brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.site-footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.site-footer__contact {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  line-height: 2;
}

.site-footer__contact a {
  color: var(--color-text-body);
  text-decoration: none;
}

.site-footer__contact a:hover { color: var(--color-secondary); }

.site-footer__social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.social-icon:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.site-footer__col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

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

.site-footer__links li { margin-bottom: var(--space-sm); }

.site-footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.site-footer__bottom {
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
  padding: var(--space-md) var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
    padding: var(--space-md) var(--space-lg) 0;
  }
}

/* ── Floating WhatsApp Button ───────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 57px;
  height: 57px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37,211,102,0.4);
  color: #fff;
}

/* ── Loading Spinner ────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-secondary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-state {
  text-align: center;
  padding: var(--space-3xl) 0;
  color: var(--color-text-muted);
}

.loading-state p { margin-top: var(--space-md); }

/* ── Empty / Error States ───────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--color-text-muted);
}

.empty-state__icon { font-size: 48px; margin-bottom: var(--space-md); }
.empty-state h3 { color: var(--color-primary); margin-bottom: var(--space-sm); }

/* ── Utility ────────────────────────────────────────────────── */
.text-accent  { color: var(--color-accent) !important; }
.text-primary { color: var(--color-primary) !important; }
.text-muted   { color: var(--color-text-muted) !important; }
.text-serif   { font-family: var(--font-display) !important; }

.price-from {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}

.price-amount {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-body);
  line-height: 1;
}

.price-pp {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Alert / notice bars */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.alert-info    { background: #e3f2fd; color: #1565c0; border-left: 4px solid #1565c0; }
.alert-error   { background: #fce4ec; color: #c62828; border-left: 4px solid #c62828; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #2e7d32; }

/* ── Mobile Nav ─────────────────────────────────────────────── */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-primary);
  font-size: 22px;
}

@media (max-width: 767px) {
  .mobile-nav-toggle { display: block; }

  .site-nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md) var(--space-lg);
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
    gap: 0;
  }

  .site-nav__links.is-open { display: flex; }

  .site-nav__links a {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--text-base);
  }

  .site-nav__links li:last-child a { border-bottom: none; }
}
