/* Mamagoa Resort V5
   Warm natural Goa boutique style.
   Rooms use photos matched to each official room type.
   Gallery uses 8 general Instagram/property views, no room or bathroom photos.
*/

:root {
  --ink: #2b281f;
  --ink-soft: #5c5346;
  --sand: #f6efe2;
  --sand-2: #fff9ed;
  --clay: #b86f45;
  --clay-dark: #985536;
  --leaf: #516347;
  --white: #ffffff;
  --line: rgba(43, 40, 31, 0.14);
  --shadow: 0 24px 70px rgba(43, 40, 31, 0.18);
  --radius: 28px;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 999px;
  background: rgba(32, 29, 22, 0.42);
  color: #fff9ed;
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 45px rgba(0,0,0,0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-logo-wrap {
  width: 58px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.8);
  padding: 2px 4px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff9ed;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.brand-text {
  font-size: 18px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-weight: 700;
  font-size: 14px;
}

.desktop-nav a {
  text-decoration: none;
  opacity: .92;
}

.desktop-nav a:hover {
  opacity: 1;
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 21px;
  border-radius: 999px;
  background: #fff9ed;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 140px max(7vw, 28px) 78px;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("assets/hero-beachfront.jpg");
  background-size: cover;
  background-position: center;
  z-index: -3;
  transform: scale(1.02);
}

.hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(19,18,13,.79) 0%, rgba(19,18,13,.62) 34%, rgba(19,18,13,.22) 70%, rgba(19,18,13,.12) 100%),
    linear-gradient(0deg, rgba(19,18,13,.28), rgba(19,18,13,.28));
}

.hero-content {
  width: min(720px, 100%);
  color: #fff9ed;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
}

.eyebrow.light {
  color: #f2c79b;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 132px);
  line-height: .86;
  letter-spacing: -0.06em;
  max-width: 820px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 78px);
  line-height: .94;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 10px;
}

.lead {
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.35;
  max-width: 640px;
  color: rgba(255,249,237,.9);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 27px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 25px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

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

.button.primary {
  background: var(--clay);
  color: #fff9ed;
  box-shadow: 0 14px 35px rgba(130, 70, 40, .3);
}

.button.primary:hover {
  background: var(--clay-dark);
}

.button.secondary {
  background: var(--ink);
  color: #fff9ed;
}

.button.ghost {
  background: rgba(255,249,237,.14);
  color: #fff9ed;
  border-color: rgba(255,249,237,.48);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-facts span {
  padding: 9px 12px;
  border: 1px solid rgba(255,249,237,.28);
  border-radius: 999px;
  background: rgba(255,249,237,.12);
  color: rgba(255,249,237,.92);
  font-size: 13px;
  font-weight: 700;
}

.hero-card {
  position: absolute;
  right: max(7vw, 28px);
  bottom: 68px;
  width: 280px;
  padding: 9px;
  border-radius: 24px;
  background: rgba(255,249,237,.88);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  gap: 11px;
  backdrop-filter: blur(12px);
}

.hero-card img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.hero-card div {
  padding: 0 8px 9px;
}

.hero-card strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.04em;
}

.hero-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.35;
}

