/*
Theme Name: iTaxi Marrakech
Theme URI: https://taximarrakech.ma
Author: iTaxi Marrakech
Author URI: https://taximarrakech.ma
Description: A modern WordPress theme for iTaxi Marrakech taxi service with a beautiful landing page design. Features responsive design, custom navigation, and plugin-friendly architecture.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: itaxi-marrakech
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, Arial, sans-serif;
  color: #10244a;
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: auto;
}

/* NAVBAR */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  color: #fff;
}

.nav-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  letter-spacing: 2px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 13px 13px 18px 18px;
  position: relative;
  display: grid;
  place-items: center;
}

.logo-mark:before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: absolute;
}

.logo-mark:after {
  content: "T";
  font-size: 14px;
  font-weight: 900;
  position: relative;
  z-index: 2;
}

.logo-text {
  font-size: 23px;
  line-height: .85;
}

.logo-text small {
  display: block;
  font-size: 7px;
  letter-spacing: 4px;
  text-align: center;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a {
  opacity: .96;
}

.nav-links a:hover {
  opacity: .7;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.app-btn {
  background: #fff;
  color: #0757d8;
  padding: 12px 18px;
  border-radius: 9px;
  font-weight: 700;
  box-shadow: 0 8px 20px #001c5a20;
}

/* HERO */
.hero {
  min-height: 580px;
  background: linear-gradient(135deg, #1735d9 0%, #0068ee 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 280px;
  background: linear-gradient(transparent, #07349c45);
  pointer-events: none;
}

.cityline {
  position: absolute;
  inset: auto 0 0;
  height: 300px;
  opacity: .14;
  background: linear-gradient(90deg, transparent 0 3%, #061c72 3% 8%, transparent 8% 11%, #061c72 11% 18%, transparent 18% 23%, #061c72 23% 28%, transparent 28% 35%, #061c72 35% 42%, transparent 42% 48%, #061c72 48% 55%, transparent 55% 63%, #061c72 63% 69%, transparent 69% 76%, #061c72 76% 82%, transparent 82% 88%, #061c72 88% 94%, transparent 94%);
  clip-path: polygon(0 62%, 6% 57%, 10% 67%, 16% 50%, 23% 64%, 29% 42%, 35% 62%, 42% 52%, 49% 64%, 56% 45%, 63% 62%, 70% 50%, 77% 64%, 84% 39%, 90% 61%, 96% 46%, 100% 58%, 100% 100%, 0 100%);
}

.hero-inner {
  min-height: 580px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 2;
  padding-top: 45px;
}

.hero-copy {
  max-width: 570px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -2px;
  font-weight: 800;
}

.hero h1 span {
  color: #22d9ff;
}

.hero p {
  font-size: 16px;
  line-height: 1.6;
  margin: 18px 0 25px;
  max-width: 420px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
}

.btn-primary,
.btn-outline {
  padding: 13px 21px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: #fff;
  color: #0757d8;
}

.btn-outline {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
}

.hero-features {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 600;
}

.hero-features span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot-icon {
  width: 19px;
  height: 19px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.hero-visual {
  height: 450px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car {
  position: absolute;
  bottom: 32px;
  left: 0;
  width: 67%;
  height: 150px;
  background: linear-gradient(180deg, #fff, #e9eef7);
  border-radius: 55px 80px 25px 25px;
  box-shadow: 0 22px 35px #001c6b50;
  transform: skewX(-4deg);
}

.car:before {
  content: "";
  position: absolute;
  left: 19%;
  top: -57px;
  width: 53%;
  height: 70px;
  background: #f5f7fb;
  border-radius: 85px 100px 8px 8px;
  box-shadow: inset 0 -12px 20px #ccd5e5;
}

.car:after {
  content: "TAXI";
  position: absolute;
  top: -76px;
  left: 43%;
  background: #fff;
  color: #15316d;
  font-weight: 900;
  font-size: 11px;
  padding: 7px 15px;
  border-radius: 5px;
  box-shadow: 0 5px 12px #001c5a30;
}

.wheel {
  position: absolute;
  bottom: -20px;
  width: 58px;
  height: 58px;
  background: #17213c;
  border: 10px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #17213c;
}

.w1 {
  left: 17%;
}

.w2 {
  right: 15%;
}

.phone {
  position: absolute;
  right: 15px;
  top: 30px;
  width: 205px;
  height: 405px;
  background: #101722;
  border: 6px solid #111a2a;
  border-radius: 31px;
  box-shadow: 0 25px 50px #00174d70;
  padding: 10px;
  z-index: 3;
}

.phone-screen {
  height: 100%;
  border-radius: 22px;
  background: #edf2f7;
  overflow: hidden;
  position: relative;
  color: #17233d;
}

.phone-top {
  height: 28px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 8px;
  font-weight: 700;
}

.map {
  height: 190px;
  background: #e6edf3;
  position: relative;
  overflow: hidden;
}

.map:before,
.map:after {
  content: "";
  position: absolute;
  background: #fff;
  height: 12px;
  transform: rotate(18deg);
  width: 260px;
  top: 65px;
  left: -20px;
  box-shadow: 0 50px #fff, 0 100px #fff;
}

.map:after {
  transform: rotate(-35deg);
  top: 90px;
  left: -25px;
  opacity: .7;
}

.route {
  position: absolute;
  width: 100px;
  height: 135px;
  border-left: 4px solid #075ce9;
  border-bottom: 4px solid #075ce9;
  left: 58px;
  top: 28px;
  transform: skewY(-15deg);
  z-index: 2;
}

.pin {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50% 50% 50% 0;
  background: #075ce9;
  transform: rotate(-45deg);
  z-index: 3;
}

.pin1 {
  left: 52px;
  top: 20px;
}

.pin2 {
  right: 39px;
  bottom: 25px;
}

.search-box {
  margin: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 9px;
  font-size: 9px;
  box-shadow: 0 3px 10px #00000012;
}

.search-box b {
  display: block;
  margin-bottom: 8px;
}

.ride-options {
  display: flex;
  gap: 6px;
  margin: 8px 12px;
}

.ride-option {
  background: #fff;
  border-radius: 7px;
  padding: 8px 5px;
  text-align: center;
  font-size: 7px;
  flex: 1;
}

.confirm {
  margin: 8px 12px;
  background: #075ce9;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 700;
}

/* SECTIONS */
section {
  padding: 55px 0;
}

.section-title {
  text-align: center;
  font-size: 27px;
  margin-bottom: 35px;
}

.section-title:after {
  content: "";
  display: block;
  width: 43px;
  height: 2px;
  background: #145edb;
  margin: 12px auto 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card {
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  padding: 26px 18px;
  text-align: center;
  min-height: 195px;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: #0c5ddc;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
  font-size: 21px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.card p {
  font-size: 12px;
  line-height: 1.65;
  color: #657084;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  text-align: center;
}

.step {
  position: relative;
}

.step:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -45px;
  top: 25px;
  color: #9db2d8;
  font-size: 25px;
}

.step-number {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #0b5edc;
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-weight: 800;
}

.step-icon {
  font-size: 31px;
  color: #0b5edc;
  height: 45px;
}

.step h3 {
  font-size: 14px;
  margin: 8px 0;
}

.step p {
  font-size: 11px;
  color: #687389;
  line-height: 1.6;
}

/* APP / REVIEW */
.promo-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 15px;
}

.promo {
  background: linear-gradient(120deg, #0759d7, #126fe9);
  border-radius: 10px;
  color: #fff;
  padding: 27px 30px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.promo h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.promo p {
  font-size: 12px;
  line-height: 1.5;
  max-width: 330px;
  margin-bottom: 18px;
}

.store-buttons {
  display: flex;
  gap: 8px;
}

.store {
  background: #07131f;
  color: #fff;
  border-radius: 5px;
  padding: 8px 13px;
  font-size: 9px;
  font-weight: 700;
}

.store strong {
  font-size: 12px;
  display: block;
}

.review {
  border: 1px solid #e0e5ed;
  border-radius: 10px;
  padding: 28px 30px;
}

.quote {
  font-size: 35px;
  color: #1461dc;
  line-height: .5;
}

.review p {
  font-size: 13px;
  line-height: 1.6;
  color: #4e5b70;
  margin: 14px 0;
}

.stars {
  color: #f6ae18;
  font-size: 16px;
}

/* FOOTER */
footer {
  background: #061c3c;
  color: #fff;
  padding: 45px 0 35px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 45px;
}

footer .logo {
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 12px;
  line-height: 1.7;
  color: #c6d1e4;
  max-width: 250px;
}

footer h4 {
  font-size: 13px;
  margin-bottom: 15px;
}

footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

footer li,
footer address {
  font-size: 11px;
  color: #c6d1e4;
  font-style: normal;
}

.social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.social span {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #12335f;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.mobile-menu {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: block;
    font-size: 24px;
  }

  .nav-actions .language {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 110px 0 50px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-visual {
    height: 330px;
  }

  .services {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .nav-inner {
    height: 68px;
  }

  .logo-text {
    font-size: 19px;
  }

  .app-btn {
    padding: 10px 12px;
    font-size: 11px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-features {
    gap: 10px;
    flex-wrap: wrap;
  }

  .hero-visual {
    height: 285px;
  }

  .phone {
    width: 145px;
    height: 285px;
    right: 0;
    top: 0;
    border-radius: 22px;
    padding: 6px;
  }

  .phone-screen {
    border-radius: 16px;
  }

  .map {
    height: 125px;
  }

  .route {
    left: 35px;
    top: 20px;
    height: 90px;
    width: 70px;
  }

  .search-box {
    margin: 7px;
    font-size: 7px;
    padding: 6px;
  }

  .ride-options {
    margin: 5px 7px;
  }

  .confirm {
    margin: 5px 7px;
    padding: 7px;
  }

  .car {
    width: 72%;
    height: 95px;
    bottom: 22px;
  }

  .car:before {
    top: -38px;
    height: 48px;
  }

  .car:after {
    top: -50px;
    font-size: 8px;
    padding: 5px 9px;
  }

  .wheel {
    width: 42px;
    height: 42px;
    border-width: 7px;
    bottom: -15px;
  }

  section {
    padding: 42px 0;
  }

  .section-title {
    font-size: 23px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .step:not(:last-child):after {
    content: "↓";
    right: auto;
    top: auto;
    bottom: -30px;
    left: 50%;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
