/*
Theme Name: Handicab
Theme URI: https://handicab.ee
Author: Handicab
Author URI: https://handicab.ee
Description: One-page custom theme for Handicab transport services. Converted from a static HTML mockup; built with Tailwind CSS (pre-compiled, see tailwind/README.md) plus a small amount of custom CSS in this file.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: handicab
*/

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #e5e7eb;
}

/* "Handicab" logo wordmark -- currently unused since the header (header.php)
   renders the logo as an image (assets/images/logo/), not text. Kept here,
   ready to apply again, in case a text-based logo is ever reinstated.
   Eurostile Extended Bold Italic is a commercial/licensed font
   (Linotype/Monotype) -- it isn't on Google Fonts and can't be bundled here
   without a license, so this declares it first and falls back to other
   extended/geometric sans faces so the style (wide, bold, slanted) still
   comes through on devices that don't have it installed. To get the exact
   real typeface, add a licensed .woff2 file and an @font-face rule above
   pointing to it, naming it 'Eurostile Extended'. */
.brand-logo {
    font-family: 'Eurostile Extended', 'Eurostile', 'Bank Gothic', 'Microgramma D Extended', sans-serif;
    font-style: italic;
}

.hero-bg {
    background-color: #000000;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(249, 115, 22, 0.12), transparent 30%),
        radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.04), transparent 40%);
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.08), 0 10px 10px -5px rgba(249, 115, 22, 0.06);
}

#main-header {
    transition: top 0.3s ease-in-out;
}

/* Blog post body copy (single.php) — the_content() output isn't run through
   Tailwind's typography plugin, so give ordinary post HTML sane styling. */
.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: #d1d5db;
}
.post-content h2,
.post-content h3,
.post-content h4 {
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}
.post-content a {
    color: #f97316;
    text-decoration: underline;
}
.post-content a:hover {
    color: #fb923c;
}
.post-content img {
    border-radius: 1rem;
    margin: 2rem 0;
    max-width: 100%;
    height: auto;
}
.post-content ul,
.post-content ol {
    margin: 0 0 1.5rem 1.5rem;
    color: #d1d5db;
}
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content blockquote {
    border-left: 3px solid #f97316;
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: #9ca3af;
    font-style: italic;
}

/* Pagination links on the blog listing (template-blog.php uses paginate_links()). */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #374151;
    color: #d1d5db;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.page-numbers:hover {
    border-color: #f97316;
    color: #f97316;
}
.page-numbers.current {
    background-color: #f97316;
    border-color: #f97316;
    color: #0a0a0a;
    font-weight: 700;
}

/* Rank Math's breadcrumb trail (rank_math_the_breadcrumbs(), printed via
   handicab_breadcrumbs() in functions.php) — plain, unstyled markup by
   default, so give its links/separators the theme's dark-mode colors. */
.handicab-breadcrumbs a {
    color: #9ca3af;
    text-decoration: none;
}
.handicab-breadcrumbs a:hover {
    color: #f97316;
}
.handicab-breadcrumbs .separator {
    margin: 0 0.4rem;
    color: #4b5563;
}
.handicab-breadcrumbs p {
    margin: 0;
}

/* HELISTA / BRONEERI / SÕNUM buttons: black text with a white outline.
   -webkit-text-stroke is centred on the glyph edge, so paint-order puts the
   stroke behind the fill (a clean outline outside the letters); browsers
   without paint-order support fall back to a white text-shadow outline. */
