/*
Theme Name: Hotel Cabana Airy Edit
Theme URI: https://www.hotelcabanawildwood.com/
Author: Hospitality Pro Solutions
Description: A polished, responsive coastal hotel theme with direct ASI WebRes booking integration.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: hotel-cabana
*/

:root {
  --ink: #0a2c3b;
  --navy: #10394a;
  --coastal: #2d7287;
  --mist: #e7f3f6;
  --foam: #f7fbfb;
  --sand: #e9ddc8;
  --line: rgba(10, 44, 59, 0.18);
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--foam);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body,
button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  color: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #efb95e;
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  background: white;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 50;
  height: 94px;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(28px, 5.5vw, 100px);
  background: rgba(247, 251, 251, 0.96);
  border-bottom: 1px solid rgba(10, 44, 59, 0.1);
}

.brand img {
  width: 212px;
  height: auto;
}

.brand .custom-logo-link {
  display: inline-flex;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 2.4vw, 42px);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.primary-nav li {
  list-style: none;
}

.primary-nav a {
  position: relative;
  padding: 10px 0;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.phone-link {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--ink {
  background: var(--ink);
  color: white;
}

.button--ink:hover {
  background: var(--coastal);
}

.menu-toggle {
  display: none;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(420px, 45%) 1fr;
  background: var(--mist);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 78px clamp(50px, 7vw, 128px) 118px clamp(32px, 6.5vw, 118px);
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--coastal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.rooftop h2,
.book-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(3.5rem, 5.4vw, 6.6rem);
  line-height: 0.89;
}

.hero h1 em {
  display: block;
  margin-top: 10px;
  color: var(--coastal);
  font-weight: 400;
}

.hero-lede {
  max-width: 590px;
  margin: 35px 0 0;
  color: rgba(10, 44, 59, 0.79);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.5vw, 1.55rem);
  line-height: 1.55;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 42px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(5px);
}

.quiet-link {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.05em;
}

.quiet-link:hover {
  color: var(--coastal);
}

.hero-image {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(231, 243, 246, 0.32), transparent 23%), url("assets/images/slider-1.jpeg");
  background-position: center;
  background-size: cover;
  animation: hero-settle 900ms ease-out both;
}

