/*
Theme Name:  Estampes Villa
Theme URI:   https://estampesvilla.com
Author:      MBrain Studio
Author URI:  https://mbrain.studio
Description: Luxury one-page villa theme for Estampes Villa, Kythnos. Hybrid classic/block theme with full Gutenberg support, Fancybox gallery, CF7 integration.
Version:     1.0.0
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 8.1
License:     Private
Text Domain: estampes
Tags:        one-page, luxury, full-width-template, custom-colors, custom-logo, block-styles
*/

/* ─── RESETS & ROOT ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --est-white:      #faf8f4;
  --est-stone:      #f5f0e8;
  --est-stone-mid:  #e8e0d0;
  --est-sand:       #d4c9b0;
  --est-terra:      #8b7355;
  --est-muted:      #7a7060;
  --est-ink:        #2d2820;
  --est-dark:       #1a1714;
  --est-black:      #110f0d;
  --est-serif:      'Cormorant Garamond', Georgia, serif;
  --est-sans:       'Jost', sans-serif;
  --est-transition: 0.35s ease;
  --est-radius:     4px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--est-white);
  color: var(--est-ink);
  font-family: var(--est-sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── WORDPRESS CORE OVERRIDES ──────────────────────────────────── */
.wp-site-blocks { padding: 0 !important; }
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--wp--style--global--content-size);
  margin-inline: auto;
}
.entry-content { margin: 0; }
.wp-block-group { margin: 0; }

/* Remove default WP body padding when using full-width template */
.page-template-estampes-onepage #page,
.page-template-estampes-onepage .site-content,
.page-template-estampes-onepage .entry-content {
  padding: 0;
  margin: 0;
}

/* Admin bar offset */
.admin-bar #est-nav { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #est-nav { top: 46px; }
}

/* ─── SKIP LINK ─────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--est-ink);
  color: var(--est-white);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ─── GLOBAL UTILITY CLASSES ────────────────────────────────────── */

/* Section label */
.est-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--est-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--est-terra);
  margin-bottom: 16px;
}
.est-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--est-terra);
  opacity: 0.5;
}

/* Scroll reveal */
.est-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.est-reveal.est-visible {
  opacity: 1;
  transform: translateY(0);
}
.est-reveal-d1 { transition-delay: 0.12s; }
.est-reveal-d2 { transition-delay: 0.24s; }
.est-reveal-d3 { transition-delay: 0.36s; }

/* Dark section text inversions */
.est-section-dark .est-label { color: rgba(212,201,176,0.6); }
.est-section-dark .est-label::after { background: rgba(212,201,176,0.3); }
.est-section-dark,
.est-section-dark h1,
.est-section-dark h2,
.est-section-dark h3,
.est-section-dark p { color: var(--est-white); }
.est-section-dark p { color: rgba(250,248,244,0.65); }

/* ─── NAV ───────────────────────────────────────────────────────── */
#est-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 28px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--est-transition), padding var(--est-transition), border-color var(--est-transition);
  border-bottom: 1px solid transparent;
}
#est-nav.scrolled {
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 64px;
  border-bottom-color: var(--est-stone-mid);
}

.est-nav-logo {
  font-family: var(--est-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--est-white);
  transition: color var(--est-transition);
}
#est-nav.scrolled .est-nav-logo { color: var(--est-ink); }

.est-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.est-nav-links a {
  font-family: var(--est-sans);
  font-size: 0.68rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.8);
  transition: color var(--est-transition);
}
#est-nav.scrolled .est-nav-links a { color: var(--est-muted); }
.est-nav-links a:hover { color: var(--est-white); }
#est-nav.scrolled .est-nav-links a:hover { color: var(--est-ink); }

.est-nav-cta {
  font-size: 0.63rem !important;
  color: var(--est-white) !important;
  border: 1px solid rgba(250,248,244,0.45);
  padding: 9px 22px;
  transition: background var(--est-transition), border-color var(--est-transition), color var(--est-transition) !important;
}
#est-nav.scrolled .est-nav-cta { color: var(--est-ink) !important; border-color: var(--est-sand); }
.est-nav-cta:hover { background: rgba(250,248,244,0.12) !important; }
#est-nav.scrolled .est-nav-cta:hover {
  background: var(--est-ink) !important;
  color: var(--est-white) !important;
}

