/*
Theme Name: Cardiorec Theme
Theme URI: https://example.com
Author: Tu
Version: 1.0
Text Domain: cardiorec-theme
*/

:root{
  --primary:#2596d7;
  --primary-dark:#1878af;
  --secondary:#0f2740;
  --secondary-soft:#173956;
  --accent:#eaf7fd;
  --text:#22313f;
  --muted:#64748b;
  --white:#ffffff;
  --border:#dbe7ef;
  --bg:#f5fbff;
  --success:#ebfff4;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:#fff;
  line-height:1.6;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

.container{
  width:min(1200px, 92%);
  margin:0 auto;
}

.narrow{
  width:min(850px, 92%);
}

.site-header{
  background:rgba(255,255,255,.98);
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:blur(10px);
}

.topbar{
  background:var(--secondary);
  color:#fff;
  font-size:14px;
}

.topbar .container{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:10px 0;
  flex-wrap:wrap;
}

.header-main .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  gap:20px;
}

.site-branding{
  display:flex;
  align-items:center;
}

.site-branding a{
  font-size:30px;
  font-weight:700;
  color:var(--secondary);
}

.site-branding img{
  max-height:60px;
  width:auto;
}

.main-nav ul{
  list-style:none;
  display:flex;
  gap:24px;
  margin:0;
  padding:0;
}

.main-nav a{
  font-weight:600;
  color:var(--secondary);
  position:relative;
}

.main-nav a:hover{
  color:var(--primary);
}

.hero{
  background:
    radial-gradient(circle at top right, rgba(37,150,215,.14), transparent 26%),
    linear-gradient(135deg, #f1fbff 0%, #ffffff 100%);
  padding:84px 0;
  overflow:hidden;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:48px;
  align-items:center;
}

.eyebrow{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:var(--accent);
  color:var(--primary-dark);
  font-size:14px;
  font-weight:700;
  margin-bottom:18px;
}

.eyebrow.center{
  margin-bottom:14px;
}

.hero h1{
  font-size:52px;
  line-height:1.08;
  margin:0 0 20px;
  color:var(--secondary);
  max-width:700px;
}

.hero p{
  font-size:18px;
  color:var(--muted);
  margin:0 0 28px;
  max-width:650px;
}

.btn-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.btn{
  display:inline-block;
  padding:14px 22px;
  border-radius:12px;
  font-weight:700;
  transition:.2s ease;
}

.btn-primary{
  background:var(--primary);
  color:#fff;
}

.btn-primary:hover{
  background:var(--primary-dark);
}

.btn-outline{
  border:1px solid var(--primary);
  color:var(--primary);
  background:#fff;
}

.btn-outline:hover{
  background:var(--accent);
}

.btn-light{
  background:#fff;
  color:var(--secondary);
}

.btn-light:hover{
  opacity:.92;
}

.hero-visual{
  position:relative;
  min-height:420px;
}

.hero-image-wrap{
  border-radius:28px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:0 20px 45px rgba(15,39,64,.08);
  background:#fff;
}

.hero-image-wrap img{
  width:100%;
  min-height:420px;
  object-fit:cover;
}

.hero-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:28px;
  box-shadow:0 18px 40px rgba(15, 39, 64, 0.10);
}

.floating-card{
  position:absolute;
  right:-10px;
  bottom:20px;
  max-width:340px;
}

.hero-card h3{
  margin-top:0;
  margin-bottom:12px;
  color:var(--secondary);
}

.info-list{
  list-style:none;
  padding:0;
  margin:18px 0 0;
}

.info-list li{
  padding:10px 0;
  border-bottom:1px solid var(--border);
}

.info-list li:last-child{
  border-bottom:0;
}

.section{
  padding:80px 0;
}

.section-soft{
  background:var(--bg);
}

.section-title{
  max-width:760px;
  margin:0 auto 42px;
  text-align:center;
}

.section-title h2{
  margin:0 0 12px;
  font-size:38px;
  color:var(--secondary);
}

.section-title p{
  margin:0;
  color:var(--muted);
}

.cards-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:24px;
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:22px;
  padding:28px;
  box-shadow:0 10px 28px rgba(15,39,64,.05);
}

.service-card{
  position:relative;
  overflow:hidden;
}

.service-card:hover{
  transform:translateY(-4px);
  transition:.2s ease;
}

.service-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--accent);
  color:var(--primary-dark);
  font-size:28px;
  font-weight:700;
  margin-bottom:18px;
}

.card h3{
  margin-top:0;
  margin-bottom:10px;
  color:var(--secondary);
  font-size:24px;
}

.card p{
  margin-bottom:0;
  color:var(--muted);
}

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:32px;
  align-items:stretch;
}

.about-panel,
.about-highlight{
  border-radius:24px;
  padding:34px;
  border:1px solid var(--border);
}

.about-panel{
  background:#fff;
}

.about-highlight{
  background:linear-gradient(180deg, #f8fdff 0%, #eef8fd 100%);
}

.about-panel h2,
.about-highlight h2{
  margin-top:0;
  margin-bottom:16px;
  font-size:34px;
  color:var(--secondary);
}

.check-list{
  list-style:none;
  padding:0;
  margin:22px 0 0;
}

.check-list li{
  position:relative;
  padding-left:28px;
  margin-bottom:12px;
}

.check-list li:before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--primary);
  font-weight:700;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
  margin-top:26px;
}

.stat-box{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
}

.stat-box strong{
  display:block;
  font-size:24px;
  color:var(--secondary);
}

.stat-box span{
  color:var(--muted);
  font-size:14px;
}

.cta{
  background:linear-gradient(135deg, var(--secondary) 0%, var(--secondary-soft) 100%);
  color:#fff;
  border-radius:28px;
  padding:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  box-shadow:0 20px 45px rgba(15,39,64,.12);
}

.cta h2{
  margin:0 0 10px;
  font-size:34px;
}

.cta p{
  margin:0;
  color:#d7e5f0;
  max-width:700px;
}

.form-placeholder{
  text-align:center;
  padding:42px;
}

.form-placeholder code{
  display:inline-block;
  margin-top:14px;
  background:#f3f7fa;
  border:1px solid var(--border);
  padding:12px 14px;
  border-radius:12px;
  word-break:break-word;
}

.site-footer{
  background:var(--secondary);
  color:#fff;
  margin-top:0;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:30px;
  padding:56px 0 34px;
}

.site-footer h3,
.site-footer h4{
  margin-top:0;
  margin-bottom:14px;
}

.site-footer p,
.site-footer li{
  color:#d2dfeb;
}

.site-footer ul{
  list-style:none;
  padding:0;
  margin:0;
}

.site-footer li{
  margin-bottom:10px;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding:18px 0;
  font-size:14px;
  color:#cbd5e1;
}

@media (max-width: 980px){
  .hero-grid,
  .cards-3,
  .about-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:38px;
  }

  .floating-card{
    position:relative;
    right:auto;
    bottom:auto;
    margin-top:20px;
    max-width:none;
  }

  .hero-visual{
    min-height:auto;
  }

  .header-main .container{
    flex-direction:column;
    align-items:flex-start;
  }

  .main-nav ul{
    flex-wrap:wrap;
    gap:14px;
  }

  .cta{
    padding:32px;
  }
}
.testimonial-card,
.blog-card{
  height:100%;
}

.testimonial-role{
  color:var(--primary);
  font-weight:700;
  margin-bottom:12px;
}

.blog-card h3 a{
  color:var(--secondary);
}

.blog-card h3 a:hover{
  color:var(--primary);
}