/* ========================================
   Halprin Consulting | Modern Stylesheet
   ======================================== */

@font-face {
  font-family: 'Geometric415';
  src: url('../assets/Fonts/geometric-415-lite-bt.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  size-adjust: 98%;
}

/* ── CSS Custom Properties ── */
:root {
  --brown: #996a36;
  --brown-light: #b8844a;
  --brown-dark: #7a5428;
  --blue: #004990;
  --blue-mid: #003366;
  --blue-light: #005bb5;
  --blue-bright: #0066cc;
  --white: #ffffff;
  --off-white: #f4f6fb;
  --grey: #8a96b0;
  --text: #2c3248;
  --text-light: #6b7280;
  --bg-dark: #051a33;
  --bg-card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.1);
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Rajdhani', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-brand: 'Rajdhani', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 1rem;
  display: block;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-light {
  background: var(--off-white);
  color: var(--text);
}

.section-light .section-label {
  color: var(--blue);
}

.section-light h2 {
  color: var(--blue);
}

/* ── Navigation ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(247, 248, 252, 0.98);
  background-image: url('../assets/Circuit Board Background.jpg');
  background-size: auto 140%;
  background-position: center;
  background-repeat: repeat-x;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 73, 144, 0.12);
  transition: var(--transition);
}

.navbar.scrolled {
  background-color: rgba(247, 248, 252, 0.992);
  box-shadow: 0 6px 24px rgba(0, 37, 82, 0.12);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-brand);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--blue);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  white-space: nowrap;
  color: var(--blue);
}

.brand-suffix {
  color: var(--brown);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.98rem;
  font-weight: 500;
  color: rgba(0, 73, 144, 0.72);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brown);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  color: var(--blue) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: var(--transition);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(153, 106, 54, 0.28);
}

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

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #0c71c3;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232979ff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 34%, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.05) 18%, transparent 42%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  background: var(--brown);
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--brown-light);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-3d {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-3d::before {
  content: '';
  position: absolute;
  inset: 6%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 32%, transparent 68%);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-3d::after {
  content: '';
  position: absolute;
  inset: 14%;
  background: radial-gradient(ellipse at center, rgba(245,166,35,0.10) 0%, rgba(0,102,204,0.08) 38%, transparent 72%);
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

#logo-canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.hero-poster img {
  width: min(72%, 320px);
  height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.22));
}

#logo-canvas canvas {
  position: relative;
  z-index: 3;
}

.hero-3d.is-enhanced .hero-poster {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  color: var(--blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 166, 35, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--brown);
}

.btn-dark {
  background: var(--blue);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--blue);
}

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brown), var(--brown-light));
  transform: scaleX(0);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(245, 166, 35, 0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.section-light .card {
  background: var(--white);
  border-color: #dde3f0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.section-light .card h3 {
  color: var(--blue);
}

.section-light .card p {
  color: var(--text-light);
}

/* ── Stats ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--brown);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--grey);
  margin-top: 0.5rem;
}

/* ── Testimonials ── */
.testimonials-showcase {
  margin-top: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.testimonials-grid--rotating {
  transition: opacity 0.8s ease;
}

.testimonials-grid--rotating.is-fading {
  opacity: 0;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  min-height: 0;
  height: auto;
  align-self: start;
}

.testimonial::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--brown);
  opacity: 0.3;
  line-height: 1;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
}

.testimonial blockquote {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial .author {
  font-weight: 700;
  color: var(--white);
}

.testimonial .company {
  font-size: 0.875rem;
  color: var(--brown);
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-grid--rotating {
    transition: none;
  }
}

/* ── Industries ── */
.industries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.industry-tag {
  background: rgba(41, 121, 255, 0.15);
  border: 1px solid rgba(41, 121, 255, 0.3);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition);
}

.industry-tag:hover {
  background: rgba(41, 121, 255, 0.25);
  transform: translateY(-2px);
}