/* Hamburger */
.est-nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.est-nav-hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--est-white);
  transition: background var(--est-transition), transform 0.3s;
}
#est-nav.scrolled .est-nav-hamburger span { background: var(--est-ink); }

/* Mobile overlay nav */
.est-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--est-dark);
  z-index: 199;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.est-nav-overlay.open { display: flex; }
.est-nav-overlay a {
  font-family: var(--est-serif);
  font-size: 2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--est-white);
}

/* ─── HERO SECTION ──────────────────────────────────────────────── */
.est-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.est-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.est-hero-media img,
.est-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.est-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(26,23,20,0.75) 0%,
    rgba(26,23,20,0.15) 50%,
    rgba(26,23,20,0.05) 100%
  );
}

.est-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 80px 80px;
  max-width: 760px;
}

.est-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--est-sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.6);
  margin-bottom: 20px;
}
.est-hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(250,248,244,0.4);
}

.est-hero-title {
  font-family: var(--est-serif);
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--est-white);
  text-shadow: 0 2px 40px rgba(0,0,0,0.25);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.est-hero-title em { font-style: italic; }

.est-hero-sub {
  font-family: var(--est-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(250,248,244,0.68);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 44px;
  letter-spacing: 0.03em;
}

.est-hero-ctas {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.est-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 80px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.est-scroll-hint span {
  font-family: var(--est-sans);
  font-size: 0.52rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.38);
  writing-mode: vertical-rl;
}
.est-scroll-line {
  width: 1px;
  height: 52px;
  background: rgba(250,248,244,0.18);
  position: relative;
  overflow: hidden;
}
.est-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250,248,244,0.55);
  animation: estScrollDrop 2.2s ease-in-out infinite;
}
@keyframes estScrollDrop {
  0%   { top: -100%; }
  100% { top: 200%;  }
}

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.est-btn-primary {
  display: inline-block;
  font-family: var(--est-sans);
  font-size: 0.63rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--est-ink);
  background: var(--est-white);
  padding: 14px 32px;
  text-decoration: none;
  transition: background var(--est-transition);
}
.est-btn-primary:hover { background: var(--est-stone); color: var(--est-ink); }

.est-btn-ghost {
  display: inline-block;
  font-family: var(--est-sans);
  font-size: 0.63rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--est-white);
  border-bottom: 1px solid rgba(250,248,244,0.4);
  padding: 14px 0;
  transition: border-color var(--est-transition);
}
.est-btn-ghost:hover { border-color: var(--est-white); color: var(--est-white); }

.est-btn-dark {
  display: inline-block;
  font-family: var(--est-sans);
  font-size: 0.63rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--est-white);
  border: 1px solid rgba(250,248,244,0.18);
  padding: 16px 36px;
  transition: background var(--est-transition), border-color var(--est-transition);
}
.est-btn-dark:hover { background: rgba(250,248,244,0.06); border-color: rgba(250,248,244,0.38); }

/* ─── SNAPSHOT SECTION ──────────────────────────────────────────── */
.est-section-snapshot {
  padding: 120px 80px;
  background: var(--est-white);
}

.est-snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto 80px;
}

.est-snapshot-text h2 {
  font-family: var(--est-serif);
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--est-ink);
  margin-bottom: 28px;
}
.est-snapshot-text h2 em { font-style: italic; }
.est-snapshot-text p {
  font-size: 0.9rem;
  line-height: 1.88;
  color: var(--est-muted);
  margin-bottom: 18px;
}

.est-snapshot-image { position: relative; }
.est-snapshot-image img {
  width: 100%;
  height: 580px;
  object-fit: cover;
  border-radius: var(--est-radius);
}

/* Island + distances */
.est-island-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--est-stone-mid);
  border-bottom: 1px solid var(--est-stone-mid);
  max-width: 1280px;
  margin: 0 auto;
}
.est-island-text {
  padding: 52px 60px 52px 0;
  border-right: 1px solid var(--est-stone-mid);
}
.est-island-text h3 {
  font-family: var(--est-serif);
  font-size: 1.65rem;
  font-weight: 300;
  font-style: italic;
  color: var(--est-ink);
  margin-bottom: 18px;
}
.est-island-text p {
  font-size: 0.88rem;
  line-height: 1.88;
  color: var(--est-muted);
}
.est-distances { padding: 52px 0 52px 60px; }
.est-distances h4 {
  font-family: var(--est-sans);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--est-terra);
  margin-bottom: 28px;
}
.est-distance-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--est-stone-mid);
  font-size: 0.82rem;
  color: var(--est-muted);
}
.est-distance-item:last-child { border-bottom: none; }
.est-distance-item strong { font-weight: 400; color: var(--est-ink); }
.est-distance-item span { font-size: 0.75rem; color: var(--est-terra); }

