/*
Theme Name: Igor Teryokhin Booking Theme
Theme URI: https://teryokhinbooking.com/
Author: Antigravity
Description: Premium Gutenberg-compatible WordPress Block Theme for Igor Teryokhin Private Event Booking.
Version: 4.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: igor-teryokhin
*/

/* ── DESIGN TOKENS & EDITOR SCOPING ── */
:root,
body,
.editor-styles-wrapper {
  --gold: #c9a96e;
  --gold-light: #e8d5aa;
  --ink: #0e0e0e;
  --ink-soft: #1a1a1a;
  --surface: #141414;
  --muted: #5a5a5a;
  --text: #d4d4d4;
  --text-dim: #888888;
  --border: rgba(201, 169, 110, 0.18);
  --radius: 0px;

  /* WordPress Preset Variable Mapping */
  --wp--preset--color--gold: #c9a96e;
  --wp--preset--color--gold-light: #e8d5aa;
  --wp--preset--color--ink: #0e0e0e;
  --wp--preset--color--surface: #141414;
  --wp--preset--color--muted: #5a5a5a;
  --wp--preset--color--text: #d4d4d4;
  --wp--preset--color--text-dim: #888888;
  --wp--preset--font-family--serif: 'Cormorant Garamond', Georgia, serif;
  --wp--preset--font-family--sans: 'Jost', system-ui, -apple-system, sans-serif;
}

/* ── COLOR PRESET CLASSES FOR FRONTEND & GUTENBERG CANVAS ── */
.has-gold-color,
.has-gold-color[class],
p.has-gold-color,
h1.has-gold-color,
h2.has-gold-color,
h3.has-gold-color,
.wp-block-heading.has-gold-color {
  color: #c9a96e !important;
}

.has-gold-light-color,
.has-gold-light-color[class],
p.has-gold-light-color,
h1.has-gold-light-color,
h2.has-gold-light-color,
h3.has-gold-light-color,
.wp-block-heading.has-gold-light-color {
  color: #e8d5aa !important;
}

.has-text-dim-color,
.has-text-dim-color[class] {
  color: #888888 !important;
}

.has-text-color.has-gold-light-color {
  color: #e8d5aa !important;
}

.has-text-color.has-gold-color {
  color: #c9a96e !important;
}

.has-gold-background-color {
  background-color: #c9a96e !important;
}

.has-gold-light-background-color {
  background-color: #e8d5aa !important;
}

.has-ink-background-color {
  background-color: #0e0e0e !important;
}

.has-surface-background-color {
  background-color: #141414 !important;
}

/* ── BASE & RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--ink);
  color: var(--text);
}

body,
.editor-styles-wrapper {
  font-family: var(--wp--preset--font-family--sans);
  background-color: var(--ink);
  color: var(--text);
  font-weight: 300;
  font-size: var(--wp--preset--font-size--medium, 1.25rem);
  line-height: 1.8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Noise Texture Overlay */
body::before {
  content: '';
  position: fixed;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
}

/* Links */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover {
  color: var(--gold-light);
}

/* Main wrapper full width */
.site-main,
main.site-main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Container */
.container,
.wp-block-group.container {
  max-width: 960px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 5vw !important;
  padding-right: 5vw !important;
  width: 100%;
}

/* ── 4. HEADER WITH REDUCED ACCURATE WIDTH ── */
.site-header,
nav.teryokhin-nav,
nav.terekhin-nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4vw;
  max-width: 1000px !important; /* Reduced width aligned with content */
  width: 100% !important;
  background: linear-gradient(to bottom, rgba(14, 14, 14, 0.98), transparent);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  text-transform: uppercase;
  font-weight: 400;
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  transition: color 0.25s;
  position: relative;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--gold);
}

.lang-sep {
  color: var(--muted);
  font-size: 0.75rem;
  opacity: 0.4;
}

/* ── HEADINGS ── */
h1, .wp-block-heading.hero-title, .hero-title {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 300;
  line-height: 1.15;
}
h1:not([class*="has-"]):not([style*="color"]),
.hero-title:not([class*="has-"]):not([style*="color"]) {
  color: #f0ece4;
}

