/*
Theme Name: Caoimhe Collection
Theme URI: https://caoimhecollection.com
Author: Caoimhe Collection
Description: A custom luxury hospitality theme for Caoimhe Collection, designed for a curated portfolio of Los Angeles and Big Bear Lake stays.
Version: 1.43.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: caoimhe-collection
*/

:root {
  --cc-navy: #172a3a;
  --cc-navy-deep: #0f2231;
  --cc-ivory: #f4f1e8;
  --cc-paper: #fbfaf6;
  --cc-ink: #242321;
  --cc-muted: #716d66;
  --cc-gold: #b89a5a;
  --cc-line: rgba(36,35,33,.16);
  --cc-max: 1380px;
  --cc-serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --cc-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cc-ink);
  background: var(--cc-paper);
  font-family: var(--cc-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.cc-wrap { width: min(calc(100% - 48px), var(--cc-max)); margin: 0 auto; }
.cc-eyebrow {
  margin: 0 0 14px;
  font-size: .72rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 600;
}
.cc-heading {
  font-family: var(--cc-serif);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin: 0;
}
.cc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid currentColor;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  font-weight: 600;
  transition: .25s ease;
}
.cc-button:hover { background: var(--cc-ink); color: #fff; border-color: var(--cc-ink); }
.cc-button--light:hover { background: var(--cc-ivory); color: var(--cc-navy); border-color: var(--cc-ivory); }

/* Header */
.cc-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: #fff;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.cc-header.is-scrolled {
  background: rgba(244,241,232,.97);
  color: var(--cc-navy);
  box-shadow: 0 1px 0 rgba(23,42,58,.1);
  backdrop-filter: blur(10px);
}
.cc-header__inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}
.cc-nav { display: flex; align-items: center; gap: 26px; }
.cc-nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: .68rem;
  letter-spacing: .13em;
  font-weight: 600;
}
.cc-brand { justify-self: center; }
.cc-brand img { width: 230px; height: 58px; object-fit: contain; object-position: center; }
.cc-header__right { justify-self: end; display: flex; align-items: center; gap: 24px; }
.cc-header .cc-button { min-height: 42px; padding-inline: 20px; }
.cc-menu-toggle { display:none; border:0; background:none; color:inherit; font-size:1.5rem; }
.cc-mobile-nav { display:none; }

