/* =========================================================
   Medi-QR Website Stylesheet
   Cleaned / Consolidated Version
   ========================================================= */

/* ===========================
   1. Base / Reset
   =========================== */

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
}

body{
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#0b1220;
  background:#0b7f83;
}

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

a{
  color:inherit;
}

/* ===========================
   2. Header / Brand / Navigation
   =========================== */

.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: linear-gradient(135deg, #0b7f83, #0fa4a9);
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.header-inner{
  max-width:1200px;
  margin:0 auto;
  padding:18px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  color:#ffffff;
  text-decoration:none;
  flex-shrink:0;
}

.brand img,
.logo{
  width:92px;
  height:auto;
  display:block;
}

.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}

.brand-name{
  font-size:36px;
  font-weight:800;
  line-height:1;
  letter-spacing:.2px;
  color:#ffffff;
}

.brand-tagline{
  font-size:18px;
  font-weight:700;
  color:#eaffff;
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:16px;
  flex-wrap:wrap;
  margin:0;
  padding:0;
  background:transparent;
}

.site-nav a,
.nav-link{
  color:#ffffff;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
  padding:6px 2px;
  display:inline-block;
}

.site-nav a:hover,
.nav-link:hover{
  text-decoration:underline;
}

.nav-link.active{
  color:#ffffff;
  border-bottom:2px solid rgba(255,255,255,.9);
}

/* Desktop menu is intentionally visible.
   Hamburger experiments are disabled for now. */
.menu-toggle,
.hamburger,
.nav-toggle{
  display:none !important;
}

@media (max-width:850px){
  .header-inner{
    justify-content:center;
    text-align:center;
    padding:14px 20px;
  }

  .brand{
    justify-content:center;
  }

  .brand img,
  .logo{
    width:72px;
  }

  .brand-name{
    font-size:30px;
  }

  .brand-tagline{
    font-size:15px;
  }

  .site-nav{
    width:100%;
    justify-content:center;
    gap:10px 16px;
  }

  .site-nav a,
  .nav-link{
    font-size:14px;
  }
}

/* ===========================
   3. Main Layout
   =========================== */

.page-wrap{
  max-width:1100px;
  margin:0 auto;
  padding:28px 18px 60px;
  background:#e9fbfb;
}

main{
  margin-bottom:0;
  padding-bottom:0;
}

.page-wrap > section{
  background:#e6f6f7;
  padding:26px;
  border-radius:18px;
  margin-bottom:28px;
}

.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 18px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

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

/* ===========================
   4. Cards / Panels
   =========================== */

.card,
.benefit,
.panel{
  background:#ffffff;
  border:1px solid #d9eeee;
  border-radius:14px;
  padding:22px;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}

.card h3,
.benefit h3{
  margin:0 0 10px;
  color:#0b7f83;
  font-size:20px;
}

.card p,
.benefit p{
  margin:0 0 12px;
  line-height:1.6;
  font-size:16px;
}

.card p:last-child,
.benefit p:last-child{
  margin-bottom:0;
}

.card p + p{
  margin-top:18px;
}

/* ===========================
   5. Page Heroes
   =========================== */

.page-hero{
  position:relative;
  width:100%;
  height:320px;
  min-height:320px;
  margin:0;
  overflow:hidden;
  border-radius:0 0 26px 26px;
}

.page-hero img,
.page-hero img.hero-image,
.page-hero .hero-image{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.page-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.55),
    rgba(0,0,0,.38)
  );
  z-index:1;
}

.hero-overlay,
.page-hero .hero-text{
  position:absolute;
  left:28px;
  right:28px;
  bottom:24px;
  z-index:2;
  color:#ffffff;
  max-width:720px;
  text-shadow:0 2px 10px rgba(0,0,0,.45);
}

.hero-overlay h1,
.page-hero .hero-text h1,
.page-hero h1{
  margin:0 0 8px;
  font-size:clamp(2rem, 4vw, 3.2rem);
  line-height:1.1;
  font-weight:800;
}

.hero-overlay p,
.page-hero .hero-text p,
.page-hero p{
  margin:0;
  font-size:18px;
  line-height:1.4;
  opacity:.95;
  max-width:600px;
}

/* If hero is first inside page-wrap, remove top spacing. */
.page-wrap > .page-hero:first-child{
  margin-top:0;
}

.page-wrap:has(> .page-hero:first-child){
  padding-top:0;
}

/* Hero followed by content should not create a white seam. */
.page-hero + .page-wrap,
.page-hero + main,
.page-hero + .contact-page{
  padding-top:0 !important;
  margin-top:0 !important;
}

