/*
Theme Name: Pillacol Premium
Theme URI: https://floralwhite-gnat-357854.hostingersite.com/
Author: HLS Codex
Description: A custom WooCommerce-ready hospitality theme for Pillacol Guest House.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: pillacol-premium
*/

:root {
  --ink: #1f1a17;
  --muted: #6d6760;
  --paper: #fffaf3;
  --cream: #f5efe6;
  --white: #ffffff;
  --maroon: #5b171a;
  --maroon-2: #7a2227;
  --gold: #c68a2c;
  --green: #66785f;
  --line: rgba(31, 26, 23, 0.14);
  --shadow: 0 22px 60px rgba(31, 26, 23, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Sans 3", "Trebuchet MS", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.top-strip {
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.top-strip-inner,
.header-inner,
.section-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.top-strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 230px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: var(--white);
}

.brand-title {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  line-height: 1.1;
}

.brand-tagline {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
}

.main-nav a:hover {
  color: var(--maroon);
}

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

.btn,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--maroon);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--maroon-2);
  box-shadow: 0 12px 30px rgba(91, 23, 26, 0.22);
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--white);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn.gold {
  background: var(--gold);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(31, 26, 23, 0.84), rgba(31, 26, 23, 0.36) 58%, rgba(31, 26, 23, 0.18)),
    linear-gradient(0deg, rgba(31, 26, 23, 0.8), rgba(31, 26, 23, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 80px;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 18px;
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(46px, 8vw, 92px);
}

.hero p {
  max-width: 680px;
  margin: 0 0 26px;
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.booking-bar {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 40px));
  margin: -42px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.booking-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: stretch;
}

.booking-chip {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.booking-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.booking-chip strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.2;
}

.booking-bar .btn {
  height: 100%;
  border-radius: 0;
  min-width: 176px;
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--cream);
}

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

.section-kicker {
  color: var(--maroon);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  max-width: 780px;
  font-size: clamp(34px, 5vw, 58px);
}

.section-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 20px;
  margin: 0 0 34px;
}

.dark .section-lede {
  color: rgba(255, 255, 255, 0.72);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.media-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 16px;
  align-items: end;
}

.media-stack img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.media-stack img:nth-child(2) {
  min-height: 250px;
}

.feature-grid,
.room-grid,
.audience-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.audience-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.feature-card,
.room-card,
.audience-card,
.policy-card,
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-card,
.audience-card,
.policy-card {
  padding: 26px;
}

.feature-card strong,
.audience-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 21px;
  line-height: 1.2;
}

.feature-card p,
.audience-card p,
.policy-card p {
  margin: 0;
  color: var(--muted);
}

.room-card {
  overflow: hidden;
}

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

.room-card-body {
  padding: 22px;
}

.room-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.rate {
  color: var(--maroon);
  font-weight: 900;
}

.room-card p {
  color: var(--muted);
  margin: 12px 0 18px;
}

.text-link {
  color: var(--maroon);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.site-main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  padding: 116px 0 86px;
  color: var(--white);
  background: var(--ink);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 26, 23, 0.88), rgba(31, 26, 23, 0.48)),
    var(--page-image, none);
  background-size: cover;
  background-position: center;
}

.page-hero .section-inner {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 780px;
  font-size: clamp(40px, 6vw, 72px);
}

.content-wrap {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.content-wrap h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.content-wrap h2 {
  margin-top: 46px;
  font-size: clamp(28px, 4vw, 42px);
}

.content-wrap p,
.content-wrap li {
  color: var(--muted);
}

.content-wrap img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  margin: 26px 0;
  box-shadow: var(--shadow);
}

.content-wrap ul,
.content-wrap ol {
  padding-left: 22px;
}

.content-wrap a {
  color: var(--maroon);
  font-weight: 800;
}

.form-card {
  margin-top: 38px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  margin-top: 7px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.alert {
  padding: 14px 16px;
  margin: 0 0 18px;
  border-radius: 6px;
  background: #f8e8e8;
  color: var(--maroon);
  font-weight: 800;
}

.sticky-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  gap: 8px;
  box-shadow: var(--shadow);
}

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

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 34px;
  padding: 70px 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a {
  text-decoration: none;
}

.footer-bottom {
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--maroon);
  color: var(--white);
  border-radius: 6px;
}

@media (max-width: 1020px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .booking-bar-grid,
  .feature-grid,
  .room-grid,
  .audience-grid,
  .steps,
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 720px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .top-strip-inner {
    flex-direction: column;
    gap: 4px;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    width: 100%;
    gap: 12px;
    font-size: 12px;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .btn {
    flex: 1;
  }

  .hero {
    min-height: 78vh;
  }

  .hero-content {
    padding: 92px 0 76px;
  }

  .hero p {
    font-size: 19px;
  }

  .booking-bar {
    margin-top: 0;
    width: 100%;
  }

  .booking-bar-grid,
  .feature-grid,
  .room-grid,
  .audience-grid,
  .steps,
  .gallery-grid,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .booking-chip {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .media-stack {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .sticky-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .sticky-cta .btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
  }
}
