/*
Theme Name:  Ultimark
Theme URI:   https://decafe.dev/ultimark
Author:      decafe.dev
Author URI:  https://decafe.dev
Description: A dark editorial local-business theme with fully admin-configurable auto-schema, LLM optimization, per-location service pages, and a flexible shortcode-driven form builder. Built for any industry — just fill in Settings and go.
Version:     1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License:     GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags:        local-business, dark, minimal, editorial, seo, schema
Text Domain: ultimark
*/

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

:root {
  --light:       #fefefe;
  --dark:        #2d2d2d;
  --dark-mid:    #1a1a1a;
  --mid:         #6b6b6b;
  --border:      rgba(254,254,254,0.12);
  --border-dark: rgba(45,45,45,0.15);
  --radius:      0;
}

html { scroll-behavior: smooth; }

body {
  background:              var(--dark);
  color:                   var(--light);
  font-family:             'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight:             700;
  font-size:               14px;
  line-height:             1.5;
  -webkit-font-smoothing:  antialiased;
  overflow-x:              hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* =====================================================
   TYPOGRAPHY SCALE
===================================================== */
.t-hero  { font-size: clamp(3.5rem, 9vw, 8rem);   line-height: 0.92; letter-spacing: -0.03em; font-weight: 700; }
.t-xl    { font-size: clamp(2rem,   5vw, 4rem);    line-height: 0.95; letter-spacing: -0.02em; font-weight: 700; }
.t-lg    { font-size: clamp(1.4rem, 3vw, 2.2rem);  line-height: 1.05; font-weight: 700; }
.t-md    { font-size: 1rem;   font-weight: 700; letter-spacing: 0.01em; }
.t-sm    { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.t-body  { font-size: 0.82rem; font-weight: 700; line-height: 1.6; }
.t-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }

/* =====================================================
   LAYOUT
===================================================== */
.container      { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section        { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--flush { padding: 0; }

/* =====================================================
   TOP NAVIGATION
===================================================== */
#site-nav {
  position:        fixed;
  top: 0; left: 0; right: 0;
  z-index:         100;
  background:      var(--dark);
  border-bottom:   1px solid var(--border);
  padding:         0 32px;
  height:          56px;
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  transition:      background 0.2s;
}

#site-nav.scrolled { background: rgba(45,45,45,0.97); backdrop-filter: blur(8px); }

.nav-logo {
  font-size:       1rem;
  font-weight:     700;
  color:           var(--light);
  text-decoration: none;
  letter-spacing:  0.06em;
}

.nav-links {
  display:     flex;
  gap:         32px;
  align-items: center;
}

.nav-links a {
  color:           var(--light);
  text-decoration: none;
  font-size:       0.72rem;
  font-weight:     700;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  opacity:         0.7;
  transition:      opacity 0.15s;
}

.nav-links a:hover,
.nav-links a.active   { opacity: 1; }

.nav-book {
  background: var(--light) !important;
  color:      var(--dark) !important;
  padding:    6px 16px !important;
  opacity:    1 !important;
  transition: background 0.15s !important;
}
.nav-book:hover { background: #e0e0e0 !important; }

.nav-toggle {
  display:    none;
  background: none;
  border:     none;
  padding:    4px;
  flex-direction: column;
  gap:        5px;
}
.nav-toggle span { display:block; width:24px; height:2px; background:var(--light); transition: transform 0.2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO
===================================================== */
.ultimark-hero {
  padding-top:    152px;
  padding-bottom: 80px;
}

.hero-eyebrow  { color: var(--text-secondary-on-dark); margin-bottom: 20px; }
.hero-title    { margin-bottom: 32px; }
.hero-sub      { max-width: 560px; color: var(--text-secondary-on-dark); margin-bottom: 40px; font-size: 0.88rem; line-height: 1.7; }

.hero-stats {
  display:      flex;
  gap:          48px;
  border-top:   1px solid var(--border);
  padding-top:  40px;
  margin-top:   40px;
  flex-wrap:    wrap;
}
.stat-val { font-size: 2.4rem; line-height: 1; }
.stat-lbl { color: var(--text-secondary-on-dark); margin-top: 4px; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* =====================================================
   PHOTO GRID
===================================================== */
.section-header {
  display:         flex;
  align-items:     baseline;
  justify-content: space-between;
  margin-bottom:   32px;
  flex-wrap:       wrap;
  gap:             12px;
}

.photo-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   6px;
}

.photo-cell {
  overflow:   hidden;
  background: #1a1a1a;
  position:   relative;
}

.photo-cell img {
  width:      100%;
  height:     100%;
  object-fit: cover;
  display:    block;
  transition: transform 0.4s ease;
  filter:     grayscale(15%) contrast(1.05);
}
.photo-cell:hover img { transform: scale(1.03); }

.ph-tall { grid-row: span 2; }
.ph-wide { grid-column: span 2; }

.ph-tall img  { min-height: 480px; }
.ph-sq   img  { aspect-ratio: 1/1;   height: auto; }
.ph-port img  { aspect-ratio: 3/4;   height: auto; }
.ph-land img  { aspect-ratio: 4/3;   height: auto; }
.ph-cin  img  { aspect-ratio: 16/9;  height: auto; }
.ph-wide img  { aspect-ratio: 16/7;  height: auto; }

.photo-overlay {
  position:   absolute;
  inset:      0;
  background: linear-gradient(to top, rgba(45,45,45,0.5) 0%, transparent 50%);
  opacity:    0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.photo-cell:hover .photo-overlay { opacity: 1; }

.photo-caption {
  position:   absolute;
  bottom:     12px;
  left:       14px;
  right:      14px;
  font-size:  0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity:    0;
  transition: opacity 0.3s;
}
.photo-cell:hover .photo-caption { opacity: 0.8; }

/* =====================================================
   AWARD SECTION
===================================================== */
.section--award {
  background: var(--light);
  color:      var(--dark);
  padding:    80px 0;
}

.award-inner {
  display:     grid;
  grid-template-columns: 1fr 1fr;
  gap:         64px;
  align-items: center;
}

.award-badge {
  width:           120px;
  height:          120px;
  border-radius:   50%;
  border:          4px solid var(--dark);
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  text-align:      center;
  margin-bottom:   32px;
  padding:         16px;
  flex-shrink:     0;
}
.award-badge .num { font-size: 2.8rem; line-height: 1; }
.award-badge .pos { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }

.award-headline { color: var(--dark); margin-bottom: 20px; }
.award-body     { color: var(--dark); opacity: 0.7; max-width: 480px; line-height: 1.7; font-size: 0.88rem; }
.award-body + .award-body { margin-top: 14px; }

.award-source {
  display:         inline-block;
  border:          2px solid var(--dark);
  padding:         8px 20px;
  font-size:       0.72rem;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  margin-top:      28px;
}

/* =====================================================
   GEAR SECTION
===================================================== */
.gear-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   2px;
  margin-top:            48px;
}

.gear-card {
  border:     1px solid var(--border);
  padding:    36px 28px;
  transition: border-color 0.2s;
}
.gear-card:hover { border-color: rgba(254,254,254,0.4); }

.gear-icon    { font-size: 2rem; margin-bottom: 20px; display: block; }
.gear-tag     { display: inline-block; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--border); padding: 3px 8px; margin-bottom: 12px; color: var(--text-secondary-on-dark); }
.gear-title   { color: var(--light); margin-bottom: 12px; font-size: 1.1rem; }
.gear-desc    { font-size: 0.78rem; opacity: 0.55; line-height: 1.6; }

.gear-list    { margin-top: 16px; }
.gear-list li { font-size: 0.78rem; color: var(--text-secondary-on-dark); padding: 6px 0; border-bottom: 1px solid var(--border); }
.gear-list li:last-child { border-bottom: none; }

/* =====================================================
   BOOKING FORM SECTION
===================================================== */
.section--book {
  background: var(--light);
  color:      var(--dark);
  padding:    96px 0;
}

.book-inner {
  display:     grid;
  grid-template-columns: 1fr 1fr;
  gap:         80px;
  align-items: start;
}

.book-headline { color: var(--dark); margin-bottom: 20px; }
.book-sub      { color: var(--text-secondary-on-light); max-width: 400px; font-size: 0.88rem; line-height: 1.7; }

.book-areas {
  display:    flex;
  flex-wrap:  wrap;
  gap:        8px;
  margin-top: 32px;
}
.area-tag {
  background:     var(--dark);
  color:          var(--light);
  font-size:      0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding:        5px 12px;
}

/* Form */
.booking-form { display: flex; flex-direction: column; gap: 16px; }
.form-row     { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-group  { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color:          var(--dark);
  opacity:        0.7;
}

.field-input,
.field-select,
.field-textarea {
  background:  transparent;
  border:      2px solid var(--dark);
  color:       var(--dark);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size:   0.9rem;
  padding:     12px 14px;
  width:       100%;
  outline:     none;
  transition:  border-color 0.15s;
  -webkit-appearance: none;
  border-radius: 0;
}
.field-input::placeholder,
.field-textarea::placeholder { color: var(--text-secondary-on-light); }
.field-input:focus,
.field-select:focus,
.field-textarea:focus  { border-color: #000; }

.field-select {
  background-image:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232d2d2d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat:   no-repeat;
  background-position: right 14px center;
  padding-right:       36px;
  cursor:              pointer;
}

.field-textarea { resize: vertical; min-height: 120px; }

.hp-field { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.captcha-row {
  display:     flex;
  align-items: center;
  gap:         12px;
  padding:     14px;
  border:      2px solid var(--dark);
  flex-wrap:   wrap;
}
.captcha-q     { font-size: 0.82rem; font-weight: 700; opacity: 0.8; }
.captcha-input {
  background:  transparent;
  border:      none;
  border-bottom: 2px solid var(--dark);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size:   0.9rem;
  color:       var(--dark);
  width:       60px;
  padding:     2px 4px;
  outline:     none;
  text-align:  center;
}

.submit-btn {
  background:     var(--dark);
  color:          var(--light);
  border:         none;
  padding:        18px 32px;
  font-family:    'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight:    700;
  font-size:      0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:     background 0.15s;
  width:          100%;
  margin-top:     8px;
}
.submit-btn:hover    { background: #111; }
.submit-btn:disabled { opacity: 0.6; }

.form-msg        { display: none; padding: 14px 18px; font-size: 0.82rem; font-weight: 700; margin-top: 4px; }
.form-msg.success { display: block; background: #d4edda; color: #155724; }
.form-msg.error   { display: block; background: #f8d7da; color: #721c24; }

/* =====================================================
   ABOUT / BIO
===================================================== */
.about-inner {
  display:     grid;
  grid-template-columns: 1fr 1fr;
  gap:         80px;
  align-items: start;
}

.about-bio        { opacity: 0.7; line-height: 1.7; font-size: 0.88rem; }
.about-bio p + p  { margin-top: 16px; }

.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.btn {
  display:         inline-flex;
  align-items:     center;
  gap:             8px;
  border:          2px solid var(--border);
  color:           var(--light);
  text-decoration: none;
  font-family:     'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight:     700;
  font-size:       0.72rem;
  letter-spacing:  0.1em;
  text-transform:  uppercase;
  padding:         10px 18px;
  transition:      border-color 0.15s, background 0.15s;
}
.btn:hover        { border-color: var(--light); background: rgba(254,254,254,0.06); }
.btn--solid       { background: var(--light); color: var(--dark); border-color: var(--light); }
.btn--solid:hover { background: #e8e8e8; border-color: #e8e8e8; }

.link-grid { display: flex; flex-direction: column; gap: 2px; margin-top: 48px; }

.link-item {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         18px 0;
  border-top:      1px solid var(--border);
  text-decoration: none;
  color:           var(--light);
  transition:      opacity 0.15s;
  gap:             16px;
}
.link-item:last-child   { border-bottom: 1px solid var(--border); }
.link-item:hover        { opacity: 0.7; }
.link-title             { font-size: 0.88rem; }
.link-desc              { font-size: 0.72rem; opacity: 0.5; }
.link-arrow             { color: var(--text-secondary-on-dark); font-size: 1rem; flex-shrink: 0; }

/* =====================================================
   BLOG / POSTS
===================================================== */
.section--posts { background: var(--dark-mid); border-top: 1px solid var(--border); }

.posts-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; flex-wrap: wrap; gap: 12px; }

.posts-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   2px;
}

.post-card {
  background:      var(--dark);
  padding:         32px 28px;
  text-decoration: none;
  color:           var(--light);
  display:         flex;
  flex-direction:  column;
  gap:             12px;
  border:          1px solid var(--border);
  transition:      border-color 0.2s;
}
.post-card:hover { border-color: rgba(254,254,254,0.35); }

.post-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; margin-bottom: 4px; filter: grayscale(20%); }
.post-tag   { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary-on-dark); }
.post-title { font-size: 1rem; line-height: 1.3; }
.post-excerpt { font-size: 0.78rem; opacity: 0.55; line-height: 1.5; }
.post-date  { font-size: 0.65rem; color: var(--text-secondary-on-dark); letter-spacing: 0.06em; margin-top: auto; }
.post-read-more { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.5; margin-top: 4px; }

/* =====================================================
   SINGLE POST / PAGE
===================================================== */
.content-wrap {
  padding-top:    120px;
  padding-bottom: 96px;
  max-width:      760px;
  margin:         0 auto;
  padding-left:   32px;
  padding-right:  32px;
}

.post-hero-image { width: 100%; max-height: 520px; object-fit: cover; margin-bottom: 48px; }

.entry-header  { margin-bottom: 48px; }
.entry-eyebrow { color: var(--text-secondary-on-dark); margin-bottom: 12px; }
.entry-title   { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; margin-bottom: 20px; }
.entry-meta    { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary-on-dark); display: flex; gap: 20px; flex-wrap: wrap; }

.entry-content { font-size: 0.92rem; line-height: 1.75; opacity: 0.85; }
.entry-content h2 { font-size: 1.6rem; margin: 40px 0 16px; opacity: 1; }
.entry-content h3 { font-size: 1.2rem; margin: 32px 0 12px; opacity: 1; }
.entry-content p  { margin-bottom: 20px; }
.entry-content img { width: 100%; margin: 32px 0; }
.entry-content ul, .entry-content ol { margin: 20px 0 20px 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote { border-left: 3px solid var(--light); padding-left: 24px; opacity: 0.7; margin: 32px 0; font-size: 1.1rem; }
.entry-content a  { text-decoration: underline; opacity: 0.8; }
.entry-content a:hover { opacity: 1; }

/* FAQ Block (schema auto-detected) */
.schema-faq-block { margin: 40px 0; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question { padding: 16px 0; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-question::after { content: '+'; color: var(--text-secondary-on-dark); flex-shrink: 0; }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { font-size: 0.82rem; opacity: 0.65; line-height: 1.7; padding-bottom: 20px; display: none; }
.faq-item.open .faq-answer { display: block; }

/* =====================================================
   SECTION UTILITIES
===================================================== */
.section-label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary-on-dark); margin-bottom: 20px; display: block; }
.divider       { width: 48px; height: 2px; background: var(--light); margin: 24px 0; opacity: 0.3; }
.divider--dark { background: var(--dark); }
.on-light      { color: var(--dark); }

/* =====================================================
   FOOTER
===================================================== */
#site-footer { background: var(--dark); border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             24px;
  flex-wrap:       wrap;
}
.footer-left  { color: var(--text-secondary-on-dark); font-size: 0.72rem; letter-spacing: 0.06em; }
.footer-right { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-right a { color: var(--text-secondary-on-dark); text-decoration: none; font-size: 0.72rem; letter-spacing: 0.06em; transition: color 0.15s; }
.footer-right a:hover { color: var(--light); }

/* =====================================================
   ADMIN NOTICE (WP only)
===================================================== */
.ultimark-admin-notice { background: var(--dark); color: var(--light); border-left: 4px solid #fefefe; padding: 12px 16px; font-family: 'Helvetica Neue', Helvetica, sans-serif; }

/* =====================================================
   404
===================================================== */
.page-404 { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; text-align: center; gap: 24px; }
.page-404 .num-404 { font-size: 10rem; line-height: 1; opacity: 0.1; }

/* =====================================================
   SEARCH RESULTS
===================================================== */
.search-results-list { display: flex; flex-direction: column; gap: 2px; }
.search-result { padding: 24px 0; border-bottom: 1px solid var(--border); }
.search-result-title a { font-size: 1.2rem; text-decoration: none; transition: opacity 0.15s; }
.search-result-title a:hover { opacity: 0.7; }
.search-result-excerpt { font-size: 0.82rem; opacity: 0.55; margin-top: 8px; line-height: 1.6; }

/* =====================================================
   BREADCRUMBS
===================================================== */
.breadcrumbs { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary-on-dark); margin-bottom: 32px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: none; transition: color 0.15s; }
.breadcrumbs a:hover { color: var(--light); }
.breadcrumbs .sep { color: var(--text-secondary-on-dark); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .gear-grid   { grid-template-columns: repeat(2, 1fr); }
  .award-inner { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .book-inner  { grid-template-columns: 1fr; gap: 48px; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .posts-grid  { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container       { padding: 0 20px; }
  .nav-links       { display: none; position: fixed; top: 56px; left: 0; right: 0; background: var(--dark); padding: 24px 20px; flex-direction: column; gap: 20px; border-bottom: 1px solid var(--border); z-index: 99; }
  .nav-links.open  { display: flex; }
  .nav-toggle      { display: flex; }
  .photo-grid      { grid-template-columns: repeat(2, 1fr); }
  .ph-wide         { grid-column: span 2; }
  .ph-tall         { grid-row: span 1; }
  .gear-grid       { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .posts-grid      { grid-template-columns: 1fr; }
  .hero-stats      { flex-direction: column; gap: 24px; }
  .content-wrap    { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =====================================================
   HERO VIDEO BACKGROUND
===================================================== */

/* When video is active the section needs to be a
   positioned container so the video fills it exactly */
.ultimark-hero.hero--video {
  position:   relative;
  overflow:   hidden;
  /* Give the hero a defined height so the video has
     something to fill — content still drives min-height */
  min-height: 92vh;
  display:    flex;
  align-items: center;
  padding-top:    100px;   /* nav clearance */
  padding-bottom: 80px;
}

/* Wrapper stretches to fill the section absolutely */
.hero-video-wrap {
  position: absolute;
  inset:    0;             /* top:0 right:0 bottom:0 left:0 */
  z-index:  0;
  pointer-events: none;
}

/* The video itself — covers the full area, no black bars */
.hero-video {
  position:   absolute;
  inset:      0;
  width:      100%;
  height:     100%;
  object-fit: cover;       /* fills without distorting */
  object-position: center center;
  display:    block;
}

/* Darkening overlay — opacity driven by --overlay-opacity CSS var */
.hero-video-overlay {
  position:   absolute;
  inset:      0;
  background: var(--dark);
  opacity:    var(--overlay-opacity, 0.5);
}

/* Content sits above the video */
.hero--video .hero-content {
  position: relative;
  z-index:  1;
}

/* On a video hero the stats bar needs a slightly more
   visible separator since we're on a busy background */
.hero--video .hero-stats {
  border-top-color: var(--border);
}

/* Reduce hero overlay on large screens where text
   contrast is easier to hold */
@media (min-width: 1280px) {
  .ultimark-hero.hero--video { min-height: 96vh; }
}

/* Mobile — reduce min-height, keep poster image visible */
@media (max-width: 720px) {
  .ultimark-hero.hero--video {
    min-height:    80vh;
    padding-top:   88px;
    padding-bottom: 56px;
  }
}

/* Respect reduced-motion: swap video for poster still */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .ultimark-hero.hero--video {
    /* poster image as background fallback */
    background-size:     cover;
    background-position: center;
    background-repeat:   no-repeat;
  }
}

/* =====================================================
   SITE LOGO — text wordmark fallback + custom logo image
===================================================== */
.nav-logo {
  display:     flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Text wordmark fallback (used when no custom logo is uploaded) */
.nav-logo-text {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size:   1.1rem;
  letter-spacing: -0.02em;
  color:       var(--light);
  line-height: 1;
}
.nav-logo-text-dim {
  color: var(--text-secondary-on-dark);
}

/* Custom logo image (uploaded via Appearance → Customize → Site Identity) */
.nav-logo img.custom-logo {
  height:     28px;
  width:      auto;
  max-height: 28px;
  display:    block;
}

/* =====================================================
   BOOKING FORM — 2 column only, no 3-col bleed
===================================================== */

/* Ensure book-inner is always exactly 2 cols, never more */
.book-inner {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   64px;
  align-items:           start;
}

/* Form rows inside the form stay 2 cols max */
.booking-form .form-row {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   16px;
}

/* On service area pages the form sits in a single column — full width */
.sa-form-wrap .booking-form,
.book-inner > div > .booking-form {
  width: 100%;
}

/* Remove any accidental 3-col grid on gear inside service area */
@media (max-width: 960px) {
  .book-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .booking-form .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .booking-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   ALSO SERVING — city grouped grid
===================================================== */
.also-serving-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap:                   32px;
  margin-top:            24px;
}

.also-serving-city-name {
  display:        block;
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--text-secondary-on-dark);
  margin-bottom:  10px;
  padding-bottom: 8px;
  border-bottom:  1px solid var(--border);
}

.also-serving-links {
  display:        flex;
  flex-direction: column;
  gap:            6px;
}

.also-serving-link {
  display:         block;
  font-size:       0.78rem;
  font-weight:     700;
  color:           var(--light);
  text-decoration: none;
  opacity:         0.7;
  transition:      opacity 0.15s;
  line-height:     1.4;
}

.also-serving-link:hover { opacity: 1; }

@media (max-width: 720px) {
  .also-serving-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* =====================================================
   SERVICE AREA TRUST BAR
===================================================== */
.sa-trust-bar {
  background: var(--light);
  color:      var(--dark);
  padding:    40px 0;
  border-bottom: 1px solid var(--border-dark);
}
.sa-trust-inner {
  display:     flex;
  align-items: center;
  gap:         40px;
  flex-wrap:   wrap;
}
.sa-trust-val {
  font-size:   .88rem;
  font-weight: 700;
}
.sa-trust-lbl {
  font-size:   .68rem;
  color:       var(--text-secondary-on-light);
  margin-top:  3px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.sa-trust-divider {
  width:      1px;
  height:     36px;
  background: var(--border-dark);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .sa-trust-divider { display: none; }
  .sa-trust-inner   { gap: 20px; }
}

/* =====================================================
   SERVICE AREA EDITORIAL CONTENT BLOCKS
   Styles for the auto-generated (then editable) blocks
===================================================== */
.sa-editorial-content {
  border-bottom: 1px solid var(--border);
}

.sa-content-wrap {
  max-width: 1120px;
}

/* Intro paragraph */
.sa-content-wrap .ultimark-sa-intro,
.sa-content-wrap p.ultimark-sa-intro {
  font-size:   1.05rem;
  line-height: 1.75;
  opacity:     .8;
  max-width:   760px;
  margin-bottom: 48px;
}

/* Section headings */
.sa-content-wrap .ultimark-block-heading,
.sa-content-wrap h2.ultimark-block-heading {
  font-size:     clamp(1.6rem, 3vw, 2.4rem);
  line-height:   1;
  letter-spacing: -.02em;
  margin-bottom: 32px;
  margin-top:    64px;
}
.sa-content-wrap h2.ultimark-block-heading:first-child { margin-top: 0; }

/* Services grid — 4 columns */
.sa-content-wrap .ultimark-services-grid.wp-block-columns {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   2px;
  margin-bottom:         48px;
}
.sa-content-wrap .ultimark-service-card.wp-block-column {
  border:   1px solid var(--border);
  padding:  28px 24px;
  transition: border-color .2s;
}
.sa-content-wrap .ultimark-service-card.wp-block-column:hover {
  border-color: rgba(254,254,254,.4);
}
.sa-content-wrap .ultimark-service-icon {
  font-size:    2rem;
  margin-bottom: 16px !important;
  line-height:   1;
}
.sa-content-wrap .ultimark-service-title {
  font-size:    1rem !important;
  margin-bottom: 10px !important;
  margin-top:    0 !important;
}
.sa-content-wrap .ultimark-service-desc {
  font-size: .78rem;
  opacity:   .55;
  line-height: 1.6;
}

/* Testimonial / quote block */
.sa-content-wrap .ultimark-testimonial.wp-block-quote,
.sa-content-wrap blockquote.ultimark-testimonial {
  border-left:  none;
  padding:      48px 0;
  margin:       48px 0;
  border-top:   1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align:   center;
}
.sa-content-wrap .ultimark-testimonial p {
  font-size:    clamp(1.2rem, 2.5vw, 1.7rem);
  line-height:  1.4;
  font-weight:  700;
  opacity:      .85;
  margin-bottom: 16px !important;
}
.sa-content-wrap .ultimark-testimonial cite {
  font-size:    .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color:        var(--text-secondary-on-dark);
  font-style:   normal;
}

/* FAQ items — details/summary */
.sa-content-wrap .ultimark-faq-item {
  border-top: 1px solid var(--border);
}
.sa-content-wrap .ultimark-faq-item:last-of-type {
  border-bottom: 1px solid var(--border);
}
.sa-content-wrap .ultimark-faq-question {
  padding:     16px 0;
  font-size:   .92rem;
  font-weight: 700;
  cursor:      pointer;
  display:     flex;
  justify-content: space-between;
  align-items: center;
  gap:         16px;
  list-style:  none;
  user-select: none;
}
.sa-content-wrap .ultimark-faq-question::after {
  content:    '+';
  color:      var(--text-secondary-on-dark);
  flex-shrink: 0;
  font-size:   1.2rem;
}
.sa-content-wrap details[open] .ultimark-faq-question::after {
  content: '−';
}
.sa-content-wrap .ultimark-faq-answer {
  font-size:    .82rem;
  opacity:      .65;
  line-height:  1.7;
  padding-bottom: 20px;
  margin:       0;
}

/* Responsive */
@media (max-width: 960px) {
  .sa-content-wrap .ultimark-services-grid.wp-block-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .sa-content-wrap .ultimark-services-grid.wp-block-columns {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   HOMEPAGE BLOCK EDITOR CONTENT
===================================================== */

/* Page wrapper — clears fixed nav */
.is-front-page .ultimark-page-content {
  padding-top:    104px;
  padding-bottom: 96px;
}

/* Container already provides 32px horizontal padding via .container */
.is-front-page .sa-content-wrap {
  max-width: 1280px;
}

/* Reset Gutenberg's own margins — they stack badly with ours */
.is-front-page .sa-content-wrap .wp-block-paragraph,
.is-front-page .sa-content-wrap .wp-block-heading,
.is-front-page .sa-content-wrap .wp-block-columns,
.is-front-page .sa-content-wrap .wp-block-quote {
  margin-top:    0;
  margin-bottom: 0;
}

/* Intro paragraph */
.is-front-page .sa-content-wrap .ultimark-sa-intro {
  font-size:     1rem;
  line-height:   1.75;
  opacity:       .75;
  max-width:     640px;
  margin-bottom: 56px;
}

/* Section headings — space above, tight below */
.is-front-page .sa-content-wrap .ultimark-block-heading {
  font-size:     clamp(2.2rem, 5vw, 4rem);
  line-height:   0.95;
  letter-spacing: -.02em;
  margin-top:    72px;
  margin-bottom: 28px;
}

/* First heading — no top margin needed */
.is-front-page .sa-content-wrap .ultimark-block-heading:first-child,
.is-front-page .sa-content-wrap > .wp-block-heading:first-child {
  margin-top: 0;
}

/* Services / gear grid */
.is-front-page .sa-content-wrap .ultimark-services-grid {
  display:               grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap:                   2px !important;
  margin-bottom:         48px !important;
}

.is-front-page .sa-content-wrap .ultimark-service-card {
  border:     1px solid var(--border);
  padding:    28px 24px;
  display:    flex;
  flex-direction: column;
  transition: border-color .2s;
}

.is-front-page .sa-content-wrap .ultimark-service-card:hover {
  border-color: rgba(254,254,254,.4);
}

.is-front-page .sa-content-wrap .ultimark-service-icon {
  font-size:     1.8rem;
  line-height:   1;
  margin-bottom: 14px !important;
}

.is-front-page .sa-content-wrap .ultimark-service-title {
  font-size:     .92rem !important;
  margin-bottom: 10px !important;
  letter-spacing: .02em;
}

.is-front-page .sa-content-wrap .ultimark-service-desc {
  font-size:   .78rem;
  opacity:     .55;
  line-height: 1.6;
  margin:      0;
}

/* About paragraphs */
.is-front-page .sa-content-wrap .wp-block-paragraph + .wp-block-paragraph {
  margin-top: 16px;
}

/* FAQ block */
.is-front-page .sa-content-wrap .ultimark-faq-block {
  margin-top:    0;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .is-front-page .sa-content-wrap .ultimark-services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 720px) {
  .is-front-page .ultimark-page-content {
    padding-top:    80px;
    padding-bottom: 64px;
  }
  .is-front-page .sa-content-wrap .ultimark-services-grid {
    grid-template-columns: 1fr !important;
  }
  .is-front-page .sa-content-wrap .ultimark-block-heading {
    margin-top: 48px;
  }
}

/* =====================================================
   SERVICE CARD LINKS & CLOSING CTA
   Added when CTA URLs are set in admin settings
===================================================== */
.sa-content-wrap .ultimark-service-title a,
.is-front-page .sa-content-wrap .ultimark-service-title a {
  color:           inherit;
  text-decoration: none;
  border-bottom:   1px solid transparent;
  transition:      border-color .15s;
}
.sa-content-wrap .ultimark-service-title a:hover,
.is-front-page .sa-content-wrap .ultimark-service-title a:hover {
  border-bottom-color: currentColor;
}

.sa-content-wrap .ultimark-service-link {
  margin-top: 12px !important;
}
.sa-content-wrap .ultimark-service-link a {
  font-size:      .7rem;
  font-weight:    700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color:           var(--light);
  opacity:        .55;
  text-decoration: none;
  transition:      opacity .15s;
}
.sa-content-wrap .ultimark-service-link a:hover { opacity: 1; }

.sa-content-wrap .ultimark-closing-cta {
  font-size:      .92rem;
  font-weight:    700;
  opacity:        .85;
  margin-top:     56px !important;
  padding-top:    32px;
  border-top:     1px solid var(--border);
}
.sa-content-wrap .ultimark-closing-cta a {
  color:           var(--light);
  text-decoration: underline;
  text-decoration-color: rgba(254,254,254,.3);
  transition:      text-decoration-color .15s;
}
.sa-content-wrap .ultimark-closing-cta a:hover {
  text-decoration-color: var(--light);
}

/* =====================================================
   PROMINENT BOOK CTA BANNER
   Full-width attention banner linking to /book/
===================================================== */
.cta-book-banner {
  background:    var(--light);
  color:         var(--dark);
  padding:       64px 0;
  border-top:    1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.cta-book-inner {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  gap:             32px;
  flex-wrap:       wrap;
}

.cta-book-heading {
  color:         var(--dark);
  margin-bottom: 10px;
  line-height:   1.05;
}

.cta-book-sub {
  color:     var(--text-secondary-on-light);
  max-width: 480px;
  font-size: .88rem;
  line-height: 1.6;
}

.cta-book-button {
  background:  var(--dark) !important;
  color:       var(--light) !important;
  border-color: var(--dark) !important;
  flex-shrink: 0;
  font-size:   .82rem;
  padding:     16px 32px;
}
.cta-book-button:hover {
  background: #111 !important;
}

@media (max-width: 720px) {
  .cta-book-inner { flex-direction: column; align-items: flex-start; }
  .cta-book-button { width: 100%; justify-content: center; }
}

/* =====================================================
   EXPLORE SECTION — universal, appears on every page
   Deliberately in main content, not the footer
===================================================== */
.explore-section {
  background:  var(--dark-mid);
  border-top:  1px solid var(--border);
  padding:     72px 0;
}

.explore-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap:                   32px;
}

.explore-group-title {
  display:        block;
  font-size:      0.68rem;
  font-weight:    700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color:          var(--text-secondary-on-dark);
  margin-bottom:  10px;
  padding-bottom: 8px;
  border-bottom:  1px solid var(--border);
}

.explore-links {
  display:        flex;
  flex-direction: column;
  gap:            6px;
}

.explore-link {
  display:         block;
  font-size:       0.78rem;
  font-weight:     700;
  color:           var(--light);
  text-decoration: none;
  opacity:         0.7;
  transition:      opacity 0.15s;
  line-height:     1.4;
}
.explore-link:hover { opacity: 1; }

@media (max-width: 720px) {
  .explore-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

/* =====================================================
   PHOTOGRAPHY METHOD PAGE — content section spacing
   (reuses .sa-editorial-content / .sa-content-wrap already
   defined for service area pages — no duplicate rules needed)
===================================================== */
/* =====================================================
   TESTIMONIALS GRID
===================================================== */
.ultimark-testimonials-wrap {
  width: 100%;
}

.ultimark-testimonials-grid {
  display:               grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap:                   2px;
}

.ultimark-testimonial-card {
  border:     1px solid var(--border);
  padding:    28px 24px;
  display:    flex;
  flex-direction: column;
  gap:        12px;
  transition: border-color .2s;
}
.ultimark-testimonial-card:hover { border-color: rgba(254,254,254,.4); }

.ultimark-testimonial-stars {
  color:      var(--light);
  opacity:    .85;
  font-size:  .95rem;
  letter-spacing: .1em;
}

.ultimark-testimonial-quote {
  font-size:   .88rem;
  line-height: 1.6;
  opacity:     .8;
  flex-grow:   1;
}

.ultimark-testimonial-meta {
  display:        flex;
  flex-direction: column;
  gap:            2px;
  padding-top:    8px;
  border-top:     1px solid var(--border);
}

.ultimark-testimonial-name {
  font-size:   .82rem;
  font-weight: 700;
}

.ultimark-testimonial-context {
  font-size: .68rem;
  opacity:   .7;
  letter-spacing: .02em;
}

/* On light backgrounds (e.g. award section, book page) */
.on-light .ultimark-testimonial-card,
.section--book .ultimark-testimonial-card {
  border-color: var(--border-dark);
}
.on-light .ultimark-testimonial-stars,
.section--book .ultimark-testimonial-stars { color: var(--dark); }
.on-light .ultimark-testimonial-quote,
.section--book .ultimark-testimonial-quote { color: var(--dark); }
.on-light .ultimark-testimonial-meta,
.section--book .ultimark-testimonial-meta { border-top-color: var(--border-dark); }

/* =====================================================
   REVIEWS BADGE
===================================================== */
.ultimark-reviews-badge {
  display:        inline-flex;
  align-items:    center;
  gap:            10px;
  padding:        10px 18px;
  border:         1px solid var(--border);
  background:     rgba(254,254,254,.03);
}

.ultimark-reviews-stars {
  color:      #ffc107;
  font-size:  .95rem;
  letter-spacing: .05em;
  line-height: 1;
}

.ultimark-reviews-text {
  font-size:   .78rem;
  font-weight: 700;
  opacity:     .85;
}

.ultimark-reviews-text a {
  color:           var(--light);
  text-decoration: underline;
  text-decoration-color: rgba(254,254,254,.3);
  transition:      text-decoration-color .15s;
}
.ultimark-reviews-text a:hover { text-decoration-color: var(--light); }

.on-light .ultimark-reviews-badge { border-color: var(--border-dark); background: rgba(45,45,45,.03); }
.on-light .ultimark-reviews-text  { color: var(--dark); }
.on-light .ultimark-reviews-text a { color: var(--dark); text-decoration-color: rgba(45,45,45,.3); }
/* The gold used on dark backgrounds (#ffc107) fails contrast on light
   backgrounds (~1.6:1) — use a darker amber here instead (~6.2:1) */
.on-light .ultimark-reviews-stars { color: #7a5c00; }

/* =====================================================
   ACCESSIBILITY: SKIP LINK
   Visually hidden until keyboard-focused, then jumps
   straight to <main id="main-content">.
===================================================== */
.skip-link.screen-reader-text {
  position:   absolute;
  top:        -100px;
  left:       0;
  z-index:    100000;
  background: var(--dark);
  color:      var(--light);
  padding:    14px 20px;
  font-size:  .85rem;
  font-weight: 700;
  text-decoration: none;
  border:     2px solid var(--light);
}

.skip-link.screen-reader-text:focus {
  top: 0;
}

/* General .screen-reader-text utility for any future use —
   visually hidden but available to assistive technology */
.screen-reader-text:not(.skip-link) {
  position: absolute;
  width:    1px;
  height:   1px;
  overflow: hidden;
  clip:     rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =====================================================
   ACCESSIBILITY: VISIBLE FOCUS STATES
   -------------------------------------------------------
   A deliberate, branded focus indicator for every
   interactive element — rather than relying on
   inconsistent (and sometimes invisible) browser
   defaults against this dark, custom-styled UI.
   Uses :focus-visible so it only shows for keyboard/
   assistive-tech navigation, not every mouse click.
===================================================== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline:        2px solid var(--light);
  outline-offset: 2px;
}

/* On light-background sections, flip the outline to dark
   so it stays visible against a white background */
.on-light a:focus-visible,
.on-light button:focus-visible,
.on-light input:focus-visible,
.on-light select:focus-visible,
.on-light textarea:focus-visible,
.section--book a:focus-visible,
.section--book button:focus-visible,
.section--book input:focus-visible,
.section--book select:focus-visible,
.section--book textarea:focus-visible,
.section--award a:focus-visible,
.section--award button:focus-visible,
.cta-book-banner a:focus-visible,
.cta-book-banner button:focus-visible,
.sa-trust-bar a:focus-visible {
  outline-color: var(--dark);
}

/* Form fields keep their existing border-color focus
   treatment but now ALSO get the outline ring — the
   border alone isn't always a strong enough signal */
.field-input:focus-visible,
.field-select:focus-visible,
.field-textarea:focus-visible,
.captcha-input:focus-visible {
  outline:        2px solid var(--dark);
  outline-offset: 1px;
}