/* ─── STATS BAR ─────────────────────────────────────────────────── */
.est-stats-bar {
  background: var(--est-dark);
  padding: 64px 80px;
}
.est-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.est-stat {
  text-align: center;
  padding: 24px;
  border-right: 1px solid rgba(250,248,244,0.07);
}
.est-stat:last-child { border-right: none; }
.est-stat-num {
  font-family: var(--est-serif);
  font-size: 3.2rem;
  font-weight: 300;
  color: var(--est-white);
  line-height: 1;
  margin-bottom: 10px;
}
.est-stat-label {
  font-family: var(--est-sans);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.38);
}

/* ─── SPACES SECTION ────────────────────────────────────────────── */
.est-section-spaces {
  padding: 0;
  background: var(--est-white);
}
.est-spaces-header {
  max-width: 1280px;
  margin: 0 auto 72px;
  padding: 0 80px;
}
.est-spaces-header h2 {
  font-family: var(--est-serif);
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 300;
  color: var(--est-ink);
}
.est-spaces-header h2 em { font-style: italic; }

.est-space-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  margin-bottom: 3px;
}
.est-space-row.est-reversed { direction: rtl; }
.est-space-row.est-reversed > * { direction: ltr; }

.est-space-image { overflow: hidden; }
.est-space-image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.est-space-row:hover .est-space-image img { transform: scale(1.03); }

.est-space-content {
  padding: 72px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--est-stone);
}
.est-space-row.est-reversed .est-space-content { background: var(--est-white); }

.est-space-num {
  font-family: var(--est-serif);
  font-size: 4rem;
  font-weight: 300;
  color: var(--est-stone-mid);
  line-height: 1;
  margin-bottom: 16px;
}
.est-space-content h3 {
  font-family: var(--est-serif);
  font-size: 1.9rem;
  font-weight: 300;
  font-style: italic;
  color: var(--est-ink);
  margin-bottom: 6px;
}
.est-space-content .est-space-tag {
  font-family: var(--est-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--est-terra);
  margin-bottom: 24px;
}
.est-space-content p {
  font-size: 0.88rem;
  line-height: 1.88;
  color: var(--est-muted);
  margin-bottom: 10px;
}
.est-space-rooms {
  list-style: none;
  margin-top: 20px;
}
.est-space-rooms li {
  font-size: 0.8rem;
  color: var(--est-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--est-stone-mid);
  display: flex;
  align-items: center;
  gap: 12px;
}
.est-space-rooms li::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--est-terra);
  opacity: 0.5;
  flex-shrink: 0;
}

/* Pool house full-width */
.est-pool-house {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 3px;
}
.est-pool-house img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.est-pool-house-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,23,20,0.78) 0%, rgba(26,23,20,0.1) 60%);
}
.est-pool-house-content {
  position: relative;
  z-index: 2;
  padding: 56px 80px;
  color: var(--est-white);
  max-width: 640px;
}
.est-pool-house-content h3 {
  font-family: var(--est-serif);
  font-size: 2.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--est-white);
  margin-bottom: 6px;
}
.est-pool-house-content .est-space-tag { color: rgba(250,248,244,0.45); margin-bottom: 18px; }
.est-pool-house-content p { font-size: 0.88rem; line-height: 1.8; color: rgba(250,248,244,0.72); }

/* ─── PULL QUOTE ────────────────────────────────────────────────── */
.est-section-quote {
  padding: 100px 80px;
  background: var(--est-white);
  text-align: center;
}
.est-quote-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding-top: 28px;
}
.est-quote-inner::before {
  content: '\201C';
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--est-serif);
  font-size: 7rem;
  line-height: 1;
  color: var(--est-stone-mid);
  font-weight: 300;
  pointer-events: none;
}
.est-quote-text {
  font-family: var(--est-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.38;
  color: var(--est-ink);
  margin-bottom: 28px;
}
.est-quote-attr {
  font-family: var(--est-sans);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--est-terra);
}

/* ─── GALLERY ───────────────────────────────────────────────────── */
.est-section-gallery {
  padding: 100px 0 100px 80px;
  overflow: hidden;
}

