:root {
  --navy: #082b62;
  --navy-dark: #041d43;
  --sand: #f1e7d5;
  --cream: #fbf8f2;
  --ink: #182230;
  --muted: #586373;
  --line: #d9dde3;
  --white: #fff;
  --shadow: 0 18px 45px rgb(4 29 67 / 14%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy-dark); font-family: Georgia, 'Times New Roman', serif; line-height: 1.12; }
h1 { max-width: 850px; margin-bottom: 1.25rem; font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; }

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: .75rem 1rem; color: var(--white); background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #e9a923; outline-offset: 3px; }
.eyebrow { margin-bottom: .75rem; color: var(--navy); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .75rem 1.2rem; border: 2px solid var(--navy); border-radius: 3px; color: var(--white); background: var(--navy); font-size: .84rem; font-weight: 700; letter-spacing: .04em; text-align: center; text-decoration: none; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { border-color: var(--navy-dark); background: var(--navy-dark); transform: translateY(-2px); }
.button-small { min-height: 42px; padding: .55rem 1rem; color: var(--white) !important; }
.button-light { border-color: var(--white); color: var(--navy) !important; background: var(--white); }
.text-link { color: var(--navy); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.site-header { position: relative; z-index: 20; min-height: 92px; border-bottom: 1px solid var(--line); background: var(--white); }
.nav { min-height: 92px; display: flex; align-items: center; justify-content: space-between; }
.brand { width: 160px; flex: 0 0 auto; }
.brand img { width: 160px; height: 86px; object-fit: contain; }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.25rem); margin: 0; padding: 0; list-style: none; }
.nav-list a:not(.button) { color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-list a:not(.button):hover, .nav-list a[aria-current="page"] { color: var(--navy); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 27px; height: 3px; margin: 5px 0; border-radius: 3px; background: var(--navy); transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: 690px; color: var(--white); background: linear-gradient(90deg, rgb(3 24 54 / 88%), rgb(3 24 54 / 45%)), url('../img/optimized/caraguatatuba.jpg') center / cover no-repeat; }
.hero-content { min-height: 690px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-block: 5rem; }
.hero h1, .hero .eyebrow { color: var(--white); }
.hero-copy > p:not(.eyebrow) { max-width: 650px; font-size: 1.2rem; }
.booking-card { padding: clamp(1.5rem, 3vw, 2.25rem); border-top: 5px solid var(--sand); border-radius: 4px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); }
.booking-card h2 { margin-bottom: .5rem; font-size: 1.75rem; }
.booking-card > p { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: grid; gap: .35rem; color: var(--ink); font-size: .88rem; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #aab2be; border-radius: 3px; color: var(--ink); background: var(--white); }
input { min-height: 48px; padding: .65rem .75rem; }
textarea { padding: .75rem; resize: vertical; }
input:focus, textarea:focus { border-color: var(--navy); }
.booking-card .button { width: 100%; margin-top: .25rem; }
.booking-card small { display: block; margin-top: .8rem; color: var(--muted); line-height: 1.45; }
.booking-card small a { color: var(--navy); }
.form-status { min-height: 1.5rem; margin: .7rem 0 0; color: #a21b1b !important; font-size: .9rem; font-weight: 700; }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tint { background: var(--cream); }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: .75rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.08rem; }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.feature-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.features { display: grid; gap: .5rem; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.feature img { width: 32px; height: 32px; margin-top: .25rem; }
.feature h3 { margin-bottom: .25rem; }
.feature p { margin-bottom: 0; color: var(--muted); }
.feature-photo { width: 100%; height: clamp(300px, 30vw, 380px); object-fit: cover; object-position: center; border-radius: 4px; box-shadow: var(--shadow); }
.photo-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 240px 240px; gap: 1rem; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.photo-grid img:first-child { grid-row: 1 / 3; }
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonials figure { margin: 0; padding: 2rem; border: 1px solid var(--line); border-radius: 3px; background: var(--white); }
.testimonials blockquote { margin: 0 0 1.5rem; font-family: Georgia, 'Times New Roman', serif; font-size: 1.12rem; line-height: 1.6; }
.testimonials figcaption { color: var(--navy); font-size: .86rem; font-weight: 700; }

.page-hero { padding-block: clamp(4rem, 9vw, 7rem); }
.page-hero h1 { margin-bottom: 1rem; font-size: clamp(2.5rem, 6vw, 4.6rem); }
.page-hero > p:last-child { max-width: 700px; color: var(--muted); font-size: 1.15rem; }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.room-card { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--white); box-shadow: 0 8px 28px rgb(4 29 67 / 8%); }
.room-card > img { width: 100%; height: 300px; object-fit: cover; object-position: center; }
.room-content { padding: clamp(1.3rem, 3vw, 2rem); }
.room-content h2 { margin-bottom: .65rem; font-size: 2rem; }
.room-content > p:not(.price) { color: var(--muted); }
.room-content ul { margin: 1rem 0; padding-left: 1.2rem; }
.room-content li { margin-block: .3rem; }
.price { padding-top: 1rem; border-top: 1px solid var(--line); }
.price strong { color: var(--navy); font-size: 1.3rem; }
.rate-note { max-width: 800px; margin: 2rem auto 0; color: var(--muted); font-size: .88rem; text-align: center; }

.location-section { padding-top: 0; background: linear-gradient(var(--white) 0 20%, var(--cream) 20% 100%); }
.location-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); align-items: stretch; box-shadow: var(--shadow); }
.map-card { min-height: 560px; background: #dce3ea; }
.map-frame { width: 100%; height: 100%; min-height: 560px; display: block; border: 0; }
.location-card { padding: clamp(2rem, 5vw, 4rem); color: var(--white); background: var(--navy); }
.location-card .eyebrow, .location-card h2, .location-card h3 { color: var(--white); }
.location-card h2 { margin-bottom: 2.5rem; font-size: clamp(2rem, 4vw, 3rem); }
.location-detail { display: grid; grid-template-columns: 38px 1fr; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid rgb(255 255 255 / 25%); }
.location-detail > span { color: var(--sand); font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.location-detail h3 { margin-bottom: .4rem; font-family: Arial, Helvetica, sans-serif; font-size: 1rem; }
.location-detail p { margin-bottom: .35rem; color: #e4eaf3; }
.location-detail a { color: var(--white); text-underline-offset: 3px; }
.location-button { width: 100%; margin-top: 2rem; border-color: var(--white); color: var(--navy); background: var(--white); }

.legal { max-width: 840px; padding-block: clamp(4rem, 9vw, 7rem); }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.legal h2 { margin-top: 2.5rem; font-size: 1.65rem; }
.legal p { color: #3f4b5a; }
.legal a { color: var(--navy); }

.site-footer { padding-top: 4rem; color: #e4eaf3; background: var(--navy-dark); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr .7fr; gap: 4rem; }
.footer-grid > div:first-child { max-width: 290px; }
.footer-logo { width: 210px; height: auto; margin-bottom: 1.35rem; opacity: .96; filter: drop-shadow(0 4px 12px rgb(0 0 0 / 18%)); }
.footer-grid > div:first-child p { max-width: 270px; color: #cbd5e3; }
.site-footer h2 { margin-bottom: 1rem; color: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { display: block; width: fit-content; margin-bottom: .65rem; color: #e4eaf3; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-footer address { font-style: normal; }
.copyright { margin: 3rem 0 0; padding: 1.25rem; border-top: 1px solid rgb(255 255 255 / 15%); font-size: .82rem; text-align: center; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-list { position: absolute; top: 92px; left: 0; width: 100%; min-height: calc(100vh - 92px); display: none; flex-direction: column; justify-content: center; gap: 1.75rem; padding: 2rem; background: var(--white); }
  .nav-list.is-open { display: flex; }
  .nav-list a:not(.button) { font-size: 1.25rem; }
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-copy { padding-top: 1rem; }
  .feature-layout, .location-layout { grid-template-columns: 1fr; }
  .feature-photo { order: -1; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .room-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .room-card { display: grid; grid-template-columns: minmax(240px, .85fr) 1.15fr; }
  .room-card > img { height: 100%; min-height: 340px; }
  .map-card, .map-frame { min-height: 420px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero, .hero-content { min-height: auto; }
  .hero-content { padding-block: 3.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-photo { height: 240px; }
  .room-card { display: block; }
  .room-card > img { height: 240px; min-height: 0; }
  .map-card, .map-frame { min-height: 340px; }
  .split-heading { display: block; }
  .split-heading .text-link { display: inline-block; margin-top: .5rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 150px; }
  .photo-grid img:first-child { grid-column: 1 / 3; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .room-content .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
