/*
Theme Name: Rolling Miles
Theme URI: https://www.rollingmiles.in
Author: Rolling Miles
Description: A travel and tour-operator theme with a road-route hero, destination and tour post types, and a built-in trip enquiry form.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rollingmiles
*/

:root {
	--ink: #12263A;
	--ink-soft: #35506B;
	--sky: #E6F0F5;
	--mist: #F3F7F9;
	--marigold: #F4A300;
	--marigold-dark: #C98500;
	--pine: #1F6F5C;
	--road: #5C6B76;
	--white: #FFFFFF;
	--line: #D5E0E7;
	--font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
	--wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pine); }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 40px, 780px); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--marigold); color: var(--ink); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* Buttons */
.btn { display: inline-block; background: var(--marigold); color: var(--ink); font: 700 1rem/1 var(--font-body); padding: 15px 26px; border: 2px solid var(--marigold); border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--marigold-dark); border-color: var(--marigold-dark); color: var(--ink); }
.btn--sm { padding: 11px 20px; font-size: .95rem; }
.btn--block { display: block; width: 100%; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); color: var(--white); }
.btn--ghost-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__name { font: 800 1.35rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.custom-logo { max-height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { text-decoration: none; font-weight: 500; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--pine); }
.site-nav__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 2px solid var(--ink); border-radius: 999px; padding: 8px 16px; font: 700 .95rem var(--font-body); color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; padding: clamp(56px, 9vw, 120px) 0; }
.hero__road { position: absolute; inset: 0; }
.hero__road svg { width: 100%; height: 100%; }
.road-bed { fill: none; stroke: rgba(255,255,255,.09); stroke-width: 64; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.road-line { fill: none; stroke: var(--marigold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 16; }
.road-stop { fill: var(--ink); stroke: var(--marigold); stroke-width: 4; }
.road-stop--end { fill: var(--marigold); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__title { color: var(--white); max-width: 11ch; }
.hero__sub { font-size: 1.2rem; max-width: 46ch; color: #D4E2EC; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__card { background: var(--white); color: var(--ink); border-radius: 18px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 24px 60px rgba(4, 14, 26, .45); }
.hero__card-title { font-size: 1.6rem; margin-bottom: .15em; }
.hero__card-sub { color: var(--road); font-size: .95rem; margin-bottom: 1.1em; }

/* Road draws itself once on load */
@media (prefers-reduced-motion: no-preference) {
	.road-bed { stroke-dashoffset: 1; animation: rm-draw 2.6s cubic-bezier(.5,.1,.2,1) .2s forwards; }
	.road-line { opacity: 0; animation: rm-fade .6s ease 1.6s forwards; }
	.road-stop { opacity: 0; animation: rm-fade .5s ease 2.2s forwards; }
}
@keyframes rm-draw { to { stroke-dashoffset: 0; } }
@keyframes rm-fade { to { opacity: 1; } }

/* Forms */
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 5px; }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--mist); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--pine); background: var(--white); box-shadow: 0 0 0 3px rgba(31,111,92,.2); }
.notice { border-radius: 8px; padding: 12px 14px; font-size: .95rem; margin-bottom: 14px; }
.notice--ok { background: #E3F4EC; color: #0F4D3B; }
.notice--err { background: #FCE8E6; color: #8A1F14; }
.notice--info { background: var(--sky); color: var(--ink-soft); }

/* Sections */
.section { padding: clamp(52px, 7vw, 96px) 0; }
.section--tint { background: var(--mist); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2, .section__title { margin: 0; }
.section__title { margin-bottom: 28px; }
.link-more { font-weight: 700; }

/* Cards */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ink); }
.card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sky); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(140deg, var(--g1, #1F6F5C), var(--g2, #A5D6A7)); }
.card__body { padding: 18px 20px 22px; }
.card__title { font-size: 1.3rem; margin-bottom: .25em; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; }
.card__meta { color: var(--road); font-size: .95rem; margin: 0; }
.card { position: relative; }
.card__title a::after { inset: 0; }

/* Steps: a real sequence */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px dashed var(--marigold); }
.steps__item { counter-increment: step; position: relative; padding: 34px 28px 0 0; }
.steps__item::before { content: counter(step); position: absolute; top: -17px; left: 0; width: 31px; height: 31px; border-radius: 50%; background: var(--ink); color: var(--white); font: 700 .95rem/31px var(--font-display); text-align: center; }
.steps__item p { color: var(--ink-soft); max-width: 32ch; }

/* Testimonials */
.quote { margin: 0; background: var(--white); border-radius: 12px; padding: 26px; border: 1px solid var(--line); }
.quote blockquote { margin: 0 0 16px; font-size: 1.05rem; }
.quote figcaption strong { display: block; }
.quote figcaption span { color: var(--road); font-size: .92rem; }

/* CTA */
.cta { background: var(--marigold); }
.cta__inner { padding: clamp(44px, 6vw, 76px) 0; text-align: left; }
.cta h2 { margin-bottom: .2em; }
.cta p { max-width: 50ch; }
.cta .btn { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cta .btn:hover { background: #0A1826; border-color: #0A1826; color: var(--white); }

/* Inner pages */
.page-head { background: var(--sky); padding: clamp(40px, 6vw, 72px) 0; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: .2em; }
.page-head p { color: var(--ink-soft); max-width: 55ch; margin-bottom: 1em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: .95rem; }
.entry__hero { margin: 32px 0; border-radius: 10px; overflow: hidden; }
.entry__content { padding: 32px 0 24px; max-width: 70ch; }
.entry__content h2, .entry__content h3 { margin-top: 1.6em; }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__cta { background: var(--mist); border-radius: 12px; padding: 26px 28px; margin: 12px 0 56px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.entry__cta p { margin: 0; font-weight: 700; font-size: 1.1rem; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.comments { padding: 24px 0 56px; }
.comment-list { padding-left: 1.2em; }

/* Footer */
.site-footer { background: var(--ink); color: #C5D5E1; padding: 56px 0 0; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--marigold); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer__brand { font: 800 1.5rem var(--font-display); color: var(--white); margin-bottom: .3em; }
.site-footer__h { font-weight: 700; color: var(--white); margin-bottom: .6em; }
.site-footer .menu { list-style: none; margin: 0 0 12px; padding: 0; }
.site-footer .menu li { margin-bottom: 6px; }
.site-footer .menu--inline { display: flex; gap: 16px; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 40px; padding: 20px 0; font-size: .9rem; }
.site-footer__legal p { margin: 0; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.28); }
.wa-float:hover { color: var(--white); transform: scale(1.06); }

/* Responsive */
@media (max-width: 980px) {
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.hero__grid { grid-template-columns: 1fr; }
	.hero__title { max-width: 14ch; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
	.nav-toggle { display: inline-block; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px; }
	.site-nav.is-open { display: flex; }
	.site-nav .menu { flex-direction: column; gap: 12px; }
	.steps { grid-template-columns: 1fr; border-top: 0; border-left: 3px dashed var(--marigold); }
	.steps__item { padding: 0 0 30px 32px; }
	.steps__item::before { top: 0; left: -17px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.grid--3 { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.card, .btn, .wa-float { transition: none; }
}
