.hero-image,
.stacked-media img,
.service-card img:not(.service-icon img),
.grid-dark .grid-tile img,
.blog-thumb img,
.blog-single-thumb img {
  border-radius: 22px;
}



html, body {
  width: 100%;
  overflow-x: hidden;
}


/* ===============================
   Apple-accurate Navbar
================================ */

section,
.hero,
.hero-media,
.hero-image {
  position: relative;
  z-index: 1;
}

.nav-overlay { z-index: 9998; }



.apple-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 14px;
}

.apple-nav-icon {
  font-size: 1.2rem;
  color: #000;
}

.apple-nav-links {
  display: flex;
  gap: 26px;
}

.apple-nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: #1d1d1f;
  opacity: 0.88;
}

.apple-nav-links a:hover {
  opacity: 1;
}

.apple-nav-actions {
  display: flex;
  gap: 18px;
}

.nav-icon {
  font-size: 13px;
  cursor: pointer;
}

.apple-nav-icon img {
  height: 25px;      
  width: auto;
  max-height: 100%;
  display: block;
}



/* ===============================
   Apple-style Hero Section
================================ */

.hero {
  text-align: center;
  padding-top: 80px;
  padding-bottom: 100px;
}

.hero-light {
  background: #f5f5f7;
  color: #1d1d1f;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  margin-bottom: 6px;
}

.hero-meta {
  font-size: 1rem;
  color: #6e6e73;
  margin-bottom: 24px;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

.btn-primary,
.btn-secondary {
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.25s ease;
}

.btn-primary {
  background: #0071e3;
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
}

.btn-primary:hover {
  background: #005fcc; /* noticeable but still Apple-safe */
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}


.btn-secondary {
  border: 1px solid #005fcc;
  color: #005fcc;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
}
.btn-secondary:hover {
  background: rgba(0,95,204,0.12); 
  color: #004bb5;
  transform: translateY(-1px);
}

/* Media placeholder */
.hero-media {
  margin-top: 40px;
  height: 420px;
}

/* ===============================
   Apple-style Reveal Animations
================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

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

/* Stagger delays */
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transitionn-delay: 0.6s; }


/* ===============================
   Hero Media System
================================ */

.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  max-width: 100%;
  height: auto;

  /* Apple-style visual discipline */
  transform: translateY(0);
  will-change: transform;
}

/* Desktop composition */
@media (min-width: 768px) {
  .hero-image {
    max-width: 720px;
  }
}

/* Large screens */
@media (min-width: 1200px) {
  .hero-image {
    max-width: 860px;
  }
}


/* ===============================
   Stacked Apple-style Section
================================ */

.stacked {
  padding: var(--section-padding) 0;
}

.stacked-dark {
  background: #101c32;
  color: #f5f5f7;
}

.stacked-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);

  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

/* Text */
.stacked-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}

.stacked-text p {
  color: #a1a1a6;
  max-width: 460px;
}

/* Link */
.stacked-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 1rem;
}

/* Media */
.stacked-media img {
  max-width: 100%;
  height: auto;
}

/* Desktop layout */
@media (min-width: 768px) {
  .stacked-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}


/* ===============================
   Apple-style Grid Section
================================ */

.grid-section {
  padding: var(--section-padding) 0;
}

.grid-light {
  background: #ffffff;
  color: #1d1d1f;
}

.grid-dark {
  background: #101c32;
  color: #f5f5f7;
}

.grid-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  gap: 32px;
}

/* Light grids (services, info blocks) */
.grid-light .grid-inner {
  grid-template-columns: repeat(3, 1fr);
}

/* Case studies / dark grids */
.grid-dark .grid-inner {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-dark .grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .grid-dark .grid-inner {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

/* Tiles */
.grid-tile {
  padding: var(--space-lg);
  background: var(--bg-muted);
}

.grid-tile h3 {
  font-size: 1.4rem;
  margin-bottom: var(--space-xs);
}

.grid-tile p {
  max-width: 420px;
}

.grid-dark .grid-tile {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 36px 32px;
  transition: transform 0.4s ease, background 0.4s ease;
}

.grid-dark .grid-tile::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.grid-dark .grid-tile:first-child h3 {
  font-size: 1.35rem;
}


.grid-dark .grid-tile:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.06);
}

.grid-dark .grid-tile h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.case-desc {
  margin-top: 14px;
  color: #a1a1a6;
  line-height: 1.55;
}

.case-result {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #f5f5f7;
  opacity: 0.85;
}


/* ===============================
   Case Studies Refinement
================================ */

