:root{
  --ncia-red:#d61f26;
  --hero-radius: 22px;
}

/* Full width + no horizontal scroll */
html, body{
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #fff;
}

/* HERO (background-image comes from inline style in index.php) */
.hero{
  /* Responsive hero height */
  min-height: clamp(520px, 70vh, 680px);
  width: 100vw;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  isolation: isolate;

  /* Correct background properties */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 70% 50%; /* ✅ like reference (focus right) */
}

/* Overlay (single version only) */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.50) 40%,
    rgba(0,0,0,.18) 70%,
    rgba(0,0,0,.10) 100%
  );
  z-index:0;
}

/* NAVBAR */
.hero-navbar{
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:2;
  padding-top: 0px;
}

/* NAVBAR container alignment */
.navbar{
  align-items: flex-start !important;
  min-height: auto;
}

/* LOGO - absolute so it doesn't push menu down */
.navbar-brand{
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: flex-start;
}

/* Keep logo height at 150px */
.navbar-brand img{
  height: 150px;
  width: auto;
  display: block;
}

/* Menu */
.navbar-nav{
  gap: 18px;
  flex-wrap: nowrap;
  align-items: flex-start;
  padding: 0;
}

/* Keep spacing between logo/menu without hardcoding huge padding */
.navbar-collapse{
  padding-top: 56px; /* makes room for the big logo on desktop */
}

.navbar .nav-link{
  color: rgba(255,255,255,.9);
  font-weight: 600;
  font-size: 14px;
  padding: .25rem 0;
  white-space: nowrap;
}

