/* ══════════════════════════════════════════════════════════════
   BASE — Reset, Typography Scale, Utilities
   ══════════════════════════════════════════════════════════════ */

/* Typography: Inter only, Basis Theory style (design.basis.com/foundations/typography) */

/* ── Reset ── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: var(--type-size-16);
  line-height: var(--line-height-24);
  color: var(--clr-body);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ── Typography Scale (Basis Theory) ── */

h1, h2, h3, h4, h5, h6 {
  color: var(--clr-navy);
  font-family: var(--font-display);
  font-weight: 600;
}

h1 {
  font-size: clamp(var(--type-size-32), 6vw, var(--type-size-60));
  line-height: var(--line-height-72);
  letter-spacing: -0.02em;
  font-weight: 600;
}

/* Hide theme title in entry-header (title shown in content instead) */
.entry-header .entry-title {
  display: none;
}

h2 {
  font-size: clamp(var(--type-size-24), 3.5vw, var(--type-size-32));
  line-height: var(--line-height-36);
  letter-spacing: -0.02em;
  color: var(--clr-red-dark);
}

h3 {
  font-size: var(--type-size-24);
  line-height: var(--line-height-32);
  font-weight: 600;
}

h4 {
  font-size: var(--type-size-20);
  line-height: var(--line-height-24);
  font-weight: 600;
}

h5 {
  font-size: var(--type-size-16);
  line-height: var(--line-height-24);
  font-weight: 600;
}

h6 {
  font-size: var(--type-size-14);
  line-height: var(--line-height-20);
  font-weight: 600;
}

p {
  font-size: var(--type-size-16);
  line-height: var(--line-height-24);
  color: var(--clr-body);
}

b {
  color: var(--clr-muted);
}

.entry-content {
  color: var(--clr-bg-alt);
}

/* Right sidebar: hide search widget, Recent Posts and Recent Comments blocks */
#right-sidebar .widget_search,
#right-sidebar #block-3,
#right-sidebar #block-4 {
  display: none;
}

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

.text-subtle {
  color: var(--clr-subtle);
}

.text-red {
  color: var(--clr-red);
}

.text-navy {
  color: var(--clr-navy);
}

.text-success {
  color: var(--clr-success);
}

.text-center {
  text-align: center;
}

.font-mono {
  font-family: var(--font-mono);
}

/* ── Stat Numbers ── */

.stat-number {
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--clr-red);
}

.stat-label {
  font-weight: 600;
  font-size: var(--type-size-12);
  line-height: var(--line-height-16);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-muted);
  margin-top: 6px;
}

/* Price display */
.price-display {
  font-weight: 800;
  font-size: 40px;
  color: var(--clr-red);
  line-height: 1;
}

/* ── Layout Utilities ── */

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section-alt {
  background-color: var(--clr-bg-alt);
}

.section-dark {
  background-color: var(--clr-dark-section);
}

/* ── Section Header ── */

.section-header {
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.section-header p {
  font-size: var(--type-size-16);
  line-height: var(--line-height-24);
  color: var(--clr-muted);
}

/* ── Skip Link (Accessibility) ── */

.skip-link {
  position: fixed;
  top: -100%;
  left: 8px;
  z-index: 99999;
  background: var(--clr-red);
  color: #fff;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 8px;
  outline: 2px solid var(--clr-red);
  outline-offset: 3px;
}

/* ── Focus Ring ── */

:focus-visible {
  outline: 2px solid var(--clr-red);
  outline-offset: 3px;
}

/* ── Scroll Reveal ── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Reduced Motion ── */

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  background-color: var(--clr-navy);
  color: var(--clr-navy);
  border-bottom: 1px solid var(--clr-body);
  transition: box-shadow 0.3s, background 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  background-color: var(--clr-navy);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
  color: var(--clr-navy);
}

.header-logo img {
  height: 38px;
  width: auto;
}

.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  padding: 12px 16px;
  border-bottom: 2px solid transparent;
  transition: color var(--duration-fast), border-color var(--duration-fast);
}

.nav-list a:hover {
  color: #FFFFFF;
}

.nav-list a.active,
.nav-list a[aria-current="page"] {
  color: #FFFFFF;
  border-bottom-color: rgba(255,255,255,0.9);
}

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

.header-cart {
  position: relative;
  color: rgba(255,255,255,0.9);
  transition: color var(--duration-fast);
  display: flex;
  align-items: center;
}

.header-cart:hover {
  color: #FFFFFF;
}

.header-cart svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #1E2543;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header-client-area {
  font-weight: 600;
  font-size: 13px;
  color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  transition: border-color var(--duration-fast), background var(--duration-fast);
}

.header-client-area:hover {
  border-color: #FFFFFF;
  background: rgba(255,255,255,0.1);
}

.site-header .header-cta {
  font-size: 14px;
  padding: 10px 22px;
  background: #FFFFFF !important;
  color: #F24F4F !important;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-header .header-cta:hover {
  background: rgba(255,255,255,0.95) !important;
  color: #E8342C !important;
  filter: none;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--clr-navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu-nav ul {
  text-align: center;
}

.mobile-menu-nav li {
  margin-bottom: 8px;
}

.mobile-menu-nav a {
  font-weight: 800;
  font-size: 28px;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  display: inline-block;
  padding: 8px 0;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
  color: #fff;
}

.mobile-menu-actions {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 260px;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--clr-dark-section);
  border-top: 3px solid var(--clr-red);
  padding-top: 72px;
  color: rgba(255,255,255,0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 36px;
  width: auto;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 24px;
}

.footer-address {
  font-style: normal;
  margin-bottom: 24px;
}

.footer-address p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}

.footer-address a {
  color: rgba(255,255,255,0.45);
  transition: color var(--duration-fast);
}

.footer-address a:hover {
  color: var(--clr-red);
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-base) var(--ease-out);
}

.footer-social a:hover {
  background: rgba(255,78,70,0.15);
  border-color: rgba(255,78,70,0.40);
  color: var(--clr-red);
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color var(--duration-fast), padding-left var(--duration-fast);
}

.footer-links a:hover {
  color: var(--clr-red);
  padding-left: 4px;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0;
}

.footer-disclaimer p {
  font-size: 12px;
  color: rgba(255,255,255,0.30);
  line-height: 1.6;
  max-width: 680px;
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  transition: color var(--duration-fast);
}

.footer-legal-links a:hover {
  color: var(--clr-red);
}

/* ── Responsive Typography ── */

/* ── Responsive: Tablet ── */

@media (max-width: 1024px) {
  .site-header {
    height: 64px;
  }

  .header-inner {
    height: 64px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Responsive: Mobile ── */

@media (max-width: 768px) {
  h2 {
    font-size: clamp(var(--type-size-20), 6vw, var(--type-size-32));
  }

  .section-header {
    margin-bottom: 40px;
  }

  .header-nav,
  .header-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
