/*
Theme Name: Akash Poly Clinic
Theme URI: https://www.akashpolyclinic.com/
Author: Vogatti Technologies
Description: Custom bilingual (English / Gujarati) block theme for Akash Poly Clinic, Valsad. Clean clinical blue design, built for the Site Editor.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: akash
*/

/* Small extras that theme.json cannot express. */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:lang(gu) body, body:lang(gu) { line-height: 1.85; }
:lang(gu) h1, :lang(gu) h2, :lang(gu) h3, :lang(gu) h4 { letter-spacing: 0; line-height: 1.35; }

.skip-link.screen-reader-text:focus { background: #0b2f4a; color: #fff; }

/* ---------- Top bar + sticky header ---------- */
/* The template-part wrapper must not be the sticky header's containing block. */
.ak-header-part { display: contents; }
.ak-landing > .alignfull { margin-block: 0 !important; }
.ak-topbar { font-size: .82rem; }
.ak-topbar p { margin: 0; }
.ak-logo { margin: 0; flex-shrink: 0; }
.ak-logo img { display: block; }
.ak-topbar a { color: inherit; text-decoration: none; }
.ak-topbar a:hover { text-decoration: underline; }
.ak-topbar .ak-sep { opacity: .45; }

.ak-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .94) !important;
	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 .ak-header { top: var(--wp-admin--admin-bar--height, 32px); }
.ak-header .wp-block-navigation a { text-decoration: none; }
.ak-header .wp-block-navigation .wp-block-navigation-item__content:hover,
.ak-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.ak-header .wp-block-navigation [aria-current="page"] { color: var(--wp--preset--color--blue); }
.ak-header .wp-block-navigation__submenu-container { border-radius: 12px; border: 1px solid var(--wp--preset--color--line) !important; box-shadow: 0 18px 40px rgba(11, 47, 74, .12); padding: .4rem 0; min-width: 250px !important; }
.ak-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .5rem 1.1rem !important; }
.ak-brand { gap: .7rem !important; }
.ak-brand-name { font-weight: 800; font-size: 1.15rem; line-height: 1.1; color: var(--wp--preset--color--navy); letter-spacing: -.01em; }
.ak-brand-name a { color: inherit; text-decoration: none; }
.ak-brand-tag { font-size: .74rem; color: var(--wp--preset--color--muted); line-height: 1.2; margin-top: .15rem !important; }

/* Language switch */
.ak-lang { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--wp--preset--color--blue-dark); border: 1px solid var(--wp--preset--color--line); border-radius: 999px; padding: .35rem .8rem; white-space: nowrap; }
.ak-lang:hover { border-color: var(--wp--preset--color--blue); color: var(--wp--preset--color--blue); }
.ak-lang svg { width: 16px; height: 16px; }
.ak-header .wp-block-shortcode, .ak-header p:has(> .ak-lang) { margin: 0; }

/* ---------- Generic helpers ---------- */
.ak-eyebrow {
	text-transform: uppercase;
	letter-spacing: .16em;
	font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700;
	color: var(--wp--preset--color--blue);
}
:lang(gu) .ak-eyebrow { letter-spacing: .04em; text-transform: none; }
.has-navy-background-color .ak-eyebrow, .has-hero-gradient-background .ak-eyebrow { color: #9fd3f5; }

.ak-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	box-shadow: 0 10px 30px rgba(11, 47, 74, .06);
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	height: 100%;
}
a.ak-card, .ak-card a { text-decoration: none; }
.ak-card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(11, 47, 74, .12); border-color: #b9d9ef; }
.ak-card .ak-more { font-weight: 600; font-size: .9rem; }
.ak-card .ak-more::after { content: " \2192"; transition: margin .2s ease; }
.ak-card:hover .ak-more::after { margin-left: .25rem; }

.ak-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--wp--preset--color--sky); color: var(--wp--preset--color--blue); }
.ak-icon svg { width: 26px; height: 26px; }

.ak-rounded img, img.ak-rounded { border-radius: 22px; }
.ak-portrait img { border-radius: 22px; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 20px 45px rgba(11, 47, 74, .18); }