/* Header row: label+title left, arrows right */
.est-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 80px;
  margin-bottom: 48px;
  max-width: calc(1280px + 80px);
}
.est-gallery-header h2 {
  font-family: var(--est-serif);
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--est-ink);
}

/* Carousel prev/next buttons */
.est-gallery-controls { display: flex; gap: 10px; }
.est-gallery-btn {
  width: 46px;
  height: 46px;
  border: 1px solid var(--est-stone-mid);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--est-ink);
  transition: background var(--est-transition), border-color var(--est-transition), color var(--est-transition);
}
.est-gallery-btn:hover { background: var(--est-ink); color: var(--est-white); border-color: var(--est-ink); }
.est-gallery-btn svg { width: 16px; height: 16px; stroke-width: 1.5; }

/* ── Viewport + carousel track ── */
.est-gallery-viewport {
  overflow: hidden;
}

/* The WP Gallery block sits here — we override its grid with flex */
.est-gallery-viewport .wp-block-gallery,
.est-gallery-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  transition: transform 0.55s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
  /* Kill WP gallery's default grid columns */
  grid-template-columns: unset !important;
  columns: unset !important;
  align-items: stretch !important;
}

/* Each WP gallery item (wp-block-gallery > figure.wp-block-image) */
.est-gallery-viewport .wp-block-gallery figure.wp-block-image,
.est-gallery-viewport .wp-block-gallery .blocks-gallery-item,
.est-gallery-track .est-gallery-item {
  flex: 0 0 auto !important;
  width: calc((100vw - 80px - 54px) / 3.5) !important;
  border-radius: var(--est-radius) !important;
  overflow: hidden !important;
  position: relative !important;
  cursor: pointer !important;
  margin: 0 !important;
}

/* The <a> wrapper WP Gallery adds when "Link to: Media File" */
.est-gallery-viewport .wp-block-gallery figure.wp-block-image a,
.est-gallery-viewport .wp-block-gallery .blocks-gallery-item a {
  display: block !important;
  overflow: hidden !important;
  height: 100% !important;
}

/* The image itself */
.est-gallery-viewport .wp-block-gallery figure.wp-block-image img,
.est-gallery-viewport .wp-block-gallery .blocks-gallery-item img {
  width: 100% !important;
  height: 460px !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.55s ease !important;
  display: block !important;
  max-width: none !important;
}
.est-gallery-viewport .wp-block-gallery figure.wp-block-image:hover img,
.est-gallery-viewport .wp-block-gallery .blocks-gallery-item:hover img {
  transform: scale(1.04) !important;
}

/* Caption overlay */
.est-gallery-viewport .wp-block-gallery figcaption,
.est-gallery-viewport .wp-block-gallery .wp-element-caption {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 32px 16px 14px !important;
  font-family: var(--est-sans) !important;
  font-size: 0.55rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: rgba(250,248,244,0.65) !important;
  background: linear-gradient(to top, rgba(26,23,20,0.5) 0%, transparent 100%) !important;
  pointer-events: none !important;
  margin: 0 !important;
  text-align: left !important;
}

/* Remove WP gallery's default bottom padding/gap */
.est-gallery-viewport .wp-block-gallery {
  padding: 0 !important;
  margin: 0 !important;
  row-gap: 0 !important;
}

/* Mobile: 1 item visible */
@media (max-width: 768px) {
  .est-section-gallery { padding: 64px 0 64px 24px; }
  .est-gallery-header { padding-right: 24px; flex-wrap: wrap; gap: 20px; }

  .est-gallery-viewport .wp-block-gallery figure.wp-block-image,
  .est-gallery-viewport .wp-block-gallery .blocks-gallery-item {
    width: calc(100vw - 48px) !important;
  }
  .est-gallery-viewport .wp-block-gallery figure.wp-block-image img,
  .est-gallery-viewport .wp-block-gallery .blocks-gallery-item img {
    height: 360px !important;
  }
}

/* Tablet: 2 items visible */
@media (min-width: 769px) and (max-width: 1023px) {
  .est-gallery-viewport .wp-block-gallery figure.wp-block-image,
  .est-gallery-viewport .wp-block-gallery .blocks-gallery-item {
    width: calc((100vw - 40px - 18px) / 2) !important;
  }
}