.section-pad {
  padding: 105px max(7vw, 26px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(300px, .75fr);
  gap: 70px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  color: var(--ink-soft);
  font-size: 19px;
  padding-top: 50px;
}

.image-story {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(300px, .8fr);
  gap: 78px;
  align-items: center;
}

.story-photo img {
  width: 100%;
  min-height: 640px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-copy p {
  color: var(--ink-soft);
  font-size: 18px;
}

.clean-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 13px;
}

.clean-list li {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
  color: var(--ink);
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 18px;
  height: 2px;
  background: var(--clay);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px);
  gap: 38px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head h2 {
  max-width: 720px;
}

.section-head p:last-child {
  color: var(--ink-soft);
  font-size: 17px;
}

.section-head.narrow {
  display: block;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.rooms {
  background: var(--sand-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.room-card {
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(43, 40, 31, .08);
}

.room-card img {
  width: 100%;
  aspect-ratio: 1 / .75;
  object-fit: cover;
}

.room-media {
  display: grid;
  gap: 8px;
  padding: 8px 8px 0;
}

.room-card .room-main {
  width: 100%;
  aspect-ratio: 1.18 / .72;
  object-fit: cover;
  border-radius: 22px 22px 12px 12px;
}

.room-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.room-thumbs img {
  width: 100%;
  aspect-ratio: 1.2 / .78;
  object-fit: cover;
  border-radius: 12px;
}

.room-content {
  padding: 28px;
}

.room-label {
  margin: 0 0 12px;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
}

.room-content p {
  color: var(--ink-soft);
}

.room-content a {
  display: inline-block;
  margin-top: 8px;
  color: var(--clay-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.restaurant {
  display: grid;
  grid-template-columns: .78fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.restaurant-copy p {
  color: var(--ink-soft);
  font-size: 18px;
}

.mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 28px;
}

.mini-grid span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.38);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
}

.restaurant-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.restaurant-photos img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(43, 40, 31, .10);
}

.restaurant-photos .wide-img {
  grid-column: 1 / -1;
  height: 430px;
}

.why {
  background: var(--ink);
  color: var(--sand-2);
}

.why .eyebrow {
  color: #f2c79b;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,249,237,.16);
  border: 1px solid rgba(255,249,237,.16);
  border-radius: var(--radius);
  overflow: hidden;
}

.why-grid article {
  padding: 34px 28px;
  background: rgba(255,249,237,.05);
}

.why-grid span {
  display: block;
  color: #f2c79b;
  font-weight: 800;
  margin-bottom: 26px;
}

.why-grid p {
  color: rgba(255,249,237,.72);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 265px;
  gap: 16px;
}

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

.gallery-grid.even-gallery img {
  aspect-ratio: 1 / .82;
}

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

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

blockquote {
  margin: 0;
  padding: 32px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 38px rgba(43, 40, 31, .08);
}

blockquote p {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

cite {
  display: block;
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 700;
  margin-top: 22px;
}

.booking {
  padding-top: 55px;
}

.booking-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 58px;
  display: grid;
  grid-template-columns: 1fr minmax(290px, 430px);
  gap: 48px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(43,40,31,.92), rgba(43,40,31,.72)),
    url("assets/beach-path.jpg") center/cover;
  color: var(--sand-2);
  box-shadow: var(--shadow);
}

.booking-card h2 {
  margin-bottom: 16px;
}

.booking-card p {
  color: rgba(255,249,237,.82);
  font-size: 18px;
}

.booking-actions {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.email-link {
  color: var(--sand-2);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.booking-actions span {
  color: rgba(255,249,237,.72);
}

footer {
  padding: 42px max(7vw, 26px) 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  color: var(--ink-soft);
}

footer .brand-logo-wrap {
  background: #fff;
  border-color: var(--line);
}

footer .brand-mark {
  background: var(--ink);
  color: var(--sand-2);
}

footer p {
  margin: 0;
}

footer div {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

footer a {
  text-decoration: none;
  color: var(--ink);
}

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

  .desktop-nav {
    display: none;
  }

  .hero-card {
    display: none;
  }

  .intro,
  .image-story,
  .restaurant,
  .booking-card,
  .section-head {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    padding-top: 0;
  }

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

  .featured-room {
    grid-column: 1 / -1;
  }

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

@media (max-width: 680px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding: 9px;
    gap: 12px;
    background: rgba(32, 29, 22, 0.55);
  }

  .brand-logo-wrap {
    width: 54px;
    height: 38px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 23px;
  }

  .brand-text {
    display: none;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 15px;
    font-size: 13px;
  }

  .hero {
    min-height: 92vh;
    padding: 105px 20px 54px;
    align-items: end;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(19,18,13,.86) 0%, rgba(19,18,13,.56) 54%, rgba(19,18,13,.18) 100%);
  }

  h1 {
    font-size: clamp(56px, 18vw, 84px);
  }

  .lead {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-facts {
    display: none;
  }

  .section-pad {
    padding: 70px 20px;
  }

  h2 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .story-photo img {
    min-height: 390px;
  }

  .room-grid,
  .why-grid,
  .review-grid,
  .gallery-grid,
  .restaurant-photos {
    grid-template-columns: 1fr;
  }

  .restaurant-photos .wide-img,
  .restaurant-photos img {
    height: 320px;
  }

  .gallery-grid {
    grid-auto-rows: 290px;
  }

  blockquote p {
    font-size: 26px;
  }

  .booking-card {
    padding: 34px 22px;
  }

  footer {
    grid-template-columns: 1fr;
    text-align: left;
  }

  footer div {
    flex-wrap: wrap;
  }
}
