/* =========================================================
   KFZ Service Afshin
   Shared main.css for all current pages
   Keeps existing visual style, fixes responsive/mobile issues
========================================================= */

/* =========================
   RESET / TOKENS
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #0b1016;
  --bg-soft: #111925;
  --surface: rgba(12, 18, 26, 0.84);
  --surface-strong: #131c28;
  --card: rgba(255, 255, 255, 0.05);
  --card-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);

  --text: #e8edf4;
  --text-soft: #a8b4c2;
  --heading: #ffffff;

  --blue: #3b82f6;
  --blue-dark: #1d4ed8;
  --green: #25d366;
  --green-dark: #1faa52;

  --gold: #f4c969;
  --gold-dark: #d6a63d;
  --warning: #f59e0b;
  --accent: #93c5fd;

  --blue-soft: rgba(59, 130, 246, 0.14);
  --green-soft: rgba(37, 211, 102, 0.12);

  --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.16);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.34);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --header-height: 82px;
  --container-max: 1200px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.08), transparent 22%),
    linear-gradient(180deg, #091018 0%, #0b1016 100%);
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 5000;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* =========================
   GLOBAL TYPOGRAPHY / UTILITIES
========================= */

.section {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

:is(h1, h2, h3) {
  color: var(--heading);
}

:is(p, li) {
  overflow-wrap: anywhere;
}

/* =========================
   BUTTONS
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.24);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #4d8df7, #255ad8);
}

.btn--secondary {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  color: var(--heading);
  background: rgba(255, 255, 255, 0.1);
}

.btn--whatsapp,
a[href*="wa.me"].btn,
a[href*="whatsapp"].btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.2);
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible,
a[href*="wa.me"].btn:hover,
a[href*="wa.me"].btn:focus-visible,
a[href*="whatsapp"].btn:hover,
a[href*="whatsapp"].btn:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #2ce26f, #1faa52);
}

.btn--full {
  width: 100%;
}

/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  min-height: var(--header-height);
  background: rgba(8, 13, 18, 0.76);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.site-brand__text,
.footer-brand__text {
  color: var(--heading);
  font-size: 1.32rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.site-brand__text span,
.footer-brand__text span {
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.theme-toggle {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--heading);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.theme-toggle__text {
  display: none;
}

.desktop-cta {
  display: none;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--heading);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   MOBILE NAV
========================= */

.main-nav {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  width: 100%;
  display: none;
  padding: 14px;
  background: rgba(8, 13, 18, 0.97);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow-lg);
}

.main-nav.is-open {
  display: block;
}

.main-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.main-nav__link {
  display: block;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--heading);
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}

.main-nav__link:hover,
.main-nav__link.is-active {
  color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
}

.mobile-only-cta .btn {
  width: 100%;
}

.main-nav__list .mobile-only-cta+.mobile-only-cta {
  margin-top: 6px;
}

.main-nav details {
  display: block;
  border-radius: 12px;
}

.main-nav details summary {
  list-style: none;
  cursor: pointer;
}

.main-nav details summary::-webkit-details-marker {
  display: none;
}

.main-nav details>summary.main-nav__link {
  position: relative;
  padding-right: 42px;
}

.main-nav details>summary.main-nav__link::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease;
}

.main-nav details[open]>summary.main-nav__link::after {
  transform: translateY(-30%) rotate(-135deg);
}

.main-nav details[open]>summary.main-nav__link {
  color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
}

.main-nav details ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 8px 0 0;
  display: grid;
  gap: 6px;
}

.main-nav details ul .main-nav__link {
  min-height: 42px;
  padding: 10px 14px 10px 28px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.main-nav details ul .main-nav__link:hover,
.main-nav details ul .main-nav__link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--blue);
}

/* =========================
   HERO
========================= */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media--light {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.9) 0%, rgba(8, 12, 18, 0.6) 44%, rgba(8, 12, 18, 0.2) 100%),
    linear-gradient(180deg, rgba(8, 12, 18, 0.1) 0%, rgba(8, 12, 18, 0.64) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 84px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 820px;
}

.hero-eyebrow {
  margin: 0 0 14px;
  color: #c6d4e6;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.hero h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 13ch;
}

.hero-text {
  max-width: 700px;
  margin: 18px 0 0;
  color: rgba(232, 237, 244, 0.88);
  font-size: 1.02rem;
}