.grid-dark .section-header {
  max-width: 700px;
  margin-bottom: 72px;
  text-align: center;
}

.grid-dark .section-header h2 {
  color: #f5f5f7;
}

.grid-dark .section-header p {
  color: #a1a1a6;
}

.case-desc {
  margin-top: 12px;
  color: #a1a1a6;
  line-height: 1.5;
}

.case-result {
  margin-top: 18px;
  font-weight: 500;
  color: #f5f5f7;
  font-size: 0.95rem;
}



/* ===============================
   Full-width Band
================================ */

.band {
  padding: calc(var(--section-padding) * 0.8) 0;
  text-align: center;
}

.band-dark {
  background: #101c32;
  color: #f5f5f7;
}

.band-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.band-inner p {
  color: #a1a1a6;
}

.band-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 1rem;
}

.stacked-light { background:#fff; color:#1d1d1f; }
.stacked-inner.reverse { direction: rtl; }
.stacked-inner.reverse > * { direction: ltr; }
.hero-dark { background:#000; color:#f5f5f7; }
.hero-dark .hero-subtitle { color:#d2d2d7; }
.grid-dark { background:#101c32; color:#f5f5f7; }
.grid-dark p { color:#a1a1a6; }
.band-light { background:#fff; color:#1d1d1f; }
.apple-footer { background:#f5f5f7; padding:40px 0; font-size:12px; }
.footer-inner { max-width:1200px; margin:0 auto; padding:0 var(--space-md); }
.footer-cols { display:grid; gap:24px; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); }
.apple-footer h4 { font-size:12px; margin-bottom:8px; color:#1d1d1f; }
.apple-footer a { display:block; color:#6e6e73; margin:4px 0; }
.footer-note { margin-top:24px; color:#6e6e73; }


.product-nav{
  position:sticky; top:44px; z-index:900;
  background:#fff; border-bottom:1px solid #e5e5e5;
  height:48px; display:flex; align-items:center; gap:18px;
  padding:0 var(--space-md); font-size:12px;
}
.buy-btn{
  margin-left:auto; background:#0071e3; color:#fff;
  padding:6px 14px; border-radius:999px;
}
.parallax { will-change: transform; }


/* =====================================
   FIX: Vision / Belief section ONLY
===================================== */

.vision-grid .grid-inner {
  grid-template-columns: repeat(2, 1fr) !important;
  max-width: 900px;
  gap: 64px;
}

/* Mobile fallback */
@media (max-width: 768px) {
  .vision-grid .grid-inner {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }
}

/* =====================================
   FIX: What We Do grid ONLY
===================================== */

.what-we-do .grid-inner {
  grid-template-columns: repeat(1, 1fr);
  max-width: 1100px;
  gap: 40px;
}

@media (min-width: 768px) {
  .what-we-do .grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .what-we-do .grid-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===============================
   Section Header (Apple-style)
================================ */

.section-header {
  max-width: 700px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-header p {
  color: #6e6e73;
  font-size: 1.1rem;
}

/* What We Do – visual rhythm fix */
.what-we-do .grid-tile {
  background: #f5f5f7;
  padding: 48px 40px;
}

.what-we-do .grid-tile h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.what-we-do .grid-tile p {
  max-width: none;
}

/* ===============================
   Why Choose Us list
================================ */

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li {
  font-size: 1.05rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: #d2d2d7;
}

.why-list li:last-child {
  border-bottom: none;
}

/* ===============================
   Hero supporting text (Apple-style)
================================ */

.hero-description {
  font-size: 1rem;
  color: #6e6e73;
  margin-bottom: 6px;
}

.hero-tags {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #636366;
}

/* ===============================
   Services Section (Apple-style)
================================ */

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  gap: 48px;
}

.service-card {
  background: #f5f5f7;
  padding: 40px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}

.service-icon img {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  filter: grayscale(1);
}


.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  color: #6e6e73;
  margin-bottom: 14px;
  max-width: 340px;
}

.service-link {
  font-size: 0.95rem;
  color: #0071e3;
}

.service-link:hover {
  text-decoration: underline;
}

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

@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ===============================
   Technologies Section (Apple-style)
================================ */

.technologies-section .section-header {
  margin-bottom: 80px;
}

.tech-groups {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 64px;
}

.tech-group {
  align-self: start;
}

.tech-group h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #f5f5f7;
}

.tech-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.tech-logo {
  font-size: 0.95rem;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: #d2d2d7;
  background: transparent;
}

.tech-logo-img {
  width: 36px;
  height: auto;
  display: inline-block;
  opacity: 0.9;
  filter: invert(1);
}

@media (min-width: 768px) {
  .tech-groups {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 120px;
    row-gap: 72px;
  }
}




/* ===============================
   Process Section
================================ */

.process-steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.process-step:last-child {
  border-bottom: none;
}

.step-number {
  font-size: 0.9rem;
  font-weight: 500;
  color: #6e6e73;
  min-width: 32px;
}

.step-text {
  font-size: 1.05rem;
  color: #1d1d1f;
}

/* Desktop */
@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
  }

  .process-step {
    border-bottom: none;
  }
}

/* ===============================
   Testimonials (Apple Editorial)
================================ */

.testimonials-section {
  background: #f5f5f7;
  padding: var(--section-padding) 0;
}

.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.testimonials-grid {
  display: grid;
  gap: 64px;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 72px;
  }
}

.testimonial {
  max-width: 520px;
}

.testimonial blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #1d1d1f;
}

.testimonial figcaption {
  margin-top: 18px;
}

.testimonial figcaption strong {
  display: block;
  font-weight: 600;
  color: #1d1d1f;
}

.testimonial figcaption span {
  font-size: 0.9rem;
  color: #6e6e73;
}

.testimonials-footer {
  margin-top: 80px;
  text-align: center;
  color: #6e6e73;
  font-size: 1rem;
}


/* ===============================
   Final CTA + Contact (Apple)
================================ */

.contact-cta-section {
  background: #f5f5f7;
  padding: var(--section-padding) 0;
}

.contact-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.contact-grid {
  display: grid;
  gap: 64px;
  margin-top: 72px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }
}

/* Info side */
.contact-info h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: #6e6e73;
  max-width: 420px;
  margin-bottom: 24px;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.contact-details li {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.whatsapp-link {
  font-size: 0.95rem;
  color: #0071e3;
}

/* Form */
.contact-form {
  max-width: 420px;
}

.form-group {
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d2d2d7;
  padding: 12px 4px;
  font-size: 0.95rem;
  background: transparent;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0071e3;
}

.contact-form button {
  margin-top: 24px;
}

/* ===============================
   Apple-style Footer
================================ */

.apple-footer {
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 12px;
  padding: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 16px;
}

.footer-brand {
  max-width: 420px;
  margin-bottom: 32px;
}

.footer h4 {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}


.footer-brand p {
  color: #6e6e73;
  line-height: 1.4;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 20px;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-col a {
  display: block;
  margin: 6px 0;
  color: #6e6e73;
  text-decoration: none;
  opacity: 1;
}

.footer-col a:hover {
  color: #1d1d1f;
}

.footer a {
  font-size: 12px;
  color: #6e6e73;
}
.footer a:hover {
  text-decoration: underline;
}

.footer-divider {
  border-color: rgba(0,0,0,0.08);
}

.footer-cols {
  gap: 24px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.4;
  max-width: 240px;
  color: #6e6e73;
}

.apple-footer h4 {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.apple-footer a {
  font-size: 12px;
  color: #6e6e73;
}

.apple-footer a:hover {
  text-decoration: underline;
}

/* ===============================
   Apple-style Footer Bottom Bar (Final)
================================ */

.footer-bottom {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding: 10px 0;
  margin-top: 20px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  font-size: 12px;
  color: #6e6e73;
}

/* Left */
.footer-copy {
  white-space: nowrap;
}

/* Center */
.footer-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: #6e6e73;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Darker dividers (Apple-like) */
.footer-links span {
  color: #9a9a9a;
}

/* Right spacer (keeps center truly centered) */
.footer-spacer {
  width: 1px;
}

/* Mobile: Apple stacks neatly */
@media (max-width: 768px) {
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }

  .footer-links {
    justify-self: center;
  }

  .footer-spacer {
    display: none;
  }
}


/* ===============================
Home Page Done
================================ */


/* ===============================
   About Page – What We Do (Refined)
================================ */

.what-we-do {
  background: #ffffff;
}

.what-we-do .grid-inner {
  gap: 48px;
}

/* Card surface */
.what-we-do .grid-tile {
  background: #ffffff;
  border-radius: 20px;

  padding: 48px 44px;

  /* Apple-style separation */
  border: 1px solid rgba(0,0,0,0.08);

  transition:
    transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

/* Subtle elevation on hover (Apple-level) */
.what-we-do .grid-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
}

/* Title */
.what-we-do .grid-tile h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1d1d1f;
}

/* Body text */
.what-we-do .grid-tile p {
  font-size: 1rem;
  line-height: 1.5;
  color: #6e6e73;
}


/* Section rhythm enhancement */
.grid-section + .stacked,
.stacked + .grid-section,
.grid-section + .band {
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Vision / Belief emphasis */
.vision-grid .grid-tile {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fafafa 100%
  );
  border-radius: 18px;
  padding: 56px 48px;
}

/* Why Choose Us refinement */
.stacked-dark .why-list li {
  font-size: 1.05rem;
  padding: 14px 0;
  letter-spacing: 0.01em;
}


/* ===============================
   Services Page - Primary Cards
================================ */

.what-we-do {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #fafafa 100%
  );
}

.what-we-do .grid-inner {
  gap: 56px;
}

/* Service cards */
.what-we-do .grid-tile {
  background: #ffffff;
  border-radius: 22px;

  padding: 56px 48px;

  border: 1px solid rgba(0,0,0,0.1);

  transition:
    transform 0.45s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

/* Hover: confident, not flashy */
.what-we-do .grid-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0,0,0,0.12);
  border-color: rgba(0,0,0,0.14);
}

/* Titles */
.what-we-do .grid-tile h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #1d1d1f;
}

/* Primary text */
.what-we-do .grid-tile > p:first-of-type {
  font-size: 1.05rem;
  line-height: 1.55;
  color: #1d1d1f;
  margin-bottom: 18px;
}

/* Descriptor line */
.what-we-do .case-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6e6e73;
}

