/* =========================================
   GERMISTON HOUSE — styles.css
   Deep Navy + Warm Gold — Premium & Trustworthy
   ========================================= */

/* ---- CSS VARIABLES ---- */
:root {
  --navy:        #0f1f3d;
  --navy-mid:    #1a3260;
  --navy-light:  #243d72;
  --gold:        #c9a84c;
  --gold-light:  #e2c47a;
  --gold-pale:   #f5edd8;
  --cream:       #faf8f4;
  --white:       #ffffff;
  --text-dark:   #1a1a2e;
  --text-body:   #3d4a6b;
  --text-muted:  #7a86a1;
  --border:      #e4e9f2;
  --wa-green:    #25d366;
  --wa-dark:     #128c7e;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;

  --shadow-sm:   0 2px 8px rgba(15, 31, 61, 0.08);
  --shadow-md:   0 6px 24px rgba(15, 31, 61, 0.12);
  --shadow-lg:   0 16px 48px rgba(15, 31, 61, 0.16);
  --shadow-gold: 0 8px 32px rgba(201, 168, 76, 0.25);

  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width:   1200px;
}

/* ---- 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: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- UTILITIES ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 52px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(4px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(20px, 5vw, 60px);
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(15, 31, 61, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
  padding-top: 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.55) 0%,
    rgba(10, 22, 40, 0.45) 50%,
    rgba(10, 22, 40, 0.72) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px clamp(20px, 6vw, 60px) 80px;
  max-width: 780px;
  animation: heroFadeIn 1s ease forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.35);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-address {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  gap: 4px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
}

/* =========================================
   ABOUT
   ========================================= */
.about {
  background: var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.about-feature {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.about-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.about-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.about-feature:hover::before { opacity: 1; }

.feature-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(15, 31, 61, 0.2);
}

.about-feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.about-feature p {
  font-size: 0.93rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* =========================================
   GALLERY
   ========================================= */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

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

/* Placeholder gradient for missing images */
.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #e8edf5, #d0d9ee);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 31, 61, 0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-overlay span {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.06); }

/* =========================================
   CONTACT
   ========================================= */
.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-card:not(.contact-card--address):hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-card--whatsapp .contact-card-icon {
  background: linear-gradient(135deg, #128c7e, #25d366);
  color: var(--white);
}

.contact-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.contact-card-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.contact-card-arrow {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  transition: transform var(--transition);
}
.contact-card:hover .contact-card-arrow { transform: translateX(4px); }
.contact-card--address .contact-card-arrow { display: none; }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 420px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.map-container iframe { width: 100%; height: 100%; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy);
  padding: 56px 0 36px;
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  font-weight: 600;
}
.footer-tagline {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
}

/* =========================================
   FLOATING WHATSAPP BUTTON
   ========================================= */
.fab-whatsapp {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: var(--wa-green);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37, 211, 102, 0.55);
}
.fab-whatsapp:hover .fab-tooltip { opacity: 1; transform: translateX(0); }

.fab-tooltip {
  position: absolute;
  right: 70px;
  background: var(--text-dark);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.fab-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--text-dark);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(15,31,61,0.98);
    backdrop-filter: blur(12px);
    padding: 24px clamp(20px, 5vw, 60px);
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-cta { align-self: flex-start; }

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

  .stats-inner { gap: 0; }
  .stat-divider { display: none; }
  .stat-item { min-width: 50%; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.06); }

  .footer-inner { flex-direction: column; gap: 24px; }
}

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

  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }

  .fab-whatsapp { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* =========================================
   SCROLL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