.hero-buttons,
.service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-highlights {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px 18px;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  color: var(--heading);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.hero-highlights li::before {
  content: "✓";
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 800;
}

/* =========================
   HOME PAGE CARDS
========================= */

.services-grid {
  display: grid;
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: var(--shadow-lg);
}

.service-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__content {
  padding: 22px;
}

.service-card__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.service-card__text {
  margin: 0;
  color: var(--text-soft);
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* =========================
   SERVICE DETAIL PAGES
========================= */

.service-detail-layout {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}

.service-detail-card,
.service-overview-box {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card-strong), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
}

.service-detail-card {
  padding: 24px 20px;
}

.service-detail-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.18;
}

.service-detail-card p {
  margin: 0;
  color: var(--text-soft);
}

.service-overview-box {
  overflow: hidden;
}

.service-overview-box h2 {
  margin: 0;
  padding: 20px 20px 18px;
  font-size: clamp(1.45rem, 4vw, 2rem);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.service-list li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.service-list li:first-child {
  border-top: 0;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--green);
  font-weight: 800;
}

.cta-box {
  background:
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

/* =========================
   ABOUT PAGE BLOCKS
========================= */

.about-grid,
.about-values-grid,
.info-grid,
.story-grid {
  display: grid;
  gap: 18px;
}

.about-card,
.value-card,
.info-card,
.story-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px 20px;
  background: linear-gradient(180deg, var(--card-strong), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-md);
}

.about-card h3,
.value-card h3,
.info-card h3,
.story-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.about-card p,
.value-card p,
.info-card p,
.story-card p {
  margin: 0;
  color: var(--text-soft);
}

/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 0;
  padding: 64px 0 24px;
  background:
    linear-gradient(180deg, rgba(8, 13, 18, 0.55), rgba(8, 13, 18, 0.9)),
    linear-gradient(180deg, #0b1016 0%, #0a0f15 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-column h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.footer-column p {
  margin: 14px 0 0;
  color: var(--text-soft);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--text-soft);
  transition: color 0.25s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--blue);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
  color: var(--text-soft);
}

.footer-bottom__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom__links a {
  color: var(--text-soft);
}

.footer-bottom__links a:hover,
.footer-bottom__links a:focus-visible {
  color: var(--blue);
}

/* =========================
   LIGHT THEME
========================= */

body[data-theme="light"] {
  --bg: #f5f8fc;
  --bg-soft: #eef3f8;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --card: rgba(255, 255, 255, 0.85);
  --card-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(17, 24, 39, 0.08);

  --text: #1f2937;
  --text-soft: rgba(31, 41, 55, 0.76);
  --heading: #111827;

  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.1), transparent 24%),
    radial-gradient(circle at top right, rgba(37, 211, 102, 0.06), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #eef4fa 100%);
}

body[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: rgba(17, 24, 39, 0.06);
}

body[data-theme="light"] .main-nav {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(17, 24, 39, 0.08);
}

body[data-theme="light"] .main-nav__link:hover,
body[data-theme="light"] .main-nav__link.is-active,
body[data-theme="light"] .main-nav details[open]>summary.main-nav__link {
  background: rgba(59, 130, 246, 0.08);
}

body[data-theme="light"] .main-nav details ul .main-nav__link {
  background: rgba(17, 24, 39, 0.03);
}

body[data-theme="light"] .main-nav details ul .main-nav__link:hover,
body[data-theme="light"] .main-nav details ul .main-nav__link.is-active {
  background: rgba(59, 130, 246, 0.08);
}

body[data-theme="light"] .btn--secondary {
  color: #111827;
  background: rgba(17, 24, 39, 0.04);
  border-color: rgba(17, 24, 39, 0.08);
}

body[data-theme="light"] .hero-media--dark {
  display: none;
}

body[data-theme="light"] .hero-media--light {
  display: block;
}

body[data-theme="light"] .hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.68) 44%, rgba(255, 255, 255, 0.26) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.56) 100%);
}

body[data-theme="light"] .hero-text {
  color: rgba(17, 24, 39, 0.82);
}

body[data-theme="light"] .hero-eyebrow {
  color: rgba(17, 24, 39, 0.7);
}

body[data-theme="light"] .service-card,
body[data-theme="light"] .service-detail-card,
body[data-theme="light"] .service-overview-box,
body[data-theme="light"] .about-card,
body[data-theme="light"] .value-card,
body[data-theme="light"] .info-card,
body[data-theme="light"] .story-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  border-color: rgba(17, 24, 39, 0.08);
}

body[data-theme="light"] .site-footer {
  background: #ffffff;
  border-top-color: rgba(17, 24, 39, 0.06);
}

body[data-theme="light"] .footer-links a,
body[data-theme="light"] .footer-bottom p,
body[data-theme="light"] .footer-bottom__links a,
body[data-theme="light"] .footer-column p {
  color: rgba(17, 24, 39, 0.72);
}

