/* ============================================
   SHALOM HOLIDAY HOMES — Design System
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #2D6A4F;
  --color-primary-light: #52B788;
  --color-primary-dark: #1B4332;
  --color-secondary: #D4A373;
  --color-secondary-light: #E9C9A1;
  --color-accent: #B7E4C7;
  --color-bg: #FAFAF7;
  --color-bg-warm: #F5F0EB;
  --color-bg-dark: #1B4332;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-text-muted: #999999;
  --color-white: #FFFFFF;
  --color-border: #E8E4DF;
  --color-overlay: rgba(27, 67, 50, 0.7);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 900px;
  --header-height: 80px;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.16);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --- 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(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

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

.text-accent {
  color: var(--color-primary);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  display: block;
}

.section-title {
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  margin-top: var(--space-md);
  border-radius: 2px;
}

.section-title.center::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 650px;
  line-height: 1.8;
}

.section-subtitle.center {
  margin-left: auto;
  margin-right: auto;
}

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

.container--narrow {
  max-width: var(--max-width-narrow);
}

section {
  padding: var(--space-5xl) 0;
}

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

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

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

.section--dark p {
  color: rgba(255,255,255,0.8);
}

.grid {
  display: grid;
  gap: var(--space-xl);
}

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

.flex {
  display: flex;
  gap: var(--space-xl);
}

.flex--center {
  align-items: center;
  justify-content: center;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

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

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

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

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

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

.btn--gold {
  background: linear-gradient(135deg, var(--color-secondary), #c4915c);
  color: var(--color-white);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* --- Cards --- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

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

.card__content {
  padding: var(--space-xl);
}

.card__title {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

/* Icon Card */
.icon-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.icon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.icon-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--color-accent), #d8f3dc);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.icon-card__title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.icon-card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-base);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header__logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  transition: color var(--transition-base);
}

.header.scrolled .header__logo-text {
  color: var(--color-primary-dark);
}

.header__logo-icon {
  font-size: 1.6rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__link {
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.header.scrolled .nav__link {
  color: var(--color-text);
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
}

.header.scrolled .nav__link:hover,
.header.scrolled .nav__link.active {
  color: var(--color-primary);
  background: var(--color-accent);
}

.nav__cta {
  padding: 10px 24px;
  background: var(--color-secondary);
  color: var(--color-white) !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-left: var(--space-sm);
}

.nav__cta:hover {
  background: #c4915c !important;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.header.scrolled .nav__toggle span {
  background: var(--color-text);
}

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

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

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

/* --- Page Hero Banner --- */
.page-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(27,67,50,0.85), rgba(45,106,79,0.75));
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
}

.page-hero__title {
  color: var(--color-white);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.page-hero__breadcrumb a {
  color: var(--color-secondary-light);
}

.page-hero__breadcrumb a:hover {
  color: var(--color-white);
}

/* --- Footer --- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.8);
  padding-top: var(--space-4xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer__brand-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

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

.footer__links a:hover {
  color: var(--color-secondary-light);
  padding-left: 4px;
}

.footer__contact-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}

.footer__contact-icon {
  color: var(--color-secondary);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-base);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--color-white);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* Mobile Call Button */
.mobile-call-btn {
  display: none;
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(45, 106, 79, 0.4);
  transition: all var(--transition-base);
}

.mobile-call-btn svg {
  width: 26px;
  height: 26px;
  fill: var(--color-white);
}

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

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

.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animation delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* --- Toast Notification --- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast--success {
  background: var(--color-primary);
  color: var(--color-white);
}

.toast--error {
  background: #D32F2F;
  color: var(--color-white);
}

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

@media (max-width: 768px) {
  section { padding: var(--space-3xl) 0; }
  .container { padding: 0 var(--space-lg); }

  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }

  /* Mobile Nav */
  .nav__toggle { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--color-primary-dark);
    padding: 100px var(--space-xl) var(--space-xl);
    transition: right var(--transition-base);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
  }

  .nav.open { right: 0; }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav__link {
    color: rgba(255,255,255,0.85) !important;
    padding: var(--space-md) var(--space-lg);
    width: 100%;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav__link:hover, .nav__link.active {
    color: var(--color-white) !important;
    background: rgba(255,255,255,0.1) !important;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: var(--space-md);
    text-align: center;
    border: none;
  }

  /* Mobile Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
  }

  .nav-overlay.show { display: block; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .page-hero { height: 320px; }

  .mobile-call-btn { display: flex; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .page-hero { height: 280px; background-attachment: scroll; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .btn--lg { padding: 14px 30px; }
}
