/*
Theme Name: Medinova Medical
Theme URI: https://www.medinovamedicalbd.com
Author: Migrated by Claude Code
Author URI: https://www.medinovamedicalbd.com
Description: Custom WordPress theme for Medinova Medical Services Ltd. (a GCC approved medical center). A bold, modern, responsive design in a medical teal/blue palette, carrying the original site's content into clean WordPress template files.
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: medinova
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
	--teal:        #0ea5a4;
	--teal-dark:   #0b8281;
	--blue:        #1d6fd6;
	--blue-dark:   #1857a8;
	--navy:        #0c2a3a;
	--ink:         #16323f;
	--muted:       #5b7280;
	--bg:          #ffffff;
	--bg-soft:     #eef9fb;
	--bg-soft-2:   #f4f8fb;
	--line:        #e2ebef;
	--white:       #ffffff;
	--grad:        linear-gradient(135deg, #0ea5a4 0%, #1d6fd6 100%);
	--grad-soft:   linear-gradient(135deg, rgba(14,165,164,.10), rgba(29,111,214,.10));
	--shadow:      0 8px 30px rgba(12, 42, 58, .20);
	--shadow-lg:   0 18px 50px rgba(12, 42, 58, .36);
	--radius:      16px;
	--radius-sm:   10px;
	--maxw:        1180px;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: "Poppins", "Inter", sans-serif; line-height: 1.18; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
	display: inline-flex; align-items: center; gap: .5rem;
	font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1rem;
	padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(29,111,214,.32); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(29,111,214,.42); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #f1fcff; color: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--blue-dark); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ============================================================
   Site header / navigation
   ============================================================ */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow); }
.brand .brand-name { font-family: "Poppins", sans-serif; font-weight: 800; color: var(--navy); font-size: 1.15rem; line-height: 1.1; }
.brand .brand-name span { display: block; font-size: .68rem; font-weight: 600; color: var(--teal-dark); letter-spacing: .04em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: .25rem; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: .55rem .85rem; border-radius: 999px;
	font-family: "Poppins", sans-serif; font-weight: 600; font-size: .92rem; color: var(--ink);
	white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--teal-dark); }
.main-nav a.active,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current-page-ancestor > a { background: var(--grad); color: #fff; }

/* caret on parents that have a sub-menu */
.main-nav .menu-item-has-children > a::after {
	content: "\25be"; font-size: .7em; margin-left: .35rem; opacity: .7;
}

/* Dropdown sub-menus (desktop) */
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 200px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg); padding: .4rem; z-index: 200;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { border-radius: var(--radius-sm); }
.main-nav .sub-menu .sub-menu { top: -.4rem; left: calc(100% + 6px); }
.header-cta { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.header-cta .btn { padding: .55rem 1.1rem; font-size: .9rem; }

.nav-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line);
	background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	content: ""; display: block; width: 22px; height: 2px; background: var(--navy); position: relative; transition: .25s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ============================================================
   Hero (home)
   ============================================================ */
