/* =========================================================
   DISCOURSE — Main Stylesheet
   ========================================================= */

/* --- Google Fonts loaded via functions.php --- */

/* === Root Variables === */
:root {
  /* Palette: dark, warm, soft — "wealthy not rich" */
  --color-bg:            #0a090e;
  --color-bg-elevated:   #13121a;
  --color-bg-card:       #1a1924;
  --color-bg-hover:      #211f2e;
  --color-surface:       #252336;

  --color-text:          #d8d4e0;
  --color-text-muted:    #8a8698;
  --color-text-faint:    #5c586a;

  --color-accent:        #c9a86c;       /* warm gold — understated */
  --color-accent-soft:   rgba(201, 168, 108, 0.15);
  --color-accent-hover:  #ddbf85;

  --color-border:        rgba(255, 255, 255, 0.06);
  --color-border-hover:  rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;
  --space-2xl: 10rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.4s;
}


/* === Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

a:hover {
  color: var(--color-accent-hover);
}

::selection {
  background: var(--color-accent);
  color: var(--color-bg);
}


/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1.5em;
  max-width: 65ch;
}

p:last-child {
  margin-bottom: 0;
}

.text-accent {
  color: var(--color-accent);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-faint {
  color: var(--color-text-faint);
}

blockquote {
  border-left: 2px solid var(--color-accent);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text-muted);
}


/* === Layout === */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 800px;
}

.container--wide {
  max-width: 1440px;
}


/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background var(--duration) var(--ease-out),
              backdrop-filter var(--duration) var(--ease-out);
}

.site-header.scrolled {
  background: rgba(10, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  width: 100%
}

.site-logo img {
  height: 32px;
  width: auto;
  opacity: 0.5;
  transition: opacity var(--duration) var(--ease-out);
}

.site-logo:hover img {
  opacity: 1;
}


/* === Header layout — hamburger left, logo center === */
.header-inner {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: var(--space-xs) 0;
}

.site-logo {
  justify-self: center;
}

.header-spacer {
  width: 44px;
}

/* Hamburger toggle — always visible */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text);
  transition: all 0.3s var(--ease-out);
}

.menu-toggle span + span {
  margin-top: 6px;
}

/* === Drawer Overlay === */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10, 9, 14, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease-out);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* === Slide-out Drawer === */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  z-index: 1200;
  background: var(--color-bg-elevated);
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--space-md) var(--space-md) var(--space-lg);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.drawer-logo img {
  height: 28px;
  width: auto;
  opacity: 0.8;
}

.drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--color-text-faint);
  cursor: pointer;
  transition: color var(--duration) var(--ease-out);
}

.drawer-close:hover {
  color: var(--color-text);
}

.drawer-nav {
  flex: 1;
}

.drawer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-menu li {
  border-bottom: 1px solid var(--color-border);
}

.drawer-menu li:first-child {
  border-top: 1px solid var(--color-border);
}

.drawer-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 0.8em 0;
  transition: color var(--duration) var(--ease-out),
              padding-left var(--duration) var(--ease-out);
}

.drawer-menu a:hover {
  color: var(--color-text);
  padding-left: 0.5em;
}

.drawer-menu .current-menu-item a,
.drawer-menu .current_page_item a {
  color: var(--color-accent);
}

.drawer-footer {
  margin-top: auto;
  padding-top: var(--space-lg);
}

.drawer-tagline {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  line-height: 1.6;
}

body.drawer-open {
  overflow: hidden;
}

@media (max-width: 558px) {
  .drawer {
    width: 100%;
    border-right: none;
  }
}

/* === Footer === */
.site-footer {
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand .footer-logo img {
  height: 24px;
  width: auto;
  opacity: 0.6;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--color-text-faint);
  max-width: 300px;
  line-height: 1.6;
}

.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-sm);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-nav a:hover {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-faint);
}


/* === Page Content === */
.page-header {
  padding: calc(var(--space-2xl) + 80px) 0 var(--space-lg);
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header .page-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 300;
}

.page-header .accent-line {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-md) auto 0;
}

.page-body {
  padding: var(--space-lg) 0 var(--space-2xl);
}

.entry-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-text-muted)
}

.page-body .entry-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.page-body .entry-content h3 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.page-body .entry-content ul,
.page-body .entry-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}

