/* ============================================
   JOHNPENIEL COMMUNICATIONS LTD
   Modern One-Page Website Styles
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
  --primary: #0b1120;
  --secondary: #1a2540;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-2: #0ea5e9;
  --accent-light: rgba(37, 99, 235, 0.10);
  --accent-glow: rgba(37, 99, 235, 0.25);
  --light: #f7f9fc;
  --light-2: #eef2f7;
  --muted: #5e6e82;
  --border: #e0e6ed;
  --white: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  --shadow-sm: 0 2px 8px rgba(11, 17, 32, 0.05);
  --shadow-md: 0 8px 24px rgba(11, 17, 32, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 17, 32, 0.12);
  --shadow-accent: 0 8px 30px rgba(37, 99, 235, 0.20);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --max: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--light);
  color: var(--primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

ul {
  list-style: none;
}

/* --- Utility --- */
.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font);
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.35);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.30);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.50);
  transform: translateY(-2px);
}

/* --- Header / Navigation --- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(224, 230, 237, 0.6);
  transition: all var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 46px;
  width: auto;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-links .btn-primary {
  margin-left: 8px;
  padding: 10px 22px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
  padding: 6px;
  border-radius: 10px;
  transition: all var(--transition);
}

.menu-toggle:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: var(--primary);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.92) 0%, rgba(29, 78, 216, 0.80) 50%, rgba(14, 165, 233, 0.75) 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(37, 99, 235, 0.15);
  top: -100px;
  left: -150px;
}

.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(14, 165, 233, 0.12);
  bottom: -80px;
  right: -100px;
  animation-delay: 4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 22px;
  font-weight: 900;
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #60a5fa, #38bdf8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.hero-subtitle {
  font-size: 1.1rem;
  max-width: 580px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  padding: 18px 16px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all var(--transition);
}

.stat:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
  font-weight: 800;
}

.stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Hero Card */
.hero-card {
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 36px;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(37, 99, 235, 0.12);
  margin-top: 10px;
}

.hero-card-img {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card h3 {
  margin-bottom: 18px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.hero-card ul {
  display: grid;
  gap: 14px;
}

.hero-card li {
  padding-left: 32px;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}

.hero-card li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 1px;
  color: #86efac;
  font-weight: 900;
  font-size: 1.05rem;
}

/* --- Section Shared --- */
section {
  padding: 90px 0;
}

.section-head {
  max-width: 700px;
  margin-bottom: 48px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-head .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 2px;
  margin-bottom: 10px;
  padding: 6px 14px;
  background: var(--accent-light);
  border-radius: var(--radius-full);
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 14px 0 16px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 320px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.4), transparent);
  pointer-events: none;
}

.about-cards {
  display: grid;
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Services Section --- */
#services {
  background: var(--light-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.15);
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent-light), rgba(14, 165, 233, 0.12));
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  transition: all var(--transition);
}

.service-card:hover .icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary);
}

.service-card p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 0.93rem;
  line-height: 1.65;
}

.service-card ul {
  display: grid;
  gap: 8px;
}

.service-card li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 18px;
  position: relative;
}

.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Services Image Banner */
.services-image-banner {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  position: relative;
}

.services-image-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-image-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(14, 165, 233, 0.10));
  pointer-events: none;
}

/* --- CTA Section --- */
.cta-section {
  padding: 90px 0;
}

.cta {
  background: linear-gradient(135deg, var(--primary), #1d4ed8 60%, var(--accent-2));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  animation: ctaShimmer 10s ease-in-out infinite;
}

@keyframes ctaShimmer {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

.cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
  font-weight: 800;
  position: relative;
}

.cta p {
  max-width: 650px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
}

.cta .btn-primary {
  position: relative;
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cta .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

/* --- Why Us Section --- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.why-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 380px;
}

.why-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-image-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 17, 32, 0.3), rgba(37, 99, 235, 0.1));
  pointer-events: none;
}

.why-content {
  display: grid;
  gap: 24px;
}

.why-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.why-list li {
  padding-left: 32px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.why-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  font-weight: 800;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
}

/* --- Contact Section --- */
#contact {
  background: var(--light-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--light);
  border-radius: 12px;
  transition: all var(--transition);
}

.contact-detail:hover {
  background: var(--accent-light);
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.contact-detail-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 2px;
}

.contact-detail-text span,
.contact-detail-text a {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-detail-text a:hover {
  color: var(--accent);
}

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 0.93rem;
  outline: none;
  transition: all var(--transition);
  background: var(--light);
  color: var(--primary);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
  background: var(--white);
}

input::placeholder,
textarea::placeholder {
  color: #a0aec0;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 14px;
}

.form-submit .btn {
  min-width: 160px;
}

#formResponse {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  display: none;
}

#formResponse.show {
  display: block;
}

#formResponse.success {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

#formResponse.error {
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Spinner */
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.btn.loading .spinner {
  display: block;
}

.btn.loading .btn-text {
  opacity: 0.6;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Honeypot anti-spam */
.honeypot-field {
  position: absolute;
  left: -9999px;
}

/* --- Footer --- */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 3px;
  margin-top: 8px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col a:hover {
  color: var(--accent-2);
  transform: translateX(4px);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-contact .icon-sm {
  color: var(--accent-2);
  min-width: 16px;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent-2);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children animation */
.stagger-children .reveal {
  transition-delay: calc(var(--i, 0) * 0.1s);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: var(--shadow-accent);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero {
    padding: 70px 0 50px;
  }

  .hero h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 250px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: min(280px, 85vw);
    height: 100vh;
    background: var(--white);
    border-left: 1px solid var(--border);
    flex-direction: column;
    padding: 80px 28px 28px;
    gap: 6px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    border-radius: 10px;
  }

  .nav-links .btn-primary {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
  }

  .mobile-overlay.show {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle {
    display: block;
    z-index: 1002;
  }

  .cta {
    padding: 40px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .services-image-banner {
    height: 200px;
  }

  .why-image-card {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding: 50px 0 40px;
  }

  .card,
  .service-card,
  .contact-form-card {
    padding: 22px;
  }

  .cta {
    padding: 32px 20px;
  }

  .hero-card {
    padding: 24px;
  }
}

/* --- Print Styles --- */
@media print {
  header, .back-to-top, .hero-orb {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
