/* ============================================================
   A COASTIN CASA — styles.css
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --navy:       #0d1f4e;
  --navy-light: #1a3060;
  --white:      #ffffff;
  --off-white:  #f5f3f0;
  --gray-bg:    #e8e6e2;
  --tan-bg:     #c4b9a8;
  --text-body:  black;
  --text-dark:  #030303;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Raleway', sans-serif;

  --max-w:   1300px;
  --pad-x:   64px;
  --section: 80px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ---------- Shared ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-title.centered { text-align: center; }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.8;
  max-width: 620px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--pad-x);
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), transparent);
  transition: background 0.3s, padding 0.3s;
}

.nav.scrolled {
  background: var(--navy);
  padding: 16px var(--pad-x);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.04em;
}

.nav__book {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.65);
  padding: 10px 26px;
  transition: background 0.25s;
}

.nav__book:hover { background: rgba(255,255,255,0.15); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero__card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.93);
  border-radius: 20px;
  padding: 64px 88px;
  max-width: 800px;
  width: 90%;
  text-align: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-body);
  margin-bottom: 36px;
}

.hero__btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 48px;
  border-radius: 50px;
  transition: background 0.25s;
}

.hero__btn:hover { background: var(--navy-light); }

/* ---------- ACCOMMODATION ---------- */
.accommodation {
  padding: var(--section) var(--pad-x);
  background: var(--white);
}

.accommodation .section-lead {
  margin-bottom: 48px;
}

.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.room {
  background: var(--gray-bg);
  border-radius: 20px;
  padding: 40px 36px;
}

.room__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.room p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ---------- CAROUSEL ---------- */
.carousel-section {
  background: var(--gray-bg);
  padding: 48px 0;
}

.carousel {
  max-width: 2000px;
  margin: 0 auto;
}

.carousel__main {
  position: relative;
  background: #111;
}

.carousel__img-wrap {
  width: 100%;
  height: 800px;
  overflow: hidden;
}

.carousel__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  font-size: 3rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}

.carousel__arrow:hover { background: rgba(255,255,255,0.32); }
.carousel__arrow--prev { left: 16px; }
.carousel__arrow--next { right: 16px; }

.carousel__thumbs-wrap {
  overflow-x: auto;
  background: var(--gray-bg);
  padding: 14px 0;
  scrollbar-width: thin;
  scrollbar-color: #bbb var(--gray-bg);
}

.carousel__thumbs-wrap::-webkit-scrollbar { height: 4px; }
.carousel__thumbs-wrap::-webkit-scrollbar-thumb { background: #bbb; }

.carousel__thumbs {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  width: max-content;
}

.carousel__thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.carousel__thumb:hover { opacity: 0.8; }
.carousel__thumb.active { opacity: 1; }

.carousel__thumb img {
  width: 130px;
  height: 87px;
  object-fit: cover;
}

.carousel__thumb.active img {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.carousel__thumb span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--navy);
}

/* ---------- AMENITIES ---------- */
.amenities {
  background: var(--gray-bg);
  padding: var(--section) var(--pad-x);
}

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.amenity {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.amenity__icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
}

.amenity__icon svg {
  width: 100%;
  height: 100%;
}

.amenity__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.amenity p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ---------- OUTDOOR ---------- */
.outdoor {
  display: grid;
  grid-template-columns: 70% 30%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--section) var(--pad-x);
  gap: 80px;
  align-items: center;
}

.outdoor__img {
  overflow: hidden;
  border-radius: 20px;
  max-height: 1000px;
}

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

.outdoor__text .section-title {
  margin-bottom: 24px;
}

.outdoor__text p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.85;
}

/* ---------- LOCATION ---------- */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--tan-bg);
  padding: var(--section) var(--pad-x);
  gap: 64px;
  align-items: center;
  max-width: 100%;
}

.location__map {
  width: 100%;
  height: 520px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.location__text {
  display: flex;
  flex-direction: column;
}

.location__label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.65;
  margin-bottom: 12px;
}

.location__text .section-title {
  margin-bottom: 32px;
}

.location__list {
  display: flex;
  flex-direction: column;
}

.location__item p {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--navy);
  padding: 18px 0;
}

.location__item hr {
  border: none;
  border-top: 1px solid rgba(13, 31, 78, 0.25);
}

/* ---------- GUEST INFORMATION ---------- */
.guest-info {
  padding: var(--section) var(--pad-x);
  background: var(--white);
}

.guest-info .section-title {
  margin-bottom: 32px;
}

.guest-info__list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid #ddd;
}

.guest-info__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid #ddd;
  align-items: start;
}

.guest-info__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.guest-info__row p {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ---------- GUEST SERVICES ---------- */
.services {
  padding: var(--section) var(--pad-x);
  background: var(--off-white);
}

.services .section-title {
  margin-bottom: 48px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service {
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service__icon {
  width: 44px;
  height: 44px;
  color: var(--navy);
}

.service__icon svg {
  width: 100%;
  height: 100%;
}

.service__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.service p {
  font-size: 0.97rem;
  color: var(--text-body);
  line-height: 1.75;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--off-white);
  border-top: 1px solid #ddd;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 40px var(--pad-x);
  gap: 24px;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.footer__address-col {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-body);
}

.footer__copy-col {
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; }

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

  .outdoor {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .location {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

@media (max-width: 768px) {
  :root { --pad-x: 24px; --section: 56px; }

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

  .amenities__grid { grid-template-columns: 1fr; gap: 32px; }

  .carousel__img-wrap { height: 280px; }

  .carousel__thumb img { width: 100px; height: 66px; }

  .guest-info__row { grid-template-columns: 1fr; gap: 8px; }

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

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .footer__copy-col { text-align: center; }
}