.page-body .entry-content li {
  margin-bottom: 0.5em;
}


/* =========================================================
   SPLASH PAGE
   ========================================================= */
.splash-page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  overflow: hidden;
  z-index: 9999;
}

/* Subtle radial warmth behind logo */
.splash-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 108, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Faint noise texture */
.splash-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  opacity: 0.5;
}

.splash-logo {
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: splashFadeIn 2s var(--ease-out) 0.3s forwards;
}

.splash-logo img {
  width: clamp(260px, 35vw, 440px);
  height: auto;
}

.splash-enter {
  position: absolute;
  bottom: 12vh;
  z-index: 1;
  opacity: 0;
  animation: splashFadeIn 1.5s var(--ease-out) 1.5s forwards;
}

.splash-enter a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-decoration: none;
  padding: 0.8em 2em;
  border: 1px solid var(--color-border);
  border-radius: 0;
  transition: all var(--duration) var(--ease-out);
}

.splash-enter a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slow breathing glow on the logo */
.splash-logo img {
  filter: drop-shadow(0 0 40px rgba(201, 168, 108, 0.0));
  animation: splashFadeIn 2s var(--ease-out) 0.3s forwards,
             splashBreath 6s ease-in-out 2.5s infinite;
}

@keyframes splashBreath {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(201, 168, 108, 0.0)); }
  50%      { filter: drop-shadow(0 0 60px rgba(201, 168, 108, 0.06)); }
}


/* =========================================================
   GALLERY PAGE
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 4px;
  padding: 0 0 var(--space-2xl);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--color-bg-elevated);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out),
              filter 0.6s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.1);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 9, 14, 0.7) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration) var(--ease-out);
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay .caption {
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 300;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 9, 14, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease-out);
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration) var(--ease-out);
}

.lightbox-close:hover {
  color: var(--color-text);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-sm);
  transition: color var(--duration) var(--ease-out);
}

.lightbox-nav:hover {
  color: var(--color-text);
}

.lightbox-prev { left: var(--space-md); }
.lightbox-next { right: var(--space-md); }


/* =========================================================
   CONTACT PAGE
   ========================================================= */
   
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  padding: var(--space-lg) 0 var(--space-2xl);
  
}

.contact-info h2 {
  margin-bottom: var(--space-md);
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.contact-detail {
  margin-bottom: var(--space-md);
}

.contact-detail .label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 0.25rem;
}

.contact-detail .value {
  font-size: 1.05rem;
  color: var(--color-text);
}

.contact-detail .value a {
  color: var(--color-text);
}

.contact-detail .value a:hover {
  color: var(--color-accent);
}
.wp-block-contact-form-7-contact-form-selector {
  
  max-width: 600px;
  margin: auto
}
/* CF7 Form Styles */
.contact-form-wrap {
  background: var(--color-bg-elevated);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
  max-width: 500px;
  margin: auto
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.9em 1em;
  margin-bottom: var(--space-sm);
  transition: border-color var(--duration) var(--ease-out);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--color-text-faint);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-color: var(--color-accent);
}

.wpcf7 textarea {
  min-height: 160px;
  resize: vertical;
}

.wpcf7 label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 0.4rem;
}

.wpcf7 input[type="submit"] {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-accent);
  padding: 1em 2.5em;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  border-radius: 0;
  -webkit-appearance: none;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.wpcf7-response-output {
  font-size: 0.85rem !important;
  border-color: var(--color-border) !important;
  color: var(--color-text-muted) !important;
  margin: var(--space-sm) 0 0 !important;
  padding: 0.8em 1em !important;
}


/* =========================================================
   GENERAL COMPONENTS
   ========================================================= */

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1em 2.5em;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  text-decoration: none;
}

.btn:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

/* Divider */
.divider {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: var(--space-md) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* Fade-in animation class (JS-triggered) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* WordPress Defaults */
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--color-text-muted); padding-top: 0.5em; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 968px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }
}

@media (max-width: 768px) {

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 2px;
  }

  /* Spacing */
  .page-header {
    padding: calc(var(--space-xl) + 60px) 0 var(--space-md);
  }

  .page-body {
    padding: var(--space-md) 0 var(--space-xl);
  }

  .contact-form-wrap {
    padding: var(--space-md);
  }
}