/* Services intro emphasis */
.stacked-dark h2 {
  max-width: 520px;
}

.stacked-dark p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Services intro emphasis */
.stacked-dark h2 {
  max-width: 520px;
}

.stacked-dark p {
  font-size: 1.05rem;
  line-height: 1.6;
}


/* Promise cards */
.grid-section:not(.what-we-do) .grid-tile {
  background: #ffffff;
  border-radius: 18px;
  padding: 44px 40px;

  border: 1px solid rgba(0,0,0,0.08);
}

/* Promise titles */
.grid-section:not(.what-we-do) .grid-tile h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
 

/* Section rhythm – Services */
.grid-section + .stacked,
.stacked + .grid-section {
  border-top: 1px solid rgba(0,0,0,0.06);
}


/* ===============================
   Our Promise – Single Line Fix
================================ */

.grid-section .grid-inner {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Slightly smaller cards */
.grid-section .grid-tile {
  padding: 32px 28px;
  border-radius: 16px;
}

/* Title size adjustment */
.grid-section .grid-tile h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Body text adjustment */
.grid-section .grid-tile p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6e6e73;
}

/* Section header tightening */
.grid-section .section-header {
  margin-bottom: 48px;
}

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

/* Mobile fallback */
@media (max-width: 640px) {
  .grid-section .grid-inner {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Our Promise – Single Line Fix
================================ */

.grid-section .grid-inner {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Slightly smaller cards */
.grid-section .grid-tile {
  padding: 32px 28px;
  border-radius: 16px;
}

/* Title size adjustment */
.grid-section .grid-tile h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Body text adjustment */
.grid-section .grid-tile p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6e6e73;
}

/* Section header tightening */
.grid-section .section-header {
  margin-bottom: 48px;
}

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

/* Mobile fallback */
@media (max-width: 640px) {
  .grid-section .grid-inner {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   Developers – Core Capabilities
================================ */

.what-we-do .grid-tile {
  background: #ffffff;
  border-radius: 20px;
  padding: 44px 40px;
  border: 1px solid var(--card-border);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.what-we-do .grid-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.08);
  border-color: rgba(29,78,216,0.25);
}

.what-we-do .grid-tile h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.what-we-do .grid-tile p {
  font-size: 1rem;
  color: #6e6e73;
  line-height: 1.55;
}

/* ===============================
   Developers – Team Cards
================================ */

.grid-dark .grid-tile {
  background: rgba(255,255,255,0.04);
  border-radius: 22px;
  padding: 36px 32px;
  position: relative;
  transition:
    transform 0.35s ease,
    background 0.35s ease;
}

.grid-dark .grid-tile:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.08);
}

.grid-dark .grid-tile h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.grid-dark .grid-tile::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--accent-dev);
  display: block;
  margin-bottom: 18px;
  border-radius: 999px;
  opacity: 0.85;
}

