/* Taxi Business Base — editorial / broadsheet visual system. Vanilla CSS, mobile-first, logical properties. */

:root {
  --color-bg: #ffffff;
  --color-fg: #111111;
  --color-header: #000000;
  --color-on-header: #ffffff;
  --color-accent: #173f68;
  --color-link: #173f68;
  --color-on-accent: #ffffff;
  --color-wa: #25d366;
  --color-muted: #4a4a4a;
  --color-line: #111111;
  --color-surface: #ffffff;
  --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --text: 1.25rem;
  --text-sm: 1.125rem;
  --text-meta: 1rem;
  --lh: 1.6;
  --gutter: clamp(1rem, 4vw, 1.25rem);
  --measure: 52rem;
  --header-h: 3.5rem;
  --bar-h: 5.25rem;
  --radius: 0.125rem;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.25rem;
  --space-5: 3rem;
}

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

html {
  direction: rtl;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--text);
  line-height: var(--lh);
  font-weight: 400;
  color: var(--color-fg);
  background: var(--color-bg);
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -3rem;
  z-index: 100;
  background: var(--color-accent);
  color: var(--color-on-accent);
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.5rem;
}

.wrap {
  width: 100%;
  min-width: 0;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  background: var(--color-header);
  color: var(--color-on-header);
  min-height: var(--header-h);
  position: relative;
}

.site-header__top {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--header-h);
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-logo {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 700;
}

.site-logo svg {
  width: 2rem;
  height: 2rem;
}

.site-logo img {
  width: auto;
  height: 2rem;
  object-fit: contain;
}

.site-logo__mark {
  width: auto;
  height: 1.75rem;
  flex-shrink: 0;
}

.site-logo__name {
  min-width: 0;
  max-width: 100%;
  font-size: var(--text-sm);
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
}

.nav-toggle {
  margin-inline-start: auto;
  flex: 0 0 auto;
}

.nav-toggle summary {
  list-style: none;
  cursor: pointer;
  font-size: var(--text-sm);
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-toggle summary::-webkit-details-marker {
  display: none;
}

.nav-toggle nav {
  position: absolute;
  inset-inline: 0;
  top: var(--header-h);
  background: var(--color-header);
  padding: var(--space-2) var(--gutter) var(--space-3);
  z-index: 40;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu a {
  display: block;
  text-decoration: none;
  padding: 0.75rem 0;
  min-height: 44px;
}

.header-actions {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin-inline-start: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-phone {
  text-decoration: none;
  font-size: var(--text);
  font-weight: 700;
  letter-spacing: 0.01em;
  direction: ltr;
  unicode-bidi: isolate;
}

.header-wa,
.header-cta {
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
}

.header-wa {
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.header-cta {
  background: var(--color-accent);
  color: var(--color-on-accent);
  white-space: nowrap;
}

.site-header__nav-row,
.nav-desktop {
  display: none;
}

@media (max-width: 767px) {
  .site-logo__name {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .site-header__top {
    min-height: 4.5rem;
    padding-block: 0.625rem;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions {
    display: flex;
  }

  .site-header__nav-row {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    border-bottom: 3px double rgba(255, 255, 255, 0.85);
  }

  .nav-desktop {
    display: block;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
  }

  .nav-desktop .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.75rem;
    align-items: center;
    justify-content: flex-start;
  }

  .nav-desktop .menu a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0.625rem 0;
    font-size: var(--text-sm);
    font-weight: 700;
    border-bottom: 3px solid transparent;
  }

  .nav-desktop .menu a:hover,
  .nav-desktop .menu a:focus-visible,
  .nav-desktop .current-menu-item > a,
  .nav-desktop .current_page_item > a {
    border-bottom-color: #ffffff;
  }
}

.site-main {
  padding-block: var(--space-3);
}

@media (min-width: 768px) {
  .site-main {
    padding-block: var(--space-4);
  }
}

.breadcrumb {
  font-size: var(--text-meta);
  color: var(--color-muted);
  margin-bottom: var(--space-2);
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-inline-start: 0.5rem;
  opacity: 0.6;
}

.breadcrumb a {
  text-decoration: underline;
}

.page-title {
  font-size: 1.85rem;
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-3);
  padding-block: 0.7rem;
  border-block: 4px double var(--color-fg);
  text-wrap: balance;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.25rem;
  }
}

.answer-lead {
  font-size: var(--text);
  margin: 0 0 var(--space-3);
}

.fact-strip {
  margin: 0 0 var(--space-3);
}

.fact-strip dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
}

.fact-strip dt {
  font-weight: 700;
}

.fact-strip dd {
  margin: 0;
}

.last-updated,
.post-meta {
  font-size: var(--text-meta);
  color: var(--color-muted);
  margin: 0 0 var(--space-3);
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--color-fg);
  font-variant-numeric: tabular-nums;
}

.featured-image {
  margin: 0 0 var(--space-4);
  border: 2px solid var(--color-fg);
  padding: 0.25rem;
  background: var(--color-bg);
}

.featured-image img {
  width: 100%;
}