body[data-theme="light"] .btn--whatsapp,
body[data-theme="light"] a[href*="wa.me"].btn,
body[data-theme="light"] a[href*="whatsapp"].btn {
  background: linear-gradient(135deg, #25d366, #1faa52) !important;
  color: #ffffff !important;
  border: none;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.25);
}

body[data-theme="light"] .btn--whatsapp:hover,
body[data-theme="light"] a[href*="wa.me"].btn:hover,
body[data-theme="light"] a[href*="whatsapp"].btn:hover {
  background: linear-gradient(135deg, #2ce26f, #1faa52) !important;
  color: #ffffff !important;
}

/* =========================
   RESPONSIVE
========================= */

/* very small phones */
@media (max-width: 359px) {
  .container {
    padding: 0 14px;
  }

  .site-brand__text,
  .footer-brand__text {
    font-size: 1rem;
  }

  .theme-toggle,
  .menu-toggle {
    min-width: 42px;
    min-height: 42px;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 11vw, 2.45rem);
    line-height: 1.08;
  }

  .hero-text {
    font-size: 0.93rem;
    line-height: 1.72;
  }

  .hero-buttons,
  .service-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-buttons .btn,
  .service-cta-actions .btn {
    width: 100%;
  }

  .hero-highlights {
    gap: 8px;
  }

  .hero-highlights li {
    font-size: 0.95rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .section-heading p,
  .service-detail-card p,
  .about-card p,
  .value-card p,
  .info-card p,
  .story-card p {
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .service-detail-layout,
  .about-grid,
  .about-values-grid,
  .info-grid,
  .story-grid {
    gap: 16px;
  }

  .service-detail-card,
  .service-overview-box,
  .about-card,
  .value-card,
  .info-card,
  .story-card {
    padding: 20px 16px;
    border-radius: 18px;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card__content {
    padding: 18px;
  }

  .footer-grid {
    gap: 22px;
  }
}

/* tablets portrait */
@media (min-width: 640px) and (max-width: 767px) {
  .container {
    padding: 0 22px;
  }

  .theme-toggle__text {
    display: inline;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: 72px;
    padding-bottom: 62px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 6.5vw, 3.5rem);
  }

  .hero-text {
    max-width: 620px;
  }

  .hero-buttons,
  .service-cta-actions {
    flex-wrap: wrap;
  }

  .section {
    padding: 76px 0;
  }

  .service-detail-layout,
  .about-grid,
  .about-values-grid,
  .info-grid,
  .story-grid {
    gap: 18px;
  }

  .service-detail-card,
  .service-overview-box,
  .about-card,
  .value-card,
  .info-card,
  .story-card {
    padding: 26px 22px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

/* **************** cookie********************** */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;

  max-width: 520px;
  margin: 0 auto;
  padding: 16px;

  background: #111827;
  color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.cookie-actions .btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
}

/* *******************masoud-dev********************** */
.developer-credit {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.82;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.developer-credit a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.developer-credit a:hover {
  color: #4f7cff;
  opacity: 1;
}

body[data-theme="light"] .developer-credit {
  color: rgba(17, 24, 39, 0.78);
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 14px;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .btn {
    width: 100%;
  }
}

/* tablets landscape / small laptops */
@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 0 24px;
  }

  .theme-toggle__text {
    display: inline;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding-top: 84px;
    padding-bottom: 74px;
  }

  .hero-copy {
    max-width: 740px;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 5.8vw, 3.9rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
  }

  .services-grid,
  .service-detail-layout,
  .about-grid,
  .about-values-grid,
  .info-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .service-detail-card,
  .service-overview-box,
  .about-card,
  .value-card,
  .info-card,
  .story-card {
    padding: 28px 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
}

/* desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .desktop-cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    width: auto;
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-nav__list {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .main-nav__link {
    min-height: 44px;
    padding: 10px 14px;
  }

  .mobile-only-cta {
    display: none;
  }

  .main-nav details {
    position: relative;
  }

  .main-nav details ul {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 280px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(8, 13, 18, 0.98);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  body[data-theme="light"] .main-nav details ul {
    background: rgba(255, 255, 255, 0.98);
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
  }

  .footer-grid {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .service-detail-layout,
  .about-grid,
  .about-values-grid,
  .info-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .hero {
    min-height: calc(100vh - var(--header-height));
  }

  .hero h1 {
    font-size: clamp(3rem, 4.2vw, 4.2rem);
  }
}

@media (min-width: 1280px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .service-detail-layout,
  .about-grid,
  .about-values-grid,
  .info-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .hero {
    min-height: calc(100vh - var(--header-height));
  }

  .hero h1 {
    font-size: clamp(3.4rem, 4vw, 4.6rem);
  }
}