/*
Theme Name: Spencer Court
Author: Josh Yager
Author URI: https://thedevq.com/
Description: DevQ site scaffold. Clone, rename the directory to the client slug, and build. One theme per site - no child theme, no premade blocks. Blocks are built per site and registered through the devq_blocks filter.
Version: 2.0.0
Text Domain: devq
DevQ Kit: 485c387 (2026-08-18)
*/

/* -----------------------------------------------------------------------------
 * CSS Variables
 * -------------------------------------------------------------------------- */
:root {
  /* Note: --spacing-small, --spacing-medium, --spacing-large are set dynamically in theme-settings-css.php */

  /* Z-index layers */
  --z-index-dropdown: 3;

  /* Transitions */
  --transition-fast: all 0.1s ease-in-out;
  --transition-default: all 0.3s ease-in-out;

  /* Other */
  --video-aspect-ratio: 56.25%;
  /* 16:9 */
}

/* -----------------------------------------------------------------------------
 * Base Elements
 * -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  background: #fff;
  position: relative;
  font-family: var(--font2);
  font-weight: 400;
  color: #333131;
  line-height: 1.5;
}

p, ul, li {
  font-family: var(--font2);
  font-weight: 400;
  color: #333131;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

/* -----------------------------------------------------------------------------
 * Typography
 * -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font1);
  font-weight: 500;
  line-height: 1;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}



/* -----------------------------------------------------------------------------
 * Layout
 * -------------------------------------------------------------------------- */
.container-fluid {
  max-width: 2400px;
  margin: auto;
}

.videoWrapper {
  position: relative;
  padding-bottom: var(--video-aspect-ratio);
  height: 0;
}

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* -----------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */
.btn {
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--button-padding, 12px 28px);
  font-family: var(--font1);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  transition: var(--transition-default);
  border: 2px solid var(--primary);
  border-radius: var(--button-radius, 4px);
  cursor: pointer;
  /* Chunky by default, but never a hard floor. A flat `min-width: 250px` here
     resolves flex items' `min-width: auto` to 250px, so a .btn in a card footer
     or filter bar refuses to shrink and pushes its siblings out of the
     container. min() keeps the look and lets it collapse when space is tight. */
  min-width: min(250px, 100%);
}

.btn i {
  font-size: 14px;
}

.btn:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Button Variants */
.btn.btn-secondary {
  background: var(--secondary);
  border-color: var(--secondary);
}

.btn.btn-secondary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn.btn-tertiary {
  background: var(--tertiary);
  border-color: var(--tertiary);
  color: var(--primary);
}

.btn.btn-tertiary:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn.btn-white:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn.btn-outline-secondary {
  background: transparent;
  color: #fff;
  border-color: var(--secondary);
}

.btn.btn-outline-secondary:hover {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

.btn.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn.btn-outline-white:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

/* Header & navigation styles are in template-parts/header/ */
/* Footer styles are in template-parts/footer/ */
/* Mobile menu styles are in template-parts/mobile-menu/ */

/* -----------------------------------------------------------------------------
 * Utility Classes
 * -------------------------------------------------------------------------- */
.mobileonly,
.mobileOnly {
  display: none;
}

/* Section background variants */
.section-light {
  background-color: #f8f7f4;
}

.section-offwhite {
  background-color: #f5f4f0;
}

.section-dark {
  background-color: #1a1a2e;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark p,
.section-dark li {
  color: #fff;
}

.section-dark .cs-topper {
  color: var(--tertiary);
}

/* -----------------------------------------------------------------------------
 * Browser Customization
 * -------------------------------------------------------------------------- */
::selection {
  background: var(--tertiary);
  color: var(--secondary);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: var(--tertiary);
}

/* -----------------------------------------------------------------------------
 * Content Styles
 * -------------------------------------------------------------------------- */
.maincopy ul li {
  list-style: none;
  position: relative;
  margin-bottom: 15px;
}

/* -----------------------------------------------------------------------------
 * Media Queries
 * -------------------------------------------------------------------------- */
@media (max-width: 1199px) {

  /* Utility Classes */
  .mobileonly,
  .mobileOnly {
    display: initial;
  }

  .desktopOnly {
    display: none;
  }
}

/* Mobile Styles - 767px and below */
@media (max-width: 767px) {

  .btn {
    width: 100%;
    min-width: unset;
  }

  /* Typography */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.75rem;
  }

  h5 {
    font-size: 1.5rem;
  }

  .bigger-title {
    font-size: 3rem;
  }

  .sub-title {
    font-size: 20px;
  }
}
/* -----------------------------------------------------------------------------
 * Header / Footer -- scaffold baseline
 *
 * Deliberately plain. Every site rewrites header.php / footer.php to spec and
 * replaces this block; it exists so a freshly scaffolded site is legible rather
 * than unstyled.
 * -------------------------------------------------------------------------- */

.devq-header-wrap {
  position: relative;
  background: #fff;
  z-index: 100;
}

.devq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 0;
}