.btn-cta-text {
    color: #000000;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
@supports (paint-order: stroke fill) {
    .btn-cta-text {
        -webkit-text-stroke: 1px #ffffff;
        paint-order: stroke fill;
        text-shadow: none;
    }
}

/* FAQ block (template-parts/faq.php): expandable questions on the Teenused pages. */
.faq-item { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    font-size: 1.125rem;
    line-height: 1.5;
    font-weight: 600;
    color: #ffffff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #f97316;
    transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid #f97316; outline-offset: 2px; }
.faq-item p { margin: 0 0 1.25rem; font-size: 1.125rem; line-height: 1.625; color: #d1d5db; }

/* Visible form field labels (accessibility step 20): +1px over the 12px preview. */
.hc-label { display: block; margin-bottom: 0.375rem; font-size: 13px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: #d1d5db; line-height: 1.3; }

/* Visually hidden text, still read by screen readers. */
.hc-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Form result banner (template-parts/result-banner.php): fixed under the header so it is visible on every page. */
.hc-result { position: fixed; top: 8rem; left: 1rem; right: 1rem; z-index: 55; max-width: 48rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid; text-align: center; backdrop-filter: blur(6px); }
.hc-result p { margin: 0; flex: 1; }
.hc-result button { background: transparent; border: 0; color: inherit; font-size: 1.75rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
.hc-result:focus { outline: none; }
.hc-result button:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }
.hc-result--ok { color: #4ade80; background: rgba(5, 46, 22, 0.92); border-color: rgba(34, 197, 94, 0.5); }
.hc-result--err { color: #fca5a5; background: rgba(69, 10, 10, 0.92); border-color: rgba(239, 68, 68, 0.5); }

/* Tap targets (accessibility step 20, item 8). Hit areas are enlarged with
   invisible ::after boxes / inline padding, so the layout and look stay the same. */
.lang-btn, #burger-btn, footer a, #mobile-menu .mobile-menu-link, #services-menu-btn-mobile { position: relative; }
.lang-btn { margin-inline: 1.5px; }
.lang-btn::after { content: ""; position: absolute; inset: -8px -6px; }
#burger-btn::after { content: ""; position: absolute; inset: -6px; }
footer a::after { content: ""; position: absolute; inset: -6px -4px; }
#mobile-menu nav > .mobile-menu-link::after { content: ""; position: absolute; inset: -8px -12px; }
#services-menu-btn-mobile { padding-block: 3px; }
#services-menu-btn-mobile::after { content: ""; position: absolute; inset: -8px -12px; }
#services-submenu-mobile { padding-bottom: 0.5rem; }
#services-submenu-mobile .mobile-menu-link::after { content: ""; position: absolute; inset: -10px -12px; }
#services-submenu-mobile > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
/* Links inside sentences: a little vertical padding on inline boxes grows the tap area only. */
a.text-brand-orange.underline { padding-block: 0.3rem; }

/* Temporary test mode: greyed-out "Broneeri" with a "Varsti tulekul" tooltip (see handicab_booking_live()). */
.hc-soon { position: relative; display: inline-block; background: #3f3f46; color: #c4c4cc; cursor: not-allowed; user-select: none; }
.hc-soon.hc-soon--pill { display: flex; background: #000; border-color: #52525b; color: #a1a1aa; }
.hc-soon--pill [aria-hidden="true"] { border-color: #52525b; opacity: 0.6; }
.hc-soon:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }
.hc-soon-tip { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 70; background: #0a0a0a; color: #fff; border: 1px solid #f97316; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: none; line-height: 1.3; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.12s; }
.hc-soon-tip::before { content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-bottom-color: #f97316; }
.hc-soon:hover .hc-soon-tip, .hc-soon:focus-visible .hc-soon-tip, .hc-soon.hc-soon--show .hc-soon-tip { opacity: 1; visibility: visible; }

/* Photo gallery buttons + lightbox (see "Photo lightbox" in main.js) */
.hc-gal-btn { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: 0.5rem; cursor: zoom-in; overflow: hidden; }
.hc-gal-btn img { transition: transform 0.25s ease, filter 0.25s ease; }
.hc-gal-btn:hover img { transform: scale(1.03); filter: brightness(1.08); }
.hc-gal-btn:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }
.hc-lb { display: none; position: fixed; inset: 0; z-index: 80; }
.hc-lb--open { display: block; }
.hc-lb-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.96); }
.hc-lb-panel { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 3.5rem 4rem; pointer-events: none; }
.hc-lb-panel:focus { outline: none; }
.hc-lb-fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; pointer-events: auto; }
.hc-lb-img { max-width: 100%; max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); width: auto; height: auto; border-radius: 0.5rem; }
.hc-lb-cap { color: #e5e7eb; font-size: 1rem; text-align: center; max-width: 40rem; }
.hc-lb-count { position: absolute; top: 1rem; left: 1rem; margin: 0; color: #d1d5db; font-size: 0.9rem; }
.hc-lb-btn { position: absolute; width: 3rem; height: 3rem; border-radius: 9999px; border: 1px solid #4b5563; background: rgba(17, 24, 39, 0.85); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; pointer-events: auto; display: flex; align-items: center; justify-content: center; padding: 0 0 0.2rem; }
.hc-lb-btn:hover { border-color: #f97316; color: #f97316; }
.hc-lb-btn:focus-visible { outline: 3px solid #f97316; outline-offset: 2px; }
.hc-lb-close { top: 0.75rem; right: 0.75rem; }
.hc-lb-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.hc-lb-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .hc-lb-panel { padding: 4rem 0.75rem 5.5rem; }
  .hc-lb-prev, .hc-lb-next { top: auto; bottom: 1rem; transform: none; }
  .hc-lb-prev { left: calc(50% - 3.5rem); }
  .hc-lb-next { right: calc(50% - 3.5rem); }
}
@media (prefers-reduced-motion: reduce) { .hc-gal-btn img { transition: none; } }

/* Facebook icon next to the logo: 28px icon, 44px tap area (overlay, no layout change) */
.hc-fb { position: relative; display: inline-flex; line-height: 0; border-radius: 9999px; }
.hc-fb::after { content: ""; position: absolute; inset: -8px; }
.hc-fb svg { transition: transform 0.2s ease, filter 0.2s ease; }
.hc-fb:hover svg { transform: scale(1.1); filter: brightness(1.15); }
.hc-fb:focus-visible { outline: 3px solid #f97316; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .hc-fb svg { transition: none; } }
/* Phones: keep the burger and flag buttons at full size next to the Facebook icon */
@media (max-width: 400px) {
  header .hc-brand { gap: 0.5rem; }
  header .hc-brand img { height: 1.75rem; }
  .hc-fb svg { width: 24px; height: 24px; }
}
@media (max-width: 360px) {
  #main-header > div { padding-left: 1rem; padding-right: 1rem; }
  header .hc-brand { gap: 0.375rem; }
  header .hc-brand img { height: 1.5rem; }
  .hc-fb svg { width: 22px; height: 22px; }
  header .hc-hdr-right { gap: 0.75rem; }
  header .hc-lang-group { padding-left: 0.5rem; }
}