/* ===============================
   Developers – Section Headers
================================ */

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.1rem;
  color: #6e6e73;
  max-width: 520px;
  margin: 0 auto;
}

/* ===============================
   Tech Stack – Visual Weight
================================ */

.stacked-dark .why-list li {
  padding: 14px 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #d2d2d7;
}

.stacked-dark .why-list strong {
  color: #ffffff;
  font-weight: 500;
}


/* ===============================
   FIX: Developer name visibility
================================ */

.grid-dark .grid-tile {
  color: #1d1d1f; /* base text */
}

/* Name */
.grid-dark .grid-tile h3 {
  color: #1d1d1f;
}

/* Description text */
.grid-dark .grid-tile .case-desc {
  color: #6e6e73;
}

/* ===============================
   Pricing Section (Apple-style)
================================ */

.pricing-section {
  background: #f5f5f7;
  padding: var(--section-padding) 0;
}

.pricing-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);

  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 32px;
  text-align: left;

  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0,0,0,0.1);
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 6px;
}

.pricing-desc {
  color: #6e6e73;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-meta {
  font-size: 0.85rem;
  color: #6e6e73;
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-card li {
  padding: 8px 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pricing-card li:last-child {
  border-bottom: none;
}

/* Featured plan */
.pricing-card.featured {
  background: #101c32;
  color: #ffffff;
}

.pricing-card.featured .pricing-desc,
.pricing-card.featured .pricing-meta {
  color: #d2d2d7;
}

.pricing-card.featured li {
  border-color: rgba(255,255,255,0.15);
}

.pricing-note {
  margin-top: 32px;
  text-align: center;
  font-size: 0.9rem;
  color: #6e6e73;
}


.pricing-mini {
  background: #ffffff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.06);
}

.pricing-mini strong {
  display: block;
  margin-top: 12px;
  font-size: 1.1rem;
}

/* ===============================
   CONTACT PAGE – FINAL LAYOUT
================================ */

.contact-split-section {
  background: #f5f5f7;
  padding: 96px 0;
}

.contact-split-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

/* MAP */
.contact-map {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}

.contact-map iframe {
  width: 100%;
  height: 460px;
  border: none;
  display: block;
}

/* FORM CARD */
.contact-form-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 42px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.12);
}

