/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

/* ==========================================================================
   Campos do Conde
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-deep: #1c3a28;
  --green-mid: #2d5a3d;
  --green-light: #4a8a5d;
  --gold: #b8975a;
  --gold-light: #d4b07a;
  --cream: #f7f3ec;
  --cream-dark: #ede7da;
  --text-dark: #1a2a1e;
  --text-light: #f0ece4;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s, padding 0.3s;
}

nav.scrolled {
  background: rgba(28, 58, 40, 0.97);
  padding: 12px 60px;
}

nav img.nav-logo {
  height: 36px;
  filter: brightness(0) invert(1);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav ul a {
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s;
}

nav ul a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  padding: 0;
  z-index: 102;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
  pointer-events: none;
}

.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }

.nav-toggle.open span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* HERO */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}

.hero-bg.loaded {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(28, 58, 40, 0.75) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 100px;
  max-width: 720px;
}

.hero-tag {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 1s 0.3s forwards;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 7vw, 90px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0;
  animation: fadeUp 1s 0.6s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-sub {
  margin-top: 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 300;
  line-height: 1.7;
  max-width: 480px;
  opacity: 0;
  animation: fadeUp 1s 0.9s forwards;
}

.hero-cta {
  margin-top: 40px;
  opacity: 0;
  animation: fadeUp 1s 1.2s forwards;
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-deep);
  padding: 14px 36px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-outline {
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 1.8s forwards;
}

.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s 2s infinite;
}

/* STATS BAR */
.stats-bar {
  background: var(--green-deep);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(184, 151, 90, 0.3);
}

.stat {
  padding: 40px 48px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--gold-light);
  line-height: 1;
}

.stat-unit {
  font-size: 24px;
  margin-left: 4px;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 236, 228, 0.55);
  font-weight: 400;
}

/* SECTIONS */
section {
  padding: 120px 0;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--gold);
}

h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--green-deep);
}

h2 em {
  font-style: italic;
  color: var(--green-mid);
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  font-size: 16px;
  line-height: 1.85;
  color: #3a4a3e;
  margin-top: 28px;
  font-weight: 300;
}

.about-text p + p {
  margin-top: 16px;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-images img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-images img:first-child {
  margin-top: 48px;
}

/* PHOTO STRIP */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 480px;
  gap: 4px;
}

.photo-strip .big {
  grid-column: span 2;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo-strip div {
  overflow: hidden;
}

.photo-strip div:hover img {
  transform: scale(1.03);
}

/* AMENITIES */
.amenities-bg {
  background: var(--green-deep);
  color: var(--text-light);
}

.amenities-bg h2 {
  color: var(--cream);
}

.amenities-bg h2 em {
  color: var(--gold-light);
}

.amenities-bg .label {
  color: var(--gold-light);
}

.amenities-bg .label::before {
  background: var(--gold-light);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.amenity-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 40px 36px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.amenity-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.4s;
}

.amenity-card:hover {
  background: rgba(255, 255, 255, 0.07);
}

.amenity-card:hover::before {
  width: 100%;
}

.amenity-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.amenity-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
}

.amenity-desc {
  font-size: 13px;
  color: rgba(240, 236, 228, 0.5);
  font-weight: 300;
  line-height: 1.6;
}

/* GALLERY */
.gallery {
  background: var(--cream-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 48px;
  padding: 0 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.tall img {
  aspect-ratio: auto;
  height: 100%;
}

/* LOCATION */
.location {
  background: var(--white);
}

.location-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.location-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.location-details p {
  font-size: 15px;
  line-height: 1.8;
  color: #3a4a3e;
  margin-top: 24px;
  font-weight: 300;
}

.loc-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.loc-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
  color: #3a4a3e;
}

.loc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
  flex-shrink: 0;
}

/* FOOTER */
footer {
  background: #111e15;
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer img {
  height: 32px;
  filter: brightness(0) invert(0.7) sepia(1) hue-rotate(80deg) saturate(0.5);
  opacity: 0.7;
}

footer p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

.reveal-delay-3 {
  transition-delay: 0.45s;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet landscape and below */
@media (max-width: 1024px) {
  nav {
    padding: 18px 40px;
  }

  nav.scrolled {
    padding: 12px 40px;
  }

  .hero-content {
    padding: 0 48px 90px;
  }

  .hero-scroll {
    right: 32px;
  }

  section {
    padding: 96px 0;
  }

  .section-inner {
    padding: 0 40px;
  }

  .about-grid,
  .location-split {
    gap: 56px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    padding: 0 40px;
  }

  .stat {
    padding: 32px 28px;
  }

  .stat-num {
    font-size: 40px;
  }

  .stat-unit {
    font-size: 20px;
  }
}

/* Tablet portrait — switch nav to hamburger */
@media (max-width: 880px) {
  nav {
    padding: 16px 24px;
    backdrop-filter: none;
  }

  nav.scrolled {
    padding: 10px 24px;
    backdrop-filter: none;
  }

  .nav-toggle {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 0;
    background: rgba(28, 58, 40, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transform: translateY(-100%);
    transition: transform 0.4s ease, visibility 0s linear 0.4s;
    visibility: hidden;
    pointer-events: none;
    z-index: 101;
  }

  nav ul.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s ease, visibility 0s linear 0s;
  }

  nav ul a {
    font-size: 16px;
    opacity: 1;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* Mobile */
@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

  .section-inner {
    padding: 0 24px;
  }

  /* Hero */
  .hero-overlay {
    background:
      linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55) 100%),
      linear-gradient(135deg, rgba(28, 58, 40, 0.7) 0%, rgba(0, 0, 0, 0.25) 60%, rgba(0, 0, 0, 0) 100%);
  }

  .hero-content {
    padding: 0 24px 72px;
    max-width: 100%;
  }

  .hero-tag {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  }

  .hero h1 {
    white-space: normal;
  }

  .hero h1 em {
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  }

  .hero-sub {
    font-size: 14px;
    margin-top: 20px;
  }

  .hero-cta {
    margin-top: 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .btn-primary {
    padding: 14px 28px;
  }

  .hero-scroll {
    display: none;
  }

  /* Stats */
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    padding: 28px 22px;
    border-right: none;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }

  .stat:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .stat-num {
    font-size: 36px;
  }

  .stat-unit {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-images img:first-child {
    margin-top: 0;
  }

  /* Photo strip */
  .photo-strip {
    grid-template-columns: 1fr;
    height: auto;
    gap: 4px;
  }

  .photo-strip > div {
    height: 240px;
  }

  .photo-strip .big {
    grid-column: span 1;
  }

  /* Amenities */
  .amenities-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .amenity-card {
    padding: 28px 24px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 24px;
    gap: 6px;
    margin-top: 36px;
  }

  .gallery-item.tall {
    grid-row: auto;
  }

  .gallery-item.tall img {
    aspect-ratio: 1;
    height: auto;
  }

  /* Location */
  .location-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Footer */
  footer {
    flex-direction: column;
    gap: 18px;
    padding: 40px 24px;
    text-align: center;
  }

  footer p {
    line-height: 1.6;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .stats-bar {
    grid-template-columns: 1fr;
  }

  .stat:nth-child(odd) {
    border-right: none;
  }

  .stat {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .label {
    font-size: 10px;
    letter-spacing: 0.25em;
  }

  .label::before {
    width: 24px;
  }
}
