/*
Theme Name: Eraser Solutions
Theme URI: https://erasersolutions.com
Author: Eraser Solutions Company Ltd.
Author URI: https://erasersolutions.com
Description: One-page business theme for Eraser Solutions Company Ltd. — IT consulting, AI & automation, custom software, cybersecurity, FinTech and web design. Includes the full home page layout, WhatsApp and email enquiry buttons, floating WhatsApp chat button and an enquiry form.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eraser-solutions
Tags: one-page, business, custom-colors, custom-logo, sticky-post
*/

/* ============ Design tokens (match erasersolutions.com) ============ */
:root {
  --es-bg: #F9F6F2;
  --es-card: #FFFFFF;
  --es-ink: #0C2352;
  --es-navy: #0B2964;
  --es-red: #A50D1C;
  --es-footer: #970818;
  --es-muted: #49566C;
  --es-border: #D9DFE6;
  --es-accent: #DFE9F5;
  --es-wa: #2DD574;
  --es-wa-ink: #022710;
  --es-white: #FFFFFF;
  --es-radius: 12px;
  --es-radius-lg: 16px;
  --es-shadow: 0 12px 30px -14px rgba(12, 35, 82, 0.35);
  --es-font: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body.es-body {
  margin: 0;
  background: var(--es-bg);
  color: var(--es-ink);
  font-family: var(--es-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.es-body img { max-width: 100%; height: auto; display: block; }
.es-body a { color: inherit; text-decoration: none; }
.es-body a:hover { text-decoration: none; }

.es-wrap { max-width: 1152px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.es-icon { width: 24px; height: 24px; flex-shrink: 0; }

/* ============ Buttons ============ */
.es-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 24px;
  font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em;
  border: 0; cursor: pointer; transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: var(--es-font);
}
.es-btn:hover { opacity: 0.9; }
.es-btn--red { background: var(--es-red); color: var(--es-white); box-shadow: var(--es-shadow); }
.es-btn--outline-navy { background: transparent; color: var(--es-navy); border: 2px solid var(--es-navy); }
.es-btn--outline-navy:hover { background: var(--es-navy); color: var(--es-white); opacity: 1; }
.es-btn--outline-white { background: transparent; color: var(--es-white); border: 2px solid var(--es-white); }
.es-btn--wa { background: var(--es-wa); color: var(--es-wa-ink); box-shadow: var(--es-shadow); }
.es-btn--sm { padding: 8px 16px; font-size: 12px; }
.es-btn--sm .es-icon { width: 16px; height: 16px; }
.es-btn .es-icon { width: 20px; height: 20px; }

/* ============ Header ============ */
.es-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 246, 242, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--es-border);
}
body.admin-bar .es-header { top: 32px; }
.es-header__inner { padding-top: 16px; padding-bottom: 16px; }
.es-header__row { display: flex; align-items: center; justify-content: space-between; }
.es-logo { display: flex; align-items: center; gap: 12px; }
.es-logo img { height: 48px; width: auto; }
.es-logo__text {
  font-size: 18px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--es-navy);
}
.es-logo__text small { font-size: 12px; font-weight: 700; }
.es-menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; color: var(--es-navy); padding: 4px;
}
.es-nav { display: flex; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.es-nav a.es-nav__link {
  font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--es-navy);
}
.es-nav a.es-nav__link:hover { color: var(--es-red); }
.es-nav__sep { margin: 0 12px; color: var(--es-red); }
.es-nav__ctas { display: flex; align-items: center; gap: 12px; margin-left: 24px; flex-wrap: wrap; }

/* ============ Hero ============ */
.es-hero { position: relative; overflow: hidden; }
.es-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.es-hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #F9F6F2 0%, rgba(249, 246, 242, 0.85) 38%, transparent 70%);
}
.es-hero__inner { position: relative; padding-top: 80px; padding-bottom: 80px; }
.es-hero__box { max-width: 576px; }
.es-eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; color: var(--es-red);
}
.es-eyebrow--navy { color: var(--es-navy); }
.es-hero h1 {
  margin: 0; font-size: 32px; font-weight: 800; text-transform: uppercase;
  line-height: 1.2; color: var(--es-red);
}
.es-hero h1 span { color: var(--es-navy); }
.es-hero__lead { margin: 20px 0 0; font-weight: 500; color: var(--es-navy); }
.es-hero__tick { margin: 12px 0 0; font-size: 14px; color: var(--es-muted); }
.es-hero__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ Sections ============ */
.es-section { padding-top: 64px; padding-bottom: 64px; }
.es-section--card { background: var(--es-card); }
.es-section__head { margin-bottom: 40px; text-align: center; }
.es-section__head h2 {
  margin: 0; font-size: 26px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--es-navy);
}
.es-section__intro { max-width: 672px; margin: -16px auto 40px; text-align: center; color: var(--es-muted); }