.page-hero + .page-wrap > *:first-child,
.page-hero + main > *:first-child,
.page-hero + .contact-page > *:first-child{
  margin-top:0 !important;
}

@media (max-width:720px){
  .page-hero{
    height:260px;
    min-height:260px;
  }

  .hero-overlay,
  .page-hero .hero-text{
    left:20px;
    right:20px;
    bottom:20px;
  }

  .hero-overlay p,
  .page-hero .hero-text p,
  .page-hero p{
    font-size:16px;
  }
}

/* ===========================
   6. CTA Buttons
   =========================== */

.cta-row{
  display:flex;
  gap:16px;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  margin-top:24px;
  margin-bottom:28px;
}

a.cta-primary,
a.cta-secondary,
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 26px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
  font-size:16px;
  line-height:1;
  white-space:nowrap;
  text-align:center;
}

a.cta-primary,
.btn{
  background:#0fa4a9;
  color:#ffffff;
  border:2px solid #0fa4a9;
}

a.cta-secondary,
.btn.secondary{
  background:#ffffff;
  color:#0b7f83;
  border:2px solid #0b7f83;
}

a.cta-primary:hover,
a.cta-secondary:hover,
.btn:hover{
  filter:brightness(.96);
}

.dark-section .cta-secondary,
.page-hero .cta-secondary,
.site-header .cta-secondary{
  color:#ffffff;
  border-color:#ffffff;
  background:transparent;
}

.plan-btn{
  display:flex;
  justify-content:center;
  margin-top:18px;
}

@media (max-width:640px){
  .cta-row{
    flex-direction:column;
    align-items:stretch;
  }

  .cta-row a,
  .cta-row .btn{
    width:100%;
    white-space:normal;
  }
}

/* ===========================
   7. Benefits Page
   =========================== */

.benefit-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.benefit{
  padding:18px;
}

.benefit h3{
  font-size:18px;
  margin-bottom:8px;
}

.benefit p{
  font-size:15px;
}

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

/* ===========================
   8. Pricing Page
   =========================== */

body.pricing main.pricing-page .pricing-panel{
  background:#0b7f83;
  border-radius:18px;
  padding:22px;
  box-shadow:0 8px 18px rgba(0,0,0,.12);
}

body.pricing main.pricing-page .pricing-grid,
.pricing-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  align-items:stretch;
}

body.pricing main.pricing-page .plan,
.plan{
  background:#ffffff;
  border-radius:16px;
  padding:20px;
  border:2px solid #d9eeee;
  display:flex;
  flex-direction:column;
  min-width:0;
  min-height:100%;
}

body.pricing main.pricing-page .plan h2{
  margin:0 0 8px;
  color:#0b7f83;
  font-size:22px;
  line-height:1.2;
}

body.pricing main.pricing-page .price{
  font-size:34px;
  font-weight:800;
  margin:0 0 8px;
  color:#0b1220;
}

body.pricing main.pricing-page .sub{
  margin:0 0 14px;
  color:#5b667a;
  font-size:15px;
  line-height:1.4;
}

body.pricing main.pricing-page .strike{
  text-decoration:line-through;
  color:#7b8794;
  font-weight:800;
  margin-right:8px;
  font-size:18px;
}

body.pricing main.pricing-page .price-row{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-bottom:6px;
}

body.pricing main.pricing-page .plan ul,
.plan ul{
  margin:12px 0 18px 18px;
  padding-left:18px;
  color:#1f2933;
  line-height:1.55;
  font-size:16px;
}

body.pricing main.pricing-page .plan li{
  margin:8px 0;
}

body.pricing main.pricing-page .note{
  margin-top:auto;
  font-size:13.5px;
  color:#5b667a;
  line-height:1.45;
}

body.pricing main.pricing-page .goodtoknow{
  margin-top:22px;
  background:#e8f6f7;
  border:2px solid #0fa4a9;
  border-radius:16px;
  padding:16px 18px;
  color:#0b1220;
}

body.pricing main.pricing-page .plan-btn,
body.pricing main.pricing-page .plan-btn a{
  width:100%;
}

body.pricing main.pricing-page a.cta-primary,
body.pricing main.pricing-page a.cta-secondary,
.plan .cta-primary{
  max-width:100%;
  white-space:normal;
  text-align:center;
}

@media (max-width:980px){
  body.pricing main.pricing-page .pricing-grid,
  .pricing-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:900px){
  body.pricing main.pricing-page .pricing-grid,
  .pricing-grid{
    grid-template-columns:1fr !important;
  }

  body.pricing main.pricing-page .price{
    font-size:32px;
  }
}