.entry-content {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
}

.entry-content > * + * {
  margin-top: var(--space-2);
}

.entry-content h2,
.entry-content h3 {
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  line-height: 1.3;
  text-wrap: balance;
}

.entry-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  padding-block: 0.6rem;
  border-block: 2px solid var(--color-fg);
}

.entry-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  padding-block-end: 0.35rem;
  border-bottom: 1px solid var(--color-fg);
}

.entry-content p,
.entry-content li {
  font-size: var(--text);
  line-height: var(--lh);
}

.entry-content ul,
.entry-content ol {
  padding-inline-start: 1.35rem;
}

.entry-content li + li {
  margin-top: 0.35rem;
}

.entry-content a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.entry-content a[href="#lead"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1rem;
  margin-block: var(--space-2);
  border: 2px solid var(--color-fg);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
}

.entry-content section + section {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-line);
}

/* Mobile-first broadsheet cards: semantic sections become bordered editorial units. */
@media (max-width: 767px) {
  .entry-content section {
    border: 2px solid var(--color-fg);
    padding: var(--space-2);
    background: var(--color-bg);
  }

  .entry-content section + section {
    margin-top: var(--space-3);
    padding-top: var(--space-2);
    border-top: 2px solid var(--color-fg);
  }

  .entry-content section > h2:first-child {
    margin-top: 0;
  }
}

.entry-content hr {
  border: 0;
  border-top: 4px double var(--color-line);
  margin-block: var(--space-4);
}

.entry-content blockquote {
  margin: var(--space-3) 0;
  padding: var(--space-2);
  border: 2px solid var(--color-line);
  background: var(--color-bg);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.entry-content th,
.entry-content td {
  padding: 0.65rem;
  border: 1px solid var(--color-line);
  text-align: start;
  vertical-align: top;
}

.entry-content th {
  font-weight: 800;
}

.post-list__item + .post-list__item {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 2px solid var(--color-line);
}

.post-list__item h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.site-footer {
  background: var(--color-header);
  color: var(--color-on-header);
  padding: var(--space-4) 0 calc(var(--space-4) + 0.5rem);
  font-size: var(--text-sm);
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
}

.site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-footer .menu a {
  text-decoration: none;
  padding-block: 0.4rem;
}

.footer-phone {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 700;
  font-size: var(--text);
  text-decoration: none;
  display: inline-block;
}

.footer-copy {
  opacity: 0.8;
  font-size: var(--text-meta);
}

@media (min-width: 768px) {
  .site-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-4);
  }
}


.bottom-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 0.75fr 1.6fr 1.2fr;
  gap: 0.25rem;
  direction: ltr;
  background: #000;
  color: var(--color-on-header);
  min-height: var(--bar-h);
  padding: 0.25rem;
  padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
}

.bottom-bar a,
.bottom-bar span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  min-height: 44px;
  padding: 0.45rem 0.35rem;
  border-radius: 0;
}

.bottom-bar__wa {
  background: #fff;
  color: #111;
  border: 1px solid #fff;
}

.bottom-bar__icon {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
}

.bottom-bar__form {
  background: #fff;
  color: #111;
  border: 1px solid #fff;
}

.bottom-bar__call {
  background: var(--color-accent);
  color: var(--color-on-accent);
  border: 1px solid #fff;
}

.is-disabled {
  opacity: 0.55;
  cursor: default;
}

.header-phone--placeholder,
.footer-phone--placeholder {
  opacity: 0.8;
}

@media (min-width: 768px) {
  .bottom-bar {
    display: none;
  }
}

#lead {
  border: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  width: min(32rem, 100%);
  max-height: 100dvh;
  margin: auto;
}

#lead:not([open]):not(:target) {
  display: none;
}

#lead:target {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 80;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
}

#lead[open] {
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  #lead[open] {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
  }
}

#lead::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.lead-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: var(--space-3);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  overflow: auto;
}

.lead-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.lead-panel__top h2 {
  margin: 0;
  font-size: 1.25rem;
}

.lead-close {
  text-decoration: none;
  font-size: var(--text-sm);
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  font-size: var(--text);
  line-height: 1.4;
  padding: 0.7rem 0.75rem;
  border: 2px solid var(--color-fg);
  border-radius: var(--radius);
  min-height: 44px;
  width: 100%;
  background: #fff;
  color: var(--color-fg);
}

.lead-form input::placeholder {
  font-size: var(--text);
  color: #6b6b6b;
  opacity: 1;
}

.lead-submit {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 800;
  min-height: 48px;
  border: 2px solid var(--color-fg);
  border-radius: var(--radius);
  background: var(--color-accent);
  color: var(--color-on-accent);
  cursor: pointer;
}

.system-note {
  font-size: var(--text-meta);
  color: var(--color-muted);
}

.not-found {
  padding-block: var(--space-5);
}

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


/* Optional semantic utility for intentionally boxed editorial content. */
.editorial-card {
  border: 2px solid var(--color-fg);
  padding: var(--space-2);
  background: var(--color-bg);
}