/* ── H2 & H4 COMBINED TITLE SPACING ── */
h2, .sec-title, h2.sec-title, .wp-block-heading.sec-title {
  font-family: var(--wp--preset--font-family--serif);
  font-weight: 300;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 0.3rem !important;
}
h2:not([class*="has-"]):not([style*="color"]),
.sec-title:not([class*="has-"]):not([style*="color"]) {
  color: #f0ece4;
}

/* ── SUBHEADINGS H3 UNIFORM STYLING ── */
h3,
.service-title,
p.service-title,
.benefit-title,
p.benefit-title,
.benefit-card h3,
.service-block h3 {
  font-family: var(--wp--preset--font-family--sans) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin: 0 0 0.8rem 0 !important;
}

h4, .wp-block-heading:where(h4), h4.wp-block-heading {
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-weight: 300;
  line-height: 1.25;
  margin-top: 0.15rem !important;
  margin-bottom: 3.2rem !important;
}

/* ── SECTIONS LAYOUT ── */
.teryokhin-section,
.terekhin-section,
.wp-block-group.teryokhin-section,
.wp-block-group.terekhin-section,
section.teryokhin-section,
section.terekhin-section {
  padding: 7rem 0;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.teryokhin-section.bg-surface,
.terekhin-section.bg-surface,
.wp-block-group.bg-surface,
section.bg-surface {
  background-color: var(--surface) !important;
}

.teryokhin-section.bg-ink,
.terekhin-section.bg-ink,
.wp-block-group.bg-ink,
section.bg-ink {
  background-color: var(--ink) !important;
}

/* ── 1. DESKTOP HERO SECTION (CROPS FROM RIGHT, KEEPS PERSON VISIBLE) ── */
#hero,
.hero-block {
  min-height: 75vh !important;
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  padding-top: 4.5rem !important;
  padding-bottom: 3.5rem !important;
  overflow: hidden !important;
  background-color: var(--ink) !important;
  width: 100% !important;
  max-width: 100% !important;
}

.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 52%;
  overflow: hidden;
  z-index: 1;
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: 25% top !important; /* Person on left/center remains 100% visible when window shrinks! */
  filter: brightness(0.7) contrast(1.08);
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--ink) 0%, rgba(14, 14, 14, 0.4) 50%, transparent 80%);
  z-index: 2;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, transparent 25%);
  z-index: 2;
}

#hero .container,
.hero-block .container {
  position: relative;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

#hero h1,
#hero .hero-title,
.hero-block h1,
.hero-block .hero-title,
h1.hero-title {
  margin-top: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
  display: block !important;
  width: 100% !important;
  max-width: 780px !important;
  box-sizing: border-box !important;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

#hero .hero-sub,
.hero-block .hero-sub,
p.hero-sub {
  margin-top: 1rem !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
  display: block !important;
  font-size: 1.35rem;
  color: var(--text-dim);
  max-width: 760px !important;
  width: 100% !important;
  line-height: 1.7;
  box-sizing: border-box !important;
}

/* ── 2. WHATSAPP BUTTON SPACING (RAISED, YET WELL-SPACED FROM SUBTITLE) ── */
.btn-primary,
.wp-block-button__link.btn-primary,
.wp-block-button.btn-primary a,
.hero-cta .wp-block-button a,
.wp-element-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  background-color: var(--gold) !important;
  color: #0e0e0e !important;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 1.1rem 2.6rem !important;
  border: none !important;
  border-radius: 0px;
  cursor: pointer !important;
  transition: background-color 0.25s ease, transform 0.2s ease, color 0.25s ease !important;
  box-sizing: border-box !important;
}

.btn-primary:hover,
.wp-block-button__link.btn-primary:hover,
.wp-block-button.btn-primary a:hover,
.hero-cta .wp-block-button a:hover,
.wp-element-button:hover {
  background-color: var(--gold-light) !important;
  color: #0e0e0e !important;
  transform: translateY(-2px) !important;
}

#hero .hero-cta,
.hero-block .hero-cta,
.wp-block-buttons.hero-cta {
  margin-top: 2.5rem !important; /* Comfortable gap below subtitle */
  margin-left: 0 !important;
  padding-left: 0 !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 1rem;
}

/* ── EXPERIENCE GRID ── */
.exp-grid,
.wp-block-columns.exp-grid,
.wp-block-group.exp-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 !important;
  border: 1px solid var(--border) !important;
  width: 100% !important;
}

