/*
 E&A Group — Minimal formal theme
 Focus: clarity, readability, high contrast, accessible sizing
*/

:root {
  /* Light theme palette (keeps brand blue) */
  --bg: #f7f9fc;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --text: #0b132b;
  --muted: #43506b;
  --primary: #4aa3ff;
  --primary-contrast: #071222;
  --accent: #ffb703; /* warm accent for focus, pills */
  --ok: #199473;
  --border: #e5ecf6;
  --shadow: rgba(17, 24, 39, 0.06);
  --maxw: 1120px;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, #dbeafe70, transparent 60%),
    radial-gradient(800px 500px at 110% 0%, #e9d5ff50, transparent 60%),
    var(--bg);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto; height: auto; padding: 8px 12px;
  background: var(--accent);
  color: #1b1200;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.1) blur(8px);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.7) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2a5aff, #6fb1ff);
  color: white;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.brand-text { font-weight: 700; font-size: 18px; opacity: 0.95; }

.site-nav { display: flex; gap: 18px; align-items: center; }
.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
.site-nav a:hover { background: #eef2ff; }
/* Mobile/iPad navigation handling */
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; gap: 8px; }
  .site-nav { width: 100%; justify-content: flex-start; overflow-x: auto; gap: 12px; padding: 0 0 6px; }
  .site-nav a { white-space: nowrap; font-size: 14px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; text-decoration: none; cursor: pointer;
  padding: 12px 16px; border-radius: 12px; font-weight: 600;
  border: 1px solid transparent; transition: 0.15s ease;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border-color: var(--border); background: #ffffff; }
.btn-ghost:hover { background: #f3f4f6; }
.btn-sm { padding: 8px 12px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(600px 300px at 8% -6%, #dbeafe90, transparent 70%),
    radial-gradient(900px 360px at 120% -20%, #e0e7ff80, transparent 70%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { text-align: left; }
.hero h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
}
.lead { font-size: clamp(16px, 2.3vw, 20px); color: var(--muted); max-width: 900px; }
.hero-ctas { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 48px 0; }
.why { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.services { border-bottom: 1px solid var(--border); }
.products { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.method { border-bottom: 1px solid var(--border); }
.contact { background: linear-gradient(180deg, #ffffff, #f7f9fc); }

h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 16px; }
h3 { font-size: 18px; margin: 0 0 8px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.features li, .card, .cards .card-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 2px var(--shadow);
}
.features p { color: var(--muted); }

.cards .card { position: relative; }
.cards .card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%; }
.cards .card-link:hover { box-shadow: 0 4px 16px var(--shadow); transform: translateY(-1px); transition: 0.15s ease; }
.card-items { list-style: none; padding: 0; margin: 8px 0 12px; color: var(--muted); font-size: 14px; }
.card-items li { display: flex; gap: 8px; align-items: flex-start; }
.card-items li::before { content: "•"; color: #94a3b8; line-height: 1; }
.more-cta { margin-top: auto; align-self: flex-start; }
.pill {
  position: absolute; top: 12px; right: 12px;
  background: var(--accent); color: #1b1200; font-weight: 700;
  padding: 4px 8px; border-radius: 999px; font-size: 12px;
}
.soon { outline: 1px dashed #ffd36e66; }

.list-check { padding-left: 0; }
.list-check li { list-style: none; padding-left: 26px; position: relative; }
.list-check li::before {
  content: "✓"; position: absolute; left: 0; top: 0; line-height: 1; color: var(--ok);
}

/* Contact */
.contact-inner { text-align: center; }
.contact-ctas { margin-top: 14px; display: inline-flex; gap: 12px; flex-wrap: wrap; }
/* Contact card */
.contact-card {
  margin: 16px auto 6px;
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px var(--shadow);
  padding: 16px 18px;
}
.contact-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 10px;
}
.contact-label {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.contact-value {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-weight: 700;
  font-size: clamp(18px, 3.2vw, 22px);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--primary-contrast);
  background: #f3f6ff;
}
.contact-value.email { background: #eef6ff; }
.contact-value.phone { background: #f5fff9; }
@media (max-width: 520px) {
  .contact-item { grid-template-columns: 1fr; }
  .contact-label { margin-bottom: -2px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-line { display: inline-flex; align-items: center; gap: 8px; margin: 0; }

/* Links */
a { color: #1a73e8; }
a:hover { color: #0b63d1; }

/* High-contrast focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Print basics */
@media print {
  .site-header, .site-footer, .hero-ctas, .contact-ctas { display: none !important; }
  body { background: white; color: black; }
}

/* Calendar component */
.calendar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px var(--shadow);
  overflow: hidden;
}
.calendar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.calendar-header h3 { margin: 0; font-size: 16px; }
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  padding: 12px; align-items: stretch;
}
.calendar-weekday { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; }
.day {
  min-height: 72px; background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 8px; position: relative; display: flex; flex-direction: column; gap: 6px;
}
.day .date { font-size: 12px; color: var(--muted); }

/* Responsive fine‑tuning for small devices */
@media (max-width: 420px) {
  .hero { padding: 44px 0 32px; }
  .btn { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .features li, .cards .card-link { padding: 16px; }
}

/* iPad landscape tweaks */
@media (min-width: 721px) and (max-width: 1024px) {
  :root { --maxw: 980px; }
  .grid { gap: 18px; }
}
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 6px; border-radius: 999px; width: fit-content; }
.chip.leave { background: #e0f2fe; color: #075985; }
.chip.shift { background: #e7f5e9; color: #166534; }
.chip.rol { background: #fff0e1; color: #8a3b00; }
.legend { display: flex; gap: 8px; padding: 8px 12px 12px; flex-wrap: wrap; }
.legend .chip { border: 1px solid var(--border); }
@media (max-width: 520px) {
  .day { min-height: 56px; padding: 6px; }
  .calendar-grid { gap: 4px; padding: 8px; }
}

/* Demo illustration card */
.demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px var(--shadow);
  padding: 12px;
}
.demo svg { width: 100%; height: auto; display: block; }
.demo-caption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; }
