/* Casa Grande Brácana - Main Stylesheet */
/* Colors: Navy #0a1f42, Green #39b346, White #fff, Gray #32373c */

:root {
  --color-navy: #0a1f42;
  --color-green: #39b346;
  --color-green-dark: #1d5e13;
  --color-white: #ffffff;
  --color-gray: #32373c;
  --color-light: #f8f8f5;
  --color-border: #e0e0d8;
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'Muli', 'Mulish', sans-serif;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-gray);
  background: var(--color-white);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-green-dark); }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-navy); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }
p { margin-bottom: 1rem; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo img { height: 60px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 700;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  color: var(--color-white);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.main-nav a:hover,
.main-nav a.active { border-color: var(--color-green); color: var(--color-white); }

.btn-reserva {
  background: var(--color-green);
  color: var(--color-white) !important;
  border: none;
  border-radius: 4px;
  padding: .5rem 1.2rem !important;
  border-bottom: none !important;
}
.btn-reserva:hover { background: var(--color-green-dark); }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--color-white);
  transition: .3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-navy);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/44Fachada-Jardin-03-810x540.jpg');
  background-size: cover;
  background-position: center;
  opacity: .45;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  padding: 2rem 1.5rem;
  max-width: 800px;
}
.hero-content .tagline {
  font-size: 1rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-green);
  font-weight: 700;
  margin-bottom: .75rem;
}
.hero-content h1 { color: var(--color-white); margin-bottom: 1rem; }
.hero-content p { font-size: 1.1rem; opacity: .9; max-width: 600px; margin: 0 auto 2rem; }
.btn-primary {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-white);
  padding: .85rem 2.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .05em;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--color-green-dark); color: #fff; transform: translateY(-2px); }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
  padding: .75rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  transition: .2s;
}
.btn-outline:hover { background: var(--color-navy); color: #fff; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 2rem 1.5rem;
}
.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1rem;
}
.stat-num {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--color-green);
  line-height: 1;
}
.stat-label { font-size: .85rem; opacity: .8; margin-top: .25rem; }

/* ===== SECTIONS ===== */
.section { padding: 5rem 1.5rem; }
.section-light { background: var(--color-light); }
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title .line {
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-green);
  margin: .75rem auto 0;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-img img { border-radius: 6px; box-shadow: 0 6px 30px rgba(0,0,0,.15); }
.about-text p { color: #555; }

/* ===== AMENITIES ===== */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.amenity-card {
  padding: 2rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: box-shadow .2s;
}
.amenity-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.amenity-card img { height: 56px; width: auto; margin: 0 auto 1rem; }
.amenity-card h3 { font-size: 1rem; color: var(--color-navy); }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto 2rem;
}
.gallery-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform .3s;
}
.gallery-grid img:hover { transform: scale(1.03); }
.gallery-grid .wide { grid-column: span 2; }
.gallery-cta { text-align: center; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}
.faq-item h3 {
  color: var(--color-navy);
  font-size: 1.05rem;
  margin-bottom: .6rem;
}
.faq-item p { color: #555; margin: 0; }

/* ===== MAP SECTION ===== */
.map-section { padding: 0; }
.map-section iframe { display: block; width: 100%; height: 400px; border: none; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info p, .contact-info address {
  font-style: normal;
  line-height: 2;
  color: #555;
}
.contact-info a { color: var(--color-green); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-navy);
  color: rgba(255,255,255,.75);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .logo-text { color: var(--color-white); font-size: 1.2rem; margin-bottom: .75rem; }
.footer-brand p { font-size: .9rem; }
.footer-links h4 {
  color: var(--color-white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1rem;
}
.footer-links ul li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer-links a:hover { color: var(--color-green); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
}

/* ===== INNER PAGE HERO ===== */
.page-hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 4rem 1.5rem;
  text-align: center;
}
.page-hero h1 { color: var(--color-white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.breadcrumb { margin-top: .75rem; font-size: .9rem; opacity: .7; }
.breadcrumb a { color: rgba(255,255,255,.7); }

/* ===== ARTICLE / DOCX ===== */
.article-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.article-content h1 { margin-bottom: 1.5rem; }
.article-content h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--color-border); }
.article-content h3 { font-size: 1.15rem; color: var(--color-navy); margin-top: 1.5rem; margin-bottom: .5rem; }
.article-content p { color: #444; }
.article-content ul { list-style: disc; padding-left: 2rem; margin-bottom: 1rem; }
.article-content ul li { margin-bottom: .4rem; color: #444; }

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.article-table th {
  background: var(--color-navy);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
}
.article-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--color-border);
}
.article-table tr:nth-child(even) td { background: var(--color-light); }

.faq-section { margin-top: 2rem; }
.faq-section h2 { border-bottom: 2px solid var(--color-border); padding-bottom: .5rem; }

/* ===== COOKIE NOTICE ===== */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 9999;
  font-size: .9rem;
}
.cookie-notice.hidden { display: none; }
.cookie-notice a { color: var(--color-green); }
.cookie-btn {
  background: var(--color-green);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: .5rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}
.cookie-btn.reject {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
  .main-nav.open { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .wide { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .cookie-notice { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 60vh; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
}
