/*
Theme Name: Al Ahsa Towing (MALIK)
Theme URI: https://sathasalwa.com
Author: MALIK - نقليات الجزيرة
Description: Premium, modern, RTL-ready and SEO-optimized theme for a 24/7 towing service in Al-Ahsa. Fully editable with Elementor and Elementor Pro.
Version: 2.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: alahsa-towing
*/

:root {
  --bg: #070B14;
  --bg-2: #0D1426;
  --card: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .08);
  --amber: #F59E0B;
  --orange: #EA580C;
  --amber-soft: #FCD34D;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --grad: linear-gradient(135deg, #FBBF24 0%, #F59E0B 45%, #EA580C 100%);
  --radius: 20px;
  --shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
  --font: "Tajawal", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--amber-soft); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.01em; }

.container { width: min(1200px, 92%); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-soft);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 20, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.site-title { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.2rem; color: var(--text); }
.site-title .logo {
  width: 42px; height: 42px; border-radius: 12px; background: var(--grad);
  display: grid; place-items: center; color: #0A0E1A; font-weight: 900; font-size: 1rem;
  box-shadow: 0 10px 25px rgba(245, 158, 11, .35);
}
.site-title small { display: block; font-weight: 500; font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-weight: 500; font-size: .98rem; opacity: .85; }
.main-nav a:hover { opacity: 1; color: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--grad); color: #0A0E1A !important; font: inherit; font-weight: 800; font-size: 1rem;
  box-shadow: 0 14px 35px -8px rgba(245, 158, 11, .55);
  transition: transform .3s ease, box-shadow .3s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 22px 45px -10px rgba(245, 158, 11, .7); color: #0A0E1A !important; }
.btn-ghost {
  background: rgba(255, 255, 255, .04); color: var(--text) !important;
  border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--amber); box-shadow: none; }
.btn-sm { padding: 10px 20px; font-size: .92rem; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 110px 0 120px; min-height: 92vh; display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(245, 158, 11, .22), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(234, 88, 12, .16), transparent 60%),
    linear-gradient(180deg, #070B14 0%, #0D1426 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { display: grid; gap: 60px; align-items: center; grid-template-columns: 1.1fr .9fr; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 900; margin: 22px 0; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: #CBD5E1; max-width: 560px; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 2rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

.hero-visual { margin-bottom: 26px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: auto; }
.service-img { width: 100%; border-radius: 18px; margin-bottom: 22px; border: 1px solid var(--line); }

.hero-card {
  position: relative; border-radius: 28px; padding: 34px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(20px);
}
.hero-card .phone { font-size: 2.4rem; font-weight: 900; direction: ltr; text-align: left; margin: 8px 0 18px; }
.hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-card li { display: flex; align-items: center; gap: 12px; color: #E2E8F0; }
.hero-card li::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #0A0E1A; font-weight: 900; font-size: .8rem; flex-shrink: 0; }

/* Sections */
section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin: 16px 0 12px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .4s ease, border-color .4s ease, background .4s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease;
  background: radial-gradient(400px 200px at 100% 0%, rgba(245, 158, 11, .18), transparent 70%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(245, 158, 11, .4); }
.card:hover::before { opacity: 1; }
.icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem;
  background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .25); margin-bottom: 22px; position: relative;
}
.card h3 { font-size: 1.3rem; margin: 0 0 10px; font-weight: 800; position: relative; }
.card p { color: var(--muted); margin: 0; position: relative; }

/* Areas */
.areas-wrap { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.areas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.areas span {
  padding: 12px 22px; border-radius: 999px; background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line); font-weight: 600; transition: all .3s ease;
}
.areas span:hover { border-color: var(--amber); color: var(--amber-soft); transform: translateY(-2px); }

/* Process */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { padding: 30px; border-radius: var(--radius); border: 1px dashed rgba(245, 158, 11, .3); }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 2.6rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 8px; }
.step h4 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* Booking */
.booking { display: grid; gap: 60px; grid-template-columns: .9fr 1.1fr; align-items: start; }
.booking-form {
  display: grid; gap: 16px; padding: 38px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.booking-form .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; padding: 16px 18px; border-radius: 14px; font: inherit; color: var(--text);
  background: rgba(7, 11, 20, .6); border: 1px solid var(--line); transition: border-color .25s ease, box-shadow .25s ease;
}
.booking-form input::placeholder, .booking-form textarea::placeholder { color: #64748B; }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 4px rgba(245, 158, 11, .15); }
.booking-form select option { background: var(--bg-2); }
.booking-form .btn { width: 100%; }
.notice { padding: 16px 20px; border-radius: 14px; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .35); color: #A7F3D0; }

/* Call band */
.cta-band {
  padding: 100px 0; text-align: center; overflow: hidden;
  background: radial-gradient(700px 300px at 50% 0%, rgba(245, 158, 11, .25), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; margin: 0 0 14px; }
.cta-band .phone-big {
  display: inline-block; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; direction: ltr;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 10px 0 26px;
}

/* SEO text block */
.seo-text { color: var(--muted); font-size: .95rem; max-width: 900px; margin: 0 auto; text-align: center; }

/* Footer */
.site-footer { background: #040710; border-top: 1px solid var(--line); padding: 80px 0 28px; color: var(--muted); font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h4 { color: var(--text); margin: 0 0 16px; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--amber); }
.copy { text-align: center; margin: 50px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; }

/* Floating */
.float-actions { position: fixed; bottom: 24px; inset-inline-end: 24px; display: grid; gap: 12px; z-index: 60; }
.float-actions a {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-weight: 900; box-shadow: var(--shadow); transition: transform .3s ease;
}
.float-actions a:hover { transform: scale(1.08); }
.float-actions .wa { background: #25D366; }
.float-actions .tel { background: var(--grad); color: #0A0E1A; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .booking, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 80px 0; }
  section { padding: 80px 0; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 100%; inset-inline: 0; background: var(--bg); padding: 22px; border-bottom: 1px solid var(--line); }
  .main-nav.open ul { flex-direction: column; gap: 16px; }
  .menu-toggle { display: inline-flex !important; }
}
@media (max-width: 560px) {
  .booking-form .row { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .site-header .call-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