/* Hero */
.ak-hero { position: relative; overflow: hidden; }
.ak-hero::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 70%);
	pointer-events: none;
}
.ak-hero h1 { color: #fff; }
.ak-hero .ak-hero-card { color: var(--wp--preset--color--ink); }
.ak-hero .ak-hero-card h3 { color: var(--wp--preset--color--navy); }

.ak-btn-outline-light .wp-block-button__link { background: transparent !important; border: 2px solid rgba(255, 255, 255, .7) !important; color: #fff !important; }
.ak-btn-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .12) !important; }
.ak-btn-green .wp-block-button__link { background: #1f8f4e !important; }
.ak-btn-green .wp-block-button__link:hover { background: #17733e !important; }
.ak-btn-white .wp-block-button__link { background: #fff !important; color: var(--wp--preset--color--blue-dark) !important; }
.ak-btn-white .wp-block-button__link:hover { background: var(--wp--preset--color--sky) !important; }

/* Schedule list */
.ak-hours { list-style: none; padding: 0 !important; margin: 0; }
.ak-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--wp--preset--color--line); }
.ak-hours li:last-child { border-bottom: 0; }
.ak-hours li strong { font-weight: 600; }
.ak-hours .ak-closed { color: #b3261e; font-weight: 600; }

/* Stats */
.ak-stat { text-align: center; }
.ak-stat .ak-num { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; margin: 0; }
.ak-stat .ak-num::after { content: "+"; color: #9fd3f5; }
.ak-stat .ak-label { margin: .4rem 0 0; color: #cfe7f7; font-weight: 600; letter-spacing: .05em; }

/* Feature boxes (blue tiles) */
.ak-tiles > .wp-block-column { border-radius: 18px; padding: 1.75rem !important; color: #fff; }
.ak-tiles > .wp-block-column:nth-child(1) { background: #107fc9; }
.ak-tiles > .wp-block-column:nth-child(2) { background: #0b6fb3; }
.ak-tiles > .wp-block-column:nth-child(3) { background: #0b5f99; }
.ak-tiles > .wp-block-column:nth-child(4) { background: #0b2f4a; }
.ak-tiles h3 { color: #fff; }
.ak-tiles a:not(.wp-block-button__link) { color: #fff; }
.ak-tiles .ak-hours li { border-color: rgba(255, 255, 255, .25); }
.ak-tiles .ak-hours .ak-closed { color: #ffd2cc; }

/* Page title band */
.ak-stack > * + * { margin-top: 1.25rem !important; }
.ak-stack .ak-card { height: auto; }
.ak-ci { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem !important; color: var(--wp--preset--color--blue-dark); }
.ak-ci:first-child { margin-top: 0 !important; }
.ak-ci + p { margin-top: .35rem; }
.ak-hero-card h3 { display: flex; align-items: center; gap: .5rem; }
.ak-hero-card a { color: var(--wp--preset--color--blue-dark); }
@media (max-width: 781px) {
	main .wp-block-columns.ak-stats > .wp-block-column { flex-basis: calc(50% - 1rem) !important; }
}
.ak-pagehead { border-bottom: 1px solid var(--wp--preset--color--line); }
.ak-pagehead h1 { margin-top: .35rem; }

/* ---------- Treatment (condition) pages ---------- */
.ak-article { font-size: 1.05rem; }
.ak-article h2 { font-size: var(--wp--preset--font-size--large); margin-top: 2.2rem; padding-top: .2rem; }
.ak-article h2:first-child { margin-top: 0; }
.ak-article ul { padding-left: 1.2rem; }
.ak-article li { margin-bottom: .45rem; }
.ak-article li::marker { color: var(--wp--preset--color--blue); }
.ak-article .wp-block-image { margin: 1.5rem 0; }
.ak-article .wp-block-image img { border-radius: 16px; border: 1px solid var(--wp--preset--color--line); max-width: 100%; height: auto; }
@media (min-width: 900px) {
	.ak-article .wp-block-image.alignright { float: right; max-width: 46%; margin: .4rem 0 1.25rem 1.75rem; }
	.ak-article h2 { clear: none; }
}
.ak-article::after { content: ""; display: block; clear: both; }

.ak-sidebar > * + * { margin-top: 1.25rem; }
@media (min-width: 782px) and (min-height: 940px) {
	.ak-sidebar { position: sticky; top: 110px; }
	.admin-bar .ak-sidebar { top: 142px; }
}
.ak-static:hover { transform: none; box-shadow: 0 10px 30px rgba(11, 47, 74, .06); border-color: var(--wp--preset--color--line); }
.ak-book-card p { margin: .6rem 0 0; }
.ak-book-card .wp-block-buttons { margin-top: 1rem; }
.ak-sidebar-phone a { color: #fff; font-weight: 600; text-decoration: none; }
.ak-btn-green svg, .ak-sidebar-phone svg, .ak-topbar svg, .ak-footer svg { vertical-align: -3px; }
.ak-sidebar .ak-treatments { list-style: none; padding: 0 !important; margin: 0; }
.ak-sidebar .ak-treatments li { margin: 0; }
.ak-sidebar .ak-treatments a { display: block; padding: .6rem .85rem; border-radius: 10px; text-decoration: none; color: var(--wp--preset--color--ink); font-weight: 500; }
.ak-sidebar .ak-treatments a:hover { background: var(--wp--preset--color--sky); color: var(--wp--preset--color--blue-dark); }
.ak-sidebar .ak-treatments a[aria-current="page"] { background: var(--wp--preset--color--blue); color: #fff; }
@media (max-width: 781px) { .ak-sidebar { position: static; } }

/* ---------- Forms ---------- */
.ak-form { display: grid; gap: 1rem; }
.ak-form .ak-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .ak-form .ak-row { grid-template-columns: 1fr; } }
.ak-form p { margin: 0; }
.ak-form label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--wp--preset--color--navy); }
.ak-form input,
.ak-form select,
.ak-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .8rem 1rem;
	border: 1px solid #c9d8e4;
	background: #fff;
	font: inherit;
	border-radius: 12px;
	color: var(--wp--preset--color--ink);
}
.ak-form input:focus,
.ak-form select:focus,
.ak-form textarea:focus { outline: 3px solid rgba(16, 127, 201, .25); border-color: var(--wp--preset--color--blue); }
.ak-form .ak-consent label { font-weight: 400; display: flex; gap: .6rem; align-items: flex-start; }
.ak-form .ak-consent input { width: auto; margin-top: .3rem; }
.ak-form .ak-hp { position: absolute !important; left: -9999px !important; }
.ak-form button {
	justify-self: start;
	background: var(--wp--preset--color--blue);
	color: #fff;
	border: 0;
	padding: .95rem 2rem;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease;
}
.ak-form button:hover { background: var(--wp--preset--color--blue-dark); }
.ak-form .ak-note { font-size: .82rem; color: var(--wp--preset--color--muted); }
.ak-notice { padding: 1rem 1.2rem; border-radius: 12px; border-left: 4px solid var(--wp--preset--color--green); background: var(--wp--preset--color--mint); margin-bottom: 1.2rem; }
.ak-notice.is-error { border-color: #b3261e; background: #fbe9e7; }

/* Map */
.ak-map iframe { width: 100%; min-height: 360px; border: 0; border-radius: 18px; display: block; }

/* ---------- Floating call / WhatsApp ---------- */
.ak-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.ak-float a { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 25px rgba(0, 0, 0, .22); transition: transform .2s ease; }
.ak-float a:hover { transform: scale(1.07); }
.ak-float a svg { width: 28px; height: 28px; }
.ak-float .ak-wa { background: #25d366; }
.ak-float .ak-call { background: var(--wp--preset--color--blue); }
.ak-float .ak-float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) {
	.ak-float { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; }
	.ak-float a { flex: 1; width: auto; height: 54px; border-radius: 0; box-shadow: none; display: flex; justify-content: center; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; }
	.ak-float a svg { width: 22px; height: 22px; }
	.ak-float .ak-float-label { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
	body { padding-bottom: 54px; }
}

/* Footer */
.wp-site-blocks > footer { margin-block-start: 0; }
.ak-footer { color: #d7e6f2; }
.ak-footer a { color: #fff; text-decoration: none; }
.ak-footer-links li { margin: .35rem 0; font-size: var(--wp--preset--font-size--small); }
.ak-footer .ak-hours li { border-color: rgba(255, 255, 255, .18); font-size: var(--wp--preset--font-size--small); }
.ak-footer .ak-hours .ak-closed { color: #ffb4a9; }
.ak-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2.5rem !important; padding-top: 1.25rem; color: #a9c3d8; }
.ak-footer-bottom p { margin: 0; }
.ak-footer-bottom .ak-sep { opacity: .5; }
.ak-footer a:hover { color: #9fd3f5 !important; }
.ak-footer ul { list-style: none; padding-left: 0 !important; }

/* Reveal on scroll (added by site.js only when JS runs) */
.ak-js .ak-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.ak-js .ak-reveal.is-in { opacity: 1; transform: none; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.ak-js .ak-reveal { opacity: 1; transform: none; }
}

/* Mobile header */
@media (max-width: 900px) {
	.ak-header-cta { display: none; }
	.ak-topbar .ak-hide-sm { display: none; }
}
@media (max-width: 600px) {
	.ak-brand-tag { display: none; }
	.ak-brand-name { font-size: 1rem; }
	.ak-logo img { width: 42px !important; }
	.ak-header-cta { display: none; }
}
@media (max-width: 599px) {
	.ak-header .wp-block-navigation { order: 3; }
	.ak-actions { margin-left: auto; }
	.ak-topbar > .wp-block-group { justify-content: center !important; }
}