.contact-form-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.form-subtext {
  color: #6e6e73;
  margin-bottom: 28px;
}

/* INPUTS */
.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #d2d2d7;
  padding: 14px 6px;
  font-size: 0.95rem;
  margin-bottom: 22px;
  outline: none;
  background: transparent;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: #0071e3;
}

/* BUTTON */
.contact-form-card .btn-primary {
  margin-top: 6px;
}

/* CONTACT LIST */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.contact-list li {
  margin-bottom: 18px;
}

.contact-list span {
  display: block;
  font-size: 0.85rem;
  color: #a1a1a6;
}

.contact-list strong {
  font-size: 1rem;
  font-weight: 500;
  color: #f5f5f7;
}

/* MOBILE */
@media (max-width: 900px) {
  .contact-split-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-map iframe {
    height: 360px;
  }
}

/* =============================== 
    Patch Work
================================ */

/* ===============================
   FIX: What We Do – 3 x grid
================================ */

.what-we-do .grid-inner {
  grid-template-columns: repeat(3, 1fr);
  max-width: 1200px;
  gap: 48px;
}

/* Tablet */
@media (max-width: 1024px) {
  .what-we-do .grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .what-we-do .grid-inner {
    grid-template-columns: 1fr;
  }
}


/* ===============================
   Our Promise – Hover Animation
================================ */

.grid-section.grid-light .grid-tile {
  transition:
    transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.grid-section.grid-light .grid-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.12);
}

.grid-section.grid-light .grid-tile:hover h3 {
  transform: translateY(-1px);
}

.grid-section.grid-light .grid-tile h3 {
  transition: transform 0.35s ease;
}


/* ===============================
   Developers – Name hover effect
================================ */

/* Default name color */
.grid-dark .grid-tile h3 {
color: #101c32; /* Apple black */
  transition: color 0.3s ease, transform 0.3s ease;
}

/* On hover → name turns white */
.grid-dark .grid-tile:hover h3 {
  color: #ffffff;
}

.grid-dark .grid-tile h3 {
  transition: color 0.3s ease, transform 0.3s ease;
}

.grid-dark .grid-tile:hover h3 {
  transform: translateY(-1px);
}


@media (min-width: 1600px) {
  .hero-content,
  .section-header,
  .grid-inner,
  .stacked-inner {
    max-width: 1100px;
  }
}

@media (max-width: 1024px) {
  .grid-section .grid-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 360px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 8px 18px;
    font-size: 13px;
  }
}

/* ===============================
   Mobile Hamburger
================================ */