/* ============ Cards / grids ============ */
.es-grid { display: grid; gap: 20px; }
.es-grid--2 { grid-template-columns: repeat(2, 1fr); }
.es-grid--4 { grid-template-columns: repeat(2, 1fr); }

.es-card {
  background: var(--es-card); border-radius: var(--es-radius-lg);
  padding: 24px; box-shadow: var(--es-shadow);
}
.es-card--hover { transition: transform 0.2s ease; display: block; }
.es-card--hover:hover { transform: translateY(-4px); }
.es-card--center { text-align: center; }
.es-card__icon { width: 48px; height: 48px; color: var(--es-red); margin: 0 auto; }
.es-card__icon--navy { color: var(--es-navy); width: 40px; height: 40px; margin: 0; }
.es-card h3 { margin: 16px 0 0; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--es-navy); }
.es-card p { margin: 4px 0 0; font-size: 12px; color: var(--es-muted); }

/* ============ Stats band ============ */
.es-band { background: var(--es-navy); color: var(--es-white); }
.es-band__inner { padding-top: 48px; padding-bottom: 48px; }
.es-band__eyebrow {
  margin: 0 0 32px; text-align: center; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.8;
}
.es-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; text-align: center; }
.es-stats__value { font-size: 30px; font-weight: 800; }
.es-stats__label { margin-top: 4px; font-size: 12px; text-transform: uppercase; opacity: 0.8; }

/* ============ Services ============ */
.es-service { display: flex; flex-direction: column; }
.es-service__num { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--es-red); margin: 0; }
.es-service__icon { margin-top: 16px; width: 40px; height: 40px; color: var(--es-navy); }
.es-service h3 { margin: 12px 0 0; font-size: 16px; font-weight: 700; text-transform: uppercase; color: var(--es-navy); }
.es-service p { margin: 8px 0 0; font-size: 14px; color: var(--es-muted); flex: 1; }
.es-service__cta {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--es-red);
}
.es-service__cta .es-icon { width: 16px; height: 16px; }

/* ============ About ============ */
.es-about { display: grid; gap: 40px; }
.es-about__media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.es-about__media img { border-radius: var(--es-radius-lg); box-shadow: var(--es-shadow); object-fit: cover; width: 100%; }
.es-about__media .es-about__wide { grid-column: span 2; }
.es-about__badge {
  display: flex; flex-direction: column; justify-content: center;
  border-radius: var(--es-radius-lg); background: var(--es-red); color: var(--es-white); padding: 16px;
}
.es-about__badge strong { font-size: 30px; font-weight: 800; }
.es-about__badge span { font-size: 12px; text-transform: uppercase; }
.es-about h2 { margin: 8px 0 0; font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--es-navy); }
.es-about p { color: var(--es-muted); }
.es-about ul { list-style: none; margin: 20px 0 0; padding: 0; }
.es-about li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 14px; font-weight: 500; color: var(--es-navy); margin-bottom: 8px;
}
.es-about li .es-icon { width: 20px; height: 20px; color: var(--es-red); }
.es-about .es-btn { margin-top: 24px; }

/* ============ Sectors ============ */
.es-sector__top { display: flex; align-items: center; justify-content: space-between; }
.es-sector__top .es-icon { width: 36px; height: 36px; color: var(--es-red); }
.es-sector__tag { font-size: 12px; font-weight: 600; color: var(--es-muted); }
.es-sector h3 { margin: 16px 0 0; font-size: 16px; font-weight: 700; color: var(--es-navy); text-transform: none; }
.es-sector p { font-size: 14px; }

/* ============ Approach ============ */
.es-step {
  border-top: 4px solid var(--es-red); background: var(--es-bg);
  padding: 24px; box-shadow: var(--es-shadow);
  border-bottom-left-radius: var(--es-radius-lg); border-bottom-right-radius: var(--es-radius-lg);
}
.es-step__num { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--es-red); margin: 0; }
.es-step h3 { margin: 8px 0 0; font-size: 16px; font-weight: 700; color: var(--es-navy); text-transform: none; }
.es-step p { font-size: 14px; }

