/* ================================
   PORTER PALACE MAIN STYLE SHEET
   ================================ */

/* ----- Color Palette ----- */
:root {
  --navy: #101D42;
  --accent: #0A142C;
  --cream: #FBF9F6;
  --gold: #D4AF37;
  --dark-text: #433A34;
  --light-text: #F0F4F8;
}

/* ----- Global Base Styles ----- */
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--cream);
  color: var(--dark-text);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-serif {
  font-family: 'Cormorant Garamond', serif;
}

.text-primary { color: var(--gold); }
.bg-primary { background-color: var(--gold); }
.text-dark { color: var(--dark-text); }
.bg-dark { background-color: var(--navy); }
.bg-dark-accent { background-color: var(--accent); }
.bg-light { background-color: var(--cream); }

a { text-decoration: none; transition: color 0.3s ease; }

/* ----- Header and Navigation ----- */
.nav-link {
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active { color: var(--gold); }

/* Mobile menu animation */
#mobile-menu {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  overflow: hidden;
}
#mobile-menu.hidden {
  max-height: 0;
  opacity: 0;
}

/* ----- Hero Section ----- */
#hero-section {
  position: relative;
  top: 0;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
#hero-section img {
  margin-top: 0 !important;
  display: block;
}
.hero-title-shadow {
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9);
}
.hero-text-shadow {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* ----- Layout & Spacing ----- */
main {
  margin-bottom: 0 !important;
}
section {
  scroll-margin-top: 100px;
}
.page-view {
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.page-view.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.page-view.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ----- Buttons ----- */
.cta-button {
  background-color: var(--gold);
  color: #000;
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease-in-out;
  border-radius: 0.125rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.cta-button:hover { opacity: 0.85; }

.outline-button {
  border: 1px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  padding: 0.6rem 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 0.125rem;
}
.outline-button-dark {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.6rem 1.6rem;
  transition: all 0.3s ease-in-out;
}
.outline-button-dark:hover {
  background-color: var(--gold);
  color: #000;
}

/* ----- Form & Inputs ----- */
.booking-input,
.form-input-light-bg {
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.75rem;
  color: var(--dark-text);
  font-size: 0.95rem;
  background-color: #fff;
}
.booking-label {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  color: var(--navy);
}
.booking-submit-button {
  background-color: var(--gold);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  height: 40px;
}

/* ----- Footer ----- */
footer {
  margin-top: 0 !important;
  padding-top: 2rem;
}
footer p, footer a {
  color: #ccc;
}
footer a:hover {
  color: var(--gold);
}

/* ----- Image Galleries ----- */
#gallery-thumbs img {
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
#gallery-thumbs img:hover {
  transform: scale(1.05);
}

/* GLightbox Customization */
.glightbox-clean .gdesc {
  color: #111;
}
.glightbox-clean .ginner {
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
}
.glightbox-clean .gnext, .glightbox-clean .gprev {
  color: var(--gold);
}

/* ----- Responsive Google Map Embed ----- */
.map-responsive {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  border-radius: 0.25rem;
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----- Miscellaneous ----- */
.hero-bg-extension {
  background-color: var(--cream);
}
a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid rgba(212, 175, 55, 0.4);
  outline-offset: 2px;
}

/* Responsive Tweaks */
@media (max-width: 640px) {
  .cta-button {
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
  }
  .font-serif { line-height: 1.3; }
}
