/*
Theme Name: VEC — Veterinary Emergency Clinic
Theme URI: https://github.com/twogobusiness9-beep/
Author: Marinze / twogobusiness9-beep
Author URI: https://github.com/twogobusiness9-beep/
Description: A calm, trustworthy, emergency-focused theme for a 24/7 veterinary emergency & specialty hospital (Toronto). Navy/coral/sky palette, Sora + Inter type, strong local SEO and AI-search (GEO) structure. Elementor-ready.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 7.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: vec
*/

:root {
	--navy: #14315c;
	--navy-600: #0f2547;
	--navy-700: #0a1a34;
	--navy-soft: #d6e2f2;

	--coral: #ff5a5f;
	--coral-600: #ef4650;
	--coral-700: #d8333d;

	--sky: #eef4fb;
	--sky-200: #dbe8f7;
	--sky-accent: #4f86c6;

	--ink: #17263f;
	--body: #47566b;
	--muted: #7d8ba0;

	--cloud: #f6f9fd;
	--line: #dbe4ef;
	--white: #ffffff;

	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.75rem;
	--space-lg: 3rem;
	--space-xl: 5.5rem;

	--radius: 18px;
	--radius-sm: 12px;
	--radius-pill: 999px;

	--shadow-sm: 0 2px 10px rgba(20, 49, 92, 0.07);
	--shadow: 0 16px 40px rgba(20, 49, 92, 0.12);
	--shadow-lg: 0 30px 70px rgba(10, 26, 52, 0.20);

	--maxw: 1180px;
	--header-h: 74px;
	--font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

html, body {
	margin: 0;
	padding: 0;
	width: 100%;
	overflow-x: clip;
}

body {
	font-family: var(--font-body);
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--body);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--ink);
	line-height: 1.14;
	font-weight: 700;
	margin: 0 0 var(--space-sm);
	letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 var(--space-sm); }

a { color: var(--sky-accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--coral); }

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0 0 var(--space-sm); padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--space-xl) 0; }

.eyebrow {
	display: inline-block; font-family: var(--font-body); font-weight: 800;
	font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
	color: var(--coral-700); margin-bottom: 0.9rem;
}
.section-head { max-width: 720px; margin: 0 auto var(--space-lg); text-align: center; }
.section-title { margin-bottom: 0.6rem; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin: 0; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
	text-align: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700;
	font-size: 1rem; line-height: 1; padding: 0.95rem 1.7rem; border-radius: var(--radius-pill);
	border: 2px solid transparent; cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2.1rem; font-size: 1.08rem; }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 10px 24px rgba(255, 90, 95, 0.34); }
.btn-primary:hover { background: var(--coral-600); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-600); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--sky); color: var(--navy-700); }

.emergency-bar { background: var(--coral); color: var(--white); font-weight: 700; font-size: 0.9rem; }
.emergency-bar .container { display: flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 0.5rem 1.5rem; flex-wrap: wrap; text-align: center; }
.emergency-bar a { color: var(--white); text-decoration: underline; }
.emergency-bar a:hover { color: var(--navy-700); }

.topbar { background: var(--navy-700); color: var(--navy-soft); font-size: 0.86rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; flex-wrap: wrap; }
.topbar a { color: var(--white); font-weight: 600; }
.topbar a:hover { color: var(--coral); }
.topbar-contact { display: flex; gap: 1.4rem; flex-wrap: wrap; }

