/*
Theme Name: Star Inn Resorts
Theme URI: https://starinnresorts.com
Author: Steep
Description: One-page resort theme for Star Inn Resorts, Kovalam, built from the site's Figma design. Includes a hero, vision, rooms, gallery, highlights, enquiry form and sister-estates showcase, animated with GSAP + ScrollTrigger.
Version: 1.0.13
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: star-inn
*/

:root {
  --purple: #701072;
  --near-black: #151415;
  --heading-dark: #12241a;
  --text-muted: #666b63;
  --label-muted: #636a5a;
  --input-text: #6b6e6a;
  --border-light: #d3d2ce;
  --cream: #efece6;
  --card-cream: #faf8f5;
  --footer-purple: #370038;
  --gold: #c5a059;
  --off-white: #faf9f5;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;
  --font-accent: "Instrument Sans", Arial, sans-serif;
  --font-alt: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--heading-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1 {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  font-size: 53px !important;
  line-height: 1.1 !important;
  letter-spacing: -1.6px !important;
  color: #fff !important;
}

h2 {
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  font-size: 44px !important;
  line-height: 1.2 !important;
  color: var(--heading-dark) !important;
}

.wrap {
  max-width: 1440px;
  margin: 0 auto;
}

/* ============ HEADER ============ */
.site-header {
  position: relative;
  z-index: 20;
}

.btn-ew a.btn {
  display: inline-block;
  background: linear-gradient(90deg, #701072 0%, #151415 50%, #701072 100%);
  background-size: 200% 100%;
  color: #fff;
  padding: 12px 20px;

  animation: gradientMove 3s ease-in-out infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.social-links a {
  color: #fff;
  width: 20px;
  height: 20px;
  display: flex;
}

.header-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.4);
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.brand-block .wordmark {
  height: 12px;
  width: auto;
}

.enquire-now {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

.sub-nav {
  background: #fff;
  padding: 17px 60px 17px;
}

.sub-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 16px;
  color: var(--heading-dark);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  color: var(--heading-dark);
}

.nav-contact svg {
  width: 22px;
  height: 22px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  overflow: hidden;
}

.site-header {
  position: absolute;
  width: 100%;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.25) 100%),
    linear-gradient(176deg, rgba(0, 0, 0, 0.38) 16%, rgba(0, 0, 0, 0) 79%);
  z-index: -1;
}

.hero-content {
  max-width: 590px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column; 
}

.hero-content h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 53px;
  line-height: 1.1;
  letter-spacing: -1.6px;
  color: #fff;
}

.hero-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
}

/* ============ VISION SECTION ============ */
.vision-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 54px;
}

.vision-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  gap: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 100px 0px;
}

.vision-gallery img {
  width: 100%;
  object-fit: cover;
}

.vision-text h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.2;
  color: var(--heading-dark);
  margin-bottom: 16px;
}

.vision-text p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 13px;
}

/* ============ STAY BANNER ============ */
.stay-banner {
  position: relative;
  min-height: 483px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  overflow: hidden;
}

.stay-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.stay-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.53);
  z-index: -1;
}

.stay-banner-inner {
  max-width: 737px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.stay-banner h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 53px;
  line-height: 1.1;
  letter-spacing: -1.6px;
  color: #fff !important;
}

.stay-banner p {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
  max-width: 670px;
}

.stay-banner-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============ GALLERY GRID ============ */

.gallery-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px; 
  color: #1a1d1a;
  margin-bottom: 26px;
}

.gallery-grid {
  display: flex;
  gap: 40px;
}

.gallery-grid img {
  width: 270px;
  height: 320px;
  object-fit: cover;
  flex: 1 1 0;
}

/* ============ ROOMS GRID ============ */
.rooms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.rooms-intro {
  background: #fff;
  padding: 41px 75px 60px 118px;
  display: flex;
  justify-content: flex-end;
}

.rooms-intro-inner {
  max-width: 526px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.rooms-intro h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.2;
  color: var(--heading-dark);
}

.rooms-intro p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 20px 0 0;
}

.room-card {
  position: relative;
  min-height: 500px;
  padding: 46px 49px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.room-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}

.room-card:hover img {
  transform: scale(1.04);
}

.room-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.43);
  z-index: -1;
}

.wrap-hero {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.room-card-body {
  width: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 840px;
  justify-content: space-between;
}

.room-specs {
  display: flex;
  gap: 22px;
}

.room-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 18px;
}

.room-spec svg {
  width: 20px;
  height: 20px;
}

.room-text h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 38px;
  margin-bottom: 8px;
}

.room-text p {
  font-size: 14px;
  line-height: 1.5;
}

.room-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  flex-direction: column;
  gap: 20px;
}

.rroom-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.room-price {
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 18px;
}

.room-cta {
  background: #fff;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
}

.room-cta svg {
  width: 14px;
  height: 12px;
}

/* ============ HIGHLIGHTS ============ */
.highlights-section {
  background: var(--cream);
}

.highlights-intro {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 42px;
}

.highlights-intro h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  line-height: 1.15;
  color: var(--heading-dark);
  max-width: 640px;
}

.highlights-intro p {
  font-family: var(--font-alt);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 420px;
}

.highlights-cards {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.highlight-card {
  background: #fff;
  border-radius: 6px;
  padding: 32px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight-icon {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--card-cream);
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
  color: var(--heading-dark);
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--heading-dark);
}

.highlight-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ============ ENQUIRY FORM ============ */
.enquiry-section {
  display: flex;
  justify-content: center;
  padding: 90px 20px 0px 20px;
}

