/* ============================================================
   Service Lebanon — Plain HTML/CSS/JS version (converted from Astro)
   All theme colors live in :root below — tweak them in one place.
   ============================================================ */

:root {
  /* ---- Theme colors (edit these to match your exact brand) ---- */
  --background: #ffffff;
  --foreground: #1a2332;
  --muted: #f4f6f9;
  --muted-foreground: #5b6779;
  --card: #ffffff;
  --border: #e3e8ef;

  --primary: #e8590c;            /* main brand color */
  --primary-hover: #d9480f;
  --primary-foreground: #ffffff;
  --primary-soft: #fff4ec;       /* light primary tint (icons, hovers) */

  --secondary: #0f6cbd;
  --secondary-soft: #e8f3fc;

  --accent: #f4f6f9;             /* light gray icon boxes */
  --ring: rgba(232, 89, 12, .25);

  /* ---- Shape & shadow ---- */
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow: 0 4px 20px -2px rgba(16, 24, 40, .08);
  --shadow-lg: 0 10px 25px -5px rgba(16, 24, 40, .12);
  --shadow-xl: 0 25px 50px -12px rgba(16, 24, 40, .25);

  --header-h: 64px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
section { scroll-margin-top: var(--header-h); }

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container-wide {
  width: 100%;
  max-width: 100rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  padding: .5rem 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn svg { width: 1rem; height: 1rem; flex-shrink: 0; pointer-events: none; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-ghost {
  background: transparent;
  color: var(--foreground);
}
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-sm { height: 2.25rem; padding: .5rem 1rem; }
.btn-lg {
  padding: .9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.btn-block { width: 100%; }
.btn:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

/* Shine sweep effect */
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.shine:hover::after { left: 130%; }

/* ---------- Header / Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding-inline: 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.25rem;
  font-weight: 700;
  min-width: fit-content;
  transition: color .4s;
}
.brand:hover { color: var(--primary); }
.brand img { width: 40px; height: 40px; }
.main-nav { display: none; align-items: center; gap: 2rem; margin-inline-start: 2.5rem; margin-inline-end: auto; }
.main-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: #3d4a5c;
  white-space: nowrap;
  transition: color .2s;
}
.main-nav a:hover { color: var(--primary); }
.header-actions { display: none; align-items: center; gap: .75rem; }
.header-mobile { display: flex; align-items: center; gap: .5rem; }
.lang-char { font-size: .75rem; }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem; height: 2.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }
.menu-toggle:hover { background: var(--primary-soft); color: var(--primary); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .98);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: .75rem .25rem;
  font-weight: 500;
  color: #3d4a5c;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-link:hover { color: var(--primary); }
.mobile-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-actions { display: flex; }
  .header-mobile { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
  padding-inline: 1.5rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-soft), var(--background) 50%, var(--secondary-soft));
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}
.blob { position: absolute; border-radius: 50%; filter: blur(24px); pointer-events: none; }
.blob-1 { top: 5rem; left: 2.5rem; width: 5rem; height: 5rem; background: var(--primary-soft); animation: float 6s ease-in-out infinite; }
.blob-2 { bottom: 8rem; right: 5rem; width: 8rem; height: 8rem; background: var(--secondary-soft); animation: floatSlow 9s ease-in-out infinite; }
.blob-3 { top: 50%; left: 25%; width: 4rem; height: 4rem; background: rgba(232, 89, 12, .15); animation: float 7s ease-in-out infinite; }

.hero-inner { position: relative; z-index: 10; padding-block: 3rem; width: 100%; }
.hero-grid { display: flex; flex-direction: column; align-items: center; gap: 3rem; }
.hero-content {
  display: flex; flex-direction: column; align-items: center;
  gap: 2rem; max-width: 42rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
/* ----- this text for the super tile inside the smaple report and hero home to be colored animated */
/*.text-gradient {
  display: block;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 6s ease infinite;
}*/
.text-gradient {
  display: block;
  color: var(--primary);   /* fixed orange (#e8590c), same as the buttons */
}
.hero-text {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  text-align: center;
  max-width: 40rem;
}
.hero-buttons {
  display: flex; flex-wrap: wrap-reverse; gap: 1rem; justify-content: center;
}

.hero-media { position: relative; width: 100%; }
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-img-wrap img { width: 100%; height: auto; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: -1.5rem; left: -1.5rem;
  background: var(--primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hero-badge-text { text-align: center; color: var(--primary-foreground); }
.hero-badge-big { font-size: 1.5rem; font-weight: 700; }
.hero-badge-small { font-size: .875rem; opacity: .9; }

@media (min-width: 1024px) {
  .hero-grid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-content { align-items: flex-start; }
  .hero h1, .hero-text { text-align: left; }
  .hero-media { width: 58%; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: 5rem; overflow: hidden; }
.section-inner { position: relative; z-index: 10; }
.section-tinted { background: linear-gradient(180deg, var(--background), var(--primary-soft)); }
.section-muted { background: color-mix(in srgb, var(--muted) 70%, var(--background)); }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.15rem;
  color: var(--muted-foreground);
  max-width: 45rem;
  margin-inline: auto;
  line-height: 1.6;
}
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  background: var(--primary-soft);
  border-radius: 999px;
  margin-bottom: 1.5rem;
}
.pill span {
  font-size: .8rem; font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Decorative blobs inside sections */
.blob-right { top: 25%; right: -5rem; width: 18rem; height: 18rem; background: rgba(232, 89, 12, .12); }
.blob-left { top: 25%; left: -5rem; width: 24rem; height: 24rem; background: var(--primary-soft); }
.blob-right-bottom { bottom: 25%; right: -5rem; width: 24rem; height: 24rem; background: var(--secondary-soft); }
.blob-top-right { top: 0; right: 0; width: 24rem; height: 24rem; background: var(--primary-soft); }
.blob-bottom-left { bottom: 0; left: 0; width: 20rem; height: 20rem; background: var(--secondary-soft); }
.blob-top-center { top: 0; left: 25%; width: 24rem; height: 24rem; background: var(--primary-soft); }

/* ---------- About ---------- */
.about-grid {
  display: grid; gap: 3rem; align-items: center;
  margin-bottom: 1rem;
}
.section-title-left {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700; line-height: 1.25;
  margin-bottom: 1.5rem;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.features-grid { display: grid; gap: 1.5rem; }
.feature { display: flex; align-items: flex-start; gap: 1rem; }
.feature-icon {
  flex-shrink: 0;
  background: var(--primary-soft);
  padding: .75rem;
  border-radius: var(--radius);
  transition: transform .3s, background-color .3s;
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.feature:hover .feature-icon { background: var(--primary); transform: scale(1.08); }
.feature:hover .feature-icon svg { color: #fff; }
.feature h3 { font-weight: 600; margin-bottom: .35rem; }
.feature p { color: var(--muted-foreground); font-size: .95rem; }

.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-media img { width: 100%; height: 24rem; object-fit: cover; }
.media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(26, 35, 50, .35));
}

@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
  .about-media img { height: 20rem; }
}

/* ---------- Vision / Mission / Values ---------- */
.vision-grid { display: grid; gap: 3rem; align-items: center; }
.vision-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 500px;
  order: 2;
}
.vision-media img { width: 100%; height: 100%; object-fit: cover; }
.media-overlay-strong {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(26, 35, 50, .55));
}
.vision-card {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem; right: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}
.vision-card-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft);
  border-radius: var(--radius);
}
.vision-card-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.vision-card-title { font-weight: 700; font-size: .9rem; }
.vision-card-sub { font-size: .75rem; color: var(--muted-foreground); }

.vision-cards { display: flex; flex-direction: column; gap: 1.5rem; order: 1; }
.vm-card-inner {
  display: flex; gap: 1rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.vm-card:hover .vm-card-inner {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--border));
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.vm-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-soft), transparent);
  border-radius: var(--radius);
  transition: transform .3s;
}
.vm-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); }
.vm-card:hover .vm-icon { transform: scale(1.1); }
.vm-card h3 {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: .5rem;
  transition: color .3s;
}
.vm-card:hover h3 { color: var(--primary); }
.vm-card p { color: var(--muted-foreground); line-height: 1.6; }

