/*
Theme Name: EA Estimators Hub
Theme URI: https://easyaccurate.com
Author: EasyAccurate
Author URI: https://easyaccurate.com
Description: Estimator showcase theme for estimators.easyaccurate.com. EA brand system (navy/amber, Syne + DM Sans) with a clickable estimate-ticket card for every trade estimator.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ea-estimators-hub
*/

/* ==========================================================
   EA Design Tokens
   ========================================================== */
:root {
  --ea-navy: #0d2240;
  --ea-navy-deep: #081527;
  --ea-navy-soft: #14304f;
  --ea-amber: #f59e0b;
  --ea-amber-deep: #d97706;
  --ea-paper: #f7f8fa;
  --ea-white: #ffffff;
  --ea-ink: #1a2b44;
  --ea-slate: #46566b;
  --ea-line: #dde4ee;
  --ea-radius: 14px;
  --ea-shadow: 0 2px 6px rgba(13, 34, 64, 0.06), 0 12px 32px rgba(13, 34, 64, 0.10);
  --ea-shadow-lift: 0 6px 14px rgba(13, 34, 64, 0.10), 0 24px 48px rgba(13, 34, 64, 0.16);
  --ea-font-display: 'Syne', system-ui, sans-serif;
  --ea-font-body: 'DM Sans', system-ui, sans-serif;
}

/* ==========================================================
   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; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--ea-font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ea-ink);
  background: var(--ea-paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ea-amber-deep); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ea-amber);
  outline-offset: 3px;
  border-radius: 4px;
}
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}

.ea-container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

/* ==========================================================
   Header
   ========================================================== */
.ea-header {
  background: var(--ea-navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ea-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.ea-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.ea-brand__mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--ea-amber);
  color: var(--ea-navy);
  font-family: var(--ea-font-display);
  font-weight: 300;
  font-size: 18px;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.ea-brand__text { line-height: 1.15; }
.ea-brand__name {
  font-family: var(--ea-font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  display: block;
}
.ea-brand__tag {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ea-nav { display: flex; align-items: center; gap: 8px; }
.ea-nav a {
  font-family: var(--ea-font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  padding: 9px 14px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}
.ea-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.ea-nav a.ea-nav__cta {
  background: var(--ea-amber);
  color: var(--ea-navy);
}
.ea-nav a.ea-nav__cta:hover { background: #ffb020; color: var(--ea-navy); }

/* ==========================================================
   Hero
   ========================================================== */
.ea-hero {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(245,158,11,0.16), transparent 60%),
    linear-gradient(180deg, var(--ea-navy) 0%, var(--ea-navy-deep) 100%);
  color: #fff;
  padding: 84px 0 190px;
  position: relative;
  overflow: hidden;
}
.ea-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ea-amber);
  margin-bottom: 20px;
}
.ea-hero__eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--ea-amber);
}
.ea-hero h1 {
  font-family: var(--ea-font-display);
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 15ch;
}
.ea-hero h1 em {
  font-style: normal;
  color: var(--ea-amber);
}
.ea-hero__sub {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin: 0 0 34px;
}
.ea-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ea-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ea-font-body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 10px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.ea-btn--amber {
  background: var(--ea-amber);
  color: var(--ea-navy);
  box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}
.ea-btn--amber:hover { background: #ffb020; transform: translateY(-2px); }
.ea-btn--ghost {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.ea-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.06); }

/* ==========================================================
   Estimator grid — "estimate ticket" cards
   ========================================================== */
.ea-grid-section {
  margin-top: -130px;
  padding-bottom: 40px;
  position: relative;
  z-index: 2;
}
.ea-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 980px) { .ea-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ea-grid { grid-template-columns: 1fr; } }

.ea-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ea-white);
  border: 1px solid var(--ea-line);
  border-radius: var(--ea-radius);
  box-shadow: var(--ea-shadow);
  text-decoration: none;
  color: var(--ea-ink);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ea-ticket:hover,
.ea-ticket:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--ea-shadow-lift);
  border-color: rgba(245,158,11,0.55);
}
/* Ticket stub: perforated top strip with trade icon */
.ea-ticket__stub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(180deg, #fbfcfe, #f3f6fa);
  border-bottom: 2px dashed var(--ea-line);
  position: relative;
}
.ea-ticket__stub::before,
.ea-ticket__stub::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ea-paper);
  border: 1px solid var(--ea-line);
}
.ea-ticket__stub::before { left: -10px; }
.ea-ticket__stub::after { right: -10px; }
.ea-ticket__icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--ea-navy);
  color: var(--ea-amber);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ea-ticket__icon svg { width: 24px; height: 24px; }
.ea-ticket__badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ea-amber-deep);
  border: 1.5px solid var(--ea-amber);
  border-radius: 999px;
  padding: 4px 11px;
  background: rgba(245,158,11,0.08);
}
.ea-ticket__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ea-ticket__title {
  font-family: var(--ea-font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ea-navy);
}
.ea-ticket__desc {
  font-size: 15px;
  color: var(--ea-slate);
  margin: 0 0 18px;
  flex: 1;
}
.ea-ticket__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ea-navy);
}
.ea-ticket__cta .ea-arrow {
  transition: transform 0.2s ease;
  color: var(--ea-amber-deep);
}
.ea-ticket:hover .ea-arrow,
.ea-ticket:focus-visible .ea-arrow { transform: translateX(5px); }

/* ==========================================================
   Custom estimator CTA band
   ========================================================== */
.ea-custom {
  padding: 60px 0 84px;
}
.ea-custom__box {
  background: var(--ea-navy);
  color: #fff;
  border-radius: 18px;
  padding: clamp(34px, 5vw, 58px);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 34px;
  position: relative;
  overflow: hidden;
}
.ea-custom__box::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.25), transparent 70%);
}
@media (max-width: 820px) { .ea-custom__box { grid-template-columns: 1fr; } }
.ea-custom h2 {
  font-family: var(--ea-font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.15;
  margin: 0 0 14px;
}
.ea-custom p {
  color: rgba(255,255,255,0.82);
  margin: 0;
  max-width: 58ch;
}
.ea-custom__action { text-align: right; }
@media (max-width: 820px) { .ea-custom__action { text-align: left; } }

/* ==========================================================
   Inner pages (individual estimators)
   ========================================================== */
.ea-page {
  padding: 56px 0 80px;
}
.ea-page__title {
  font-family: var(--ea-font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--ea-navy);
  margin: 0 0 10px;
}
.ea-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ea-slate);
  margin-bottom: 22px;
}
.ea-page__back:hover { color: var(--ea-navy); }
.ea-page__content {
  background: var(--ea-white);
  border: 1px solid var(--ea-line);
  border-radius: var(--ea-radius);
  box-shadow: var(--ea-shadow);
  padding: clamp(22px, 4vw, 40px);
}
.ea-page__content iframe { max-width: 100%; }

/* ==========================================================
   Footer
   ========================================================== */
.ea-footer {
  background: var(--ea-navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 34px 0;
  font-size: 14px;
}
.ea-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.ea-footer a { color: var(--ea-amber); text-decoration: none; }
.ea-footer a:hover { text-decoration: underline; }