/* ============ CTA band ============ */
.es-cta { text-align: center; }
.es-cta h2 { margin: 8px 0 0; font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--es-white); }
.es-cta p { opacity: 0.9; margin: 12px 0 0; }
.es-cta__btns { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ============ Contact ============ */
.es-contact { display: grid; gap: 40px; }
.es-contact h2 { margin: 8px 0 0; font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--es-navy); }
.es-contact p { color: var(--es-muted); }
.es-contact__list { list-style: none; margin: 24px 0 0; padding: 0; }
.es-contact__list li {
  display: flex; gap: 12px; align-items: center;
  font-weight: 500; color: var(--es-navy); margin-bottom: 12px;
}
.es-contact__list .es-icon { width: 20px; height: 20px; color: var(--es-red); }
.es-contact__list a:hover { color: var(--es-red); }
.es-contact__ctas { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.es-form { background: var(--es-card); border-radius: var(--es-radius-lg); padding: 24px; box-shadow: var(--es-shadow); }
.es-form h3 { margin: 4px 0 16px; font-size: 20px; font-weight: 700; color: var(--es-navy); }
.es-form label { display: block; font-size: 14px; font-weight: 500; color: var(--es-navy); margin-bottom: 16px; }
.es-form input, .es-form select, .es-form textarea {
  margin-top: 4px; width: 100%; border: 1px solid var(--es-border); border-radius: 8px;
  background: var(--es-bg); padding: 8px 12px; font-family: var(--es-font); font-size: 14px; color: var(--es-ink);
}
.es-form input:focus, .es-form select:focus, .es-form textarea:focus {
  outline: 2px solid var(--es-red); outline-offset: 1px; border-color: var(--es-red);
}
.es-form .es-btn { width: 100%; }
.es-form__note { font-size: 12px; color: var(--es-muted); margin: 12px 0 0; }
.es-form__notice {
  border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 500; margin-bottom: 16px;
}
.es-form__notice--ok { background: #E7F8EE; color: #0B6B3A; border: 1px solid #B7E7CC; }
.es-form__notice--err { background: #FBE9EA; color: var(--es-red); border: 1px solid #F2C3C7; }

/* ============ Footer ============ */
.es-footer { background: var(--es-footer); color: var(--es-white); }
.es-footer__grid { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.es-footer__brand { display: flex; align-items: center; gap: 8px; }
.es-footer__brand img { height: 36px; width: auto; background: var(--es-card); border-radius: 8px; padding: 4px; }
.es-footer__brand span { font-weight: 700; text-transform: uppercase; }
.es-footer__tag { margin: 8px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.8; }
.es-footer__about { margin: 12px 0 0; font-size: 14px; opacity: 0.9; }
.es-footer h4 { margin: 0; font-size: 16px; font-weight: 700; text-transform: uppercase; }
.es-footer ul { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; opacity: 0.9; }
.es-footer li { margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.es-footer li .es-icon { width: 16px; height: 16px; }
.es-footer a:hover { text-decoration: underline; }
.es-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.2); background: var(--es-navy);
  padding: 16px 20px 96px; text-align: center; font-size: 12px; color: var(--es-white);
}

/* ============ Floating WhatsApp button ============ */
.es-wa-fab {
  position: fixed; bottom: 20px; right: 16px; z-index: 60;
  display: flex; align-items: center; gap: 8px;
  background: var(--es-wa); color: var(--es-wa-ink);
  border-radius: 999px; padding: 12px 16px; box-shadow: var(--es-shadow);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  transition: opacity 0.2s ease;
}
.es-wa-fab:hover { opacity: 0.9; }
.es-wa-fab .es-icon { width: 24px; height: 24px; }

/* ============ Generic page (fallback templates) ============ */
.es-page { padding-top: 64px; padding-bottom: 64px; }
.es-page h1, .es-page h2 { color: var(--es-navy); text-transform: uppercase; }
.es-page a { color: var(--es-red); text-decoration: underline; }

/* ============ Responsive ============ */
@media (min-width: 640px) {
  .es-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .es-wa-fab { right: 24px; font-size: 14px; }
}
@media (min-width: 768px) {
  .es-hero__inner { padding-top: 112px; padding-bottom: 112px; }
  .es-hero h1 { font-size: 48px; }
  .es-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .es-stats { grid-template-columns: repeat(4, 1fr); }
  .es-about { grid-template-columns: repeat(2, 1fr); align-items: center; }
  .es-contact { grid-template-columns: repeat(2, 1fr); }
  .es-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .es-section__head h2, .es-about h2, .es-contact h2, .es-cta h2 { font-size: 30px; }
}
@media (min-width: 1024px) {
  .es-menu-toggle { display: none; }
  .es-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .es-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) {
  .es-menu-toggle { display: block; }
  .es-nav { display: none; flex-direction: column; align-items: flex-start; gap: 12px; }
  .es-nav.is-open { display: flex; }
  .es-nav__sep { display: none; }
  .es-nav__ctas { margin-left: 0; margin-top: 12px; }
}
@media (max-width: 767px) {
  .es-hero__box { background: rgba(249, 246, 242, 0.8); border-radius: var(--es-radius); padding: 20px; }
  .es-grid--3 { grid-template-columns: 1fr; }
}