.enquiry-inner {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.enquiry-header {
  text-align: center;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.enquiry-header .eyebrow {
  font-weight: 600;
  font-size: 13px; 
  color: var(--label-muted);
}

.enquiry-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 48px;
  color: #1a1d1a;
}

.enquiry-header p {
  font-size: 15px;
  line-height: 1.6;
  color: #6b6e6a;
}

.form-card {
  background: #fff;
  border: 1px solid var(--border-light);
  padding: 38px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.form-field {
  flex: 1 1 147px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.header-bar {
  background: rgba(0, 0, 0, 0.33);
  padding: 0px 0 20px 0;
}

.form-field label {
  font-weight: 600;
  font-size: 12px; 
  color: var(--label-muted);
}

.form-field input,
.form-field textarea {
  border: 1px solid var(--border-light);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--heading-dark);
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--input-text);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.form-submit-row p {
  font-size: 12px;
  line-height: 1.5;
  color: #6b6e6a;
  max-width: 400px;
}

.form-submit-row .btn-primary {
  padding: 16px 32px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #701072 0%, #151415 100%);
  color: #fff;
}

.form-status {
  font-size: 13px;
  margin: 0;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #1a7a3c;
}

.form-status.is-error {
  color: #b3261e;
}

/* ============ SISTER ESTATES ============ */
.showcase-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.showcase-section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 40px;
  text-align: center;
  color: #1a1d1a;
  margin-bottom: 26px;
}

.showcase-cards {
  display: flex;
  gap: 37px;
  width: 100%;
}

.showcase-card {
  position: relative;
  flex: 1 1 0;
  min-height: 573px;
  padding: 35px 45px 31px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
}

.showcase-card:hover img {
  transform: scale(1.04);
}

.showcase-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 600;
  font-size: 12px;
}

.location-badge svg {
  width: 12px;
  height: 12px;
}

.showcase-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  width: 100%;
}

.showcase-bottom {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.showcase-bottom h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.1;
  color: var(--off-white);
}

.showcase-bottom .tagline {
  font-size: 15px;
  color: var(--off-white);
  margin-top: 4px;
  display: block;
}

.showcase-bottom p.desc {
  font-size: 15px;
  line-height: 1.6;
  color: #ebeae6;
  margin-top: 11px;
}

.showcase-cta {
  background: var(--off-white);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px 15px 30px;
  font-size: 16px;
  align-self: flex-start;
}

/* ============ FOOTER ============ */
.footer-hero {
  position: relative;
  min-height: 512px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.footer-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.footer-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(-44deg,
      rgba(0, 0, 0, 0.64) 49%,
      rgba(255, 255, 255, 0) 172%);
  z-index: -1;
}

.footer-hero-inner {
  max-width: 486px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-left: auto;
}

.footer-hero h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.15; 
  color: #fff !important;
}

.footer-hero p {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
  opacity: 0.8;
  margin-top: 16px;
}

.footer-hero .btn-light {
  align-self: flex-start;
  padding: 12px 28px;
}

/* Footer hero image zoom layer */
.footer-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.footer-links {
  background: var(--footer-purple);
}

.footer-columns {
  display: flex;
  gap: 45px;
  flex-wrap: wrap;
  margin-bottom: 76px;
  justify-content: space-between;
}

.footer-col-1 {
  max-width: 32% !important;
  width: 12%;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 42px;
  max-width: 31%;
}

.footer-brand-mark .wordmark {
  height: 12px;
  width: auto;
}

.footer-links .container {
  padding-bottom: 40px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  color: #fff;
  opacity: 0.85;
}

.footer-col h4 {
  font-family: var(--font-alt);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px; 
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul a,
.footer-col ul span {
  font-family: var(--font-alt);
  font-size: 14px;
  color: #f5f0e8;
  opacity: 0.85;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  color: #c29f72;
}

.footer-col-1 ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-1 a {
  color: #f5f0e8;
  font-family: Manrope;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.contact-item span {
  font-family: var(--font-alt);
  font-size: 14px;
  line-height: 1.5;
  color: #f5f0e8;
  opacity: 0.85;
}

.social-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}

ul.social-list {
  display: flex;
  gap: 14px;
  flex-direction: column;
}

.social-list svg {
  width: 18px;
  height: 18px;
  color: #f5f0e8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 16px;
}

.footer-col-2 {
  width: 22%;
}

.footer-bottom p {
  text-align: center;
  font-family: var(--font-alt);
  font-size: 12px;
  color: #f5f0e8;
  opacity: 0.6;
}

.footer-col-3 h4,
.footer-col-2 h4,
.footer-col-1 h4 {
  color: #c5a059;
  font-family: Manrope;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  letter-spacing: 1px; 
}

.linw-wrapp {
  display: flex;
  gap: 40px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .vision-section {
    gap: 40px;
    grid-template-columns: repeat(1, minmax(100px, 1fr));
  }

  .form-field textarea {
    min-height: 190px;
    resize: vertical;
  }

  .footer-col-1,
  .footer-col-2,
  .footer-col-3 {
    width: 100% !important;
  }

  .header-bar,
  .sub-nav,
  .rooms-intro,
  .highlights-section,
  .footer-hero,
  .footer-links,
  .gallery-section,
  .showcase-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .vision-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 18px;
  }

  .header-inner {
    flex-direction: column;
    gap: 16px;
  }

  .header-divider {
    display: none;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
  }

  .showcase-cards {
    flex-direction: column;
  }

  .gallery-grid {
    flex-wrap: wrap;
  }

  .gallery-grid img {
    width: calc(50% - 20px);
    height: auto;
    aspect-ratio: 270/320;
  }

  .vision-gallery {
    flex-wrap: wrap;
  }

  .vision-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 321/422;
  }

  .highlights-cards {
    flex-direction: column;
  }

  .footer-columns {
    flex-direction: column;
    gap: 40px;
  }
}