/* ─── SERVICES ──────────────────────────────────────────────────── */
.est-section-services {
  padding: 120px 80px;
  background: var(--est-stone);
}
.est-services-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.est-services-text h2 {
  font-family: var(--est-serif);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--est-ink);
  margin-bottom: 28px;
}
.est-services-text h2 em { font-style: italic; }
.est-services-text p {
  font-size: 0.9rem;
  line-height: 1.92;
  color: var(--est-muted);
  margin-bottom: 0;
}
.est-amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--est-stone-mid);
}
.est-amenity {
  padding: 18px 16px;
  border-right: 1px solid var(--est-stone-mid);
  border-bottom: 1px solid var(--est-stone-mid);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--est-muted);
  letter-spacing: 0.03em;
}
.est-amenity:nth-child(3n) { border-right: none; }
.est-amenity-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--est-terra);
  opacity: 0.55;
  flex-shrink: 0;
}

/* ─── INQUIRY ───────────────────────────────────────────────────── */
.est-section-inquiry {
  padding: 140px 80px;
  background: var(--est-dark);
  position: relative;
  overflow: hidden;
}
.est-section-inquiry::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 80% 50%, rgba(139,115,85,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(90,112,128,0.07) 0%, transparent 50%);
  pointer-events: none;
}
.est-inquiry-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.est-inquiry-title {
  font-family: var(--est-serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--est-white);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.est-inquiry-title em { font-style: italic; }
.est-inquiry-text {
  font-size: 0.88rem;
  line-height: 1.88;
  color: rgba(250,248,244,0.52);
  max-width: 500px;
  margin: 0 auto 52px;
}
.est-contact-options {
  border: 1px solid rgba(250,248,244,0.07);
  margin-bottom: 52px;
  text-align: left;
}
.est-contact-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  border-bottom: 1px solid rgba(250,248,244,0.06);
  text-decoration: none;
  transition: background var(--est-transition);
  gap: 16px;
}
.est-contact-option:last-child { border-bottom: none; }
.est-contact-option:hover { background: rgba(250,248,244,0.04); }
.est-contact-type {
  font-family: var(--est-sans);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.28);
  min-width: 80px;
}
.est-contact-value {
  font-family: var(--est-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--est-white);
  flex: 1;
}
.est-contact-arrow {
  color: rgba(250,248,244,0.22);
  font-size: 1.1rem;
  transition: transform var(--est-transition), color var(--est-transition);
}
.est-contact-option:hover .est-contact-arrow {
  transform: translateX(5px);
  color: rgba(250,248,244,0.5);
}

/* CF7 form overrides for dark inquiry section */
.est-inquiry-form-wrap .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.est-inquiry-form-wrap .wpcf7-form p { margin: 0; }
.est-inquiry-form-wrap .wpcf7-form p.est-full { grid-column: 1 / -1; }
.est-inquiry-form-wrap input[type="text"],
.est-inquiry-form-wrap input[type="email"],
.est-inquiry-form-wrap textarea,
.est-inquiry-form-wrap select {
  width: 100%;
  background: rgba(250,248,244,0.04);
  border: 1px solid rgba(250,248,244,0.1);
  padding: 15px 20px;
  font-family: var(--est-sans);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--est-white);
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color var(--est-transition);
  resize: none;
  border-radius: 0;
  -webkit-appearance: none;
}
.est-inquiry-form-wrap input::placeholder,
.est-inquiry-form-wrap textarea::placeholder { color: rgba(250,248,244,0.25); }
.est-inquiry-form-wrap input:focus,
.est-inquiry-form-wrap textarea:focus { border-color: rgba(250,248,244,0.28); }
.est-inquiry-form-wrap textarea { height: 110px; }
.est-inquiry-form-wrap input[type="submit"] {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(250,248,244,0.18);
  padding: 16px;
  font-family: var(--est-sans);
  font-size: 0.63rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--est-white);
  cursor: pointer;
  transition: background var(--est-transition), border-color var(--est-transition);
}
.est-inquiry-form-wrap input[type="submit"]:hover {
  background: rgba(250,248,244,0.06);
  border-color: rgba(250,248,244,0.38);
}
.wpcf7-not-valid-tip { font-size: 0.68rem; color: #c88; margin-top: 4px; }
.wpcf7-response-output { font-size: 0.75rem; color: rgba(250,248,244,0.5); margin-top: 12px; border: none !important; padding: 0 !important; }

/* ─── FOOTER ────────────────────────────────────────────────────── */
#est-footer {
  background: var(--est-black);
  border-top: 1px solid rgba(250,248,244,0.05);
}
.est-footer-widgets {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding: 72px 80px 52px;
  max-width: 1280px;
  margin: 0 auto;
}
.est-footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(250,248,244,0.05);
}
.est-footer-copy {
  font-family: var(--est-sans);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(250,248,244,1);
}

