/* ============================================================
   EDUSOFTWARE.co.uk – Shared Stylesheet
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --navy:       #0b1628;
  --navy-mid:   #122040;
  --navy-light: #1a3060;
  --amber:      #f59e0b;
  --amber-light:#fcd34d;
  --steel:      #94a3b8;
  --steel-light:#cbd5e1;
  --white:      #ffffff;
  --off-white:  #f8fafc;
  --border:     rgba(255,255,255,0.08);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Source Serif 4', Georgia, serif;

  --radius: 4px;
  --transition: 0.25s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.logo span { color: var(--amber); }
.logo em { font-style: normal; color: var(--steel); font-size: 0.85em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--steel-light);
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--amber); }

/* Dropdown */
.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 210px;
  padding: 0.5rem 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  color: var(--steel-light);
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover {
  background: var(--navy-light);
  color: var(--amber);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  border-color: var(--amber);
}
.btn-primary:hover {
  background: var(--amber-light);
  border-color: var(--amber-light);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.btn-light {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-light:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
}
.btn-outline {
  background: transparent;
  color: var(--amber);
  border-color: var(--amber);
}
.btn-outline:hover {
  background: var(--amber);
  color: var(--navy);
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-top: 68px;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(26,48,96,0.6) 0%, transparent 70%),
    linear-gradient(160deg, #0b1628 0%, #0d1f3c 50%, #091220 100%);
  overflow: hidden;
}

/* subtle grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  position: relative;
}
.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 2px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
  width: fit-content;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--amber); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--steel-light);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Stat strip */
.hero-stat-strip {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 3rem;
  flex: 1;
}
.stat strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--amber);
  letter-spacing: 0.03em;
}
.stat span {
  font-size: 0.85rem;
  color: var(--steel);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Section Shared ──────────────────────────────────────────── */
.section { padding: 6rem 0; }
.section-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

/* ── Products Section ────────────────────────────────────────── */
.products-section {
  background: var(--off-white);
  color: var(--navy);
}
.products-section .section-label { color: var(--navy-light); }
.products-section .section-title { color: var(--navy); }
.products-section h2 { margin-bottom: 3rem; }

.product-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.product-card--guard {
  background: var(--navy);
  color: var(--white);
}
.product-card--messenger {
  background: var(--navy-mid);
  color: var(--white);
}
.product-card:hover {
  border-color: var(--amber);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.card-icon {
  width: 52px;
  height: 52px;
  color: var(--amber);
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 100%; height: 100%; }
.card-tag {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.product-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.product-card p {
  font-size: 0.98rem;
  color: var(--steel-light);
  line-height: 1.7;
  flex: 1;
}
.card-cta {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

/* ── Why Section ─────────────────────────────────────────────── */
.why-section { background: var(--navy-mid); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.why-text p {
  color: var(--steel-light);
  font-size: 1.05rem;
  line-height: 1.8;
}
.why-features {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.feature {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.feature-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: rgba(245,158,11,0.25);
  line-height: 1;
  min-width: 40px;
  margin-top: 0.15rem;
}
.feature h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--white);
}
.feature p {
  font-size: 0.93rem;
  color: var(--steel);
  line-height: 1.65;
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  background: var(--amber);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: rgba(11,22,40,0.7);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ── Page Hero (inner pages) ─────────────────────────────────── */
.page-hero {
  padding: 9rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(26,48,96,0.7) 0%, transparent 60%),
    linear-gradient(160deg, #0b1628 0%, #0d1f3c 100%);
  position: relative;
  overflow: hidden;
}
.page-hero .hero-grid-overlay { opacity: 0.5; }
.page-hero .container { position: relative; }
.page-hero .hero-badge { margin-bottom: 1rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero h1 span { color: var(--amber); }
.page-hero .page-hero-sub {
  font-size: 1.1rem;
  color: var(--steel-light);
  max-width: 500px;
  margin-bottom: 2rem;
}

/* ── Product Page ────────────────────────────────────────────── */
.product-detail { background: var(--off-white); color: var(--navy); }
.product-detail .section-label { color: var(--navy-light); }
.product-detail .section-title { color: var(--navy); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.feat-item {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 2rem;
  transition: box-shadow 0.25s;
}
.feat-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.feat-icon {
  width: 40px;
  height: 40px;
  color: var(--amber);
  margin-bottom: 1rem;
}
.feat-icon svg { width: 100%; height: 100%; }
.feat-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.feat-item p {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
}

/* Product description block */
.product-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.product-overview-text p {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}
.product-overview-visual {
  background: var(--navy);
  border-radius: 8px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.product-overview-visual .big-icon {
  width: 90px;
  height: 90px;
  color: var(--amber);
  margin: 0 auto 1.5rem;
}
.product-overview-visual .big-icon svg { width: 100%; height: 100%; }
.product-overview-visual h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.product-overview-visual p {
  color: var(--steel);
  font-size: 0.92rem;
}

/* ── Contact Form ────────────────────────────────────────────── */
.contact-section { background: var(--off-white); color: var(--navy); padding: 6rem 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--navy);
}
.contact-info p {
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #334155;
}
.contact-detail svg {
  width: 20px;
  height: 20px;
  color: var(--amber);
  flex-shrink: 0;
}

/* Form */
.enquiry-form {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2.5rem;
}
.enquiry-form h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--amber);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--navy);
  background: var(--off-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { margin-top: 0.5rem; }
.form-submit .btn { width: 100%; text-align: center; justify-content: center; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #16a34a;
}
.form-success svg { width: 48px; height: 48px; margin: 0 auto 1rem; }
.form-success h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  color: var(--steel);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 220px;
  line-height: 1.65;
}
.footer-links h5,
.footer-contact h5 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a,
.footer-contact p,
.footer-contact a {
  font-size: 0.9rem;
  color: var(--steel);
  transition: color var(--transition);
}
.footer-links ul li a:hover,
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--steel);
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .product-cards,
  .why-inner,
  .product-overview,
  .contact-grid,
  .footer-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stat-strip { flex-direction: column; gap: 1.5rem; }
  .stat-divider { width: 80px; height: 1px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy-mid); padding: 1.5rem 2rem; gap: 1.25rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .has-dropdown .dropdown { position: static; display: block; background: transparent; border: none; box-shadow: none; padding: 0.5rem 0 0 1rem; }
  .has-dropdown .dropdown li a { padding: 0.4rem 0; }
  .features-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 5rem); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