.site-header {
	position: sticky; top: 0; z-index: 99999;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand .brand-mark { width: 44px; height: 44px; border-radius: 13px; background: linear-gradient(135deg, var(--navy), var(--navy-600)); color: var(--white); display: grid; place-items: center; font-size: 1.35rem; }
.brand small { display: block; font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 800; }

.primary-nav > ul { display: flex; align-items: center; gap: clamp(0.7rem, 1.8vw, 1.4rem); list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.primary-nav a:hover { color: var(--navy); }
.primary-nav li { position: relative; margin: 0; }
.primary-nav .menu-item-has-children > a::after { content: " ▾"; color: var(--muted); font-size: 0.8em; }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 0.5rem; position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s; z-index: 60;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-nav .sub-menu a { display: block; padding: 0.55rem 0.7rem; border-radius: 8px; font-size: 0.92rem; }
.primary-nav .sub-menu a:hover { background: var(--sky); color: var(--navy); }
.header-cta { display: flex; align-items: center; gap: 0.7rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

.hero { position: relative; background: radial-gradient(1100px 520px at 80% -10%, rgba(79, 134, 198, 0.20), transparent 60%), linear-gradient(180deg, var(--sky), var(--white)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-lg); align-items: center; padding: var(--space-xl) 1.5rem; width: 100%; min-width: 0; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--coral); }
.hero-lead { max-width: 46ch; font-size: 1.15rem; color: var(--body); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.hero-points li { display: flex; align-items: center; gap: 0.45rem; font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.hero-points li::before { content: "✚"; color: var(--coral); font-weight: 800; }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.hero-badge { position: absolute; left: 1rem; bottom: 1rem; background: var(--white); border-radius: var(--radius-pill); padding: 0.6rem 1.1rem; box-shadow: var(--shadow); font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,90,95,0.2); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .chip { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 0.9rem; background: var(--sky); }
.card h3 { margin-bottom: 0.35rem; font-size: 1.2rem; }
.card p { margin: 0; color: var(--body); }
.card .role { color: var(--sky-accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 0.3rem; }

.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 0.8rem; background: var(--white); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 700; font-size: 1.03rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq-q::after { content: "+"; color: var(--coral); font-size: 1.5rem; line-height: 1; }
.faq-item.open .faq-q::after { content: "\2013"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 1.3rem; color: var(--body); }
.faq-item.open .faq-a { max-height: 460px; padding-bottom: 1.1rem; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); align-items: start; }
.contact-card { background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: var(--space-md); }
.contact-line { display: flex; gap: 0.7rem; align-items: flex-start; margin-bottom: 0.6rem; }
.contact-line .ic { font-size: 1.15rem; }
.map-embed { border: 0; width: 100%; height: 260px; border-radius: var(--radius-sm); margin-top: 1rem; }
.vec-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm); }
.vec-form .field { margin-bottom: 1rem; }
.vec-form label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.3rem; font-size: 0.92rem; }
.vec-form input, .vec-form textarea, .vec-form select { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: var(--white); }
.vec-form input:focus, .vec-form textarea:focus { outline: 2px solid var(--sky-200); border-color: var(--navy); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.vec-success { display: none; }
.vec-success.is-visible { display: block; background: var(--sky); border: 1px solid var(--sky-200); border-radius: var(--radius-sm); padding: 1.4rem; }

.site-footer { background: var(--navy-700); color: #c7d4e6; padding: var(--space-xl) 0 2rem; }
.site-footer a { color: #e6eefb; }
.site-footer a:hover { color: var(--coral); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); }
.site-footer h4 { color: var(--white); font-size: 1.1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); margin-top: var(--space-lg); padding-top: 1.4rem; font-size: 0.88rem; color: #9fb2cc; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }

.mobile-cta { display: none; }

@media (max-width: 980px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-art { order: -1; }
	.card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

@media (max-width: 720px) {
	:root { --header-h: 64px; }
	.topbar { display: none; }
	.nav-toggle { display: block; z-index: 100001; }
	.header-cta { display: none; }

	.primary-nav {
		position: fixed; top: 0; left: 0; right: 0; width: 100%; height: 100vh;
		background: var(--navy); box-shadow: var(--shadow-lg);
		transform: translateY(-100%); transition: transform 0.3s ease;
		padding: 6rem 1.5rem 2rem; z-index: 100000; overflow-y: auto;
	}
	.primary-nav.open { transform: translateY(0); }
	.primary-nav a { color: var(--white); }
	.primary-nav a:hover { color: var(--coral); }
	.primary-nav > ul { flex-direction: column; align-items: flex-start; gap: 1.1rem; }

	.primary-nav .sub-menu { display: none; position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0.2rem 0 0.5rem 0.9rem; min-width: 0; background: transparent; }
	.primary-nav li.open > .sub-menu { display: block; }
	.primary-nav li.open > a::after { transform: rotate(180deg); display: inline-block; }
	.primary-nav .sub-menu a { padding: 0.35rem 0; color: var(--navy-soft); }

	.card-grid, .card-grid.cols-2, .card-grid.cols-4, .footer-grid { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.section { padding: var(--space-lg) 0; }

	.mobile-cta { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; gap: 0.6rem; padding: 0.7rem; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
	.mobile-cta .btn { flex: 1; justify-content: center; }
}

.primary-nav > ul { flex-wrap: nowrap; }
.primary-nav a, .primary-nav li { white-space: nowrap; }
@media (max-width: 1024px) and (min-width: 721px) {
  .primary-nav > ul { gap: 0.7rem; }
  .primary-nav a { font-size: 0.85rem; }
  .header-cta .btn { display: none; }
}