.hero { position: relative; background: var(--grad); color: #fff; overflow: hidden; }
.hero::after {
	content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px;
	background: radial-gradient(circle at center, rgba(255,255,255,.18), transparent 65%); border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; padding-top: 5rem; padding-bottom: 5rem; max-width: 980px; text-align: center; }
.hero .badge {
	display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
	padding: .4rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .05em;
	text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.hero p.lead { font-size: 1.2rem; max-width: 720px; margin: 0 auto 2rem; opacity: .96; }
.hero .hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.hero .hero-wave { display: block; width: 100%; height: 60px; margin-bottom: -8px; }

/* ============================================================
   Compact page hero (inner pages)
   ============================================================ */
.page-hero { background: var(--grad); color: #fff; }
.page-hero .container { padding-top: 3rem; padding-bottom: 3rem; }
.page-hero h1 { color: #fff; margin-bottom: .35rem; }
.page-hero .crumbs { font-size: .9rem; opacity: .92; }
.page-hero .crumbs a { color: #fff; text-decoration: underline; }

/* ============================================================
   Sections & cards
   ============================================================ */
.section { padding: 4rem 0; }
.section.soft { background: var(--bg-soft-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head .eyebrow { color: var(--teal-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.section-head p { color: var(--muted); }

.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 2rem;
}
.content-card { max-width: var(--maxw); }
.content-card h2:first-child, .content-card h3:first-child { margin-top: 0; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat {
	background: #fff; border-radius: var(--radius); padding: 1.6rem 1rem; text-align: center;
	box-shadow: var(--shadow); border: 1px solid var(--line);
}
.stat .num { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 2.4rem;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .label { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* Country grid */
.country-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.1rem; }
.country {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
	padding: 1rem .6rem; text-align: center; box-shadow: var(--shadow); transition: transform .18s, box-shadow .2s;
}
.country:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.country img { height: 56px; width: auto; border-radius: 0px; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.country span { display: block; margin-top: .7rem; font-weight: 700; color: var(--navy); font-size: .9rem; }

/* Feature/service cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1.8rem; box-shadow: var(--shadow); border-top: 4px solid transparent;
	border-image: var(--grad) 1; transition: transform .18s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature .feature-num {
	width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
	background: var(--grad-soft); color: var(--teal-dark); font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem;
}
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ============================================================
   Rich content (inner page bodies)
   ============================================================ */
.rich { color: var(--ink); }
.rich h2, .rich h3 { color: var(--navy); margin-top: 1.6rem; }
.rich p { color: #34505d; }
.rich ol, .rich ul { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.rich li { margin-bottom: .5rem; }
.rich ol > li::marker { color: var(--teal-dark); font-weight: 700; }
.rich a { font-weight: 600; }

.info-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.info-table th, .info-table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.info-table thead th { background: var(--grad); color: #fff; font-weight: 700; }
.info-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.info-table .lbl { color: var(--muted); font-weight: 600; width: 38%; }

/* Branch cards */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.branch { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: var(--radius-sm); padding: 1.3rem 1.4rem; box-shadow: var(--shadow); }
.branch h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--teal-dark); }
.branch p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Contact callout */
.contact-callout { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.contact-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.contact-item .ci-label { color: var(--teal-dark); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.contact-item .ci-value { color: var(--navy); font-weight: 600; margin-top: .3rem; }

/* Simple form */
.mn-form { display: grid; gap: 1rem; max-width: 640px; }
.mn-form label { font-weight: 600; color: var(--navy); display: block; margin-bottom: .35rem; }
.mn-form input, .mn-form textarea {
	width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
	font: inherit; color: var(--ink); background: #fff;
}
.mn-form input:focus, .mn-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,165,164,.18); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy); color: #c7d6de; }
.site-footer .container { padding-top: 3.5rem; padding-bottom: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 2.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .03em; margin-bottom: 1.1rem; }
.site-footer a { color: #a3a3a3; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; }
.footer-brand strong { color: #fff; font-family: "Poppins", sans-serif; font-size: 1.05rem; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin-bottom: .55rem; }
.footer-contact p { margin: 0 0 .6rem; }
.footer-contact .ico { color: var(--teal); font-weight: 700; margin-right: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .88rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.country-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
	.nav-toggle { display: flex; }
	.main-nav { position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); margin: 0;
		max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--shadow); }
	.nav-open .main-nav { max-height: 70vh; overflow: auto; }
	.main-nav > ul { flex-direction: column; align-items: stretch; padding: .5rem 1rem 1rem; gap: .15rem; }
	.main-nav a { padding: .85rem 1rem; }
	/* sub-menus become static, indented blocks on mobile */
	.main-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: none; padding: 0 0 0 1rem; min-width: 0;
	}
	.main-nav .menu-item-has-children > a::after { content: ""; }
	.header-cta { display: none; }
}
@media (max-width: 600px) {
	.footer-grid { grid-template-columns: 1fr; }
	.country-grid { grid-template-columns: repeat(2, 1fr); }
	.section { padding: 3rem 0; }
	.card { padding: 1.4rem; }
	.brand .brand-name { font-size: 1rem; }
}
