/* ------------------------- RESET & VARIABLES -------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

:root {
  --primary-gold: #c5a059; 
  --light-gold: #fdf1d4; /* Brighter gold to make headings pop */
  --dark-bg: #0f1115;
  --section-bg: #16181d;
  --text-light: #ffffff;
  --text-body: #e8e8e8; /* Brighter, crisper off-white */
  --glass-bg: rgba(15, 17, 21, 0.95);
}

/* --------------------- GLOBAL STYLING ---------------------- */
body {
  background: var(--dark-bg);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

section {
  padding: 80px 10%;
  position: relative;
  color: var(--text-light);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Adds a premium parallax feel */
}

/* Elegant Overlay */
section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,17,21,0.92) 0%, rgba(15,17,21,0.6) 100%);
  z-index: 0;
}

section > * {
  position: relative;
  z-index: 1;
}

/* --------------------- TEXT STYLING ---------------------- */
h2 {
  /* Fluid typography: Minimum 30px, preferred 4vw, maximum 42px */
  font-size: clamp(30px, 4vw, 42px); 
  font-weight: 400; 
  letter-spacing: 1.5px;
  border-left: 4px solid var(--primary-gold);
  padding-left: 20px;
  margin-bottom: 30px;
  color: var(--light-gold);
  text-transform: uppercase;
  /* Adds an elegant depth and soft gold glow */
  text-shadow: 0 4px 10px rgba(0,0,0,0.9), 0 0 20px rgba(197, 160, 89, 0.15); 
}

p, li {
  /* Fluid typography: Minimum 16px, scales smoothly, max 18px */
  font-size: clamp(16px, 1.5vw, 18px); 
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Elegant dark backing for paragraphs to ensure perfect readability over images */
section p, section ul {
  background: rgba(15, 17, 21, 0.65); 
  padding: 20px 30px;
  border-radius: 6px;
  border-left: 2px solid rgba(197, 160, 89, 0.4); 
  backdrop-filter: blur(5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

section ul {
  list-style-type: none; /* Removes standard bullets to use custom ones */
}

section ul li {
  position: relative;
  padding-left: 20px;
}

/* Custom Gold Square Bullets */
section ul li::before {
  content: "■";
  color: var(--primary-gold);
  position: absolute;
  left: 0;
  font-size: 12px;
  top: 4px;
}

/* ------------------------- NAV BAR ------------------------- */
header {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  padding: 20px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--light-gold);
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.logo-img {
  height: 2.1em; 
  margin-right: 16px; /* Increased the gap slightly so the larger image doesn't crowd the text */
  transition: transform 0.4s ease;
  border-radius: 2px; /* Adds a very subtle rounding to the harsh white corners */
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

nav ul {
  display: flex;
  list-style: none;
  padding: 0;
}

nav ul li {
  margin: 0 18px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-gold);
  transition: width 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-gold);
}

nav ul li a:hover::after {
  width: 100%;
}

/* ------------------ HAMBURGER MENU ------------------ */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger div {
  width: 26px;
  height: 2px;
  background: var(--light-gold);
  margin: 4px;
  transition: all 0.3s ease;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked + .hamburger .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
#menu-toggle:checked + .hamburger .line2 {
  opacity: 0;
}
#menu-toggle:checked + .hamburger .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 900px) {
  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: var(--glass-bg);
    border-left: 1px solid rgba(197, 160, 89, 0.2);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  }
  
  #menu-toggle:checked ~ nav ul {
    right: 0;
  }

  nav ul li {
    margin: 25px 0;
    text-align: center;
  }
  
  .hamburger {
    display: flex;
  }
}

/* ---------------------- HERO SECTION ---------------------- */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  background: linear-gradient(to bottom, rgba(15,17,21,0.5), rgba(15,17,21,0.95));
}

.hero-content {
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  /* Fluid typography: Massive on desktop, scales perfectly on mobile */
  font-size: clamp(40px, 6vw, 68px); 
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: var(--text-light);
  text-transform: uppercase;
  text-shadow: 0 4px 15px rgba(0,0,0,0.9);
}

.hero-content p {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--light-gold);
  font-weight: 300;
  letter-spacing: 1.5px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.9);
  /* Removes the box background specifically for the hero subtitle */
  background: transparent; 
  border: none;
  backdrop-filter: none;
  box-shadow: none;
}

