/*
Theme Name: Dr Mackic
Theme URI: https://example.com/themes/dr-mackic
Author: Site Owner
Author URI: https://example.com
Description: A clean, fast, accessibility-first theme for Dr. Mackic cardiological clinic. Includes a conversion-focused homepage and SEO best practices.
Version: 1.0.8
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dr-mackic
Tags: clinic, medical, cardiology, clean, responsive, accessibility-ready, seo
*/

/* CSS Variables for brand */
:root {
	--brand-primary: #D6422F; /* red from brandbook */
	--brand-accent: #3A75C4; /* brand blue */
	--brand-dark: #333333; /* neutral dark */
	--brand-muted: #9E9D9B; /* neutral gray */
	--bg: #ffffff;
	--bg-alt: #f8fafc;
	--text: #333333;
	--ring: 0 0 0 3px rgba(58,117,196,.35);
}

/* Base reset (lightweight) */
html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }
body {
	margin: 0;
	font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	color: var(--text);
	background: var(--bg);
	line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Lora', Georgia, Cambria, "Times New Roman", Times, serif; font-weight: 700; color: var(--brand-dark); }
img { max-width: 100%; height: auto; }
a { color: var(--brand-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { width: min(1120px, 92%); margin: 0 auto; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 960px) {
	.grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(140%) blur(8px);}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.brand, .brand:hover, .brand:focus { text-decoration: none; }
.brand .logo { width: 50px; height: 50px; border-radius: 6px; box-shadow: none; background: transparent; display:inline-flex; align-items:center; justify-content:center; }
.brand .logo img { width: 50px; height: 50px; display:block; }
.brand .name { color: var(--brand-dark); font-size: 1.1rem; letter-spacing: .2px; }
.brand .lockup { display:flex; flex-direction:column; line-height:1.1; }
.brand .lockup .topline { color: var(--brand-accent); font-size:.6rem; letter-spacing:.08em; font-weight:600; text-transform:uppercase; }
.brand .lockup .mainline { color: var(--brand-primary); font-size:1.7rem; font-weight:700; margin-top:.15rem; }
.brand .lockup .bottomline { color: var(--brand-accent); font-size:.45rem; font-weight:600; margin-top:.1rem; }

.nav-toggle { display:none; background:none; border:0; width:44px; height:44px; border-radius:10px; }
.nav-toggle:focus-visible { outline:none; box-shadow: var(--ring); }
.primary-nav { display:flex; align-items:center; gap:1rem; }
.primary-nav .menu { list-style:none; margin:0; padding:0; display:flex; gap:1.25rem; align-items:center; }
.primary-nav .menu li { margin:0; }
.primary-nav .menu a { position:relative; display:inline-block; padding:.5rem .25rem; border-radius:.25rem; color: var(--brand-dark); text-decoration:none; transition: color .2s ease; }
.primary-nav .menu a:after { content:""; position:absolute; left:0; right:0; bottom:.35rem; height:2px; width:0; background: var(--brand-primary); transition: width .25s ease; border-radius:2px; }
.primary-nav .menu a:hover { color: var(--brand-primary); text-decoration:none; }
.primary-nav .menu a:hover:after { width:100%; }
.primary-nav .menu .current-menu-item > a,
.primary-nav .menu .current_page_item > a { color: var(--brand-primary); }
.primary-nav .menu .current-menu-item > a:after,
.primary-nav .menu .current_page_item > a:after { width:100%; }

.primary-nav .menu li.menu-item-contact > a {
	border:1px solid var(--brand-primary);
	background: var(--brand-primary);
	color:#fff;
	font-weight:700;
    border-radius:.65rem;
    padding:.45rem .85rem;
    position:relative;
}
.primary-nav .menu li.menu-item-contact > a:before {
    content:"";
    position:absolute; inset:-4px;
	border:2px solid var(--brand-primary);
    border-radius: calc(.65rem + 4px);
    opacity:0;
    transform: scale(.96);
    pointer-events:none;
    animation: contact-attention 2.4s ease-out infinite;
}
.primary-nav .menu li.menu-item-contact > a:after { display:none; }
/* Invert on hover for menu Contact CTA */
.primary-nav .menu li.menu-item-contact > a:hover {
	background:#fff;
	color: var(--brand-primary);
	text-decoration:none;
}
@keyframes contact-attention {
    0% { opacity:.55; transform: scale(.96); }
    60% { opacity:0; transform: scale(1.18); }
    100% { opacity:0; transform: scale(1.22); }
}
/* No special hover for Contact */
.cta-btn { background: var(--brand-primary); color:#fff; padding:.6rem 1rem; border-radius:.65rem; font-weight:700; box-shadow: 0 8px 24px rgba(214,66,47,.25); }
.cta-btn:hover { background:#b73829; }

/* Header CTA attention effect */
.site-header .cta-btn {
	animation: cta-attention 2.2s ease-in-out infinite;
	background: var(--brand-primary);
	color:#fff;
	font-weight:700;
	margin-left: 20px;
}
@keyframes cta-attention {
	0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 8px 24px rgba(214,66,47,.25); }
	50% { transform: translateY(-1px) scale(1.02); box-shadow: 0 14px 36px rgba(214,66,47,.35); }
}
/* Invert on hover: white background, red text */
.site-header .cta-btn:hover {
	background:#fff;
	color: var(--brand-primary);
	border: 1px solid var(--brand-primary);
	text-decoration:none;
}

@media (max-width: 960px) {
	.nav-toggle { display:block; }
	.primary-nav { display:none; position:absolute; left:0; right:0; top:58px; background:#fff; border-bottom:1px solid #e5e7eb; padding: .5rem; flex-direction:column; align-items:flex-start; }
	.primary-nav .menu { width:100%; flex-direction:column; gap:.25rem; }
	.primary-nav .menu a { padding:.75rem .5rem; width:100%; }
	.primary-nav.open { display:flex; }
}

/* Hero */
.hero { padding: clamp(2rem, 6vw, 5rem) 0; background: radial-gradient(1200px 600px at 90% -10%, rgba(58,117,196,.08), transparent), linear-gradient(180deg, #fff 0, #fff 60%, #f8fafc 100%); }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height:1.2; margin:0 0 .5rem; color: var(--brand-dark); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--brand-muted); margin: 0 0 1.25rem; font-weight: 500; }
.hero .badges { display:flex; gap:.75rem; flex-wrap:wrap; }
.pill { display:inline-flex; align-items:center; gap:.35rem; border:1px solid #e5e7eb; color:#0b1220; padding:.35rem .6rem; border-radius:999px; background:#fff; }
.pill .dot { width:.45rem; height:.45rem; border-radius:999px; background: var(--brand-accent); box-shadow: 0 0 0 4px rgba(58,117,196,.18); }

/* Sections */
.section { padding: clamp(2rem, 5vw, 4rem) 0; }
.section .eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--brand-accent); font-weight: 700; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin:.25rem 0 1rem; color: var(--brand-dark); }
.card { border:1px solid #e5e7eb; border-radius:1rem; padding:1.25rem; background:#fff; box-shadow: 0 8px 24px rgba(2,6,23,.04); }
.card h3 { margin:.25rem 0 .5rem; }
.muted { color: var(--brand-muted); }

/* Services hero */
.services-hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem); }
.services-hero-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.services-hero-title { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1.15; margin: 0 0 1.25rem; color: var(--brand-dark); font-weight: 700; letter-spacing: -.02em; }
.services-hero-desc { color: var(--brand-muted); font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.7; text-align: center; max-width: 900px; margin: 0 auto; }

/* Services grid */
.services-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:1.5rem; }
.service-card { display:flex; flex-direction:column; border:1px solid #e5e7eb; border-radius:1.25rem; overflow:hidden; background:#fff; box-shadow: 0 8px 24px rgba(2,6,23,.04); transition: all .25s ease; }
.service-card:hover { box-shadow: 0 16px 40px rgba(2,6,23,.12); transform: translateY(-4px); }
.service-card .service-media { aspect-ratio: 16 / 9; background: #f1f5f9; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.service-card .service-media img { width:100%; height:100%; object-fit:cover; }
.service-card .service-body { padding:1.5rem; display:flex; flex-direction:column; gap:.65rem; flex-grow:1; }
.service-card .service-title { margin:0; font-size:1.35rem; color: var(--brand-dark); font-weight:700; letter-spacing:-.01em; min-height: 2.7em; display:flex; align-items:flex-start; }
.service-card .service-desc { margin:0; color: var(--brand-muted); font-size:1rem; line-height:1.6; }
.service-card .service-meta { display:flex; align-items:center; justify-content:flex-start; gap:.75rem; margin-top:auto; padding-top:.75rem; }
.price-badge { background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); color: var(--brand-accent); border:1px solid #bae6fd; font-weight:700; padding:.5rem .85rem; border-radius:.5rem; font-size:.95rem; }
.price-label { font-weight:600; opacity:.85; }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* About Page */
.about-hero { 
	padding: clamp(3rem, 8vw, 6rem) 0; 
	background-size: cover;
	background-repeat: no-repeat;
	position: relative;
}
.about-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0) 100%);
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero-content { max-width: 70%; }
.about-hero-title { font-size: clamp(2.5rem, 5vw, 3.5rem); line-height: 1.15; margin: .5rem 0 1rem; color: var(--brand-dark); font-weight: 700; }
.about-hero-text { color: #333333; font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.8; }
.about-hero-text p { margin: 0 0 1rem; }
.about-hero-image { position: relative; display: none; }
.about-img { width: 100%; height: auto; border-radius: 1.25rem; box-shadow: 0 16px 48px rgba(2,6,23,.12); }
.about-img-placeholder { aspect-ratio: 4/3; background: #f1f5f9; border-radius: 1.25rem; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--brand-muted); border: 2px dashed #cbd5e1; }
.about-img-placeholder svg { margin-bottom: .5rem; opacity: .5; }
.about-img-placeholder p { margin: 0; font-size: .95rem; }

@media (max-width: 960px) { 
	.about-hero { background-position: 70% center; }
	.about-hero::before { background: linear-gradient(90deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.5) 70%, rgba(255, 255, 255, 0.2) 100%); }
	.about-hero-content { max-width: 100%; }
}

/* Vision & Mission Section */
.vision-mission-section { padding: clamp(3rem, 8vw, 6rem) 0; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.vm-card { background: #fff; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 8px 24px rgba(2,6,23,.06); transition: box-shadow .3s ease; }
.vm-card:hover { box-shadow: 0 16px 48px rgba(2,6,23,.12); }
.vm-video-wrapper { position: relative; aspect-ratio: 16/9; background: #f1f5f9; overflow: hidden; }
.vm-video-wrapper iframe { width: 100%; height: 100%; border: 0; }
.video-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--brand-muted); }
.video-placeholder svg { margin-bottom: 1rem; opacity: .4; }
.video-placeholder p { margin: 0; font-size: 1rem; }
.vm-content { padding: 2rem; }
.vm-content h2 { margin: 0 0 1rem; font-size: 1.75rem; color: var(--brand-accent); }
.vm-content > p { color: var(--brand-muted); margin: 0 0 1.5rem; line-height: 1.7; }
.vm-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; }
.vm-list li { display: flex; align-items: flex-start; gap: .75rem; color: var(--brand-dark); font-size: .95rem; line-height: 1.6; }
.vm-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--brand-accent); color: #fff; border-radius: 50%; font-weight: 700; font-size: .85rem; flex-shrink: 0; }

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

/* Team Section */
.team-section { padding: clamp(3rem, 8vw, 6rem) 0; background: #fff; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.team-card { background: #fff; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 8px 24px rgba(2,6,23,.06); transition: all .3s ease; display: flex; flex-direction: column; }
.team-card:hover { box-shadow: 0 16px 48px rgba(2,6,23,.12); transform: translateY(-4px); }
.team-image-wrapper { position: relative; aspect-ratio: 1/1; overflow: hidden; background: #f1f5f9; }
.team-image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.team-content { padding: 2rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.team-name { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--brand-dark); line-height: 1.3; }
.team-title { margin: 0; font-size: .95rem; color: var(--brand-accent); font-weight: 600; line-height: 1.5; }
.team-bio { margin: 0; font-size: .95rem; color: var(--brand-muted); line-height: 1.7; flex: 1; }
.team-cta { display: inline-block; margin-top: .75rem; background: var(--brand-primary); color: #fff; padding: .65rem 1.5rem; border-radius: .65rem; font-weight: 600; text-decoration: none; transition: all .2s ease; text-align: center; }
.team-cta:hover { background: #b91c1c; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3); }

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

/* CTA Section */
.cta-section { background: linear-gradient(135deg, #3A75C4 0%, #3A75C4 100%); padding: clamp(4rem, 10vw, 6rem) 0; }
.cta-box { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cta-content { color: #fff; }
.cta-title { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.2; margin: 0 0 1rem; font-weight: 700; color: #fff !important; }
.cta-text { font-size: 1.1rem; line-height: 1.7; margin: 0 0 2rem; color: #fff !important; }
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta-btn-primary { background: #fff; color: #3A75C4; padding: .85rem 2rem; border-radius: .75rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; transition: all .2s ease; box-shadow: 0 4px 12px rgba(0,0,0,.15); font-size: 1.1rem; }
.cta-btn-primary:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cta-features { display: flex; flex-direction: column; gap: 1.5rem; }
.cta-feature { display: flex; align-items: flex-start; gap: 1rem; background: rgba(255,255,255,.15); padding: 1.25rem; border-radius: .75rem; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.2); }
.cta-feature-icon { flex-shrink: 0; color: #fff; }
.cta-feature-text { color: #fff; }
.cta-feature-text h4 { margin: 0 0 .25rem; font-size: 1.1rem; font-weight: 700; color: #fff; }
.cta-feature-text p { margin: 0; font-size: .9rem; color: #fff; }

@media (max-width: 960px) {
	.cta-box { grid-template-columns: 1fr; gap: 2rem; }
	.cta-features { display: grid; grid-template-columns: 1fr; gap: 1rem; }
}

/* FAQ Section */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { background: #fff; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem; transition: all .2s ease; }
.faq-item:hover { box-shadow: 0 8px 24px rgba(2,6,23,.06); }
.faq-item[open] { box-shadow: 0 8px 24px rgba(2,6,23,.08); }
.faq-question { font-size: 1.1rem; font-weight: 700; color: var(--brand-dark); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: ''; width: 20px; height: 20px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%233A75C4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: contain; background-repeat: no-repeat; background-position: center; transition: transform .25s ease; flex-shrink: 0; }
.faq-item[open] .faq-question::after { transform: rotate(180deg); }
.faq-answer { margin-top: 1rem; color: var(--brand-muted); line-height: 1.7; }
.faq-answer p { margin: 0; }

/* Testimonials */
.testimonial { display:flex; gap:1rem; align-items:flex-start; }
.testimonial .avatar { width:44px; height:44px; border-radius:999px; background: #e2e8f0; }
.stars { color: #f59e0b; }

/* Footer */
.site-footer { background: #3A75C4; color: #cbd5e1; }
.site-footer a { color:#e2e8f0; }
.site-footer .cols { display:grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap:1.5rem; }
@media (max-width: 960px) {
	.site-footer .cols { grid-template-columns: 1fr; }
}

/* Forms */
input, select, textarea, button { font: inherit; }
input, select, textarea { width:100%; padding:.65rem .75rem; border:1px solid #e5e7eb; border-radius:.65rem; }
input:focus, select:focus, textarea:focus { outline:none; box-shadow: var(--ring); border-color: var(--brand-accent); }
button { cursor:pointer; }


