/*
Theme Name: Rock House Galle
Theme URI: 
Author: Developer
Author URI: 
Description: Custom boutique hotel theme for Rock House Galle
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rockhouse
*/

/* ===========================
   ROCK HOUSE GALLE – STYLES
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&family=Cormorant+Garamond:wght@300;400;600&display=swap');

:root {
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --navy: #1a2540;
  --navy-deep: #0f1624;
  --cream: #f8f4ee;
  --cream-dark: #ede8df;
  --white: #ffffff;
  --text-dark: #2c2c2c;
  --text-mid: #555555;
  --text-light: #888888;
  --border: rgba(201,168,76,0.25);
  --shadow: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-deep: 0 20px 60px rgba(0,0,0,0.2);
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; width: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}
.section-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.8;
}
.gold-line {
  width: 50px;
  height: 2px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}
.gold-line.center { margin: 1rem auto 1.5rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.site-header.scrolled {
  background: var(--navy-deep);
  padding: 0.8rem 4%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.logo {
  display: flex;
  flex-direction: column;
  color: var(--white);
}
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.88);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }
.nav-cta { margin-left: 1rem; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  display: block;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--navy-deep);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  pointer-events: all;
}
.mobile-menu a {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 4%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Sticky Book Now (mobile) */
.sticky-book-btn {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gold);
  color: var(--navy-deep);
  text-align: center;
  padding: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 998;
}

/* ===== PAGE BANNER ===== */
.page-banner {
  height: 45vh;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, rgba(15,22,36,0.65), rgba(15,22,36,0.45));
  overflow: hidden;
}
.page-banner .banner-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.page-banner-content { color: var(--white); padding: 6rem 2rem 2rem; }
.page-banner-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}
.page-banner-content p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

/* ===== SECTIONS ===== */
section { padding: 5rem 4%; }
.container { max-width: 1200px; margin: 0 auto; }
.text-center { text-align: center; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 4rem 4% 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { color: var(--white); margin-bottom: 1rem; }
.footer-desc { font-size: 0.9rem; line-height: 1.8; }
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 30px; height: 1px;
  background: var(--gold);
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}
.footer-contact-item .icon { color: var(--gold); font-size: 0.9rem; margin-top: 2px; }
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--white);
  transition: var(--transition);
}
.social-icon:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.footer-bottom {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILITIES ===== */
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy); }
.text-gold { color: var(--gold); }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  section { padding: 3.5rem 5%; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .sticky-book-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== MOTOPRESS CUSTOM OVERRIDES ===== */
.mphb-availability-search-form {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.mphb-availability-search-form > p {
  flex: 1;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mphb-availability-search-form label {
  font-size: 0.7rem !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  font-family: 'Lato', sans-serif !important;
  margin: 0 !important;
}

.mphb-availability-search-form input,
.mphb-availability-search-form select {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.15) !important;
  color: #fff !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.95rem !important;
  padding: 0.3rem 0 !important;
  outline: none !important;
  width: 100% !important;
  border-radius: 0 !important;
}

.mphb-availability-search-form input:focus {
  border-bottom-color: var(--gold) !important;
}

.mphb-availability-search-form .mphb-submit-button-wrapper {
  flex-shrink: 0;
  margin-bottom: 5px;
}

.mphb-availability-search-form .mphb-search-submit-button {
  background: var(--gold) !important;
  color: var(--navy-deep) !important;
  padding: 0.85rem 2rem !important;
  border-radius: var(--radius) !important;
  font-family: 'Lato', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border: none !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
}

.mphb-availability-search-form .mphb-search-submit-button:hover {
  background: var(--gold-light) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}

.mphb-required-fields-tip { display: none !important; }

@media (max-width: 768px) {
  .mphb-availability-search-form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem;
  }
}
