/* ============================================================
   NEW HORIZONS TECHNOLOGIES — Main Stylesheet
   newhorizonstechnologies.co.uk
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a1628;
  --navy-mid:   #0f2044;
  --blue:       #1a56db;
  --blue-light: #3b82f6;
  --blue-pale:  #eff6ff;
  --accent:     #06b6d4;
  --gold:       #f59e0b;
  --text:       #1e293b;
  --text-muted: #64748b;
  --white:      #ffffff;
  --border:     #e2e8f0;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(10,22,40,.10);
  --shadow-lg:  0 12px 48px rgba(10,22,40,.18);
  --transition: .25s ease;
  --max-w:      1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Utilities ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.section-header p  { color: var(--text-muted); font-size: 1.05rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--blue-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary  { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #1648c0; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,.35); }
.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn-white    { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--blue-pale); transform: translateY(-1px); }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,22,40,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background var(--transition);
}
.site-header.scrolled { background: rgba(10,22,40,.98); }
.nav-container {
  display: flex; align-items: center; gap: 32px;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1rem; color: var(--white);
  flex-shrink: 0;
}
.logo-icon { color: var(--accent); font-size: 1.3rem; }
.logo-accent { color: var(--accent); }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); background: rgba(255,255,255,.08); }
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  min-width: 280px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block; padding: 10px 14px;
  border-radius: 6px; font-size: .88rem;
  color: rgba(255,255,255,.75);
}
.dropdown li a:hover { background: rgba(255,255,255,.08); color: var(--white); }
.nav-cta { margin-left: 8px; padding: 9px 20px; font-size: .88rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.07) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .25;
}
.hero-orb-1 { width: 600px; height: 600px; background: var(--blue); top: -200px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--accent); bottom: -100px; left: -100px; }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.3);
  color: var(--blue-light);
  font-size: .82rem; font-weight: 600;
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 620px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ---------- Services Section ---------- */
.services-section { padding: 100px 0; background: #f8fafc; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
  cursor: pointer;
}
.service-card:hover {
  border-color: var(--blue-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
  padding: 12px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-card p  { color: var(--text-muted); font-size: .93rem; flex: 1; }
.card-link { display: inline-block; margin-top: 20px; color: var(--blue); font-weight: 600; font-size: .9rem; }
.service-card:hover .card-link { color: var(--accent); }

/* ---------- Why Section ---------- */
.why-section { padding: 100px 0; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-img-wrap { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.why-img-wrap img, .img-placeholder { width: 100%; border-radius: 16px; }
.img-placeholder { display: flex; align-items: center; justify-content: center; background: var(--navy); }
.img-placeholder svg { width: 100%; height: auto; }
.why-badge-float {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--white);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  color: var(--navy);
}
.why-badge-float span { color: #16a34a; }
.why-content h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.why-content p  { color: var(--text-muted); margin-bottom: 28px; }
.why-list { margin-bottom: 36px; display: flex; flex-direction: column; gap: 12px; }
.why-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; }
.check { color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2d6b 100%);
  padding: 80px 0;
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--white); margin-bottom: 16px; }
.cta-inner p  { color: rgba(255,255,255,.7); font-size: 1.05rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr 1.5fr; gap: 48px; padding-bottom: 56px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-url { color: var(--accent); font-size: .85rem; margin-top: 8px; }
.footer-links h4, .footer-contact h4 { color: var(--white); font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-contact p { font-size: .88rem; margin-bottom: 8px; }
.footer-contact a { color: var(--accent); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: var(--navy);
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero-bg .hero-grid {
  background-image:
    linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  position: absolute; inset: 0;
}
.page-hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .2;
  width: 500px; height: 500px;
  background: var(--blue);
  top: -150px; right: -100px;
}
.page-hero-content { position: relative; z-index: 1; max-width: 720px; }
.page-hero-content .section-tag { margin-bottom: 16px; }
.page-hero-content h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: var(--white); margin-bottom: 20px; line-height: 1.2; }
.page-hero-content p  { font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 600px; }

/* ---------- Service Page Layout ---------- */
.service-page { padding: 80px 0; }
.service-page-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.service-page-grid.reverse { direction: rtl; }
.service-page-grid.reverse > * { direction: ltr; }
.service-img-wrap { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.service-img-wrap svg, .service-img-wrap img { width: 100%; height: auto; display: block; }
.service-body h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.service-body p  { color: var(--text-muted); margin-bottom: 20px; line-height: 1.8; }
.service-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin: 28px 0 12px; }
.capability-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.capability-list li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; color: var(--text); }
.capability-list li::before { content: "▸"; color: var(--blue); flex-shrink: 0; margin-top: 2px; }

/* ---------- About Page ---------- */
.about-intro { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-values { padding: 80px 0; background: #f8fafc; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.value-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.value-card .vi { font-size: 2rem; margin-bottom: 14px; }
.value-card h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.value-card p  { font-size: .9rem; color: var(--text-muted); }

/* ---------- Contact Page ---------- */
.contact-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 72px; }
.contact-info h2 { font-size: 1.8rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.contact-info p  { color: var(--text-muted); margin-bottom: 32px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.contact-detail-icon { width: 44px; height: 44px; background: var(--blue-pale); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; font-size: 1.1rem; }
.contact-detail-text strong { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-detail-text span, .contact-detail-text a { font-size: .95rem; color: var(--text); }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit; font-size: .95rem;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; padding: 14px; font-size: 1rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 16px 0; font-size: .85rem; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .service-page-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-page-grid.reverse { direction: ltr; }
}
@media (max-width: 768px) {
  .main-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    padding: 32px 24px;
    overflow-y: auto;
  }
  .main-nav.open > ul { flex-direction: column; gap: 0; }
  .main-nav.open > ul > li > a { font-size: 1.1rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .dropdown { display: none !important; }
  .hero-stats { gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
}

/* ---------- SVG Logo image ---------- */
.logo-img {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}
.logo-img img {
  height: 44px;
  width: auto;
  display: block;
}
/* Footer logo is slightly smaller */
.site-footer .logo-img img {
  height: 38px;
}