.exp-item,
.wp-block-column.exp-item,
.wp-block-group.exp-item {
  padding: 2.8rem 2.5rem !important;
  border-right: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  min-height: 200px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.exp-item:nth-child(2n) {
  border-right: none !important;
}

.exp-item:nth-child(3),
.exp-item:nth-child(4) {
  border-bottom: none !important;
}

.exp-num,
p.exp-num,
.wp-block-paragraph.exp-num {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin: 0 0 1.2rem 0;
  min-height: 3.5rem;
  display: flex;
  align-items: flex-end;
}

.exp-desc,
p.exp-desc,
.wp-block-paragraph.exp-desc {
  font-size: 1.2rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0;
}

/* ── TRUST LIST ── */
.trust-list,
ul.trust-list {
  list-style: none !important;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.trust-list li,
ul.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.7;
  transition: color 0.25s ease;
}

.trust-list li:hover {
  color: var(--gold-light);
}

.trust-list li:first-child {
  padding-top: 0;
}

.trust-list li::before {
  content: '';
  flex-shrink: 0;
  width: 1.5rem;
  height: 1px;
  background: var(--gold);
  margin-top: 0.75em;
}

/* ── CONFIDENTIALITY BLOCK ── */
.conf-block,
blockquote.conf-block,
blockquote.conf-quote,
.wp-block-quote.conf-block {
  border-left: 1px solid #c9a96e !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  padding-left: 2.2rem !important;
  padding-top: 0.2rem !important;
  padding-bottom: 0.2rem !important;
  padding-right: 0 !important;
  max-width: 680px !important;
  margin: 0 !important;
}

.conf-block p,
blockquote.conf-quote p {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.65rem;
  font-style: italic;
  font-weight: 300;
  color: #e8e0d0;
  line-height: 1.65;
  margin: 0;
}

/* ── BENEFITS GRID ── */
.benefits-grid,
.wp-block-columns.benefits-grid,
.wp-block-group.benefits-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem 2.5rem !important;
  align-items: start !important;
}

.benefit-card,
.wp-block-column.benefit-card,
.wp-block-group.benefit-card {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.benefit-icon,
p.benefit-icon {
  font-size: 1.6rem;
  margin: 0 0 0.8rem 0 !important;
  line-height: 1 !important;
  display: block;
  color: var(--gold);
}

.benefit-text,
p.benefit-text {
  font-size: 1.25rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

.benefit-footer,
p.benefit-footer {
  margin-top: 3rem;
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--gold-light);
  opacity: 0.8;
}

/* ── SERVICES GRID ── */
#services .wp-block-columns,
.services-grid,
.wp-block-columns.services-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2.5rem !important;
  align-items: start !important;
}

#services .wp-block-column,
.service-block,
.wp-block-column.service-block {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.service-title,
p.service-title {
  padding-bottom: 1rem !important;
  border-bottom: 1px solid var(--border) !important;
  width: 100% !important;
}

.service-list,
ul.service-list {
  list-style: none !important;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
}

.service-list li,
ul.service-list li {
  font-size: 1.25rem;
  color: var(--text-dim);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.7;
}

.service-list li::before,
ul.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.9rem;
}

/* ── PROCESS STEPS ── */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.2s;
  cursor: default;
}

.process-step:last-child {
  border-bottom: none;
}

.process-step .step-num,
p.step-num,
.wp-block-paragraph.step-num {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold) !important;
  line-height: 1;
  margin: 0;
  opacity: 1 !important;
}

.process-step .step-text,
p.step-text,
.wp-block-paragraph.step-text {
  font-size: 1.25rem;
  color: var(--text-dim);
  padding-top: 0.3rem;
  line-height: 1.7;
  margin: 0;
  transition: color 0.25s ease !important;
}

.process-step:hover .step-text {
  color: var(--gold-light) !important;
}

/* ── 3. TESTIMONIALS QUOTES GRID (PROPER GAP AFTER TITLE & COMPACT gap TO QUOTES) ── */
#testimonials .sec-title,
#testimonials h2.sec-title {
  margin-bottom: 3.5rem !important; /* Distance after heading */
}

.quotes-grid,
.wp-block-columns.quotes-grid,
.wp-block-group.quotes-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 3.8rem 2.5rem !important; /* Large vertical gap between quote rows */
  align-items: start !important;
}