.nav-toggle {
  display: none;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #1d1d1f;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


/* ===============================
   MOBILE NAVBAR ONLY
================================ */

@media (max-width: 768px) {

  /* 1. Hide desktop CTA */
  .nav-cta-desktop {
    display: none;
  }

  /* 2. Show hamburger */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* 3. Convert nav links into dropdown */
  .apple-nav-links {
    position: absolute;
    top: 44px;
    left: 0;
    width: 100%;
    background: #f5f5f7;

    flex-direction: column;
    gap: 0;

    border-top: 1px solid rgba(0,0,0,0.08);

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  /* 4. Open state (JS will toggle this class) */
  .apple-nav-links.open {
    max-height: 420px;
  }

  /* 5. Mobile nav items */
  .apple-nav-links a {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    color: #1d1d1f;
  }

  /* 6. Mobile "Get Started" inside menu */
  .nav-cta-mobile {
    font-weight: 600;
    color: #1d1d1f; /* black, not blue */
  }
}

/* FORCE desktop Get Started color */
.apple-nav-actions .nav-cta-desktop {
  color: #1d1d1f !important;
  text-decoration: none;
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===============================
   Mobile Nav Background Blur
================================ */

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245, 245, 247, 0.4); /* Apple glass */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999;
}

/* Show overlay when menu is open */
.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}



/* ===============================
   HERO – Mobile Overflow Fix
================================ */

@media (max-width: 768px) {

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-media img,
  .hero-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }
}

.reveal {
  will-change: transform;
  overflow: hidden;
}
@media (max-width: 768px) {
  .reveal {
    transform: none;
  }
}

@media (max-width: 768px) {

  .services-section .grid-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .service-icon {
    margin-bottom: 12px;
  }

  .service-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
  }

  .service-card p {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .service-link {
    margin-top: 8px;
    display: inline-block;
  }
}

@media (max-width: 768px) {

  .technologies-section .tech-groups {
    gap: 40px;
  }

  .tech-group h3 {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .tech-logos {
    gap: 12px;
  }

  .tech-logo-img {
    width: 30px;
  }
}

@media (max-width: 768px) {

  .grid-dark .grid-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .grid-dark .grid-tile {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .grid-dark .grid-tile h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .case-desc {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .case-result {
    margin-top: 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {

  /* Center section heading */
  .technologies-section .section-header {
    text-align: center;
  }

  /* Center each tech group */
  .technologies-section .tech-group {
    text-align: center;
  }

  /* Center category titles */
  .technologies-section .tech-group h3 {
    text-align: center;
  }

  /* Center the logos row */
  .technologies-section .tech-logos {
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .technologies-section .tech-group {
    margin-bottom: 32px;
  }
}

@media (hover: none) {

  /* What We Do cards */
  .what-we-do .grid-tile.in-view {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.12);
    border-color: rgba(0,0,0,0.14);
  }

  /* Services cards */
  .service-card.in-view {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.1);
  }

  /* Selected work cards */
  .grid-dark .grid-tile.in-view {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.08);
  }

  /* Developer name effect */
  .grid-dark .grid-tile.in-view h3 {
    color: #ffffff;
    transform: translateY(-1px);
  }
}

@media (hover: none) {
  .grid-tile:hover,
  .service-card:hover {
    transform: none;
    box-shadow: none;
    background: inherit;
  }
}

@media (hover: none) {

  .grid-dark .grid-tile.in-view {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.08);
  }

  .grid-dark .grid-tile.in-view h3 {
    color: #ffffff;
  }
}

@media (max-width: 640px) {

  /* Make the grid truly single-column */
  .what-we-do .grid-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Cards should feel full-width, not narrow */
  .what-we-do .grid-tile {
    padding: 28px 22px;
    border-radius: 16px;
  }

  /* Improve text flow */
  .what-we-do .grid-tile h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .what-we-do .grid-tile p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* Reduce section top/bottom heaviness */
  .what-we-do {
    padding-top: 48px;
    padding-bottom: 56px;
  }
}

/* ===============================
   Our Promise – Mobile Fix
================================ */

@media (max-width: 640px) {

  /* Force single column */
  .grid-section:not(.what-we-do) .grid-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Make cards feel grounded, not tall */
  .grid-section:not(.what-we-do) .grid-tile {
    padding: 24px 20px;
    border-radius: 14px;
  }

  /* Improve text hierarchy */
  .grid-section:not(.what-we-do) .grid-tile h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  .grid-section:not(.what-we-do) .grid-tile p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Reduce section heaviness */
  .grid-section {
    padding-top: 48px;
    padding-bottom: 56px;
  }
}

/* ===============================
   Get Started visibility control
================================ */

/* DEFAULT (Desktop) */
.nav-cta-mobile {
  display: none;
}

/* Desktop: show right-side button */
.nav-cta-desktop {
  display: inline-flex;
  align-items: center;
  font-weight: 500;
  color: #1d1d1f;
  text-decoration: none;
}

/* ===============================
   Mobile only
================================ */
@media (max-width: 768px) {

  /* Hide desktop button */
  .nav-cta-desktop {
    display: none !important;
  }

  /* Show Get Started ONLY inside hamburger */
  .nav-cta-mobile {
    display: block;
    font-weight: 600;
  }
}


@media (max-width: 768px) {
  .reveal {
    transform: translateY(14px); /* was 24px */
    transition-duration: 0.6s;   /* faster */
  }
}

@media (max-width: 768px) {

  .grid-tile,
  .service-card {
    box-shadow: none !important;
  }

  .grid-tile.in-view,
  .service-card.in-view {
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  }
}

@media (max-width: 768px) {
  .grid-tile,
  .service-card,
  .reveal {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
  }
}

@media (hover: none) {

  .grid-tile:hover,
  .service-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}

@media (hover: none) {

  /* Kill hover logic ONLY for Selected Work */
  .grid-dark .grid-tile:hover {
    transform: none !important;
    background: rgba(255,255,255,0.04) !important;
  }
}

@media (hover: none) {

  .grid-dark .grid-tile {
    transition:
      transform 0.45s ease,
      background 0.45s ease;
  }

  .grid-dark .grid-tile.in-view {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.08);
  }
}

@media (max-width: 768px) {
  .grid-dark .grid-tile.in-view {
    background: rgba(255,255,255,0.06);
  }
}


/* ===============================
   Success Toast Popup
================================ */

.success-toast {
  position: fixed;
  top: 64px;
  right: 24px;
  z-index: 2000;

  background: #ffffff;
  color: #1d1d1f;
  border-left: 4px solid #22c55e;

  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);

  width: 320px;
  padding: 16px 18px;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  opacity: 0;
  transform: translateY(-12px);
  animation: toastIn 0.45s cubic-bezier(.25,.8,.25,1) forwards;
}

