/* ==========================================================================
   OC Theme — WordPress supplements
   Adds WP-specific CSS that the static template didn't need: accessibility
   helpers, Gutenberg alignments, comments list, language switcher, search
   form. Loaded AFTER main.css so its rules win where they overlap.
   ========================================================================== */

/* ---------- Accessibility ---------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px; width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  word-wrap: normal !important;
}
.skip-link {
  background: var(--brand, #aa7143);
  color: #fff;
  display: block;
  font-weight: 600;
  left: 50%;
  padding: 12px 24px;
  position: absolute;
  text-decoration: none;
  top: -100px;
  transform: translateX(-50%);
  transition: top 0.2s ease;
  z-index: 100000;
}
.skip-link:focus { top: 8px; }

/* ---------- Gutenberg alignments ---------- */
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---------- Language switcher (Polylang) ---------- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-switcher-btn { color: var(--color-text-muted, #b3b3b3); transition: color 0.2s; font-size: 16px; font-weight: 400; }
.lang-switcher-btn.active,
.lang-switcher-btn:hover {
	background: linear-gradient(90deg, #F3CBA0 0%, #9D6340 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-fill-color: transparent;
}
.lang-switcher-divider { color: rgba(255,255,255,0.3); }

/* Mirror styles for the mobile menu's inline switcher. */
.mobile-menu__lang { gap: 8px; }
.mobile-menu__lang-btn.active { color: var(--color-gold-light, #f3cba0); }

/* ---------- Search form ---------- */
.search-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.search-field {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  color: #fff;
  padding: 8px 16px;
  font: inherit;
}
.search-field:focus {
  outline: none;
  border-color: var(--color-gold-light, #f3cba0);
}

/* ---------- WP comments ---------- */
.comments-area .comment-list { list-style: none; padding: 0; margin: 24px 0; }
.comments-area .comment-body {
  border-bottom: 1px solid var(--color-line, rgba(255,255,255,0.14));
  padding: 16px 0;
}
.comments-area .children { padding-left: 32px; list-style: none; }

/* ---------- Pagination (the_posts_pagination) ---------- */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--color-line, rgba(255,255,255,0.14));
  border-radius: 50%;
  color: var(--color-text-muted, #b3b3b3);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  color: var(--color-gold-light, #f3cba0);
  border-color: var(--color-gold-light, #f3cba0);
}

/* ---------- Elementor admin chrome corrections ----------
   Elementor's default "Page Title" is usually fine, but on Canvas template
   we want the site header/footer hidden. The "elementor_canvas" template
   does this automatically — we just ensure our PHP wrappers don't conflict. */
.elementor-page main#content { padding: 0; }

/* ---------- Pages built outside Elementor (regular WP editor) ---------- */
.oc-page:not(.elementor-page) {
  padding: 0 20px;
  max-width: 880px;
  margin: 0 auto;
}

/* ---------- Polylang on RTL languages (future-proofing) ---------- */
.rtl .lang-switcher,
.rtl .mobile-menu__lang { direction: rtl; }


/* ==========================================================================
   OC Theme — Widget styles
   Classes used by custom Elementor widgets that don't exist in main.css
   (because they were introduced in PHP, not in the original static template).
   ========================================================================== */

/* ---------- Facilities Grid + Gallery ---------- */
.oc-facilities-grid {
  display: grid;
  gap: clamp(16px, 2vw, 32px);
  padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
}
.oc-facilities-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.oc-facilities-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.oc-facilities-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .oc-facilities-grid.columns-3,
  .oc-facilities-grid.columns-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .oc-facilities-grid.columns-2,
  .oc-facilities-grid.columns-3,
  .oc-facilities-grid.columns-4 { grid-template-columns: 1fr; }
}

.oc-facility-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease-out, cubic-bezier(.2,.7,.2,1));
}
.oc-facility-card:hover { transform: translateY(-4px); }

.oc-facility-card__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: var(--color-bg-alt, #0f1213);
}
.oc-facility-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out, cubic-bezier(.2,.7,.2,1));
}
.oc-facility-card:hover .oc-facility-card__media img { transform: scale(1.04); }

.oc-facility-card__title {
  font-family: var(--font-display, sans-serif);
  font-size: clamp(18px, 1.4vw, 22px);
  font-weight: 500;
  color: var(--color-gold-light, #f3cba0);
  margin: 4px 0 0;
}
.oc-facility-card__desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted, #b3b3b3);
  margin: 0;
}

/* ---------- Display Copy widget ---------- */
.oc-display-copy {
  padding: clamp(40px, 6vw, 80px) clamp(20px, 3vw, 40px);
  max-width: 880px;
  margin: 0 auto;
}
.oc-display-copy.align-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.oc-display-copy .eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold-light, #f3cba0);
  margin-bottom: 16px;
}
.oc-display-copy .display-h2 { margin: 0 0 16px; }
.oc-display-copy .lead { margin: 0 0 24px; }