/* Hover + Active (stays red after click) */
.navbar .nav-link{
  transition: color .15s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active{
  color: var(--ncia-red);
}

/* Call button */
.btn-call{
  background: var(--ncia-red);
  border: none;
  color:#fff;
  border-radius: 12px;
  padding: .6rem 1.1rem;
  font-weight: 700;
  align-self: flex-start;
}

/* HERO CONTENT */
.hero-content{
  position: relative;
  z-index:1;
  padding: clamp(120px, 18vw, 200px) 0 clamp(64px, 8vw, 90px);
}

.hero h1{
  color:#fff;
  font-weight: 800;
  line-height: 1.05;
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.hero p{
  color: rgba(255,255,255,.85);
  max-width: 560px;
  font-size: clamp(1rem, 1.2vw, 1.05rem);
}

/* Buttons */
.btn-primary-ncia{
  background: var(--ncia-red);
  border: none;
  border-radius: 999px;
  padding: .85rem 1.4rem;
  font-weight: 700;
  color:#fff;
}

.btn-outline-hero{
  color:#fff;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: .85rem 1.4rem;
  font-weight: 700;
  background: rgba(0,0,0,.25);
}

/* No frame */
.hero-frame{
  margin: 0;
  padding: 0;
}

/* Keep inner content centered */
.hero-navbar .container-fluid,
.hero-content .container-fluid{
  max-width: 1400px;
  margin: 0 auto;
}

/* ✅ Only navbar needs left padding to make room for the big logo */
.hero-navbar .container-fluid{
  /* Make room for the big logo without forcing overflow */
  padding-left: clamp(120px, 14vw, 180px);
}

/* Responsive */
@media (max-width: 991px){
  /* On tablets/phones the menu collapses, so remove desktop offsets */
  .hero{ background-position: 70% 50%; }

@media (max-width: 575px){
  .hero{
    background-position: 70% 50% !important; /* extra small phones */
  }
}

  /* Logo should participate in layout (no overlap with toggler) */
  .navbar-brand{
    position: static;
    margin-right: auto;
  }

  .navbar-brand img{
    height: 72px;
  }

  .navbar-collapse{
    padding-top: 0;
    margin-top: .75rem;
    border-radius: 14px;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
  }

  .navbar-nav{
    gap: 10px;
    flex-wrap: wrap;
    padding: .75rem 1rem;
  }

  .btn-call{
    width: 100%;
    justify-content: center;
  }

  /* Hero copy spacing */
  .hero-content{ padding-top: 120px; }

  /* Allow normal padding on mobile */
  .hero-navbar .container-fluid{
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .hero-content .container-fluid{
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

}

@media (max-width: 575px){
  .navbar-brand img{ height: 60px; }
  .hero-content{ padding-top: 104px; }
}

/* ------------------------------
   Comparison section (below hero)
------------------------------- */
.compare-section{
  background: #f6f6f6;
  padding: 80px 0;
}

.compare-container{
  max-width: 1100px;
}

.compare-title{
  text-align: center;
  font-weight: 800;
  letter-spacing: .2px;
  margin: 0;
}

.compare-card{
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 28px 26px;
  height: 100%;
}

.compare-card-featured{
  position: relative;
  border-color: #d9d9d9;
}

.compare-badge{
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--ncia-red);
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.05;
}

.compare-card-title{
  text-align: center;
  font-weight: 800;
  margin: 0 0 18px;
}

.compare-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.compare-item{
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-weight: 600;
  font-size: 13px;
}

.ci{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
  flex: 0 0 22px;
  color: #fff;
}

.ci-yes{ background: #22c55e; }
.ci-no{ background: #bdbdbd; }

@media (max-width: 991px){
  .compare-section{ padding: 60px 0; }
}

/* TRUST SECTION */
.trust-section {
  background: #8b1e1e;
  color: #fff;
  padding: 80px 20px;
}

.trust-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.trust-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.trust-item h3 {
  font-style: montserrat;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.trust-item p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 300px;
  margin: auto;
}

/* INFO SECTION */
.insurance-info {
  background: #ffffff;
  padding: 90px 20px;
  text-align: center;
}

.info-container {
  max-width: 900px;
  margin: auto;
}

.insurance-info h2 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  margin-bottom: 25px;
  color: #111;
}

.insurance-info p {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .trust-container {
    grid-template-columns: 1fr;
  }

  .trust-item p {
    max-width: 100%;
  }
}

.trust-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.trust-icon img {
  width: 56px;
  height: auto;
}

/* Tablet */
@media (max-width: 991px) {
  .trust-icon img {
    width: 52px;
  }
}

/* Mobile */
@media (max-width: 575px) {
  .trust-icon img {
    width: 48px;
  }
}

/* CORNER SECTION */
.corner-section {
  background: #8b1e1e;
  padding: 90px 20px;
  color: #fff;
}

.corner-header {
  max-width: 900px;
  margin: 0 auto 60px;
  text-align: center;
}

.corner-header h2 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  margin-bottom: 20px;
}

.corner-header p {
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
  margin: auto;
}

/* CARD GRID */
.corner-cards {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* CARD */
.corner-card {
  position: relative;
  height: 380px;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
}

.corner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.15)
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.corner-overlay h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.corner-overlay p {
  font-size: 15px;
  line-height: 1.5;
}

/* TABLET */
@media (max-width: 991px) {
  .corner-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .corner-card {
    height: 340px;
  }
}

/* MOBILE */
@media (max-width: 575px) {
  .corner-cards {
    grid-template-columns: 1fr;
  }

  .corner-card {
    height: 300px;
  }
}

/* APPOINTMENT SECTION */
.appt-section{
  background-image: url('../img/family.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  position: relative;
}

.appt-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35);
}

/* main layout */
.appt-wrap{
  max-width:1200px;
  margin:0 auto;
  min-height:520px;
  display:flex;
  align-items:center;
  position: relative;
  z-index: 1;
}

/* left side form */
.appt-left{
  max-width:560px;
  padding:70px 60px;
  background: rgba(255,255,255,0.88);
  border-radius: 6px;
}

.appt-kicker{
  font-size:13px;
  font-weight:700;
  color:#1f2a44;
  margin-bottom:8px;
}

.appt-title{
  font-size:40px;
  line-height:1.1;
  margin:0 0 28px;
  font-weight:800;
  color:#1f2a44;
}

.appt-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px 16px;
}

.appt-field--full{
  grid-column:1 / -1;
}

.appt-field input,
.appt-field select,
.appt-field textarea{
  width:100%;
  border:1px solid #e5e7eb;
  background:#fff;
  padding:12px 14px;
  border-radius:4px;
  font-size:14px;
  outline:none;
}

.appt-field textarea{
  resize:vertical;
  min-height:110px;
}

.appt-field input:focus,
.appt-field select:focus,
.appt-field textarea:focus{
  border-color:#c9cdd6;
}

.appt-actions{
  margin-top:10px;
}

.appt-btn{
  background:#1e88e5;
  border:none;
  color:#fff;
  padding:12px 22px;
  border-radius:4px;
  font-weight:700;
  cursor:pointer;
}

.appt-btn:hover{
  filter:brightness(0.95);
}

/* bottom bar */
.appt-bar{
  background:#fff;
  border-top:1px solid #f0f0f0;
  position: relative;
  z-index: 1;
}

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

.appt-bar-title{
  font-weight:800;
  color:#1f2a44;
  font-size:18px;
}

.appt-bar-sub{
  color:#6b7280;
  font-size:13px;
  margin-top:3px;
}

.appt-bar-btn{
  background:#1e88e5;
  color:#fff;
  text-decoration:none;
  padding:10px 18px;
  border-radius:4px;
  font-weight:700;
  display:inline-block;
}

/* RESPONSIVE */
@media (max-width: 991px){
  .appt-wrap{
    grid-template-columns: 1fr;
    min-height:auto;
  }

  .appt-right{
    min-height:320px;
  }

  .appt-left{
    padding:50px 25px;
  }

  .appt-title{
    font-size:clamp(28px, 5vw, 36px);
  }

  .appt-grid{
    grid-template-columns: 1fr;
  }

  .appt-bar-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 575px){
  .appt-right{
    min-height:260px;
  }

  .appt-btn,
  .appt-bar-btn{
    width:100%;
    text-align:center;
  }
}

.form-success{
  background:#e6f7ee;
  color:#0f5132;
  padding:12px 14px;
  border-radius:4px;
  margin-bottom:16px;
  font-size:14px;
}

.form-error{
  background:#fdecea;
  color:#842029;
  padding:12px 14px;
  border-radius:4px;
  margin-bottom:16px;
  font-size:14px;
}

/* FOOTER */
.site-footer {
  background:#2f2f2f;
  color:#fff;
  font-size:14px;
}

.footer-container {
  max-width:1200px;
  margin:auto;
  padding:60px 20px;
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.6fr;
  gap:40px;
}

.footer-logo img {
  max-width:140px;
}

.footer-col h4 {
  font-size:15px;
  font-weight:700;
  margin-bottom:16px;
}

.footer-col ul {
  list-style:none;
  padding:0;
  margin:0;
}

.footer-col ul li {
  margin-bottom:10px;
}

.footer-col a {
  color:#fff;
  text-decoration:none;
  opacity:0.9;
}

.footer-col a:hover {
  opacity:1;
}

.footer-contact li {
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.footer-contact span {
  font-size:16px;
  line-height:1.4;
}

/* BOTTOM BAR */
.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.1);
}

.footer-bottom-inner {
  max-width:1200px;
  margin:auto;
  padding:18px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.footer-bottom p {
  margin:0;
  font-size:13px;
  opacity:0.85;
}

.footer-socials a {
  color:#fff;
  text-decoration:none;
  font-size:16px;
  margin-left:14px;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-logo {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction:column;
    text-align:center;
  }

  .footer-socials a {
    margin:0 8px;
  }
}

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

.footer-socials a {
  display: inline-flex;
}

.footer-socials img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* Mobile alignment */
@media (max-width: 575px) {
  .footer-socials {
    justify-content: center;
  }
}