.hero-badge {
  position: absolute;
  top: 34px;
  right: 34px;
  padding: 12px 18px;
  background: rgba(247, 251, 251, 0.9);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-caption {
  position: absolute;
  right: 42px;
  bottom: 38px;
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 2px 20px rgba(10, 44, 59, 0.5);
}

@keyframes hero-settle {
  from { opacity: 0.72; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

.booking-shell {
  position: relative;
  z-index: 5;
  width: min(1400px, calc(100% - 80px));
  margin: -62px auto 0;
  box-shadow: 0 22px 60px rgba(10, 44, 59, 0.12);
}

.booking-form {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 0.8fr 1.1fr;
  min-height: 124px;
  background: white;
}

.booking-intro,
.booking-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 23px clamp(20px, 2.1vw, 38px);
  border-right: 1px solid var(--line);
}

.booking-intro span,
.booking-field > span {
  margin-bottom: 10px;
  color: rgba(10, 44, 59, 0.62);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.booking-intro strong {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.booking-field input,
.booking-field select {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.4vw, 1.3rem);
}

.booking-submit {
  border: 0;
  background: var(--navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease;
}

.booking-submit span {
  display: inline-block;
  margin-left: 10px;
  transition: transform 180ms ease;
}

.booking-submit:hover {
  background: var(--coastal);
}

.booking-submit:hover span {
  transform: translateX(4px);
}

.amenity-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 42px clamp(30px, 7vw, 120px) 20px;
}

.amenity-ribbon p {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: 0.77rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.amenity-ribbon strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--coastal);
  font-size: 0.61rem;
}

.section {
  padding: 130px clamp(30px, 7vw, 120px);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(380px, 0.93fr);
  gap: clamp(70px, 8vw, 150px);
  align-items: center;
}

.story-image-wrap {
  position: relative;
  padding-bottom: 46px;
}

.story-image {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.story-note {
  position: absolute;
  right: -38px;
  bottom: 0;
  width: min(330px, 62%);
  padding: 30px 34px;
  background: var(--navy);
  color: white;
}

.story-note span {
  display: block;
  margin-bottom: 10px;
  color: #b5dfe6;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.story-note strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.story-copy h2,
.rooms h2,
.nearby h2,
.gallery h2 {
  max-width: 780px;
  font-size: clamp(2.7rem, 4.2vw, 5rem);
  line-height: 0.98;
}

.story-copy > p:not(.eyebrow),
.nearby-copy > p:not(.eyebrow) {
  max-width: 630px;
  margin: 35px 0;
  color: rgba(10, 44, 59, 0.75);
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.75;
}

.story-facts {
  display: grid;
  gap: 17px;
  margin: 0 0 42px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-facts div {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 24px;
}

.story-facts span {
  color: var(--coastal);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.story-facts strong {
  font-family: var(--serif);
  font-weight: 400;
}

.rooms {
  background: #eef6f7;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.5fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 65px;
}

.section-heading > p {
  margin: 0 0 8px;
  color: rgba(10, 44, 59, 0.7);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.65;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.room-card {
  background: white;
}

.room-photo {
  position: relative;
  height: clamp(250px, 26vw, 430px);
  overflow: hidden;
}

.room-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.room-photo > span {
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: rgba(247, 251, 251, 0.9);
  border-radius: 50%;
  color: var(--ink);
  font-size: 0.61rem;
  font-weight: 800;
}

.room-card a:hover .room-photo img {
  transform: scale(1.045);
}

.room-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.room-details h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.room-details p {
  margin: 0;
  color: rgba(10, 44, 59, 0.65);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.round-arrow {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 180ms ease, color 180ms ease;
}

.room-card a:hover .round-arrow {
  background: var(--ink);
  color: white;
}

.center-action {
  margin-top: 48px;
  text-align: center;
}

.rooftop {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: 1fr minmax(370px, 0.56fr);
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.rooftop-image {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 34, 45, 0.08) 30%, rgba(7, 34, 45, 0.88) 82%), url("assets/images/patio.jpg");
  background-position: center;
  background-size: cover;
}

.rooftop-panel {
  position: relative;
  z-index: 2;
  grid-column: 2;
  margin: 0 clamp(30px, 6vw, 110px) 84px 0;
  padding: 50px;
  border-left: 1px solid rgba(255, 255, 255, 0.52);
  color: white;
}

.rooftop-panel .eyebrow {
  color: #c4e4e8;
}

.rooftop h2 {
  font-size: clamp(3rem, 4.5vw, 5.4rem);
  line-height: 0.95;
}

.rooftop-panel > p:not(.eyebrow) {
  margin: 30px 0 38px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.7;
}

.text-link--light {
  color: white;
}

.nearby {
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(70px, 8vw, 150px);
  align-items: center;
}

.nearby-copy ul {
  margin: 42px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.nearby-copy li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1rem;
}

.nearby-copy li span {
  color: var(--coastal);
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 800;
}

.nearby-collage {
  position: relative;
  min-height: 680px;
}

.nearby-main {
  width: 78%;
  height: 580px;
  object-fit: cover;
}

.nearby-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  height: 280px;
  object-fit: cover;
  border: 12px solid var(--foam);
}

.nearby-stamp {
  position: absolute;
  top: 38px;
  right: 2%;
  display: grid;
  width: 145px;
  height: 145px;
  place-items: center;
  padding: 24px;
  border-radius: 50%;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.35;
  text-align: center;
  transform: rotate(6deg);
}

.gallery {
  background: var(--sand);
}

.section-heading--gallery {
  grid-template-columns: 1fr auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.65fr;
  grid-template-rows: 290px 290px;
  gap: 18px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-wide {
  grid-row: 1 / 3;
}

.gallery-tall {
  grid-column: 3;
  grid-row: 1 / 3;
}

.book-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 70px;
  align-items: center;
  padding: 90px clamp(30px, 7vw, 120px);
  background: var(--mist);
}

.book-section h2 {
  max-width: 620px;
  font-size: clamp(2.7rem, 4vw, 4.9rem);
  line-height: 0.98;
}

.booking-form--compact {
  grid-template-columns: 1fr 1fr 0.75fr 1.05fr;
  min-height: 112px;
  box-shadow: 0 18px 50px rgba(10, 44, 59, 0.1);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 0.55fr);
  gap: 60px;
  padding: 82px clamp(30px, 7vw, 120px) 34px;
  background: var(--ink);
  color: white;
}

.footer-brand img {
  width: 212px;
  padding: 12px;
  background: white;
}

.footer-brand p {
  max-width: 360px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--serif);
  line-height: 1.65;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.83rem;
  line-height: 1.6;
}

.footer-column > span {
  margin-bottom: 8px;
  color: #9bcbd3;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-column a:hover {
  color: #bfe4e9;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.68rem;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .phone-link {
    display: none;
  }

  .hero {
    grid-template-columns: 48% 52%;
  }

  .hero-copy {
    padding-right: 50px;
    padding-left: 50px;
  }

  .booking-form {
    grid-template-columns: 1.1fr 1fr 1fr 0.8fr 1fr;
  }

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

  .room-photo {
    height: 390px;
  }

  .book-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .site-header {
    height: 80px;
    grid-template-columns: 1fr auto auto;
    padding: 0 24px;
  }

  .brand img {
    width: 175px;
  }

  .header-actions .button {
    min-height: 44px;
    padding: 0 16px;
  }

  .menu-toggle {
    display: grid;
    width: 45px;
    height: 45px;
    place-content: center;
    gap: 5px;
    border: 0;
    background: transparent;
  }

  .menu-toggle span:not(.sr-only) {
    width: 24px;
    height: 2px;
    background: var(--ink);
  }

  .primary-nav {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(10, 44, 59, 0.12);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 560px;
    padding: 70px 32px 120px;
  }

  .hero-image {
    min-height: 480px;
  }

  .booking-shell {
    width: calc(100% - 38px);
    margin-top: -40px;
  }

  .booking-form,
  .booking-form--compact {
    grid-template-columns: 1fr 1fr;
  }

  .booking-intro {
    grid-column: 1 / -1;
  }

  .booking-submit {
    min-height: 82px;
  }

  .amenity-ribbon {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 46px;
  }

  .story,
  .nearby {
    grid-template-columns: 1fr;
  }

  .story-image {
    height: 540px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .rooftop {
    grid-template-columns: 1fr;
  }

  .rooftop-panel {
    grid-column: 1;
    margin: 0 28px 52px;
    padding: 34px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 330px 260px 330px;
  }

  .gallery-wide {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .gallery-tall {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    display: none;
  }

  .hero-copy {
    min-height: 540px;
    padding: 58px 22px 98px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 4.7rem);
  }

  .hero-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-image {
    min-height: 360px;
  }

  .hero-badge {
    top: 18px;
    right: 18px;
  }

  .hero-caption {
    right: 20px;
    bottom: 20px;
  }

  .booking-shell {
    width: calc(100% - 24px);
  }

  .booking-form,
  .booking-form--compact {
    grid-template-columns: 1fr;
  }

  .booking-intro,
  .booking-field {
    min-height: 88px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booking-submit {
    min-height: 76px;
  }

  .amenity-ribbon {
    grid-template-columns: 1fr;
    padding: 44px 22px 10px;
  }

  .section {
    padding: 90px 22px;
  }

  .story {
    gap: 70px;
  }

  .story-image {
    height: 430px;
  }

  .story-note {
    right: -2px;
    width: 74%;
  }

  .story-facts div {
    grid-template-columns: 100px 1fr;
  }

  .room-grid {
    grid-template-columns: 1fr;
  }

  .room-photo {
    height: 340px;
  }

  .rooftop {
    min-height: 720px;
  }

  .rooftop-panel {
    margin: 0 18px 30px;
    padding: 30px 24px;
  }

  .nearby-collage {
    min-height: 510px;
  }

  .nearby-main {
    width: 90%;
    height: 430px;
  }

  .nearby-small {
    width: 55%;
    height: 190px;
  }

  .nearby-stamp {
    top: 20px;
    width: 115px;
    height: 115px;
    font-size: 0.86rem;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 270px);
  }

  .gallery-wide,
  .gallery-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .book-section {
    padding: 78px 22px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 38px;
    padding: 66px 22px 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