.toast-content strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.toast-content p {
  font-size: 0.9rem;
  color: #6e6e73;
  margin: 4px 0 6px;
}

.toast-timer {
  font-size: 0.8rem;
  color: #22c55e;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6e6e73;
  line-height: 1;
}

.toast-close:hover {
  color: #1d1d1f;
}

/* Exit animation */
.success-toast.hide {
  animation: toastOut 0.4s ease forwards;
}

/* Animations */
@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Mobile tweak */
@media (max-width: 640px) {
  .success-toast {
    right: 12px;
    left: 12px;
    width: auto;
  }
}

/* ===============================
   Success Toast Popup
================================ */

.success-toast {
  position: fixed;
  top: 64px;
  right: 24px;
  z-index: 2000;

  background: #ffffff;
  color: #1d1d1f;
  border-left: 4px solid #101c32;

  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);

  width: 320px;
  padding: 16px 18px;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  opacity: 0;
  transform: translateY(-12px);
  animation: toastIn 0.45s cubic-bezier(.25,.8,.25,1) forwards;
}

.toast-content strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.toast-content p {
  font-size: 0.9rem;
  color: #6e6e73;
  margin: 4px 0 6px;
}

.toast-timer {
  font-size: 0.8rem;
  color: #101c32;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #6e6e73;
  line-height: 1;
}

.toast-close:hover {
  color: #1d1d1f;
}

/* Exit animation */
.success-toast.hide {
  animation: toastOut 0.4s ease forwards;
}

/* Animations */
@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Mobile tweak */
@media (max-width: 640px) {
  .success-toast {
    right: 12px;
    left: 12px;
    width: auto;
  }
}


.form-error {
  background: rgba(220, 38, 38, 0.08);
  border-left: 4px solid #dc2626;
  color: #7f1d1d;

  padding: 12px 14px;
  border-radius: 10px;

  font-size: 0.9rem;
  margin-bottom: 16px;
}


.contact-cta-section .contact-grid {
  display: flex;
  justify-content: center;
}
.contact-cta-section .contact-info {
  width: 100%;
  max-width: 760px;     /* controls stretch */
  text-align: center;
}
.contact-cta-section .contact-info p {
  margin-left: auto;
  margin-right: auto;
}

.contact-cta-section .contact-details li {
  text-align: center;
}