/* Hero */
.cc-hero {
  min-height: 92vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--cc-navy);
  overflow: hidden;
}
.cc-hero__media { position:absolute; inset:0; }
.cc-hero__media img { width:100%; height:100%; object-fit:cover; }
.cc-hero__overlay {
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(8,23,34,.12) 0%, rgba(8,23,34,.16) 45%, rgba(8,23,34,.72) 100%);
}
.cc-hero__content { position:relative; z-index:2; padding: 190px 0 72px; max-width: 860px; }
.cc-hero__title { font-size: clamp(3.3rem, 7vw, 7.5rem); color:#fff; }
.cc-hero__sub { max-width: 660px; font-size: clamp(1.05rem,1.8vw,1.35rem); margin: 20px 0 32px; }
.cc-hero__actions { display:flex; gap:12px; flex-wrap:wrap; }

/* Intro */
.cc-intro { padding: 108px 0; background: var(--cc-ivory); }
.cc-intro__grid { display:grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; align-items:start; }
.cc-intro h2 { font-size: clamp(2.7rem,4.7vw,5.3rem); color: var(--cc-navy); }
.cc-intro__copy { max-width: 650px; font-family:var(--cc-serif); font-size:clamp(1.3rem,2vw,1.8rem); line-height:1.45; margin:0; }

/* Collection */
.cc-collection { padding: 110px 0 124px; }
.cc-section-head { display:flex; align-items:end; justify-content:space-between; gap:32px; margin-bottom:42px; }
.cc-section-head h2 { color:var(--cc-navy); font-size:clamp(2.5rem,4.5vw,5rem); }
.cc-property-grid { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px 28px; }
.cc-property-card { text-decoration:none; }
.cc-property-card__image { aspect-ratio: 4 / 3; overflow:hidden; background:#ddd; }
.cc-property-card__image img { width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.cc-property-card:hover img { transform:scale(1.025); }
.cc-property-card__meta { padding-top:18px; display:flex; justify-content:space-between; gap:20px; align-items:start; }
.cc-property-card h3 { font-family:var(--cc-serif); font-size:2rem; font-weight:400; margin:0; }
.cc-property-card p { margin:5px 0 0; color:var(--cc-muted); font-size:.88rem; }
.cc-property-card__arrow { font-size:1.4rem; }

/* Destination */
.cc-destinations { background:var(--cc-navy); color:#fff; padding:110px 0; }
.cc-destinations h2 { color:#fff; font-size:clamp(2.5rem,4.5vw,5rem); }
.cc-destination-grid { display:grid; grid-template-columns:1fr 1fr; gap:2px; margin-top:45px; background:rgba(255,255,255,.2); }
.cc-destination {
  min-height:440px; padding:42px; background:var(--cc-navy-deep);
  display:flex; flex-direction:column; justify-content:flex-end; text-decoration:none;
}
.cc-destination:nth-child(2) { background:#223a4d; }
.cc-destination h3 { font-family:var(--cc-serif); font-size:3.4rem; font-weight:400; margin:0; }
.cc-destination p { max-width:480px; color:rgba(255,255,255,.76); }

/* Story */
.cc-story { padding:120px 0; }
.cc-story__grid { display:grid; grid-template-columns:1.1fr .9fr; align-items:center; gap:7vw; }
.cc-story__image { aspect-ratio: 4 / 5; overflow:hidden; }
.cc-story__image img { width:100%; height:100%; object-fit:cover; }
.cc-story h2 { font-size:clamp(2.7rem,4vw,4.8rem); color:var(--cc-navy); }
.cc-story p { color:var(--cc-muted); font-size:1.03rem; max-width:560px; }

/* CTA */
.cc-booking-cta { background:var(--cc-ivory); padding:100px 0; text-align:center; }
.cc-booking-cta h2 { font-size:clamp(2.8rem,5vw,5.6rem); color:var(--cc-navy); }
.cc-booking-cta p { max-width:640px; margin:24px auto 32px; color:var(--cc-muted); }

/* Footer */
.cc-footer { background:var(--cc-navy-deep); color:#fff; padding:80px 0 34px; }
.cc-footer__grid { display:grid; grid-template-columns:1.3fr .7fr .7fr; gap:60px; }
.cc-footer__logo { width:210px; margin-bottom:24px; }
.cc-footer p { color:rgba(255,255,255,.68); max-width:430px; }
.cc-footer h4 { margin:0 0 17px; font-size:.72rem; text-transform:uppercase; letter-spacing:.16em; }
.cc-footer a { display:block; color:rgba(255,255,255,.74); text-decoration:none; margin:8px 0; }
.cc-footer__bottom { margin-top:60px; padding-top:24px; border-top:1px solid rgba(255,255,255,.16); color:rgba(255,255,255,.48); font-size:.78rem; display:flex; justify-content:space-between; }

/* Property */
.cc-property-hero { min-height:82vh; position:relative; color:#fff; display:flex; align-items:flex-end; background:var(--cc-navy); }
.cc-property-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cc-property-hero:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(10,20,28,.08),rgba(10,20,28,.7)); }
.cc-property-hero__content { position:relative; z-index:2; padding:180px 0 62px; }
.cc-property-hero__book { margin-top:28px; }
#booking { scroll-margin-top:96px; }
.cc-property-hero h1 { font-size:clamp(3.2rem,6.5vw,7rem); }
.cc-property-facts { display:flex; flex-wrap:wrap; gap:9px 22px; margin-top:20px; text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; }
.cc-property-intro { padding:100px 0; }
.cc-property-intro__grid { display:grid; grid-template-columns:.7fr 1.3fr; gap:8vw; }
.cc-property-intro h2 { font-size:clamp(2.5rem,4vw,4.7rem); color:var(--cc-navy); }
.cc-property-intro p { font-family:var(--cc-serif); font-size:clamp(1.25rem,2vw,1.72rem); line-height:1.5; margin-top:0; }
.cc-editorial-grid { width:min(calc(100% - 48px), 1500px); margin:0 auto; display:grid; grid-template-columns:1.25fr .75fr; gap:18px; }
.cc-editorial-grid__large { grid-row:span 2; min-height:720px; }
.cc-editorial-grid__small { min-height:350px; }
.cc-editorial-grid img { width:100%; height:100%; object-fit:cover; }
.cc-amenities { padding:110px 0; background:var(--cc-ivory); }
.cc-amenities__grid { display:grid; grid-template-columns:.65fr 1.35fr; gap:8vw; }
.cc-amenities h2 { font-size:clamp(2.6rem,4vw,4.6rem); color:var(--cc-navy); }
.cc-amenity-list { display:grid; grid-template-columns:repeat(2,1fr); gap:0 40px; margin:0; padding:0; list-style:none; }
.cc-amenity-list li { padding:15px 0; border-bottom:1px solid var(--cc-line); }
.cc-gallery { padding:110px 0; }
.cc-gallery__grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.cc-gallery__grid figure { margin:0; aspect-ratio:1.25; overflow:hidden; }
.cc-gallery__grid img { width:100%; height:100%; object-fit:cover; }
.cc-ownerrez { margin-top:26px; padding:24px; border:1px dashed var(--cc-line); color:var(--cc-muted); font-size:.9rem; background:rgba(255,255,255,.45); }

/* Generic pages */
.cc-page { padding:160px 0 100px; min-height:70vh; }
.cc-page h1 { color:var(--cc-navy); font-size:clamp(3rem,5vw,5.5rem); }
.entry-content { max-width:820px; font-size:1rem; }
.entry-content h2,.entry-content h3 { font-family:var(--cc-serif); font-weight:400; color:var(--cc-navy); }

/* responsive */
@media (max-width: 900px) {
  .cc-wrap { width:min(calc(100% - 32px), var(--cc-max)); }
  .cc-header__inner { grid-template-columns:auto 1fr auto; min-height:78px; }
  .cc-brand { justify-self:start; }
  .cc-brand img { width:185px; height:48px; }
  .cc-menu-toggle { display:block; justify-self:end; }
  .cc-nav, .cc-header__right .cc-button { display:none; }
  .cc-header__right { justify-self:end; }
  .cc-mobile-nav {
    display:none; background:var(--cc-ivory); color:var(--cc-navy); padding:16px 24px 28px;
    border-top:1px solid rgba(23,42,58,.12);
  }
  .cc-mobile-nav.is-open { display:block; }
  .cc-mobile-nav a { display:block; padding:11px 0; text-decoration:none; text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; }
  .cc-hero { min-height:80vh; }
  .cc-hero__content { padding-bottom:45px; }
  .cc-intro__grid,.cc-story__grid,.cc-property-intro__grid,.cc-amenities__grid { grid-template-columns:1fr; gap:36px; }
  .cc-property-grid,.cc-destination-grid { grid-template-columns:1fr; }
  .cc-editorial-grid { grid-template-columns:1fr; }
  .cc-editorial-grid__large,.cc-editorial-grid__small { min-height:auto; aspect-ratio:4/3; }
  .cc-gallery__grid { grid-template-columns:1fr 1fr; }
  .cc-footer__grid { grid-template-columns:1fr; gap:32px; }
}
@media (max-width: 580px) {
  .cc-hero__title { font-size:3.55rem; }
  .cc-intro,.cc-collection,.cc-story,.cc-amenities,.cc-gallery { padding:76px 0; }
  .cc-section-head { display:block; }
  .cc-section-head .cc-button { margin-top:20px; }
  .cc-gallery__grid,.cc-amenity-list { grid-template-columns:1fr; }
  .cc-footer__bottom { display:block; }
}


/* v1.2 editable-content enhancements */
.cc-destination { position:relative; overflow:hidden; }
.cc-destination__bg { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.38; }
.cc-destination__shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(15,34,49,.08),rgba(15,34,49,.84)); }
.cc-destination__content { position:relative; z-index:2; }
.cc-property-body { padding:100px 0; }
.cc-property-body .entry-content { max-width:1120px; margin:0 auto; }
.cc-property-body .wp-block-gallery { margin:48px 0; }
.cc-property-body .wp-block-image { margin:42px 0; }
.cc-property-body .wp-block-image img { width:100%; }
.cc-property-body h2 { font-size:clamp(2.2rem,4vw,4.2rem); margin-top:70px; }
.cc-property-body h3 { font-size:clamp(1.7rem,2.8vw,2.7rem); margin-top:50px; }
.cc-property-body p { max-width:850px; }


/* v1.34 homepage refinement */
.cc-header__inner { min-height: 88px; }
.cc-header .cc-nav,
.cc-header .cc-header__right { position: relative; z-index: 2; }
.cc-header .cc-brand { position: relative; z-index: 3; }

.cc-property-grid {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.cc-property-card__meta { padding-bottom: 6px; }

.cc-destination__bg { opacity:.48; }
.cc-destination__shade {
  background:linear-gradient(180deg,rgba(15,34,49,.06),rgba(15,34,49,.68));
}

.cc-footer { padding-top: 64px; }
.cc-footer__logo { width: 165px; margin-bottom: 20px; }
.cc-footer__bottom { margin-top: 42px; }

.cc-booking-cta { padding: 82px 0 72px; }

@media (max-width: 900px){
  .cc-property-grid { grid-template-columns:1fr; }
  .cc-footer__logo { width: 150px; }
}


/* v1.35 fixes */
.cc-property-card__placeholder {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 70% 28%, rgba(184,154,90,.14), transparent 30%),
    linear-gradient(145deg, #183044, #102536 70%);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.82);
  text-align:center;
  padding:30px;
}
.cc-property-card__placeholder span {
  font-family:var(--cc-serif);
  font-size:clamp(1.5rem,3vw,2.5rem);
  letter-spacing:.01em;
}


/* v1.38: final duplicate-nav suppression */
body > .menu,
body > .navigation,
body > nav:not(.cc-header):not(.cc-mobile-nav),
.site-preview nav:not(.cc-header):not(.cc-mobile-nav) {
  text-decoration: none;
}
.cc-duplicate-nav-hidden { display:none !important; }
