/*
Theme Name: YoloIDsCards
Theme URI: https://www.yoloidscards.com
Author: BANKBEE incorporated
Author URI: https://www.yoloidscards.com
Description: Modern, professional block theme for YoloIDsCards — custom plastic card printing for hotels, gyms, retail and events across the US and Canada.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yoloidscards
Tags: business, block-theme, custom-colors, full-width-template
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
  /* Brand ramp derived from #14590E */
  --c-brand-50:  #f3f9f1;
  --c-brand-100: #dceed7;
  --c-brand-200: #bcdfb4;
  --c-brand-300: #96cb8c;
  --c-brand-400: #4fa93f;
  --c-brand-500: #29751f;
  --c-brand-600: #1b6312;
  --c-brand-700: #14590e; /* PRIMARY */
  --c-brand-800: #0a2e06;
  --c-brand-900: #061f04;

  --c-lime:      #c6f26a;
  --c-lime-soft: #e2f9b4;
  --c-amber:     #f0b74e;

  /* Neutrals (green-tinted) */
  --c-white:   #ffffff;
  --c-ink:     #0d160c;
  --c-body:    #3b4738;
  --c-muted:   #6b7a66;
  --c-line:    #e4ebe0;
  --c-line-2:  #d3ddcd;
  --c-surface: #f7faf5;
  --c-surface-2: #eff5ec;

  /* Type */
  --ff-head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --fs-h1: clamp(2.35rem, 1.5rem + 2.9vw, 3.6rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 1.9vw, 2.85rem);
  --fs-h3: clamp(1.28rem, 1.15rem + 0.55vw, 1.6rem);
  --fs-h4: clamp(1.1rem, 1.02rem + 0.3vw, 1.25rem);
  --fs-lead: clamp(1.06rem, 1rem + 0.35vw, 1.22rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.95rem;
  --fs-xs: 0.8125rem;

  /* Space */
  --sp-section: clamp(64px, 6.5vw, 108px);
  --sp-gutter: clamp(20px, 4vw, 32px);
  --wrap: 1200px;
  --wrap-narrow: 860px;

  /* Radii + shadow */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(13, 22, 12, 0.04), 0 10px 28px -16px rgba(13, 22, 12, 0.18);
  --sh-2: 0 2px 4px rgba(13, 22, 12, 0.04), 0 28px 64px -28px rgba(13, 22, 12, 0.30);
  --sh-focus: 0 0 0 3px rgba(20, 89, 14, 0.22);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.32s;

  --header-h: 76px;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-body);
  font-family: var(--ff-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.68;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--ff-head);
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

h1, .wp-block-heading.is-h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.032em; }
h2, .wp-block-heading.is-h2 { font-size: var(--fs-h2); letter-spacing: -0.026em; }
h3, .wp-block-heading.is-h3 { font-size: var(--fs-h3); }
h4, .wp-block-heading.is-h4 { font-size: var(--fs-h4); }

p { margin: 0; }

a {
  color: var(--c-brand-700);
  text-decoration: none;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
a:hover { color: var(--c-brand-500); }

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

ul, ol { margin: 0; padding: 0; }

figure { margin: 0; }

::selection {
  background: var(--c-brand-700);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--c-brand-600);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  position: absolute !important;
  word-wrap: normal !important;
}

/* ==========================================================================
   3. Layout primitives
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--wide { max-width: 1360px; }

.sec {
  position: relative;
  padding-block: var(--sp-section);
}

.sec--tight { padding-block: clamp(44px, 4.5vw, 72px); }
.sec--flush-top { padding-top: 0; }
.sec--flush-bottom { padding-bottom: 0; }

.sec--tint { background: var(--c-brand-50); }
.sec--surface { background: var(--c-surface); }
.sec--dark {
  background: var(--c-brand-800);
  color: rgba(255, 255, 255, 0.78);
}
.sec--dark h1,
.sec--dark h2,
.sec--dark h3,
.sec--dark h4,
.sec--dark .wp-block-heading { color: #fff; }
.sec--dark a { color: var(--c-lime); }
.sec--dark a:hover { color: #fff; }

.sec--brand { background: var(--c-brand-700); color: rgba(255, 255, 255, 0.8); }
.sec--brand h1,
.sec--brand h2,
.sec--brand h3,
.sec--brand h4,
.sec--brand .wp-block-heading { color: #fff; }

.sec--line-top { border-top: 1px solid var(--c-line); }

/* Section heading block */
.sec-head { max-width: 780px; }
.sec-head.is-center {
  margin-inline: auto;
  text-align: center;
}
.sec-head .sec-head__title { margin-top: 14px; }
.sec-head .sec-head__sub {
  margin-top: 18px;
  font-size: var(--fs-lead);
  color: var(--c-muted);
  line-height: 1.6;
  text-wrap: pretty;
}
.sec--dark .sec-head .sec-head__sub,
.sec--brand .sec-head .sec-head__sub { color: rgba(255, 255, 255, 0.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-head);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand-600);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-brand-400);
  flex: none;
}
.sec--dark .eyebrow,
.sec--brand .eyebrow { color: var(--c-lime); }
.sec--dark .eyebrow::before,
.sec--brand .eyebrow::before { background: var(--c-lime); }
.eyebrow.is-plain::before { display: none; }

