/* ===========================================================
   Fareeq Al Suroor Contracting — Design System
   Brand tokens from the client's own logo (see .claude/rules/project-decisions.md)
   =========================================================== */

:root {
  /* Brand gradient (from logo) */
  --grad-bg-start: #3EDB9A;
  --grad-bg-end: #2AAF9E;
  --grad-accent-start: #3B2E8A;
  --grad-accent-end: #B565D8;
  --color-ink: #1A0E2E;

  /* Neutral surface tones (soft "unbleached" neutral, not pure white) */
  --color-paper: #FAF9F6;
  --color-paper-alt: #F2F0EA;
  --color-white: #FFFFFF;
  --color-border: #E4E1D8;
  --color-body-text: #3A3550;
  --color-muted: #6B6680;

  /* Semantic accents */
  --color-accent-solid: #5A3FA0;
  --color-teal-solid: #2AAF9E;

  --font-display: 'Anton', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 4px 24px rgba(26, 14, 46, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(26, 14, 46, 0.14);

  --max-width: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body-text);
  background: var(--color-paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; color: var(--color-ink); letter-spacing: 0.3px; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

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

.brand-gradient {
  background: linear-gradient(160deg, var(--grad-bg-start) 0%, var(--grad-bg-end) 100%);
}
.accent-gradient {
  background: linear-gradient(135deg, var(--grad-accent-start) 0%, var(--grad-accent-end) 100%);
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--color-ink);
  color: #E8E4F5;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar a { opacity: 0.9; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar-contacts { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-contacts span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Nav ---------- */
.site-header {
  background: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26,14,46,0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; }
.nav-brand img { height: 44px; width: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.nav-brand-text { font-family: var(--font-display); font-size: 0.85rem; line-height: 1.05; color: var(--color-ink); min-width: 0; overflow-wrap: break-word; }
.nav-brand-text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.6rem; letter-spacing: 1.5px; color: var(--color-teal-solid); text-transform: uppercase; }

.nav-links {
  display: none;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a { padding: 8px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--color-teal-solid); color: var(--color-teal-solid); }

.btn.nav-cta {
  display: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  min-height: 44px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-teal-solid); color: white; }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(42,175,158,0.35); }
.btn-accent { background: var(--color-accent-solid); color: white; }
.btn-accent:hover { box-shadow: 0 8px 20px rgba(90,63,160,0.35); }
.btn-outline { background: transparent; border-color: currentColor; color: var(--color-ink); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.7); color: white; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { box-shadow: 0 8px 20px rgba(37,211,102,0.4); }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: none;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-ink);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after { position: absolute; top: 8px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 20px 20px;
  gap: 4px;
  border-top: 1px solid var(--color-border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 12px 4px; font-weight: 600; min-height: 44px; }
.mobile-menu .btn { margin-top: 10px; width: 100%; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .btn.nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .nav-brand-text { font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  color: white;
  padding: 56px 0 0;
  overflow: hidden;
  position: relative;
}
.hero .container {
  display: grid;
  gap: 36px;
  align-items: center;
  padding-bottom: 48px;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.92);
  color: var(--color-ink);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  color: white;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  margin-bottom: 20px;
}
.hero h1 .accent-word { color: #2A1F55; -webkit-text-stroke: 1px rgba(255,255,255,0.5); }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 46ch;
  color: rgba(255,255,255,0.92);
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1%, -1%); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(59,46,138,0.15), rgba(181,101,216,0.25));
}

@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr 0.9fr; padding-bottom: 70px; }
}

/* ---------- Stats bar ---------- */
.stats-bar {
  background: var(--color-ink);
  color: white;
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: #7EE8C7;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
}
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--color-paper-alt); }
.section-header { max-width: 700px; margin-bottom: 40px; }
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-teal-solid);
  margin-bottom: 10px;
}
.section-header h2 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.section-header p { color: var(--color-muted); font-size: 1.05rem; }

/* About teaser */
.about-teaser {
  display: grid;
  gap: 32px;
  align-items: center;
}
.about-teaser-media { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.about-teaser-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 900px) {
  .about-teaser { grid-template-columns: 1fr 1fr; }
}