/* Est 2025 class added to global stylesheet */
.hero-content .est {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--primary-gold);
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(0,0,0,0.8), 0 0 4px rgba(197, 160, 89, 0.5);
  background: transparent; 
  border: none;
  backdrop-filter: none;
  box-shadow: none;
}

/* ------------------ CONTACT FORM STYLING ------------------ */
form {
  max-width: 600px;
  margin: 40px 0;
  background: rgba(255, 255, 255, 0.02);
  padding: 40px;
  border-radius: 4px;
  border: 1px solid rgba(197, 160, 89, 0.15);
  backdrop-filter: blur(10px);
}

form label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--light-gold);
}

form input, form textarea {
  width: 100%;
  padding: 15px;
  margin-bottom: 25px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.1);
}

form button {
  background: transparent;
  color: var(--primary-gold);
  padding: 15px 35px;
  border: 1px solid var(--primary-gold);
  border-radius: 2px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  width: 100%;
}

form button:hover {
  background: var(--primary-gold);
  color: var(--dark-bg);
}

/* ------------------ FOOTER -------------------- */
footer {
  background: #050608;
  padding: 30px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 1px;
  border-top: 1px solid rgba(197, 160, 89, 0.1);
}

/* ------------------ ANIMATIONS & RESPONSIVE ------------------ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  form { padding: 25px; }
}

/* ------------------ MOBILE BACKGROUND FIX ------------------ */
/* background-attachment: fixed is unreliable on mobile Safari/Chrome —
   the browser recalculates background-size: cover against the full
   document height (and re-triggers on every address-bar show/hide),
   which produces the cropped/zoomed-in appearance on phones.
   Switching to "scroll" below the same breakpoint used for the nav
   keeps the cover/centered layout but removes the buggy recalculation. */
@media (max-width: 900px) {
  section,
  .hero {
    background-attachment: scroll;
  }
}
/* Contact Page Map Container */
.map-container {
  max-width: 600px;
  width: 100%;
  margin: 20px 0 30px 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.map-container iframe {
  display: block;
}
/* ------------------ FORM FEEDBACK STYLING ------------------ */
.form-feedback {
  display: none; /* Hidden by default */
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s ease;
}

.form-feedback.success {
  display: block;
  background: rgba(37, 211, 102, 0.05);
  border: 1px solid rgba(37, 211, 102, 0.5);
  color: #4ade80; /* Soft green */
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.2);
}

.form-feedback.error {
  display: block;
  background: rgba(220, 53, 69, 0.05);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #ff6b6b; /* Soft red */
  text-shadow: 0 0 8px rgba(255, 107, 107, 0.2);
}

/* Add a visual cue when the button is disabled (sending) */
form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: rgba(197, 160, 89, 0.5);
  color: rgba(197, 160, 89, 0.5);
}
/* ------------------ WHATSAPP FLOATING BUTTON ------------------ */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  background: rgba(37, 211, 102, 0.1); /* Frosted dark green glass */
  border: 1px solid rgba(37, 211, 102, 0.3);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 50px;
  text-decoration: none;
  z-index: 1000;
  animation: pulse-green 2s infinite;
  transition: all 0.3s ease;
}

/* Hover effect */
.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.2);
  transform: translateY(-3px);
}

/* The WhatsApp Icon */
.whatsapp-btn img {
  width: 26px;
  height: 26px;
  margin-right: 12px;
  filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.8));
}

/* The Stylish Text */
.wa-text {
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* The Pulsing Glow Animation */
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .whatsapp-btn {
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
  }
  .wa-text {
    font-size: 12px; /* Scales the text down slightly for smaller screens */
  }
  .whatsapp-btn img {
    width: 22px;
    height: 22px;
    margin-right: 8px;
  }
}
/* ------------------ HERO CTA BUTTON ------------------ */
.cta-section {
  margin-top: 35px;
}

.hero-content .cta-text {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-body);
  margin-bottom: 18px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 1px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.9);
  /* Overriding global paragraph styles */
  background: transparent;
  border: none;
  backdrop-filter: none;
  box-shadow: none;
}

.consult-btn {
  display: inline-block;
  background: var(--primary-gold);
  color: var(--dark-bg);
  padding: 16px 42px;
  border: 1px solid var(--primary-gold);
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.consult-btn:hover {
  background: rgba(15, 17, 21, 0.85); /* Dark glass effect on hover */
  color: var(--primary-gold);
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
  transform: translateY(-3px); /* Slight lift effect */
}
