/*
Theme Name: Mid Cape Conference Center
Theme URI: https://example.com/mid-cape-conference-center
Author: Your Studio
Author URI: https://example.com
Description: A one-page venue/booking theme for a conference and event space, built in the same navy-and-sand brand system as the Cape Resource Directory theme. Room details, pricing, capacity, and contact information are all editable from the Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mccc
*/

/* ==========================================================================
   DESIGN TOKENS (shared brand system)
   ========================================================================== */

:root {
  --navy: #0E3A5F;
  --navy-dark: #092944;
  --blue: #1C6EA4;
  --sand: #D9A441;
  --sand-dark: #BE8A2E;
  --tide: #E4EEF3;
  --bg: #F6F8FA;
  --white: #FFFFFF;
  --ink: #1F2937;
  --slate: #5B6670;
  --border: #E2E8F0;

  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(14, 58, 95, 0.08);
  --shadow-md: 0 6px 20px rgba(14, 58, 95, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Libre Franklin", "Segoe UI", sans-serif;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--sand-dark); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; margin: 0; padding: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--sand); color: var(--navy-dark); }
.btn-primary:hover { background: var(--sand-dark); color: var(--white); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

.eyebrow {
  display: inline-block;
  background: rgba(217, 164, 65, 0.18);
  color: var(--sand-dark);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }

.header-top { background: var(--navy); color: var(--tide); font-size: 0.85rem; }
.header-top .container { display: flex; justify-content: space-between; align-items: center; padding: 8px 24px; flex-wrap: wrap; gap: 8px; }
.header-top a { color: var(--tide); }
.header-top a:hover { color: var(--sand); }
.header-top-links { display: flex; gap: 20px; flex-wrap: wrap; }

.header-main { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-title { font-family: "Libre Franklin", sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--navy); margin: 0; letter-spacing: -0.01em; }
.site-title a { color: var(--navy); }
.site-tagline { font-size: 0.72rem; color: var(--slate); margin: 0; text-transform: uppercase; letter-spacing: 0.03em; }

.primary-nav ul { display: flex; gap: 4px; align-items: center; }
.primary-nav a { display: block; padding: 10px 14px; color: var(--navy); font-weight: 600; font-size: 0.95rem; border-radius: var(--radius); }
.primary-nav a:hover { background: var(--tide); color: var(--navy); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.menu-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 2px; background: var(--navy); position: relative; transition: all 0.2s ease; }
.menu-toggle span::before { content: ""; position: absolute; top: -6px; }
.menu-toggle span::after { content: ""; position: absolute; top: 6px; }

/* ==========================================================================
   HERO + GALLERY
   ========================================================================== */

.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); padding: 56px 0 0; position: relative; overflow: hidden; }
.hero .container { position: relative; z-index: 2; }

.hero-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.hero-gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; height: 100%; }

.hero-copy { max-width: 760px; text-align: center; margin: 0 auto 48px; }
.hero-copy h1 { color: var(--white); }
.hero-copy p { color: var(--tide); font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.tideline { position: relative; width: 100%; height: 64px; line-height: 0; }
.tideline svg { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.section { padding: 64px 0; }
.section-tide { background: var(--tide); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--tide); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-header p { color: var(--slate); }
.section-navy .section-header p { color: var(--tide); }

/* ==========================================================================
   ROOM TYPE CARDS
   ========================================================================== */

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

.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--sand);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.room-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.room-card-media { aspect-ratio: 16/10; background: var(--tide) center/cover no-repeat; position: relative; }
.room-card-tag { position: absolute; top: 12px; left: 12px; background: var(--navy); color: var(--white); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px; }
.room-card-body { padding: 24px 26px 28px; }
.room-card-body h3 { margin-bottom: 8px; }
.room-card-body p { color: var(--slate); font-size: 0.96rem; }
.room-card-link { font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.room-card-link::after { content: "\2192"; transition: transform 0.15s ease; }
.room-card-link:hover::after { transform: translateX(3px); }

/* ==========================================================================
   RENTAL HIGHLIGHTS
   ========================================================================== */

.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.highlight-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; text-align: center; }
.highlight-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--tide); color: var(--navy); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-weight: 800; }
.highlight-item p { color: var(--slate); font-size: 0.92rem; margin: 0; }