/* ==========================================================================
   4. Buttons
   ========================================================================== */

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.wp-block-button { margin: 0; }

.wp-block-button__link,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 16px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.wp-block-button__link::after,
.btn::after { display: none; }

.btn-solid .wp-block-button__link,
.wp-block-button.is-style-solid .wp-block-button__link {
  background: var(--c-brand-700);
  color: #fff;
  box-shadow: 0 1px 2px rgba(6, 31, 4, 0.18), 0 12px 24px -14px rgba(20, 89, 14, 0.7);
}
.btn-solid .wp-block-button__link:hover,
.wp-block-button.is-style-solid .wp-block-button__link:hover {
  background: var(--c-brand-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(6, 31, 4, 0.2), 0 18px 34px -14px rgba(20, 89, 14, 0.65);
}

.btn-outline .wp-block-button__link {
  background: transparent;
  color: var(--c-brand-700);
  border-color: var(--c-line-2);
}
.btn-outline .wp-block-button__link:hover {
  border-color: var(--c-brand-700);
  background: var(--c-brand-50);
  color: var(--c-brand-700);
  transform: translateY(-2px);
}

.btn-light .wp-block-button__link {
  background: #fff;
  color: var(--c-brand-800);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.55);
}
.btn-light .wp-block-button__link:hover {
  background: var(--c-lime);
  color: var(--c-brand-900);
  transform: translateY(-2px);
}

.btn-ghost .wp-block-button__link {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}
.btn-ghost .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lime .wp-block-button__link {
  background: var(--c-lime);
  color: var(--c-brand-900);
}
.btn-lime .wp-block-button__link:hover {
  background: #d6f88c;
  color: var(--c-brand-900);
  transform: translateY(-2px);
}

.btn-sm .wp-block-button__link { padding: 12px 18px; font-size: 0.92rem; border-radius: 10px; }

.wp-block-button__link:active { transform: translateY(0); }

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--c-brand-700);
}
.link-arrow svg { transition: transform var(--dur) var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.sec--dark .link-arrow,
.sec--brand .link-arrow { color: var(--c-lime); }

/* ==========================================================================
   5. Site header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-line-2) 18%, var(--c-line-2) 82%, transparent);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.site-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(13, 22, 12, 0.45); }
.site-header.is-stuck::after { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: var(--header-h);
  padding-block: 15px;
}

/* Wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: none;
  color: var(--c-ink);
}
.brand:hover { color: var(--c-ink); }
.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--c-brand-700);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: 0 8px 18px -10px rgba(20, 89, 14, 0.8);
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__name {
  font-family: var(--ff-head);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.05;
}
.brand__name em {
  font-style: normal;
  color: var(--c-brand-700);
}
.brand__tag {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.685rem;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 3px;
}

/* Header right cluster */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--c-ink);
  white-space: nowrap;
}
.header-phone svg { color: var(--c-brand-600); flex: none; }
.header-phone:hover { color: var(--c-brand-700); }

/* Navigation ------------------------------------------------ */

.wp-block-navigation { --navigation-layout-justification-setting: center; }

.yci-nav { font-family: var(--ff-head); flex: 1 1 auto; }

.yci-nav .wp-block-navigation__container {
  gap: 1px;
  align-items: center;
}
.yci-nav .wp-block-navigation-item { flex: 0 0 auto; }

.yci-nav .wp-block-navigation-item > .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.008em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.yci-nav .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
  background: var(--c-brand-50);
  color: var(--c-brand-700);
  text-decoration: none;
}
.yci-nav .current-menu-item > .wp-block-navigation-item__content,
.yci-nav .wp-block-navigation-item.is-active > .wp-block-navigation-item__content {
  color: var(--c-brand-700);
  background: var(--c-brand-50);
}