.devq-header-logo a {
  display: inline-block;
  text-decoration: none;
}

.devq-header-logo img {
  display: block;
  max-height: 60px;
  width: auto;
}

.devq-header-wordmark {
  font-family: var(--font1);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.devq-desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.devq-desktop-nav li {
  position: relative;
}

.devq-desktop-nav a {
  text-decoration: none;
  color: inherit;
  font-family: var(--font2);
}

.devq-desktop-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-default);
  z-index: var(--z-index-dropdown);
}

.devq-desktop-nav li:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.devq-desktop-nav .dropdown-menu a {
  display: block;
  padding: 8px 16px;
}

.devq-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile menu ------------------------------------------------------------- */

.devq-mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-default);
  z-index: 999;
}

.devq-mobile-menu.is-active {
  opacity: 1;
  visibility: visible;
}

.devq-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.devq-mobile-logo img {
  max-height: 56px;
  width: auto;
}

.devq-mobile-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.devq-mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 20px;
  text-decoration: none;
  color: inherit;
}

.devq-mobile-contact a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

/* Footer ------------------------------------------------------------------ */

.devq-footer {
  background: var(--secondary);
  padding: 32px 0;
  color: #fff;
}

.devq-footer a {
  color: #fff;
  text-decoration: none;
}

.devq-footer a:hover {
  opacity: 0.75;
}

.devq-footer-menu,
.devq-footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.devq-footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.devq-footer-copyright {
  margin: 0;
  font-size: 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
}

/* =============================================================================
 * SPENCER COURT
 * Design system ported from the Figma Make prototype
 * (Projects/spencer-court-site-build/figma-make). Editorial: Lora italic
 * headings, Plus Jakarta Sans uppercase micro-labels, teal accent used
 * sparingly, square buttons, warm off-white grounds.
 * ---------------------------------------------------------------------------
 * Type is fixed px with 1199/767 overrides -- no clamp().
 * ========================================================================== */

:root {
  --sc-teal:        #1F8C80;
  --sc-teal-dark:   #166B62;
  --sc-teal-light:  #E6F4F2;
  --sc-teal-mid:    #C8E8E4;
  --sc-ink:         #271E00;
  --sc-cream:       #F7F4EE;
  --sc-cream-2:     #EDE9E0;
  --sc-rule:        #D8D3C8;
  --sc-rule-soft:   #DDD8CC;
  --sc-warm-gray:   #8A8070;   /* hairlines / decorative only */
  --sc-teal-text:   #17726A;   /* teal as TEXT -- 5.24:1 on cream, AA at 11px */
  --sc-ink-muted:   #6A6154;   /* warm gray as TEXT -- 5.54:1 on cream */
  --sc-header-h:    76px;
  --sc-header-h-tall: 104px;
  --sc-max:         1400px;
  --sc-gutter:      2.5rem;
  --sc-ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background-color: var(--sc-cream);
  color: var(--sc-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

/* Lora is used italic throughout -- that is the design, not an accident. */
h1, h2, h3, .sc-display {
  font-family: var(--font1);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--sc-ink);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sc-teal-mid); border-radius: 3px; }

/* --- Layout ---------------------------------------------------------------- */
.sc-wrap { max-width: var(--sc-max); margin: 0 auto; padding: 0 var(--sc-gutter); }
.sc-wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 2rem; }
.sc-wrap-mid { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* --- Micro label ----------------------------------------------------------- */
.sc-label {
  font-family: var(--font2);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sc-teal-text);
  margin-bottom: 1.5rem;
  display: block;
}

.sc-rule { width: 2.5rem; height: 2px; background-color: var(--sc-teal); margin-bottom: 2rem; }
.sc-rule-center { width: 2rem; height: 1px; background-color: var(--sc-teal); margin: 2.75rem auto; }

