/* Graham Miranda — SEO-optimized stylesheet
   Mobile-first · fast · accessible · indexable
   No frameworks, no JS-driven layouts, no lazy font loading hacks. */

:root {
  --c-ink: #0e1422;
  --c-ink-2: #1b2840;
  --c-ink-3: #4a5b78;
  --c-muted: #6b7280;
  --c-line: #e5e7eb;
  --c-line-2: #d1d5db;
  --c-bg: #ffffff;
  --c-bg-2: #f8fafc;
  --c-bg-3: #f1f5f9;
  --c-teal: #0d9488;
  --c-teal-dark: #0f766e;
  --c-amber: #d97706;

  --max: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --t: 0.2s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
img { loading: lazy; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--c-teal); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-teal-dark); text-decoration: underline; }
ul, ol { padding-left: 1.5em; }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 56px); margin-bottom: 20px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
h3 { font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 12px; }
p { margin-bottom: 14px; color: var(--c-ink-3); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-ink); color: white;
  padding: 10px 16px; border-radius: 6px; z-index: 999;
}
.skip:focus { left: 12px; top: 12px; }

::selection { background: var(--c-ink); color: white; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--c-ink); letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--c-muted); }

.primary-nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}
.primary-nav a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-ink-3);
  border-radius: 8px;
  text-decoration: none;
}
.primary-nav a:hover { color: var(--c-ink); background: var(--c-bg-3); }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: white;
  color: var(--c-ink-2);
}
.lang-btn:hover { border-color: var(--c-ink-2); }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  list-style: none;
  padding: 6px;
  margin: 0;
  min-width: 200px;
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15, 22, 36, 0.12);
  display: none;
  z-index: 60;
}
.lang-menu.open { display: block; }
.lang-menu li { margin: 0; }
.lang-menu a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--c-ink-2);
  border-radius: 6px;
  text-decoration: none;
}
.lang-menu a:hover { background: var(--c-bg-3); }
.lang-menu a.active { background: var(--c-bg-3); color: var(--c-ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0 80px;
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-2) 100%);
  border-bottom: 1px solid var(--c-line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--c-ink-3);
  max-width: 60ch;
  margin-bottom: 32px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.btn {
  display: inline-block;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: var(--t);
  border: 1px solid transparent;
}
.btn-primary { background: var(--c-ink); color: white; }
.btn-primary:hover { background: var(--c-ink-2); color: white; text-decoration: none; }
.btn-ghost { background: white; color: var(--c-ink); border-color: var(--c-line-2); }
.btn-ghost:hover { border-color: var(--c-ink); color: var(--c-ink); text-decoration: none; }

.trust-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  color: var(--c-muted);
}
.trust-row li { padding-left: 14px; position: relative; }
.trust-row li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-teal);
  font-weight: 700;
}
.trust-row strong { color: var(--c-ink); font-weight: 600; }

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 22, 36, 0.1);
  border: 1px solid var(--c-line);
  background: var(--c-bg-3);
}
.hero-media img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.hero-media figcaption {
  font-size: 13px;
  color: var(--c-muted);
  padding: 12px 16px;
  background: white;
  border-top: 1px solid var(--c-line);
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section:nth-of-type(even) { background: var(--c-bg-2); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 18px; color: var(--c-ink-3); }

/* ---------- Intro ---------- */
.intro { background: white; }
.intro h2 { max-width: 22ch; margin-bottom: 24px; }
.intro p { font-size: 18px; line-height: 1.7; max-width: 70ch; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}
.service:hover {
  border-color: var(--c-ink-3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 22, 36, 0.08);
}
.service img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 1px solid var(--c-line);
}
.service h3 { font-size: 20px; padding: 20px 20px 8px; margin: 0; }
.service p { font-size: 15px; padding: 0 20px 18px; margin: 0; }
.service.highlight { border-color: var(--c-ink); border-width: 2px; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.why-card h3 { font-size: 19px; margin-bottom: 10px; }
.why-card p { font-size: 15.5px; }

/* ---------- Process ---------- */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-list li {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink-3);
  counter-increment: step;
  position: relative;
}
.process-list strong { color: var(--c-ink); display: block; margin-bottom: 6px; font-size: 18px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: start;
}
.about p { font-size: 17px; line-height: 1.7; }

.company-facts {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
}
.company-facts h3 { margin-bottom: 16px; }
.company-facts dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.company-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); font-weight: 600; margin-bottom: 2px; }
.company-facts dd { font-size: 15px; color: var(--c-ink); font-weight: 500; margin: 0 0 4px 0; }

/* ---------- Company ---------- */
.company-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.company-grid > div {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 24px 24px;
}
.company-grid h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); margin-bottom: 10px; }
.company-grid p, .company-grid address { font-size: 15px; line-height: 1.6; color: var(--c-ink); font-style: normal; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-list details {
  background: white;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.faq-list summary {
  font-weight: 600;
  font-size: 17px;
  color: var(--c-ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--c-muted);
  font-weight: 400;
  transition: var(--t);
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin-top: 12px; font-size: 15.5px; }

/* ---------- Legal Section ---------- */
.legal-section { background: var(--c-ink); color: rgba(255, 255, 255, 0.75); }
.legal-section h2 { color: white; }
.legal-section p { color: rgba(255, 255, 255, 0.75); font-size: 16px; line-height: 1.7; max-width: 80ch; }
.legal-section a { color: #5eead4; }
.legal-fine { font-size: 14px !important; color: rgba(255, 255, 255, 0.55) !important; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #060912;
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 24px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-grid .brand-name { color: white; }
.footer-grid p { color: rgba(255, 255, 255, 0.6); font-size: 14.5px; margin-top: 12px; }
.footer-grid h3 {
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255, 255, 255, 0.65); font-size: 14.5px; }
.footer-grid a:hover { color: white; text-decoration: none; }

.footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .company-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .lede { font-size: 17px; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 60px; }

  .primary-nav { display: none; }
  .header-inner { gap: 12px; }
  .brand-sub { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .trust-row { gap: 14px; }
}

/* ---------- RTL (Arabic) ---------- */
html[dir="rtl"] .header-inner { direction: rtl; }
html[dir="rtl"] .footer-grid { direction: rtl; }
html[dir="rtl"] .hero-grid { direction: rtl; }
html[dir="rtl"] .services-grid,
html[dir="rtl"] .why-grid,
html[dir="rtl"] .process-list,
html[dir="rtl"] .about-grid,
html[dir="rtl"] .company-grid { direction: rtl; }
html[dir="rtl"] body { font-family: 'Inter', 'Tahoma', 'Segoe UI', sans-serif; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .lang-switch, .cta-row { display: none; }
  body { color: black; background: white; }
  a { color: black; text-decoration: underline; }
}