/* ===========================
   9. Homepage / Solutions
   =========================== */

.home .page-wrap{
  padding-top:18px;
}

.home .grid-2{
  gap:18px !important;
  margin-bottom:18px !important;
}

.home .card{
  margin-bottom:18px;
  padding:18px 22px;
}

.home .cta-row{
  margin-top:18px;
}

.solutions-section{
  margin-top:18px;
}

.solutions-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
  margin-top:8px;
}

.solution-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:240px;
}

.solution-card h3{
  margin-top:0;
  margin-bottom:14px;
}

.solution-card p{
  flex:1;
  line-height:1.6;
}

.solution-card .cta-secondary{
  margin-top:18px;
  align-self:flex-start;
}

.solution-intro{
  margin-bottom:12px;
}

.home .solution-intro{
  margin-bottom:8px !important;
  padding-bottom:12px !important;
}

.solution-intro h2{
  margin-top:0;
  margin-bottom:10px;
}

.solution-intro p{
  margin-bottom:0;
}

/* ===========================
   10. Contact Page
   =========================== */

.contact-page.page-wrap{
  padding:0 20px 40px;
}

.contact-page{
  background:linear-gradient(180deg, #0b7f83, #0fa4a9);
  padding-top:0;
}

.contact-page input,
.contact-page textarea{
  background:#ffffff;
  border-radius:12px;
  border:2px solid rgba(11,127,131,.25);
  padding:10px;
  font-size:16px;
}

.contact-page label{
  font-weight:700;
  margin-top:10px;
  display:block;
}

.page-hero.contact-hero{
  border-radius:0 !important;
}

.page-hero.contact-hero::after,
.page-hero.contact-hero::before{
  border-radius:0 !important;
}

/* ===========================
   11. How It Works Page
   =========================== */

body.howitworks .page-hero{
  height:380px;
  min-height:380px;
}

body.howitworks .page-wrap{
  padding-top:16px;
}

body.howitworks .grid-2{
  margin-top:14px;
}

body.howitworks .grid-2 .card{
  margin-top:0;
}

/* ===========================
   12. Legal Pages
   =========================== */

.legal-page{
  max-width:760px;
  margin:40px auto;
  background:rgba(255,255,255,.96);
  padding:36px 32px;
  border-radius:22px;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
}

.legal-page h1{
  margin-bottom:12px;
}

.legal-page h2{
  margin-top:28px;
}

.legal-page ul{
  margin-left:22px;
}

.page-hero.legal-hero{
  height:140px !important;
  min-height:140px !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:0 !important;
  background:linear-gradient(135deg, #0fa4a9, #0b7f83);
  display:flex;
  align-items:center;
}

.page-hero.legal-hero::after{
  display:none;
}

.page-hero.legal-hero .hero-overlay,
.page-hero.legal-hero .hero-text{
  position:static;
  max-width:1100px;
  margin:0 auto !important;
  padding:16px 28px !important;
  background:none !important;
  text-shadow:none;
}

.page-hero.legal-hero h1{
  margin:0 0 6px !important;
  font-size:44px !important;
  line-height:1.05 !important;
  white-space:nowrap;
}

.page-hero.legal-hero p{
  margin:0 !important;
  font-size:18px !important;
  opacity:.92;
}

.legal-hero + .page-wrap{
  margin-top:24px;
}

/* ===========================
   13. Footer
   =========================== */

footer,
.site-footer{
  background:#0b7f83;
  color:#ffffff;
  text-align:center;
  margin-top:0 !important;
  padding:8px 0 !important;
  position:static !important;
  bottom:auto !important;
}

footer a{
  color:#ffffff;
  text-decoration:underline;
}

.footer-inner{
  max-width:1100px;
  margin:0 auto;
  padding:6px 20px !important;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.footer-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.footer-logo{
  margin-top:-8px;
  height:60px;
  width:auto;
  display:block;
  opacity:.95;
}

.footer-meta{
  font-weight:700;
  letter-spacing:.2px;
  opacity:.95;
}

.footer-links{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.footer-links a{
  color:#ffffff;
  text-decoration:none;
  font-weight:700;
  opacity:.95;
}

.footer-links a:hover{
  text-decoration:underline;
  opacity:1;
}

@media (max-width:720px){
  .footer-inner{
    flex-direction:column;
    text-align:center;
    padding:22px 16px !important;
  }

  .footer-links{
    justify-content:center;
  }
}