/* ── Contact Form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--grey);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brown);
  background: rgba(255,255,255,0.08);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item .icon {
  font-size: 1.5rem;
  color: var(--brown);
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--grey);
}

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 166, 35, 0.3);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card .date {
  font-size: 0.8rem;
  color: var(--brown);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--grey);
  line-height: 1.6;
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brown);
  transition: var(--transition);
}

.blog-card .read-more:hover {
  gap: 0.75rem;
}

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--brown-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--grey);
  font-size: 0.9rem;
  transition: var(--transition);
}

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

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

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--grey);
}

/* ── Scroll 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-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Toast Notifications ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--blue);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(46, 204, 113, 0.3);
  background: rgba(46, 204, 113, 0.1);
}

.toast.error {
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.1);
}

/* ── Loading Spinner ── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--brown);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--blue);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-3d {
    height: 350px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .navbar .container {
    position: relative;
    height: auto;
    min-height: 70px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .navbar {
    background-image: url('../assets/Circuit Board Background.jpg');
    background-size: auto 140%;
    background-position: center;
    background-repeat: repeat-x;
  }

  .nav-logo {
    gap: 0.5rem;
    font-size: 1.12rem;
    font-weight: 600;
    min-width: 0;
    max-width: calc(100% - 56px);
  }

  .hero-poster img {
    width: min(65%, 240px);
  }

  .nav-logo img {
    height: 34px;
    flex-shrink: 0;
  }

  .brand-name {
    font-size: 1.02rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-links {
    display: none;
    position: absolute;
    z-index: 1100;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    background: rgba(5, 26, 51, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    padding: 0.9rem;
    gap: 0.55rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    max-height: min(calc(100vh - 96px), 420px);
    overflow-y: auto;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a,
  .nav-links .nav-cta {
    display: block;
    width: 100%;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
  }

  .nav-links li {
    width: 100%;
    list-style: none;
  }

  .nav-links a {
    color: rgba(255,255,255,0.9);
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(255,255,255,0.08);
    color: var(--white);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    justify-content: center;
    padding: 0.8rem 1.2rem;
    margin-top: 0.25rem;
  }

  #about > .container > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    align-items: stretch !important;
  }

  #about > .container > div > div {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #about .reveal:first-child {
    max-width: 100%;
  }

  #about .reveal:last-child {
    padding: 1.5rem !important;
  }

  #about .reveal:last-child > div {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  #about h2 {
    line-height: 1.1;
  }

  #about p {
    max-width: none !important;
    font-size: 1rem;
    word-break: normal;
    overflow-wrap: break-word;
  }

  #about .industries-list {
    gap: 0.6rem;
  }

  #about .industry-tag {
    padding: 0.45rem 0.9rem;
  }
  
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0, 73, 144, 0.08);
    border: 1px solid rgba(0, 73, 144, 0.16);
    position: relative;
    z-index: 1200;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 3rem;
  }

  .hero .container {
    gap: 2rem;
  }

  .hero-3d {
    height: 280px;
    order: -1;
  }

  .hero-content {
    text-align: left;
  }

  .hero-tag {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
    margin-bottom: 2rem;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-grid > :first-child .nav-logo {
    justify-content: center;
  }

  .footer-grid > :nth-child(2) {
    text-align: left;
  }

  .footer-grid > :nth-child(3) {
    text-align: right;
    justify-self: end;
  }

  .footer h4 {
    margin-bottom: 0.85rem;
  }

  .footer-links li {
    margin-bottom: 0.55rem;
  }

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

  .footer-bottom > div {
    margin-bottom: 0.5rem !important;
  }
  
  .section {
    padding: 3rem 0;
  }

  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: 2fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: 1fr 1fr"] {
    gap: 1.25rem !important;
  }

  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: 2fr 1fr 1fr 1fr"] {
    gap: 1.5rem !important;
  }

  [style*="display: flex; align-items: center; justify-content: center; gap: 1rem;"] {
    flex-direction: column !important;
    text-align: center !important;
  }

  .contact-item {
    gap: 0.75rem;
  }

  .contact-item .icon {
    margin-top: 0.1rem;
  }

  .footer .nav-logo {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.1rem;
  }

  .footer-grid > :first-child,
  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
  
  .footer {
    padding: 2.5rem 0 1.75rem;
  }

  .footer .nav-logo {
    justify-content: flex-start;
  }

  .footer-brand p {
    line-height: 1.55;
  }

  .footer-bottom {
    padding-top: 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero p {
    font-size: 1rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }

  .container {
    width: 100%;
    padding: 0 0.9rem;
  }

  .card,
  .blog-card,
  .testimonial,
  .article-card {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .card,
  .blog-card,
  .testimonial,
  .article-card,
  .form-input,
  .form-textarea,
  .btn {
    border-radius: 10px;
  }

  .blog-card-image {
    height: 160px;
  }

  .contact-grid form {
    padding: 1.25rem !important;
  }

  .footer {
    padding: 3rem 0 2rem;
  }

  .footer-bottom > div {
    width: 100%;
  }

  .article-card {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}