@media (min-width: 1024px) {
  .vision-grid { grid-template-columns: repeat(2, 1fr); gap: 4rem; }
  .vision-media { order: 1; height: 600px; }
  .vision-cards { order: 2; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 1.5rem; }
.service-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s, box-shadow .35s;
}
.service-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
  opacity: 0;
  transition: opacity .5s;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }
.service-body { position: relative; z-index: 1; }
.service-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.service-icon {
  flex-shrink: 0;
  background: var(--accent);
  padding: .75rem;
  border-radius: var(--radius);
  transition: background-color .3s, transform .3s;
}
.service-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); transition: color .3s; }
.service-card:hover .service-icon { background: var(--primary); transform: scale(1.1); }
.service-card:hover .service-icon svg { color: #fff; }
.service-head h3 {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  transition: color .3s;
}
.service-card:hover h3 { color: var(--primary); }
.service-body p { color: var(--muted-foreground); line-height: 1.6; }
.service-cta { position: relative; z-index: 1; }

@media (min-width: 768px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .service-head h3 { font-size: 1.25rem; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid; gap: 3rem;
  max-width: 80rem;
  margin-inline: auto;
  align-items: start;
}
.contact-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.service-form { display: flex; flex-direction: column; gap: 1.75rem; }
.form-title {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0;
}
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .875rem; font-weight: 500; }
.required { color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  padding: .7rem .9rem;
  font-size: 1rem;
  color: var(--foreground);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 6rem; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #9aa5b4; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.select-chevron {
  position: absolute; right: .9rem; top: 50%;
  transform: translateY(-50%);
  width: 1rem; height: 1rem;
  color: var(--muted-foreground);
  opacity: .6;
  pointer-events: none;
}
.privacy-note { font-size: .75rem; color: var(--muted-foreground); }

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.info-items { display: flex; flex-direction: column; gap: 1.5rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon {
  flex-shrink: 0;
  background: var(--accent);
  padding: .75rem;
  border-radius: var(--radius);
  transition: background-color .3s, transform .3s;
}
.info-icon svg { width: 1.5rem; height: 1.5rem; color: var(--primary); transition: color .3s; }
.info-item:hover .info-icon { background: var(--primary); transform: scale(1.1); }
.info-item:hover .info-icon svg { color: #fff; }
.info-item h4 { font-weight: 600; margin-bottom: .25rem; transition: color .2s; }
.info-item:hover h4 { color: var(--primary); }
.info-item a, .info-item p { color: var(--muted-foreground); transition: color .2s; }
.info-item a:hover { color: var(--primary); }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; }
  .contact-form-card { padding: 2rem; }
  .form-title { font-size: 1.4rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--foreground); color: #fff; }
.footer-grid {
  display: grid; gap: 2rem;
  padding-block: 3rem;
}
.footer-brand h3 { font-size: 1.5rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.footer-brand p { color: rgba(255,255,255,.8); line-height: 1.6; max-width: 28rem; }
.footer-col h4 { font-weight: 600; margin-bottom: 1rem; }
.footer-col a:not(.footer-contact) {
  display: block;
  color: rgba(255,255,255,.8);
  padding-block: .3rem;
  transition: color .2s;
}
.footer-col a:not(.footer-contact):hover { color: var(--primary); }
.footer-contact {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255,255,255,.8);
  padding-block: .3rem;
  transition: color .2s;
}
.footer-contact svg { flex-shrink: 0; }
.footer-contact:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-block: 1.5rem;
}
.footer-bottom p { color: rgba(255,255,255,.6); font-size: .875rem; text-align: center; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status { font-size: .9rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.success { color: #15803d; }
.form-status.error { color: #b91c1c; }
.btn:disabled { opacity: .7; cursor: not-allowed; }
 
/* ---------- Arabic (right-to-left) ---------- */
html[lang="ar"] body {
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}
html[lang="ar"] .hero h1 { line-height: 1.4; }
html[lang="ar"] .section-head h2,
html[lang="ar"] .section-title-left { line-height: 1.45; }
 
/* Arabic letters must stay joined: no letter-spacing / uppercase */
[dir="rtl"] .pill span { letter-spacing: 0; text-transform: none; }
 
/* Dropdown arrow goes to the left side */
[dir="rtl"] .select-chevron { right: auto; left: .9rem; }
 
/* Phone number is typed left-to-right but sits on the right */
[dir="rtl"] .field input[type="tel"] { text-align: right; }
 
/* Text alignment that was hard-coded to the left */
@media (min-width: 768px) {
  [dir="rtl"] .footer-bottom p { text-align: right; }
}
@media (min-width: 1024px) {
  [dir="rtl"] .hero h1,
  [dir="rtl"] .hero-text { text-align: right; }
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom p { text-align: left; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; padding-block: 4rem; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-24px); }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}

.fade-in-up { opacity: 0; animation: fadeInUp .8s ease forwards; }
.d1 { animation-delay: .15s; }
.d2 { animation-delay: .3s; }
.d3 { animation-delay: .45s; }

.pulse-soft { animation: pulseSoft 3s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-in-up, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   RESPONSIVE ADDITIONS — phones & tablets
   (added during reorganization; no design changes, only
   layout safety for small screens)
   ============================================================ */
@media (max-width: 1023px) {
  /* header: logo + Call/WhatsApp icons on one row, nav scrolls below */
  .header-inner { flex-wrap: wrap; height: auto; padding-block: .5rem; }
  .main-nav { display: flex; order: 3; width: 100%; margin: 0; gap: .5rem;
              overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none;
              -webkit-overflow-scrolling: touch; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { flex-shrink: 0; }
  .header-actions { display: flex; }
  .rp-header .btn-label { display: none; }
  .rp-header .btn-sm { width: 2.5rem; padding: 0; }
  .hero { min-height: auto; }
  .hero-badge { left: .5rem; bottom: -1rem; padding: .75rem 1rem; }
  .section { padding-block: 3.5rem; }
  .vision-media { height: 340px; }
}
@media (max-width: 640px) {
  .container, .container-wide { padding-inline: 1rem; }
  .hero-buttons .btn-lg { width: 100%; }
  .footer-grid { gap: 1.5rem; }
  .contact-grid { gap: 2rem; }
}
/* ===== Footer social icons ===== */
.footer-col .footer-social-title {
  margin-top: 22px;
}

.footer-col .footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.footer-col .footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  line-height: 1;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.footer-col .footer-social .social-link svg {
  display: block;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.footer-col .footer-social .social-link:hover,
.footer-col .footer-social .social-link:focus-visible {
  transform: scale(1.2) translateY(-3px);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-col .footer-social .social-link:hover svg,
.footer-col .footer-social .social-link:focus-visible svg {
  transform: rotate(-8deg) scale(1.05);
}

.footer-col .footer-social .social-link:active {
  transform: scale(0.95);
}

.footer-col .footer-social .social-facebook:hover,
.footer-col .footer-social .social-facebook:focus-visible {
  background: #1877f2;
}

.footer-col .footer-social .social-instagram:hover,
.footer-col .footer-social .social-instagram:focus-visible {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-col .footer-social .social-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Tablets */
@media (max-width: 768px) {
  .footer-col .footer-social { gap: 14px; }
}

/* Phones: bigger touch targets */
@media (max-width: 480px) {
  .footer-col .footer-social .social-link {
    width: 46px;
    height: 46px;
  }
  .footer-col .footer-social { gap: 16px; }
}

/* Touch devices have no real hover, so keep it light */
@media (hover: none) {
  .footer-col .footer-social .social-link:hover {
    transform: none;
    box-shadow: none;
  }
  .footer-col .footer-social .social-link:active {
    transform: scale(1.15);
  }
}