/* ════════════════════════════════════════
   Dra Rosy Real Estate — main.css
   Paleta: ciudadmaderas.com
   ════════════════════════════════════════ */

@import 'variables.css';

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-700);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: .3s ease; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ═══════════════════════ NAV ═══════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); background: rgba(0,26,42,.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(30,202,211,.15);
  transition: .4s ease;
}
.navbar.scrolled { height: 60px; background: rgba(0,26,42,.98); }

.nav-inner {
  max-width: var(--max-w); margin: auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.logo { display: flex; align-items: center; }
.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: .4s ease;
}
.navbar.scrolled .logo-img {
  height: 34px;
}

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 18px; border-radius: 8px; font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.7); letter-spacing: .3px;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,.08); }

.btn-cta {
  margin-left: 16px; padding: 10px 24px !important; border-radius: 90px !important;
  background: var(--cyan) !important; color: #fff !important; font-weight: 600 !important;
  transition: .3s ease; box-shadow: 0 4px 16px rgba(30,202,211,.25);
}
.btn-cta:hover { background: var(--cyan-dk) !important; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,202,211,.35); }

/* Hamburger */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 10;
}
.menu-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s ease; }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding-top: var(--nav-h);
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--navy-700) 40%, #003d5c 70%, #00538b 100%);
  position: relative; overflow: hidden;
}
/* subtle pattern overlay */
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231ECAD3' fill-rule='evenodd'%3E%3Ccircle cx='6' cy='6' r='1.5'/%3E%3Ccircle cx='18' cy='18' r='1'/%3E%3Ccircle cx='30' cy='12' r='1.2'/%3E%3Ccircle cx='42' cy='24' r='1'/%3E%3Ccircle cx='6' cy='36' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(to top, var(--off-white), transparent); pointer-events: none; z-index: 2;
}

.hero-inner { position: relative; z-index: 3; max-width: 760px; padding: 140px 32px 180px; }
.hero-badge {
  display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: 4px;
  color: var(--cyan); background: rgba(30,202,211,.12); border: 1px solid rgba(30,202,211,.25);
  padding: 8px 24px; border-radius: 90px; margin-bottom: 28px; font-weight: 600;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 1.12; color: #fff; margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 em { font-style: italic; font-weight: 600; color: var(--gold); }
.hero p { color: rgba(255,255,255,.75); font-size: clamp(.95rem, 2vw, 1.1rem); max-width: 520px; margin: 0 auto 44px; line-height: 1.8; }

.btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 14px 34px; border-radius: 90px; font-weight: 600; font-size: .92rem;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: none;
  transition: .3s ease; line-height: 1.4;
}
.btn-solid { background: var(--gold); color: var(--navy-900); }
.btn-solid:hover { background: var(--gold-mid); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,183,125,.35); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ═══════════════════════ SECTIONS ═══════════════════════ */
.section { padding: 100px 32px; }
.wrap { max-width: var(--max-w); margin: auto; }
.section--alt { background: var(--navy-700); color: #fff; }
.section--alt h2, .section--alt h3 { color: #fff; }
.section--alt p { color: rgba(255,255,255,.65); }

.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head .sec-tag {
  display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold-dk); background: rgba(200,183,125,.12); padding: 6px 18px; border-radius: 90px; margin-bottom: 14px; font-weight: 600;
}
.sec-head h2 {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--navy-800); margin-bottom: 6px; font-weight: 600; letter-spacing: -.5px;
}
.sec-head p { color: var(--gray-500); max-width: 520px; margin: 0 auto; font-size: .94rem; }
.section--alt .sec-head h2 { color: #fff !important; }
.section--alt .sec-head .sec-tag { background: rgba(30,202,211,.15); color: var(--cyan) !important; }

.line { width: 48px; height: 2px; background: var(--gold); margin-inline: auto; margin-top: 16px; border-radius: 2px; }
.section--alt .line { background: var(--cyan); }

/* ═══════════════════════ PROPERTY GRID ═══════════════════════ */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 28px; text-align: left; }
.prop-card {
  background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--gray-200); transition: .4s ease;
}
.prop-card:hover { transform: translateY(-5px); box-shadow: 0 24px 60px rgba(0,26,42,.08); }

.prop-img { height: 210px; display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative; overflow: hidden; }
.prop-img::after { content:''; position:absolute; bottom:0; left:0; right:0; height:60px; background: linear-gradient(to top, rgba(255,255,255,.8), transparent); pointer-events:none; }