/* ==========================================================================
   ROOM DETAIL (pricing + capacity)
   ========================================================================== */

.room-detail { scroll-margin-top: 110px; padding: 72px 0; border-bottom: 1px solid var(--border); }
.room-detail:last-child { border-bottom: none; }
.room-detail-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.room-detail-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.room-detail-media a.matterport-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; }

.capacity-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.capacity-chip { background: var(--tide); border-radius: var(--radius); padding: 12px 16px; text-align: center; min-width: 108px; }
.capacity-chip strong { display: block; font-family: "Libre Franklin", sans-serif; font-size: 1.4rem; color: var(--navy); font-weight: 800; }
.capacity-chip span { font-size: 0.78rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.02em; }

.pricing-table { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pricing-table-header { background: var(--navy); color: var(--white); padding: 16px 24px; font-weight: 700; font-family: "Libre Franklin", sans-serif; }
.pricing-row { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 8px; padding: 14px 24px; border-bottom: 1px solid var(--border); align-items: center; }
.pricing-row:last-child { border-bottom: none; }
.pricing-row.pricing-row-head { background: var(--tide); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--slate); }
.pricing-row .price-label { font-weight: 700; color: var(--navy); }
.pricing-row .price-value { font-family: "Libre Franklin", sans-serif; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.pricing-row .price-value small { display: block; font-family: "Source Sans 3", sans-serif; font-weight: 600; color: var(--slate); font-size: 0.72rem; text-transform: none; }

.specs-list { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.specs-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 0.95rem; }
.specs-list li::before { content: "\2713"; color: var(--sand-dark); font-weight: 800; }

/* ==========================================================================
   LOCATION
   ========================================================================== */

.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.location-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; }
.location-map iframe { width: 100%; height: 100%; border: 0; }
.location-details p { color: var(--slate); }

/* ==========================================================================
   CTA BAND / STICKY BOOK BAR
   ========================================================================== */

.cta-band { background: var(--sand); padding: 48px 0; text-align: center; }
.cta-band h2 { color: var(--navy-dark); margin-bottom: 8px; }
.cta-band p { color: var(--navy-dark); margin-bottom: 24px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer { background: var(--navy-dark); color: var(--tide); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 14px; }
.footer-grid ul { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--tide); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--sand); }
.footer-brand p { color: var(--tide); font-size: 0.9rem; max-width: 320px; }
.footer-badge { display: inline-block; margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sand); font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(228,238,243,0.7); }
.footer-bottom a { color: rgba(228,238,243,0.7); }

/* ==========================================================================
   GENERIC PAGE / MISC
   ========================================================================== */

.page-header { background: var(--navy); color: var(--white); padding: 48px 0; }
.page-header h1 { color: var(--white); margin-bottom: 0; }
.page-content { max-width: 760px; margin: 0 auto; background: var(--white); padding: 40px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.no-results { text-align: center; padding: 80px 0; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 960px) {
  .room-detail-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-row { grid-template-columns: 1.2fr repeat(3, 1fr); font-size: 0.9rem; }
}

@media (max-width: 720px) {
  .primary-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 280px; background: var(--white); flex-direction: column; padding: 80px 24px 24px; transition: right 0.25s ease; box-shadow: var(--shadow-md); }
  .primary-nav.is-open { right: 0; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; width: 100%; }
  .menu-toggle { display: block; }
  .hero-gallery { grid-template-columns: repeat(2, 1fr); }
  .room-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-row { grid-template-columns: 1fr; gap: 2px; text-align: left; }
  .pricing-row.pricing-row-head { display: none; }
  .pricing-row .price-value::before { content: attr(data-label) ": "; font-family: "Source Sans 3", sans-serif; font-weight: 700; color: var(--slate); font-size: 0.75rem; text-transform: uppercase; }
  .header-top-links { display: none; }
}
