/*
Theme Name: Effectus Computing
Theme URI: https://wwebdesign.co.uk/
Author: W Web Design & Hosting
Author URI: https://wwebdesign.co.uk/
Description: Lean custom theme for Effectus Computing — code-registered ACF blocks, no page builder, no build step.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: effectus
*/

/* ==========================================================================
   Design tokens — the ONLY place cross-block values live.
   Anything used by more than one block belongs here. Anything used by exactly
   one block belongs in that block's own style.css.
   ========================================================================== */

:root {
  /* Brand — extracted from the Elementor/Kadence site in Phase 0 recon. */
  --effectus-brand:        #0e6a38;   /* primary green: buttons, headings accents, footer credit bar */
  --effectus-brand-dark:   #094926;   /* hover/pressed */
  --effectus-accent:       #29a63b;   /* lighter green: links, hover, highlights */
  --effectus-topbar:       #262a2b;   /* the dark contact strip above the header */

  /* Surfaces.
     NEVER set a section background to #fff — leave sections transparent so
     they inherit --effectus-bg, and fill --effectus-card-bg on inner cards. */
  --effectus-bg:           #ffffff;
  --effectus-bg-alt:       #edf2f7;   /* the pale band used on evercompare/intro sections */
  --effectus-card-bg:      #ffffff;
  --effectus-border:       #e2e8f0;

  /* Text */
  --effectus-text:         #2d3748;
  --effectus-text-muted:   #7a7a7a;
  --effectus-text-invert:  #f7fafc;

  /* Type */
  --effectus-font:         "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --effectus-font-heading: var(--effectus-font);
  --effectus-weight-heading: 600;
  --effectus-weight-body:    400;

  /* Layout */
  --effectus-content-max:  1200px;
  --effectus-gutter:       24px;
  --effectus-section-y:    clamp(48px, 7vw, 104px);
  --effectus-radius:       6px;
  --effectus-header-height: 88px;

  /* Motion */
  --effectus-ease:         cubic-bezier(.22,.61,.36,1);
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--effectus-bg);
  color: var(--effectus-text);
  font-family: var(--effectus-font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--effectus-font-heading);
  font-weight: var(--effectus-weight-heading);
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Shared layout primitives — used by chrome AND blocks.
   -------------------------------------------------------------------------- */

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

.effectus-section { padding-block: var(--effectus-section-y); }

.effectus-section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.effectus-section__head--center { margin-inline: auto; text-align: center; }

.effectus-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--effectus-accent);
  margin-bottom: .75em;
}

.effectus-lede { font-size: 1.1rem; color: var(--effectus-text-muted); }

/* Buttons */
.effectus-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--effectus-radius);
  background: var(--effectus-brand);
  color: var(--effectus-text-invert);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--effectus-ease), transform .25s var(--effectus-ease);
}
.effectus-btn:hover { background: var(--effectus-brand-dark); transform: translateY(-1px); }

.effectus-btn--ghost {
  background: transparent;
  color: var(--effectus-text);
  border-color: var(--effectus-border);
}
.effectus-btn--ghost:hover { background: var(--effectus-card-bg); }

/* Cards — the ONLY place --effectus-card-bg should appear. */
.effectus-card {
  background: var(--effectus-card-bg);
  border: 1px solid var(--effectus-border);
  border-radius: var(--effectus-radius);
  padding: clamp(20px, 2.5vw, 32px);
}

/* Screen-reader only */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* WP core alignment classes */
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.alignwide { max-width: calc(var(--effectus-content-max) + 160px); margin-inline: auto; }
.aligncenter { margin-inline: auto; }