.prop-body { padding: 28px; }
.prop-cat { font-size: .7rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--gold-dk); margin-bottom: 10px; font-weight: 600; }
.prop-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; margin-bottom: 8px; color: var(--navy-700); }
.prop-card > p { color: var(--gray-500); font-size: .9rem; line-height: 1.7; margin-bottom: 18px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold-dk); font-size: .85rem; }
.card-link:hover { gap: 10px; color: var(--navy-400); }

/* ═══════════════════════ DESTINATIONS GRID (Desktop default) ═══════════════════════ */
.dest-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ---- DESTINOS GRID ON DESKTOP ---- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.dest-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: .4s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.dest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,26,42,.12);
  border-color: var(--cyan);
}

.d-img { height: 148px; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; border-bottom: 1px solid var(--gray-200); position: relative; overflow: hidden; }
.d-img img { width: 100%; height: 296px; object-fit: cover; position: absolute; bottom: 0; left: 0; top: auto; }
.d-body { padding: 20px; }
.d-sub { font-size: .68rem; text-transform: uppercase; letter-spacing: 2.5px; color: var(--gold-dk); margin-bottom: 6px; font-weight: 600; }
.d-body h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; margin-bottom: 4px; color: var(--navy-800); }
.d-body p { color: var(--gray-500); font-size: .82rem; line-height: 1.6; margin-top: 6px; }

/* ═══════════════════════ ABOUT ═══════════════════════ */
.about-wrap { max-width: 740px; margin: auto; text-align: center; }
.about-wrap .sec-tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--gold-dk); background: rgba(200,183,125,.12); padding: 6px 18px; border-radius: 90px; margin-bottom: 16px; font-weight: 600; }
.about-wrap h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem,3vw,2.5rem); color: var(--navy-700); margin-bottom: 8px; }
.about-text { text-align: left; line-height: 1.9; color: #4a4640; margin-top: 30px; font-size: .94rem; }
.about-text h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--navy-800); margin: 22px 0 6px; }

/* ═══════════════════════ CONTACT ═══════════════════════ */
.contact-section { padding: 100px 32px; background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-600) 100%); text-align: center; }
.contact-inner { max-width: 540px; margin: auto; text-align: left; padding-bottom: 80px; }
.contact-inner .sec-tag, .contact-inner h2, .contact-inner p { text-align: center !important; width: 100% !important; }
.contact-inner .sec-tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: 3px; color: var(--cyan); background: rgba(30,202,211,.12); padding: 6px 18px; border-radius: 90px; margin-bottom: 14px; font-weight: 600; }
.contact-inner h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem,3vw,2.5rem); color: #fff !important; margin-bottom: 8px !important; }
.contact-inner p { color: rgba(255,255,255,.6) !important; margin-bottom: 40px !important; font-size: .93rem !important; }

.ct-cards { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.ct-card {
  display: flex; align-items: center; gap: 18px; padding: 18px 24px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(10px);
  border-radius: 14px; border: 1px solid rgba(255,255,255,.08); transition: .3s ease; font-size: .92rem;
}
.ct-card:hover { transform: translateX(6px); background: rgba(255,255,255,.1); border-color: var(--cyan); }
.ct-icon { font-size: 1.8rem; flex-shrink: 0; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(30,202,211,.1); }
.ct-icon svg, .ct-icon img { width: 28px; height: 28px; object-fit: contain; }
.ct-info { display: flex; flex-direction: column; line-height: 1.4; }
.ct-label { font-weight: 600; font-size: .82rem; color: #fff; }
.ct-val { color: rgba(255,255,255,.5); font-size: .78rem; word-break: break-all; margin-top: 1px; }

/* ═══════════════════════ FOOTER ═══════════════════════ */
.footer { background: var(--navy-900); text-align: center; padding: 36px 32px; border-top: 1px solid rgba(30,202,211,.1); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-family: 'Cormorant Garamond', serif; color: #fff; font-size: 1.1rem; }
.footer-copy { color: rgba(255,255,255,.3); font-size: .78rem; }

/* ═══════════════════════ SCROLL REVEAL ═══════════════════════ */
.reveal { opacity: 0; transform: translateY(40px); transition: .7s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 860px) {
  .navbar.scrolled { height: var(--nav-h); }
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 40px 32px;
    gap: 8px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    z-index: 999;
    background: rgba(0,26,42,.98);
    backdrop-filter: blur(20px);
  }
  .nav-links a { padding: 16px 20px; font-size: 1rem; text-align: center; border-radius: 10px; }
  .btn-cta { margin-left: 0 !important; margin-top: 12px; width: 100%; text-align: center; }
  .prop-grid { grid-template-columns: 1fr; }
  .hero h1 em { font-size: inherit; }

  /* Hamburger animation when open */
  .menu-toggle.open { background: rgba(255,255,255,.1); border-radius: 8px; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
