/*
Theme Name: Fern Pattaya Taxi 2026
Theme URI: https://fernpattayataxi.com/
Author: Fern Pattaya Taxi
Description: Fast, responsive private taxi theme for Fern Pattaya Taxi. Compatible with Rank Math SEO and WordPress 7.x.
Version: 1.1.3
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: fern-pattaya-taxi
*/

:root {
  --navy: #24103f;
  --navy-2: #120721;
  --blue: #7136d4;
  --blue-2: #1fa9ed;
  --sky: #f1ecff;
  --green: #08a85b;
  --line: #06c755;
  --wa: #25d366;
  --ink: #201631;
  --muted: #655c72;
  --paper: #ffffff;
  --soft: #faf7ff;
  --border: #e5dcef;
  --shadow: 0 18px 50px rgba(55, 23, 94, .13);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section--blue { color: #fff; background: linear-gradient(135deg, var(--navy), var(--blue)); }
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.section--blue .eyebrow { color: #9ed8ff; }
.section-title { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; letter-spacing: -.03em; }
.section-lead { max-width: 740px; margin: 16px auto 0; color: var(--muted); font-size: 18px; }
.section-head { max-width: 820px; margin: 0 auto 42px; text-align: center; }
.section--blue .section-lead { color: #d9efff; }

.topbar { color: #d9efff; background: var(--navy-2); font-size: 13px; }
.topbar__inner { min-height: 34px; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.topbar__links { display: flex; gap: 18px; align-items: center; }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; z-index: 50; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(217,230,239,.9); backdrop-filter: blur(14px); }
.header__inner { min-height: 96px; display: flex; gap: 28px; align-items: center; }
.brand { display: inline-flex; min-width: 230px; align-items: center; }
.brand img { display: block; width: 230px; height: 92px; object-fit: contain; object-position: left center; }
.site-nav { display: flex; flex: 1; gap: 26px; align-items: center; justify-content: center; font-size: 14px; font-weight: 750; }
.site-nav a { padding: 12px 0; }
.site-nav a:hover { color: var(--blue); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; color: var(--navy); background: #fff; font-size: 22px; }

.btn {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(7,42,78,.16); }
.btn--primary { color: #fff; background: var(--blue); }
.btn--outline { color: var(--navy); border-color: var(--border); background: #fff; }
.btn--whatsapp { color: #052f18; background: var(--wa); }
.btn--line { color: #fff; background: var(--line); }
.btn--dark { color: #fff; background: #101d27; }

.hero { padding: 18px 0 0; background: linear-gradient(180deg, #f7fbff 0%, #fff 100%); }
.hero__visual {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: grid;
  padding: 54px;
  border: 1px solid #d4e9f8;
  border-radius: 30px;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  background:
    radial-gradient(circle at 78% 20%, rgba(43,152,230,.23), transparent 34%),
    linear-gradient(135deg, #e9f7ff 0%, #fff 58%, #e8fff4 100%);
  box-shadow: var(--shadow);
}
.hero__copy { position: relative; z-index: 2; }
.hero h1 { margin: 0; color: var(--navy); font-size: clamp(42px, 5.7vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.hero h1 span { color: var(--blue); }
.hero__tagline { max-width: 620px; margin: 22px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__image { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; }
.hero__image img { width: min(100%, 670px); filter: drop-shadow(0 24px 24px rgba(7,42,78,.18)); }
.hero__badge {
  position: absolute;
  right: 24px;
  bottom: 26px;
  padding: 15px 18px;
  border-radius: 16px;
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.hero__badge strong { display: block; font-size: 22px; }
.trustbar { display: grid; gap: 12px; padding: 24px 0 34px; grid-template-columns: repeat(4, 1fr); }
.trustitem { display: flex; min-height: 64px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 16px; align-items: center; gap: 11px; background: #fff; box-shadow: 0 8px 20px rgba(7,42,78,.06); }
.trustitem__icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; place-items: center; color: var(--blue); background: var(--sky); }
.trustitem strong { display: block; font-size: 14px; line-height: 1.2; }
.trustitem small { color: var(--muted); }

.story-grid { display: grid; gap: 42px; grid-template-columns: .9fr 1.1fr; align-items: center; }
.story-panel { min-height: 430px; position: relative; overflow: hidden; padding: 40px; border-radius: var(--radius); color: #fff; background: linear-gradient(145deg, var(--navy), var(--blue)); box-shadow: var(--shadow); }
.story-panel::after { width: 250px; height: 250px; position: absolute; right: -60px; bottom: -70px; border: 42px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.story-panel__price { position: absolute; right: 32px; bottom: 30px; z-index: 1; }
.story-panel__price span { display: block; color: #bfe5ff; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.story-panel__price strong { font-size: 42px; line-height: 1; }
.feature-list { display: grid; gap: 14px; margin-top: 28px; }
.feature { display: grid; gap: 4px 12px; grid-template-columns: 30px 1fr; }
.feature__check { display: grid; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--green); place-items: center; font-weight: 900; }
.feature strong { align-self: center; }
.feature p { margin: 0; color: var(--muted); grid-column: 2; }

.fleet-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.fleet-card { overflow: hidden; position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 32px rgba(7,42,78,.07); }
.fleet-card__image { height: 150px; display: flex; align-items: center; justify-content: center; }
.fleet-card__image img { max-height: 126px; object-fit: contain; transition: transform .25s ease; }
.fleet-card:hover .fleet-card__image img { transform: scale(1.05); }
.fleet-card h3 { margin: 8px 0 3px; color: var(--navy); font-size: 24px; }
.fleet-price { color: var(--blue); font-size: 34px; font-weight: 900; letter-spacing: -.04em; }
.fleet-price small { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.fleet-meta { min-height: 70px; margin: 14px 0 20px; color: var(--muted); font-size: 14px; }
.fleet-card .btn { width: 100%; }

.rates-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.rates { width: 100%; border-collapse: collapse; min-width: 790px; }
.rates th, .rates td { padding: 17px 18px; border-bottom: 1px solid var(--border); text-align: center; }
.rates th { color: #fff; background: var(--navy); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.rates th:first-child, .rates td:first-child { text-align: left; }
.rates tbody tr:nth-child(even) { background: #f7fbfe; }
.rates tbody tr:hover { background: var(--sky); }
.rates td:first-child { color: var(--navy); font-weight: 800; }
.rates td:not(:first-child) { color: var(--blue); font-weight: 900; }
.rates-note { margin: 18px 0 0; color: var(--muted); text-align: center; }

.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step { padding: 28px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); background: rgba(255,255,255,.09); }
.step__number { display: grid; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 15px; place-items: center; color: var(--navy); background: #fff; font-weight: 900; }
.step h3 { margin: 0 0 8px; font-size: 22px; }
.step p { margin: 0; color: #d9efff; }

.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0 22px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 8px 20px rgba(7,42,78,.04); }
.faq summary { cursor: pointer; padding: 20px 34px 20px 0; color: var(--navy); font-weight: 850; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { float: right; margin-right: -25px; content: "+"; color: var(--blue); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 0 20px; color: var(--muted); }

.contact-grid { display: grid; gap: 26px; grid-template-columns: .9fr 1.1fr; }
.contact-card { padding: 34px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.contact-list { display: grid; margin-top: 24px; }
.contact-row { display: grid; min-width: 0; padding: 15px 0; gap: 3px 14px; grid-template-columns: 46px minmax(0, 1fr); grid-template-areas: "icon label" "icon value"; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: 0; }
.contact-row__icon { display: grid; width: 46px; height: 46px; border-radius: 13px; color: var(--blue); background: var(--sky); place-items: center; grid-area: icon; font-weight: 900; }
.contact-row strong { align-self: end; color: var(--navy); grid-area: label; line-height: 1.3; }
.contact-row > a, .contact-row > span:not(.contact-row__icon) { min-width: 0; color: var(--muted); grid-area: value; overflow-wrap: anywhere; line-height: 1.45; }
.contact-row > a:hover { color: var(--blue); }
.contact-cta { padding: 40px; border-radius: var(--radius); color: #fff; background: linear-gradient(145deg, var(--navy), var(--blue)); box-shadow: var(--shadow); }
.contact-cta h2 { margin: 0; font-size: clamp(30px,4vw,45px); line-height: 1.1; }
.contact-cta p { color: #d9efff; }
.contact-cta__buttons { display: grid; gap: 12px; margin-top: 24px; }

.site-footer { padding: 50px 0 28px; color: #bed0df; background: #041521; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.3fr .8fr .9fr; }
.footer-brand img { width: 260px; padding: 9px; border-radius: 14px; background: #fff; }
.site-footer h3 { margin: 0 0 15px; color: #fff; font-size: 16px; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { display: flex; margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); justify-content: space-between; gap: 20px; font-size: 13px; }

.floating-contact { position: fixed; z-index: 45; right: 18px; bottom: 20px; display: grid; gap: 10px; }
.floating-contact a { display: grid; width: 54px; height: 54px; border-radius: 50%; place-items: center; color: #fff; box-shadow: 0 10px 24px rgba(7,42,78,.24); font-size: 22px; font-weight: 900; }
.floating-contact__wa { background: var(--wa); }
.floating-contact__call { background: var(--blue); }
.page-content { min-height: 58vh; padding: 70px 0; }
.page-content__inner { max-width: 900px; }
.screen-reader-text { position: absolute !important; overflow: hidden; width: 1px; height: 1px; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

@media (max-width: 1020px) {
  .site-nav { position: fixed; inset: 130px 16px auto; display: none; padding: 18px; border: 1px solid var(--border); border-radius: 18px; align-items: stretch; flex-direction: column; background: #fff; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .header-actions .btn--outline { display: none; }
  .hero__visual { grid-template-columns: 1fr; padding: 42px; }
  .hero__image { margin-top: 24px; }
  .story-grid, .contact-grid { grid-template-columns: 1fr; }
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 62px 0; }
  .topbar__inner { padding: 7px 0; justify-content: center; text-align: center; }
  .topbar__links a:not(:first-child), .topbar__welcome { display: none; }
  .header__inner { min-height: 78px; }
  .brand { min-width: 0; margin-right: auto; }
  .brand img { width: 155px; height: 70px; }
  .header-actions .btn { display: none; }
  .site-nav { inset: 116px 16px auto; }
  .hero { padding-top: 10px; }
  .hero__visual { min-height: 0; padding: 30px 22px; border-radius: 22px; }
  .hero h1 { font-size: 42px; }
  .hero__buttons .btn { width: 100%; }
  .hero__badge { position: static; margin-top: 18px; }
  .trustbar { grid-template-columns: 1fr 1fr; }
  .trustitem { padding: 10px; }
  .trustitem small { display: none; }
  .story-panel { min-height: 340px; }
  .fleet-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .fleet-card__image { height: 130px; }
  .rates th, .rates td { padding: 14px 12px; }
  .contact-card { padding: 26px 22px; }
  .contact-card .section-title { font-size: 34px; }
  .contact-row { gap: 3px 12px; grid-template-columns: 44px minmax(0, 1fr); }
  .contact-row__icon { width: 44px; height: 44px; }
  .contact-cta { padding: 30px 22px; }
  .footer-bottom { flex-direction: column; }
  .floating-contact { right: 12px; bottom: 12px; }
  .floating-contact a { width: 50px; height: 50px; }
}

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