/* Widget styles in footer */
#est-footer .widget-title {
  font-family: var(--est-sans);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.3);
  margin-bottom: 20px;
  font-weight: 400;
}
#est-footer .widget {
  font-family: var(--est-sans);
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(250,248,244,0.35);
  line-height: 1.85;
}
#est-footer .widget a {
  color: rgba(250,248,244,0.35);
  transition: color var(--est-transition);
}
#est-footer .widget a:hover { color: rgba(250,248,244,0.7); }
#est-footer .menu { list-style: none; }
#est-footer .menu li { padding: 5px 0; border-bottom: 1px solid rgba(250,248,244,0.05); }
#est-footer .textwidget p { margin-bottom: 10px; }
#est-footer .textwidget .est-footer-logo {
  font-family: var(--est-serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,248,244,0.5);
  margin-bottom: 16px;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #est-nav { padding: 22px 40px; }
  #est-nav.scrolled { padding: 16px 40px; }
  .est-hero-content { padding: 0 40px 72px; }
  .est-scroll-hint { right: 40px; }
  .est-section-snapshot { padding: 80px 40px; }
  .est-section-services { padding: 80px 40px; }
  .est-section-inquiry { padding: 100px 40px; }
  .est-section-gallery { padding: 80px 0 80px 40px; }
  .est-gallery-header { padding-right: 40px; }
  .est-spaces-header { padding: 0 40px; }
  .est-space-content { padding: 56px 48px; }
  .est-pool-house-content { padding: 48px 40px; }
  .est-section-quote { padding: 80px 40px; }
  .est-footer-widgets { padding: 60px 40px 40px; grid-template-columns: 1fr 1fr; }
  .est-footer-bottom { padding: 18px 40px; }
  .est-stats-bar { padding: 56px 40px; }
}

@media (max-width: 768px) {
  #est-nav { padding: 20px 24px; }
  #est-nav.scrolled { padding: 14px 24px; }
  .est-nav-links { display: none; }
  .est-nav-hamburger { display: flex; }

  .est-hero-content { padding: 0 24px 60px; max-width: 100%; }
  .est-scroll-hint { display: none; }

  .est-section-snapshot { padding: 64px 24px; }
  .est-snapshot-grid { grid-template-columns: 1fr; gap: 40px; }
  .est-snapshot-image img { height: 320px; }
  .est-island-grid { grid-template-columns: 1fr; }
  .est-island-text { border-right: none; border-bottom: 1px solid var(--est-stone-mid); padding: 40px 0; }
  .est-distances { padding: 40px 0; }

  .est-stats-bar { padding: 48px 24px; }
  .est-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .est-stat { border-bottom: 1px solid rgba(250,248,244,0.07); }
  .est-stat:nth-child(2n) { border-right: none; }

  .est-section-spaces { padding: 64px 0; }
  .est-spaces-header { padding: 0 24px; margin-bottom: 48px; }
  .est-space-row { grid-template-columns: 1fr; min-height: auto; direction: ltr !important; }
  .est-space-image img { min-height: 280px; height: 280px; }
  .est-space-content { padding: 40px 24px; }
  .est-pool-house-content { padding: 40px 24px; }
  .est-pool-house { min-height: 360px; }

  .est-section-quote { padding: 72px 24px; }

  .est-section-gallery { padding: 64px 0 64px 24px; }
  .est-gallery-header { padding-right: 24px; flex-wrap: wrap; gap: 20px; }
  .est-gallery-item { width: calc(100vw - 48px); }
  .est-gallery-item img { height: 360px; }

  .est-section-services { padding: 64px 24px; }
  .est-services-grid { grid-template-columns: 1fr; gap: 48px; }

  .est-section-inquiry { padding: 80px 24px; }
  .est-contact-option { padding: 18px 20px; }
  .est-inquiry-form-wrap .wpcf7-form { grid-template-columns: 1fr; }

  .est-footer-widgets { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 32px; }
  .est-footer-bottom { flex-direction: column; gap: 12px; padding: 16px 24px; text-align: center; }
}