/* --- Buttons --------------------------------------------------------------- */
.btn,
.sc-btn {
  font-family: var(--font2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--sc-teal-text);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 0;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
}
.btn:hover, .sc-btn:hover { background-color: var(--sc-teal-dark); color: #fff; }

.sc-btn-outline {
  font-weight: 500;
  background-color: transparent;
  color: var(--sc-ink);
  border: 1px solid var(--sc-ink);
}
.sc-btn-outline:hover { background-color: rgba(39, 30, 0, 0.06); color: var(--sc-ink); }

.sc-btn-outline-light {
  font-weight: 500;
  letter-spacing: 0.12em;
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 0.875rem 2.5rem;
}
.sc-btn-outline-light:hover { background-color: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }

.sc-btn-ghost {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  background-color: transparent;
  color: var(--sc-ink);
  border: 1px solid rgba(39, 30, 0, 0.3);
  padding: 0.5rem 1.125rem;
}
.sc-btn-ghost:hover { background-color: rgba(39, 30, 0, 0.05); color: var(--sc-ink); }

.sc-btn-ghost-light {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  background-color: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.5rem 1.125rem;
}
.sc-btn-ghost-light:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; }

/* Editorial arrow link */
.sc-btn-text {
  font-family: var(--font2);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  color: var(--sc-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: gap 0.2s ease;
}
.sc-btn-text::after { content: '\2192'; }
.sc-btn-text:hover { gap: 0.75rem; color: var(--sc-ink); }

.sc-btn-underline {
  font-family: var(--font2);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}
.sc-btn-underline:hover { color: #fff; }

/* --- Body copy ------------------------------------------------------------- */
.sc-lead { font-size: 17px; line-height: 1.85; opacity: 0.78; }
.sc-body { font-size: 16px; line-height: 1.85; opacity: 0.75; max-width: 44ch; }

/* --- Legal / long-form text pages -------------------------------------------
 * Plain core heading/paragraph/list blocks inside a Group with class
 * `sc-legal`, under a pagemasthead. Used by the Privacy Policy.
 * ------------------------------------------------------------------------ */
.sc-legal { max-width: 780px; margin: 0 auto; padding: 4.5rem 2rem 6rem; }
.sc-legal h2 { font-size: 28px; line-height: 1.3; margin: 3rem 0 1rem; }
.sc-legal h2:first-child { margin-top: 0; }
.sc-legal p, .sc-legal li { font-size: 16px; line-height: 1.85; color: var(--sc-ink-muted); }
.sc-legal p { margin: 0 0 1.25rem; }
.sc-legal ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.sc-legal li { margin-bottom: 0.5rem; }
.sc-legal a { color: var(--sc-teal-text); text-decoration: underline; text-underline-offset: 3px; }
.sc-legal a:hover { color: var(--sc-teal-dark); }
.sc-legal strong { color: var(--sc-ink); font-weight: 600; }

/* --- Shared media treatments ---------------------------------------------- */
.sc-figure { overflow: hidden; background-color: var(--sc-teal-mid); position: relative; }
.sc-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Parallax inner image: taller than its frame so translateY has room to move. */
.sc-parallax-img { height: 120% !important; margin-top: -10%; will-change: transform; }

@media (max-width: 1199px) {
  :root { --sc-gutter: 2rem; }
  .sc-label { font-size: 11px; margin-bottom: 1.25rem; }
}

@media (max-width: 767px) {
  :root { --sc-gutter: 1.25rem; --sc-header-h: 68px; --sc-header-h-tall: 68px; }
  .sc-wrap-narrow, .sc-wrap-mid { padding: 0 1.25rem; }
  .sc-legal { padding: 3rem 1.25rem 4rem; }
  .sc-legal h2 { font-size: 24px; margin-top: 2.5rem; }
  .sc-btn, .btn, .sc-btn-outline, .sc-btn-outline-light { font-size: 12px; padding: 0.75rem 1.5rem; }
  .sc-lead { font-size: 16px; }
}

/* --- Scroll reveal --------------------------------------------------------
 * Ported from the prototype's IntersectionObserver classes. The .no-js and
 * reduced-motion guards mean the page is fully legible with JS off.
 * ------------------------------------------------------------------------ */
.sc-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--sc-ease), transform 0.8s var(--sc-ease);
}
.sc-fade-up.is-visible { opacity: 1; transform: translateY(0); }

.sc-fade-in { opacity: 0; transition: opacity 1s ease; }
.sc-fade-in.is-visible { opacity: 1; }

.sc-scale-in {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 1s var(--sc-ease), transform 1s var(--sc-ease);
}
.sc-scale-in.is-visible { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .sc-fade-up, .sc-fade-in, .sc-scale-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .sc-parallax-img { transform: none !important; }
  html { scroll-behavior: auto; }
}