.contact-cta-section .contact-info {
  background: #ffffff;
  padding: 48px 44px;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.08);
}

/* ===============================
   FIX: Main office alignment (FOR REAL)
================================ */

/* Ensure both columns start aligned */
.stacked-dark .stacked-inner {
  align-items: start;
}

/* Remove width restriction ONLY for Main office text */
.stacked-dark .stacked-inner > .stacked-text:last-child p {
  max-width: none;
}
.stacked-dark .stacked-inner > .stacked-text:last-child {
  padding-left: 40px;
}
@media (max-width: 768px) {
  .stacked-dark .stacked-inner > .stacked-text:last-child {
    padding-left: 0;
  }
}

/* ===============================
   Get Directions button
================================ */

.directions-btn {
  display: inline-block;
  margin-top: 18px;

  font-size: 0.95rem;
  font-weight: 500;

  color: #ffffff;
  text-decoration: none;

  padding: 10px 18px;
  border-radius: 999px;

  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.directions-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.directions-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
}


.desktop-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.desktop-popup.hidden {
  display: none;
}

.desktop-popup-card {
  background: #ffffff;
  color: #1d1d1f;
  padding: 28px 32px;
  border-radius: 18px;
  text-align: center;
  max-width: 360px;
}

.desktop-popup-card h3 {
  margin-bottom: 8px;
}

.desktop-popup-card button {
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #101c32;
  color: #fff;
  cursor: pointer;
}

.gamify-only {
  display: none;
}

html.gamify .gamify-only {
  display: block;
}

.tooltip-container {
  display: inline-block;
  cursor: not-allowed;
}

/* Minimalist CSS Tooltip */
.tooltip-box { display: none; } 
.tooltip-container:hover .tooltip-box {
  display: block;
  position: absolute;
  background: #000;
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
}

/* blog grid */

.blog-list-section {
  padding: var(--section-padding) 0;
  background: #ffffff;
}

.blog-list-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.blog-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* Thumbnail */
.blog-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Content */
.blog-content-area {
  padding: 28px 24px;
}

.blog-meta-top {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: #6e6e73;
  margin-bottom: 10px;
}

.blog-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: #1d1d1f;
}

.blog-excerpt {
  font-size: 0.95rem;
  color: #6e6e73;
  line-height: 1.5;
  margin-bottom: 14px;
}

.blog-readmore {
  font-size: 0.95rem;
  color: #0071e3;
}
.blog-readmore:hover {
  text-decoration: underline;
}

/* blog  */

.blog-single-hero {
  padding: 100px 0;
  background: #f5f5f7;
}

.blog-single-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  text-align: center;
}

.blog-single-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
  font-weight: 600;
}

.blog-single-meta {
  color: #6e6e73;
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.blog-single-thumb img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
  margin-bottom: 40px;
}

.blog-single-content {
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1d1d1f;
}

.blog-back-btn-wrapper {
  margin: 20px 0 40px;
}

.blog-back-btn {
  font-size: 14px;
  text-decoration: none;
  color: #101C32;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: inline-block;
  transition: 0.2s ease;
}

.blog-back-btn:hover {
  background: #101C32;
  color: #fff;
  border-color: #101C32;
}

.grid-dark .grid-tile img:not(.tech-logo-img) {
  border-radius: 22px;
}

/* ===============================
   Privacy Policy Page
================================ */

.policy-hero {
  padding: 120px 0;
  background: #f5f5f7;
}

.policy-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.policy-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin-bottom: 40px;
  color: #1d1d1f;
}

.policy-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 40px 42px;
  text-align: left;

  box-shadow: 0 24px 60px rgba(0,0,0,0.1);
}

.policy-content h2 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #1d1d1f;
}

.policy-content p {
  color: #444;
  line-height: 1.65;
  margin-bottom: 14px;
  font-size: 1rem;
}

.contact-form-card select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  border: none;
  border-bottom: 1px solid #d2d2d7;
  padding: 14px 6px;
  font-size: 0.95rem;
  background: transparent;
  outline: none;
  color: #6e6e73;
  margin-bottom: 22px;

  /* smooth Apple feel */
  transition: border-color 0.25s ease;
}

/* Focus glow */
.contact-form-card select:focus {
  border-color: #0071e3;
}

/* Custom arrow */
.contact-form-card select {
  background-image: url("data:image/svg+xml;utf8,<svg fill='%23101c32' height='12' width='12' xmlns='http://www.w3.org/2000/svg'><path d='M2 4l4 4 4-4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 12px;
  padding-right: 26px;
}