.quote-card,
.wp-block-column.quote-card,
.wp-block-group.quote-card {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: flex-start !alignment;
}

.quote-mark,
p.quote-mark {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 3.8rem !important;
  line-height: 0.6 !important;
  color: var(--gold) !important;
  opacity: 0.3 !important;
  display: block;
  margin: 0 0 0.2rem 0 !important; /* Small gap between " and text below */
}

.quote-text,
p.quote-text {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.45rem;
  font-style: italic;
  font-weight: 300;
  color: #e0dbd0;
  line-height: 1.65;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── 2-LINE DESKTOP CONTACT DETAILS ── */
.contact-grid,
.wp-block-group.contact-grid,
.contact-details-3col {
  display: grid !important;
  grid-template-columns: minmax(170px, 0.9fr) minmax(280px, 1.3fr) minmax(220px, 1fr) !important;
  gap: 1.5rem !important;
  align-items: start !important;
  width: 100% !important;
  margin-top: 1.5rem !important;
}

.contact-item,
.wp-block-group.contact-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
  padding: 1.2rem 0 !important;
  border-top: 1px solid var(--border) !important;
  border-bottom: 1px solid var(--border) !important;
  margin: 0 !important;
  min-width: 0 !important;
}

.contact-desc,
p.contact-desc {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 680px;
  grid-column: 1 / -1;
}

.contact-label,
p.contact-label {
  font-size: 0.82rem !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.contact-value,
p.contact-value,
.contact-value a {
  font-size: 1.18rem !important;
  color: var(--text) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  display: inline-block !important;
}

/* ── FOOTER ── */
.site-footer,
footer.teryokhin-footer,
footer.terekhin-footer {
  padding: 2.5rem 5vw;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  background-color: var(--ink);
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Hide old header & footer elements if present */
#header, #headerimg, #footer {
  display: none !important;
}

/* ── MOBILE VIEW: STRICT 1-COLUMN FOR ALL CONTENT & FOOTER ── */
@media (max-width: 768px) {
  .site-header, nav.teryokhin-nav, nav.terekhin-nav {
    padding: 1.2rem 5vw;
    max-width: 100% !important;
    left: 0 !important;
    transform: none !important;
  }

  .teryokhin-section,
  .terekhin-section,
  section.teryokhin-section {
    padding: 4rem 0 !important;
  }

  /* ALL GRIDS & COLUMNS STRICTLY 1 COLUMN ON MOBILE */
  .exp-grid,
  .benefits-grid,
  .services-grid,
  .quotes-grid,
  .contact-grid,
  .contact-details-3col,
  .wp-block-columns,
  .wp-block-group.exp-grid,
  .wp-block-group.benefits-grid,
  .wp-block-group.services-grid,
  .wp-block-group.quotes-grid,
  .wp-block-group.contact-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    width: 100% !important;
  }

  .exp-item,
  .benefit-card,
  .service-block,
  .quote-card,
  .contact-item,
  .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
    border-right: none !important;
  }

  /* 1. MOBILE HERO PHOTO: DISPLAYED BELOW BUTTON, PERSON CLEARLY VISIBLE */
  .hero-photo {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 340px !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
    overflow: hidden !important;
    border-radius: 0px !important;
  }

  .hero-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 30% top !important; /* Igor clearly visible on mobile! */
    filter: brightness(0.85) contrast(1.05) !important;
  }

  .hero-photo::before,
  .hero-photo::after {
    display: none !important;
  }

  #hero, .hero-block {
    flex-direction: column !important;
    padding-top: 5.5rem !important;
    padding-bottom: 2rem !important;
    min-height: auto !important;
  }

  /* Mobile Heading Spacing & Scaling */
  h2, .sec-title, h2.sec-title, .wp-block-heading.sec-title {
    margin-bottom: 0.3rem !important;
  }
  h4, .wp-block-heading:where(h4), h4.wp-block-heading {
    margin-top: 0.15rem !important;
    margin-bottom: 2.2rem !important;
  }

  /* 5. MOBILE FOOTER: 1 COLUMN (VIENNA UNDER COPYRIGHT) */
  .site-footer,
  footer.teryokhin-footer,
  .footer-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 0.5rem !important;
    text-align: left !important;
  }
}