/* ---------- Bento grid ---------- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
  .bento-grid.services-grid > *:nth-child(1) { grid-column: span 2; }
  .bento-grid.why-grid > *:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: white;
}

/* ---------- Service card with real project photo ---------- */
.card.has-photo { overflow: hidden; padding-top: 0; }
.service-photo {
  position: relative;
  margin: 0 -28px 20px;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.service-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card.has-photo:hover .service-photo img,
.card.has-photo:focus-within .service-photo img { transform: scale(1.06); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--color-muted); font-size: 0.95rem; margin-bottom: 0; }
.card a.card-link { font-weight: 700; color: var(--color-accent-solid); font-size: 0.9rem; display: inline-block; margin-top: 12px; }

/* Services division card with sub-list */
.service-card ul { margin-top: 10px; }
.service-card li {
  font-size: 0.88rem;
  color: var(--color-muted);
  padding: 4px 0 4px 20px;
  position: relative;
}
.service-card li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-teal-solid);
}

/* ---------- Process steps ---------- */
.steps-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps-grid.steps-4 { grid-template-columns: repeat(4, 1fr); } }
.step-card { position: relative; padding-top: 8px; }
.step-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--color-teal-solid);
  opacity: 0.5;
  margin-bottom: 6px;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  color: white;
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: white; font-size: clamp(1.8rem, 4.5vw, 2.6rem); max-width: 700px; margin: 0 auto 22px; }
.cta-banner .btn-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-ink); color: rgba(255,255,255,0.85); padding: 56px 0 0; }
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid h4 { color: white; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a:hover { color: #7EE8C7; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 40px; width: 40px; border-radius: 8px; }
.footer-brand span { font-family: var(--font-display); color: white; font-size: 1.1rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  background: #25D366;
  color: white;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  font-size: 1.6rem;
}
.whatsapp-float:hover { transform: scale(1.06); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  color: white;
  padding: 48px 0;
  text-align: left;
}
.page-hero h1 { color: white; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.9); max-width: 60ch; font-size: 1.05rem; margin-bottom: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 14px; }

/* ---------- Values / list rows ---------- */
.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-paper-alt);
  border: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 4px 6px 4px 0;
}
.value-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent-solid); }

.check-list li {
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 1rem;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 6px;
  color: white;
  background: var(--color-teal-solid);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Founder message ---------- */
.founder-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
}
.founder-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: white;
  box-shadow: var(--shadow-card);
}
.founder-card p {
  text-align: left;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.founder-signature {
  margin-top: 20px;
  text-align: left;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.founder-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-ink); }
.founder-role { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--color-muted); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-card {
  background: var(--color-ink);
  color: white;
  border-radius: var(--radius-lg);
  padding: 32px;
}
.contact-info-card h3 { color: white; }
.contact-row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-row .icon { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.12); }
.contact-row a:hover { text-decoration: underline; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
  min-height: 44px;
  background: var(--color-white);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: 3px solid rgba(42,175,158,0.4);
  border-color: var(--color-teal-solid);
}
.map-embed { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); margin-top: 24px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-ink);
  color: white;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; top: 0; }

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

/* ---------- Scroll-reveal ----------
   .reveal-init is only ever added by JS, and only when an IntersectionObserver
   actually runs — so if JS fails or is disabled, nothing here ever applies and
   content stays at its natural opacity/position. */
.reveal-init {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-init.is-visible { opacity: 1; transform: none; }

/* ---------- Project gallery + lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 130px;
  gap: 10px;
}
@media (min-width: 700px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 14px; }
}
.gallery-tile {
  position: relative;
  border: none; padding: 0; margin: 0;
  display: block;
  width: 100%; height: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-ink);
}
.gallery-tile-big { grid-column: span 2; grid-row: span 2; }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.gallery-tile:hover img, .gallery-tile:focus-visible img { transform: scale(1.06); }
.gallery-tile:focus-visible { outline: 3px solid var(--color-teal-solid); outline-offset: 2px; }

.lightbox {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 92vw;
  max-height: 90vh;
  background: var(--color-ink);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox::backdrop { background: rgba(26,14,46,0.85); }
.lightbox img { display: block; max-width: 92vw; max-height: 78vh; width: auto; height: auto; margin: 0 auto; }
.lightbox-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.15);
  color: white; border: none; border-radius: 50%;
  width: 40px; height: 40px; min-width: 40px; min-height: 40px;
  font-size: 1.1rem; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox p { color: white; text-align: center; padding: 14px 20px; margin: 0; font-size: 0.85rem; }