/* ---------- Contact Info widget ---------- */
.oc-contact-info {
  padding: clamp(40px, 6vw, 80px) 20px;
}
.oc-contact-info .contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 16px;
}
.oc-contact-info .contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text-muted, #b3b3b3);
}
.oc-contact-info .contact-list li strong {
  color: var(--color-gold-light, #f3cba0);
  min-width: 80px;
  font-weight: 500;
}
.oc-contact-info .contact-list a {
  color: var(--color-gold-light, #f3cba0);
  text-decoration: none;
  transition: color 0.2s;
}
.oc-contact-info .contact-list a:hover { text-decoration: underline; }
.oc-contact-info address { font-style: normal; }
.oc-contact-info .oc-contact-form { margin-top: 32px; }

/* ==========================================================================
   Section spacing — tighter, matches design intent
   The static template's `.section` padding was clamp(60px, 7vw, 130px) which
   doubles to 120-260px between sections (top of next + bottom of prev). Plus
   Elementor wraps each widget in a section/column with its own default padding.
   We strip Elementor's auto padding and reduce .section padding so the gap
   between sections is consistent and ~matches design (40-80px each side).
   ========================================================================== */

.section {
  /* padding-top:    clamp(16px, 4vw, 30px);
  padding-bottom: clamp(16px, 4vw, 30px); */
	margin-bottom: clamp(60px, 8vw, 150px)
}

/* Elementor outer wrappers around our themed widgets shouldn't add spacing
   on top of our own .section padding. */
.elementor-element[class*="oc_"] > .elementor-widget-container {
  padding: 0 !important;
}
.elementor-section.elementor-top-section,
.elementor-section.elementor-section-boxed {
  padding-top:    0 !important;
  padding-bottom: 0 !important;
}
.elementor-section.elementor-section-boxed > .elementor-container {
  padding-top:    0 !important;
  padding-bottom: 0 !important;
}
.elementor-element-populated {
  padding: 0 !important;
}
.elementor-widget:not(:last-child) {
  margin-bottom: 0 !important;
}

/* Hero takes full viewport — never has top padding */
.hero,
.elementor-widget-oc_hero_slider .section {
  padding-top: 0 !important;
}


/* ==========================================================================
   Buttons — unified hover state
   ALL btn variants turn gold gradient on hover. The header outline button
   stays outlined when scrolled (only gold on real hover, not auto-fill).
   ========================================================================== */

/* Unified gradient ramp + transition for all buttons */
.btn,
.btn--outline,
.btn--white,
.btn--ghost,
.btn--gold {
  transition: background 0.3s ease, color 0.3s ease,
              border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Outline / white / ghost → fill with gold on hover */
.btn--outline:hover,
.btn--outline:focus-visible,
.btn--white:hover,
.btn--white:focus-visible,
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: linear-gradient(180deg, #f3cba0 0%, #c89567 100%) !important;
  color: #07090a !important;
  border-color: transparent !important;
  outline: none;
}

/* Gold filled → brighter on hover */
.btn--gold:hover,
.btn--gold:focus-visible {
  background: linear-gradient(180deg, #f3cba0 0%, #d49968 100%) !important;
  color: #07090a !important;
  border-color: transparent !important;
  outline: none;
}

/* OVERRIDE main.css auto-gold on scroll — header outline button now
   stays outlined when scrolled; only real hover changes it. */
.site-header.is-scrolled .btn--outline,
.site-header--inner .btn--outline {
  background: transparent !important;
  border: 1px solid var(--color-line-strong, rgba(255,255,255,0.28)) !important;
  color: #fff !important;
}
/* …but on hover (even when scrolled), STILL go gold */
.site-header.is-scrolled .btn--outline:hover,
.site-header.is-scrolled .btn--outline:focus-visible,
.site-header--inner .btn--outline:hover,
.site-header--inner .btn--outline:focus-visible {
  background: linear-gradient(180deg, #f3cba0 0%, #c89567 100%) !important;
  color: #07090a !important;
  border-color: transparent !important;
}


/* ---------- Section 04 — Craft slider polish ----------
   - Hanging ribbon "MAISON / COUTURE" tag with V-notch BELOW the image edge
   - Arrow buttons fill with gold on hover */

/* Let the badge protrude beyond the media container, but keep image rounded */
.craft-slide__media {
  overflow: visible !important;
  background: transparent !important;
}
.craft-slide__media > img,
.craft-slide__media > .full-img {
  border-radius: 24px;
}

.craft-slide__media .vertical-badge {
  /* Override main.css width / background / border / clip */
  width: 44px;
  top: 0;
  left: 0;
  height: calc(100% + 22px);              /* tail hangs ~22px below image */
  background: linear-gradient(180deg, #d49968 0%, #aa7143 100%);
  border-right: 0;
  color: #07090a;
  font-weight: 600;
  letter-spacing: 0.36em;
  border-top-left-radius: 12px;            /* match image corner */
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  /* V-notch lives in the 22px overhang below the image so the tail
     looks like a hanging gold ribbon with a triangular fold. */
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 22px),
    50% 100%,
    0 calc(100% - 22px)
  );
}

.section-04__arrows .arrow-btn--circle {
   width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0d0e10;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease
}
.section-04__arrows .arrow-btn--circle:hover,
.section-04__arrows .arrow-btn--circle:focus-visible {
  background: linear-gradient(180deg, #f3cba0 0%, #c89567 100%);
  color: #07090a;
  border:0;
  outline: none;
}

/* ---------- Section 03 — full-bleed cinematic image with overlay copy ----------
   Image fills 100vw (both edges). Copy floats over the image on the right,
   vertically centered. No grid columns — image is the canvas, copy is an
   absolutely-positioned overlay panel. */
.section-03 {
  position: relative;
  overflow: hidden;
	/* padding:clamp(20px, 4vw, 30px) 0 0; */
}
.section-03 .section-03__grid {
  display: block;
  position: relative;
  padding: 0;
  gap: 0;
}
.section-03 .section-03__media {
  width: 100%;
  aspect-ratio: 16 / 6;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}
.section-03 .section-03__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.section-03 .section-03__copy {
  position: absolute;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  max-width: 700px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-start;
  color: #fff;
}

/* Image-right modifier → overlay sits on the LEFT instead */
.section-03 .section-03__grid--reverse .section-03__copy {
  right: auto;
  left: var(--container-pad);
}

/* Mobile: stack the copy below the image (no overlay — readability) */
@media (max-width: 900px) {
  .section-03 .section-03__media {
    aspect-ratio: 16 / 9;
  }
  .section-03 .section-03__copy {
    position: static;
    transform: none;
    max-width: none;
    padding: clamp(24px, 4vw, 40px) var(--container-pad);
	  flex-direction: row;
  }
  .section-03 .section-03__grid--reverse .section-03__copy {
    left: auto;
  }
}

/* ---------- Map embed iframe (location-map widget, embed mode) ---------- */
.map-iframe {
  width: 100%;
  height: clamp(360px, 60vh, 600px);
  border: 0;
  display: block;
  border-radius: 4px;
  filter: grayscale(0.2) contrast(1.05);
}

/* ---------- Elementor Canvas pages — kill default body padding ---------- */
.elementor-template-canvas .site-header,
.elementor-template-canvas .site-footer,
.elementor-template-canvas .mobile-menu { display: revert; }

/* When Elementor renders a section, ensure our widgets keep full-width behavior */
.elementor-widget-oc_hero_slider,
.elementor-widget-oc_craft_slider,
.elementor-widget-oc_masterplan_amenities,
.elementor-widget-oc_iconic_cards,
.elementor-widget-oc_location_map,
.elementor-widget-oc_section_media_copy,
.elementor-widget-oc_tagline_cards {
  width: 100%;
}
.elementor-widget-oc_hero_slider > .elementor-widget-container,
.elementor-widget-oc_craft_slider > .elementor-widget-container,
.elementor-widget-oc_masterplan_amenities > .elementor-widget-container,
.elementor-widget-oc_iconic_cards > .elementor-widget-container,
.elementor-widget-oc_location_map > .elementor-widget-container,
.elementor-widget-oc_section_media_copy > .elementor-widget-container,
.elementor-widget-oc_tagline_cards > .elementor-widget-container {
  width: 100%;
  padding: 0;
}

/* Elementor's column wrapper sometimes shrink-wraps; force full width */
.elementor-section-stretched .elementor-container,
.elementor-element .elementor-widget-wrap {
  width: 100%;
  max-width: 100%;
}