/* Dropdown submenus */
.yci-nav .wp-block-navigation__submenu-container {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  padding: 8px;
  min-width: 252px;
  gap: 2px;
  margin-top: 6px;
}
.yci-nav .wp-block-navigation__submenu-container::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 26px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid var(--c-line);
  border-top: 1px solid var(--c-line);
  transform: rotate(45deg);
  border-radius: 2px;
}
.yci-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--c-body);
  white-space: nowrap;
}
.yci-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
  background: var(--c-brand-50);
  color: var(--c-brand-700);
}
.yci-nav .wp-block-navigation__submenu-icon {
  width: 0.62em;
  height: 0.62em;
  margin-left: 1px;
  opacity: 0.5;
}

/* Mobile toggle */
.yci-nav .wp-block-navigation__responsive-container-open,
.yci-nav .wp-block-navigation__responsive-container-close {
  border: 1px solid var(--c-line-2);
  border-radius: 10px;
  padding: 9px;
  color: var(--c-ink);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.yci-nav .wp-block-navigation__responsive-container-open:hover,
.yci-nav .wp-block-navigation__responsive-container-close:hover {
  background: var(--c-brand-50);
  border-color: var(--c-brand-200);
}
.yci-nav .wp-block-navigation__responsive-container-open svg,
.yci-nav .wp-block-navigation__responsive-container-close svg { width: 22px; height: 22px; }

.yci-nav .wp-block-navigation__responsive-container.is-menu-open {
  background: #fff;
  padding: 20px var(--sp-gutter) 32px;
}
.yci-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  align-items: stretch;
  gap: 2px;
  width: 100%;
}
.yci-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  padding: 14px 12px;
  font-size: 1.06rem;
  border-radius: 10px;
  border-bottom: 1px solid var(--c-line);
}
.yci-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  border: 0;
  box-shadow: none;
  padding: 0 0 0 12px;
  min-width: 0;
  margin: 0;
}
.yci-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container::before { display: none; }

/* ==========================================================================
   6. Site footer
   ========================================================================== */

.site-footer {
  background: var(--c-brand-900);
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--fs-sm);
}
.footer-main {
  padding-block: clamp(52px, 6vw, 84px) clamp(36px, 4vw, 52px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.15fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand__mark { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.footer-brand .brand__mark svg { color: var(--c-lime); }
.footer-brand .brand__tag { color: rgba(255, 255, 255, 0.5); }

.footer-blurb {
  margin-top: 20px;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.65;
}

.footer-title {
  font-family: var(--ff-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-lime);
  margin: 0 0 18px;
}

.footer-links { list-style: none; display: grid; gap: 11px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.925rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
  display: inline-block;
}
.footer-links a:hover { color: #fff; transform: translateX(3px); }

.footer-contact { list-style: none; display: grid; gap: 16px; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: var(--c-brand-300);
}
.footer-contact a { color: rgba(255, 255, 255, 0.68); }
.footer-contact a:hover { color: #fff; }
/* Email / phone are shown as plain text in the footer, not links */
.footer-contact span { color: rgba(255, 255, 255, 0.7); }
.footer-contact strong {
  display: block;
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.93rem;
  margin-bottom: 2px;
}
.footer-address { line-height: 1.55; font-style: normal; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  padding-block: 22px 26px;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.855rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom-inner p { margin: 0; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal-links a { color: rgba(255, 255, 255, 0.55); font-size: 0.855rem; }
.footer-legal-links a:hover { color: #fff; }

/* ==========================================================================
   7. Reveal animations
   ========================================================================== */

/* Reveal is applied by site.js so content stays visible without JavaScript */
.yci-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.yci-reveal.is-in {
  opacity: 1;
  transform: none;
}
.yci-no-js .yci-reveal,
.no-js .yci-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  .yci-reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   8. WordPress compatibility
   ========================================================================== */

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

.site-main { display: block; }

/* Neutralise WordPress flow margins at zero specificity so .mt-* utilities win */
:where(.sec, .site-main) :where(.is-layout-flow, .is-layout-constrained) > :where(*) {
  margin-block-start: 0;
}

.wp-block-image img { border-radius: var(--r-md); }
.wp-block-image figcaption {
  font-size: var(--fs-xs);
  color: var(--c-muted);
  text-align: center;
  margin-top: 10px;
}

/* Post content wrapper shouldn't add stray spacing */
:where(.entry-content) > :where(*) { margin-block-start: 0; }
:where(.entry-content) { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-brand-700);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  z-index: 999;
  font-family: var(--ff-head);
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* Responsive: header */
@media (max-width: 1080px) {
  .header-phone span { display: none; }
  .header-phone { gap: 0; }
  .header-actions { gap: 12px; }
}
@media (max-width: 900px) {
  .wp-block-buttons.header-cta { display: none; }
}
