/*
Theme Name: SriRide
Theme URI: https://sriride.com/
Author: SriRide
Description: A light, modern block theme for SriRide private transfers in Sri Lanka. Pairs with the SriRide Booking plugin for the booking form and fleet.
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 8.0
Version: 1.2.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sriride
Tags: block-theme, full-site-editing, one-column, wide-blocks
*/

/* Small touches theme.json cannot express. Loaded on the front end and in the editor. */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(img) { max-width: 100%; height: auto; }
.screen-reader-text:focus { clip: auto !important; }

/* Header */
.sr-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--wp--preset--color--line); }
.admin-bar .sr-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .sr-header { top: 0; } }
.sr-logo img { display: block; height: 30px; width: auto; }
.sr-header .wp-block-navigation a { text-decoration: none; }
.sr-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }
.sr-header .wp-block-navigation__responsive-container.is-menu-open { padding: 2rem 1.5rem; }
.sr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.25rem; font-size: 1.25rem; }
.sr-header-actions .wp-block-button__link { padding: .6rem 1.1rem; font-size: .95rem; white-space: nowrap; }
@media (max-width: 600px) { .sr-hide-mobile { display: none !important; } }

/* Buttons */
.wp-block-button.is-style-outline > .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: inherit; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--ink); color: #fff; }
.is-style-sr-dark > .wp-block-button__link { background: var(--wp--preset--color--ink); }
.is-style-sr-dark > .wp-block-button__link:hover { background: #1e293b; }
.sr-btn-wa > .wp-block-button__link { background: #25d366; color: #0b1220; }
.sr-btn-wa > .wp-block-button__link:hover { background: #1fbd5a; color: #0b1220; }
.wp-block-button__link { transition: background-color .15s, transform .1s; text-decoration: none; }
.wp-block-button__link:active { transform: translateY(1px); }

/* Hero */
.sr-hero { min-height: min(860px, 100svh); }
.sr-hero .wp-block-cover__inner-container { width: 100%; }
.sr-hero h1 { color: #fff; text-wrap: balance; }
.sr-eyebrow { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sr-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--wp--preset--color--accent); }
.sr-hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.sr-hero-points li { display: flex; align-items: center; gap: .45rem; }
.sr-hero-points li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 65% no-repeat; }
.sr-hero .srb-booking { margin-left: auto; }
@media (max-width: 781px) {
	.sr-hero { min-height: 0; }
	.sr-hero .srb-booking { margin: 0 auto; }
}

/* Cards and sections */
.sr-card { border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--m); background: #fff; height: 100%; transition: box-shadow .2s, transform .2s; }
.sr-card:hover { box-shadow: var(--wp--preset--shadow--soft); transform: translateY(-2px); }
.sr-card h3 { margin-top: 0; }
.sr-card a { text-decoration: none; }
.sr-card .sr-more { font-weight: 600; color: var(--wp--preset--color--accent); }
.sr-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--wp--preset--color--accent-soft); color: var(--wp--preset--color--accent); font-size: 1.4rem; line-height: 1; }
.sr-step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wp--preset--color--ink); color: #fff; font-weight: 700; font-family: var(--wp--preset--font-family--heading); }
.sr-section-head > * { max-width: 640px; }
.sr-section-head > .wp-block-heading { max-width: 820px; }
.sr-eyebrow.has-text-align-center { display: flex; justify-content: center; }
.sr-section-head p { color: var(--wp--preset--color--muted); }
.sr-rounded img, .sr-rounded { border-radius: var(--wp--custom--radius--l); }
.sr-rounded img { display: block; }
.sr-trust { border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.sr-trust p { margin: 0; }
.sr-trust strong { display: block; font-family: var(--wp--preset--font-family--heading); font-size: 1.05rem; }

.sr-checks { list-style: none; padding: 0; display: grid; gap: .5rem; }
.sr-checks li { position: relative; padding-left: 1.75rem; }
.sr-checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--wp--preset--color--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f05a28' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Routes */
.sr-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sr-route { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; background: #fff; }
.sr-route-name { font-weight: 600; }
.sr-route-meta { display: block; font-size: .85rem; color: var(--wp--preset--color--muted); font-weight: 400; }
.sr-route-price { text-align: right; white-space: nowrap; font-size: .8rem; color: var(--wp--preset--color--muted); }
.sr-route-price strong { display: block; font-size: 1.15rem; color: var(--wp--preset--color--ink); }

/* FAQ */
.wp-block-details summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--wp--preset--color--accent); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: var(--wp--preset--color--muted); }

/* Footer */
.sr-footer a { color: inherit; text-decoration: none; }
.sr-footer a:hover { color: #fff; text-decoration: underline; }
.sr-footer .sr-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.sr-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }

/* Floating WhatsApp */
.sr-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 95; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .45); transition: transform .15s; }
.sr-wa-float:hover { transform: scale(1.06); }
.sr-wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Single vehicle */
.sr-vehicle-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: linear-gradient(180deg, #f8fafc, #eef2f7); border-radius: var(--wp--custom--radius--l); padding: 24px; }

/* Contact page */
.sr-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.sr-contact-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--wp--preset--color--line); border-radius: var(--wp--custom--radius--m); background: #fff; color: var(--wp--preset--color--ink); text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.sr-contact-card:hover { box-shadow: var(--wp--preset--shadow--soft); transform: translateY(-2px); border-color: transparent; color: var(--wp--preset--color--ink); }
.sr-contact-card strong { font-family: var(--wp--preset--font-family--heading); font-size: 1.15rem; margin-top: 6px; }
.sr-contact-card-text { color: var(--wp--preset--color--muted); font-size: .95rem; line-height: 1.5; flex: 1; }
.sr-contact-card-cta { color: var(--wp--preset--color--accent); font-weight: 600; font-size: .95rem; word-break: break-word; }
.sr-btn-light > .wp-block-button__link { color: #fff !important; border-color: rgba(255, 255, 255, .5) !important; }
.sr-btn-light > .wp-block-button__link:hover { background: #fff !important; color: var(--wp--preset--color--ink) !important; border-color: #fff !important; }
