:root{--primary:#d32f2f;--accent:#b71c1c;--dark:#0b0b0b;--muted:#7a7a7a}
*{box-sizing:border-box}
body{font-family:Poppins, Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;} 
.navbar-brand{letter-spacing:0.3px}
/* Logo sizing: source is 270×72 — show at that size on large screens, scale down on smaller devices */
.navbar-brand img.site-logo{height:72px;width:auto;max-width:270px;display:block}
@media (max-width:767px){
  /* Mobile: scale down for better fit */
  .navbar-brand img.site-logo{height:44px;max-width:180px}
}
@media (min-width:768px) and (max-width:1199px){
  .navbar-brand img.site-logo{height:56px;max-width:240px}
}
@media (min-width:1200px){
  /* Desktop: show at native 72px height (max 270px width) */
  .navbar-brand img.site-logo{height:72px;max-width:270px}
}
/* Ensure navbar vertical centering adjusts with larger logo */
.navbar .navbar-brand{display:inline-flex;align-items:center}
.hero{height:72vh;background-position:center;background-size:cover;position:relative;display:flex}
.hero .overlay{position:absolute;inset:0;background:linear-gradient(135deg, rgba(0,0,0,0.75), rgba(211,47,47,0.22));}
.hero .container{z-index:2}
section{padding-top:60px;padding-bottom:60px}
.card{border-radius:12px}
img.rounded{object-fit:cover;height:220px;width:100%}
#iletisim .bg-white{background:linear-gradient(180deg,#fff,#f8f9fa)}
.btn-primary{background:var(--primary);border-color:var(--primary)}
@media (max-width:767px){.hero{height:56vh}.hero h1{font-size:28px}}
/* Simple animated accent */
@keyframes floatY{0%{transform:translateY(0)}50%{transform:translateY(-6px)}100%{transform:translateY(0)}}
.card .fa-2x{animation:floatY 3s ease-in-out infinite}

/* Navbar default & scrolled styles */
.navbar{background:linear-gradient(90deg, rgba(11,11,11,0.98), rgba(20,20,20,0.98));border-bottom:1px solid rgba(255,255,255,0.03);transition:background .28s ease,box-shadow .28s ease,padding .28s ease;padding:0.6rem 0}
.navbar .navbar-brand img{filter:none}
.navbar-scrolled{background:linear-gradient(90deg, rgba(11,11,11,1), rgba(18,18,18,1));box-shadow:0 8px 26px rgba(2,6,23,0.45);padding:0.25rem 0;border-bottom:1px solid rgba(255,255,255,0.06)}

/* Scroll down hint */
.scroll-down{display:inline-flex;align-items:center;justify-content:center;animation:floatY 2.6s ease-in-out infinite;opacity:0.95}

/* Gallery hover */
.gallery-item img{transition:transform .35s ease,box-shadow .35s ease}
.gallery-item img:hover{transform:scale(1.03);box-shadow:0 12px 30px rgba(2,6,23,0.15)}

/* Lightbox image */
.modal-content .img-fluid{border-radius:12px}

/* Testimonial */
#testimonialCarousel .carousel-inner{min-height:140px}
#testimonialCarousel .lead{font-size:1.05rem}

/* Testimonial cards */
.testimonial-card{border-radius:12px;background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.03));}
.testimonial-card .avatar{width:56px;height:56px;font-weight:700;border-radius:50%;display:flex;align-items:center;justify-content:center}
.testimonial-card p{color:#dcdcdc}

/* Service cards */
.service-card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.04));border-radius:14px}
.service-card .service-icon{
  width:72px;
  height:72px;
  min-width:72px;
  min-height:72px;
  aspect-ratio:1/1;
  border-radius:50%;
  background:linear-gradient(90deg,var(--primary),var(--accent));
  color:#fff;
  box-shadow:0 12px 30px rgba(211,47,47,0.14);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;position:relative;overflow:hidden;border:2px solid rgba(255,255,255,0.03);
  font-size:20px;
}
.service-card .service-icon::after{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 28% 28%, rgba(255,255,255,0.16), rgba(255,255,255,0.04) 18%, transparent 45%);pointer-events:none}
.service-card h5{margin-bottom:0.25rem}
.service-card ul{padding-left:1rem}
.service-card:hover{transform:translateY(-6px);box-shadow:0 18px 40px rgba(0,0,0,0.28)}

/* Modern services grid */
.services-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
@media (max-width:991px){.services-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:575px){.services-grid{grid-template-columns:1fr}}
.service-tile{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.05));border-radius:14px;padding:20px;min-height:220px;display:flex;flex-direction:column;transition:transform .28s ease,box-shadow .28s ease}
.service-tile:hover{transform:translateY(-10px);box-shadow:0 30px 60px rgba(2,6,23,0.28)}
.service-icon-circle{width:72px;height:72px;min-width:72px;min-height:72px;aspect-ratio:1/1;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(90deg,var(--primary),var(--accent));color:#fff;font-size:22px;box-shadow:0 12px 32px rgba(211,47,47,0.16);position:relative;overflow:hidden;border:2px solid rgba(255,255,255,0.03)}
.service-icon-circle::after{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 30% 30%, rgba(255,255,255,0.14), rgba(255,255,255,0.03) 18%, transparent 45%);pointer-events:none}
.service-badge{background:rgba(211,47,47,0.08);color:var(--primary);padding:6px 10px;border-radius:999px;font-weight:600;font-size:.85rem}


/* Floating widgets (WhatsApp / book) */
#floatingWidgets{position:fixed;right:20px;bottom:20px;z-index:1080;display:flex;flex-direction:column;gap:12px;align-items:flex-end}
#floatingWidgets .btn{width:56px;height:56px;padding:0;border-radius:50%;display:flex;align-items:center;justify-content:center}
#floatingWidgets .book-btn{width:auto;height:56px;padding:0 16px;border-radius:28px;background:linear-gradient(90deg,var(--primary),var(--accent));color:#fff;border:none;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 12px 30px rgba(211,47,47,0.16);transition:transform .18s ease,box-shadow .18s ease;animation:pulse 3.5s ease-in-out infinite}
#floatingWidgets .book-btn i{font-size:18px}
#floatingWidgets .book-btn:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(211,47,47,0.22)}

@media (max-width:576px){
  #floatingWidgets{right:12px;bottom:12px;gap:10px}
  #floatingWidgets .book-btn{padding:0 10px}
  #floatingWidgets .book-btn span{display:none}
}

@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.03)}100%{transform:scale(1)}}

/* Contact section */
.contact-card{background:linear-gradient(180deg,#fff,#fbfbfb);border-radius:12px}
.contact-card h5{color:var(--dark)}
.contact-card a{color:var(--dark)}
.map iframe{border:0}
.contact-form-modern{background:linear-gradient(180deg,#0b0b0b,#0b0b0b);color:#fff}
.contact-form-modern .form-control,
.contact-form-modern .form-select,
.contact-form-modern textarea{background:transparent;border:1px solid rgba(255,255,255,0.06);color:#fff}
.contact-form-modern .form-control::placeholder,
.contact-form-modern textarea::placeholder{color:rgba(255,255,255,0.55)}
/* Make contact columns equal height and push submit to bottom */
.row.align-items-stretch > .col-lg-5, .row.align-items-stretch > .col-lg-7{display:flex;flex-direction:column}
.contact-form-modern{min-height:360px}
.contact-form-modern form{display:flex;flex-direction:column;height:100%}
.contact-form-modern form .row{flex:1}
.form-footer{margin-top:auto;display:flex;align-items:center;gap:0.75rem}
.map.flex-fill{min-height:220px}
@media (max-width:767px){
  .contact-form-modern{min-height:0}
  .map.flex-fill{min-height:160px}
}
/* vendor placeholders */
.contact-form-modern .form-control::-webkit-input-placeholder{color:rgba(255,255,255,0.55)}
.contact-form-modern .form-control::-moz-placeholder{color:rgba(255,255,255,0.55)}
.contact-form-modern .form-control:-ms-input-placeholder{color:rgba(255,255,255,0.55)}
.contact-form-modern textarea::-webkit-input-placeholder{color:rgba(255,255,255,0.55)}
.contact-form-modern textarea::-moz-placeholder{color:rgba(255,255,255,0.55)}
.contact-form-modern textarea:-ms-input-placeholder{color:rgba(255,255,255,0.55)}
.contact-form-modern .form-control:focus,
.contact-form-modern .form-select:focus,
.contact-form-modern textarea:focus{box-shadow:none;border-color:rgba(211,47,47,0.6);outline:none}
.contact-form-modern small{color:rgba(255,255,255,0.75)}
#formAlert.alert{margin-bottom:1rem}

/* small tweaks */
@media (max-width:767px){
  .contact-card{margin-bottom:1rem}
  .map iframe{height:200px}
}

/* Button gradient accent */
.btn-primary{background:linear-gradient(90deg,var(--primary), var(--accent));border:none;box-shadow:0 8px 24px rgba(211,47,47,0.18)}
.btn-outline-primary{border-color:rgba(13,110,253,0.15)}

/* Card hover subtle lift */
.card{transition:transform .28s ease,box-shadow .28s ease}
.card:hover{transform:translateY(-6px)}

/* small utilities */
.text-muted{color:var(--muted)!important}

.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--primary) !important }
.navbar-brand { color: #fff }
.hero h1, .hero .lead { text-shadow: 0 6px 18px rgba(0,0,0,0.45) }

/* Topbar */
.topbar{background:#0b0b0b;border-bottom:1px solid rgba(255,255,255,0.02);position:fixed;top:0;left:0;right:0;z-index:1045;height:36px;display:flex;align-items:center;padding:0.25rem 0}

/* Ensure fixed navbar sits below topbar */
.navbar.fixed-top{top:36px}

/* Mobile: hide topbar content to make menu cleaner */
@media (max-width:767px){
  .topbar{display:none!important}
  /* If topbar hidden, navbar should sit at top */
  .navbar.fixed-top{top:0}
  /* reduce hero padding slightly for small screens */
  .hero{padding-top:90px}
}

/* Mobile sticky appointment button */
#mobileStickyBook{position:fixed;left:12px;right:12px;bottom:16px;z-index:1105;border-radius:999px}
#mobileStickyBook .btn{background:linear-gradient(90deg,var(--primary),var(--accent));border:none;color:#fff;padding:12px 16px;font-weight:600;border-radius:999px;box-shadow:0 12px 36px rgba(211,47,47,0.14)}
@media (min-width:768px){
  #mobileStickyBook{display:none!important}
}

/* Hero */
.hero{min-height:70vh;background-position:center;background-size:cover;padding-top:120px}
.hero-card{max-width:520px;margin-left:auto}
.hero-card-img{height:260px;object-fit:cover;width:100%;display:block}
@media (max-width:767px){
  .hero-card-img{height:180px}
}

/* FAQ */
.accordion-button:not(.collapsed){color:var(--primary);background:transparent}

/* Floating widgets */
#floatingWidgets{position:fixed;right:20px;bottom:20px;z-index:1080}
#floatingWidgets .btn{display:flex;align-items:center;justify-content:center}

/* Footer */
footer.bg-black{background:#0b0b0b}
footer h6{color:#fff}
footer .text-muted{color:#9b9b9b}

/* Feature cards (glass + subtle glow) */
.feature-card{background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));border:1px solid rgba(255,255,255,0.03);backdrop-filter: blur(6px);}
.feature-card h5{margin-top:0.5rem}

/* Modernized why-section */
.why-section{background:linear-gradient(180deg, rgba(211,47,47,0.03), rgba(0,0,0,0.00));}
.feature-card{transition:transform .28s ease,box-shadow .28s ease,background .28s ease;padding:28px}
.feature-card:hover{transform:translateY(-8px);box-shadow:0 22px 50px rgba(2,6,23,0.25)}
.feature-icon{width:84px;height:84px;min-width:84px;min-height:84px;aspect-ratio:1/1;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(90deg,var(--primary),var(--accent));color:#fff;font-size:28px;box-shadow:0 14px 38px rgba(211,47,47,0.16);position:relative;overflow:hidden;border:2px solid rgba(255,255,255,0.04)}
.feature-icon::after{content:'';position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 28% 28%, rgba(255,255,255,0.16), rgba(255,255,255,0.04) 18%, transparent 45%);pointer-events:none}
@media (max-width:767px){.feature-icon{width:64px;height:64px;min-width:64px;min-height:64px;font-size:22px;border:1px solid rgba(255,255,255,0.03)}}
@media (max-width:767px){.feature-icon{width:64px;height:64px;font-size:22px}}
.feature-link{color:var(--primary);opacity:0.95}
.feature-link:hover{color:var(--accent);text-decoration:underline}


/* CTA strip */
.cta-strip{box-shadow:0 12px 40px rgba(211,47,47,0.12)}
.cta-strip a.btn{box-shadow:0 8px 28px rgba(0,0,0,0.25)}

/* Scroll to top button */
#scrollTopBtn{display:none;align-items:center;justify-content:center}
#scrollTopBtn i{font-size:0.9rem}

@media (max-width:576px){
  .cta-strip{padding:18px}
  /* move scroll-top left on very small screens to avoid overlap with floating widgets */
  #scrollTopBtn{right:96px;bottom:110px}
}
/* Keep a safe offset on tablets */
@media (min-width:768px) and (max-width:1199px){
  /* place above floating widgets */
  #scrollTopBtn{right:96px;bottom:140px}
}
/* Desktop: move scroll-top to the right bottom and place above floating widgets */
@media (min-width:1200px){
  #scrollTopBtn{right:20px; left:auto; bottom:160px}
}

/* Buttons */
.btn-outline-light{border-color:rgba(255,255,255,0.08);color:#fff}
.btn-outline-danger{border-color:rgba(211,47,47,0.12);color:var(--primary)}

/* Black -> Red CTA button */
.btn-black{
  background:#0f0f0f;
  color:#fff;
  border:none;
  padding:.5rem .9rem;
  border-radius:.375rem;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  transition:background .22s ease,color .22s ease,box-shadow .22s ease,transform .12s ease;
  box-shadow:0 6px 18px rgba(2,6,23,0.22);
}
.btn-black:hover,
.btn-black:focus{
  background:linear-gradient(90deg,var(--primary),var(--accent));
  color:#fff;
  box-shadow:0 18px 40px rgba(211,47,47,0.2);
  transform:translateY(-2px);
}
.btn-black:focus{outline:3px solid rgba(211,47,47,0.08);outline-offset:2px}

@media (max-width:991px){
  .navbar .nav-link{padding:.45rem .6rem;font-size:0.95rem}
  .navbar-brand img{height:30px}
  .hero h1{font-size:34px}
  .hero .lead{font-size:0.95rem}
  .service-card .service-icon{width:64px;height:64px;min-width:64px;min-height:64px;font-size:18px}
}

@media (max-width:767px){
  .hero{padding-top:100px}
  .hero h1{font-size:26px}
  .hero .lead{font-size:0.9rem}
  .hero-card{max-width:100%}
  .service-card{padding:18px}
  .service-card .service-icon{width:56px;height:56px;min-width:56px;min-height:56px;font-size:16px}
  #testimonialCarousel .carousel-inner{min-height:0}
  .testimonial-card{margin-bottom:1rem}
  /* Move floating widgets above the mobile sticky book button so WhatsApp is visible */
  #floatingWidgets{right:12px;bottom:88px}
  #floatingWidgets .btn{width:48px;height:48px}
  .contact-card{margin-bottom:1rem}
  .navbar .nav-link{font-size:0.95rem}

  /* Hide the floating red round book button on small screens (we use the sticky mobile button instead) */
  #floatingWidgets .book-btn{display:none !important}

  /* Force opaque navbar on small screens and ensure toggler/icon contrast */
  #mainNav.navbar{
    background:linear-gradient(90deg,#0b0b0b,#111) !important;
    box-shadow:0 10px 30px rgba(0,0,0,0.5) !important;
    padding:0.25rem 0 !important;
    border-bottom:1px solid rgba(255,255,255,0.06) !important;
  }
  #mainNav .nav-link{color:#fff !important}
  #mainNav .navbar-toggler{border-color: rgba(255,255,255,0.12) !important}
  #mainNav .navbar-toggler-icon{background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'><path stroke='rgba(255,255,255,0.95)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>") !important; filter:none !important}

  /* ensure collapsed menu dropdown has a dark background so links are readable */
  #mainNav .navbar-collapse{background: linear-gradient(180deg,#0b0b0b,#111); padding:0.8rem; border-radius:8px; margin-top:8px}
  #mainNav .navbar-collapse .nav-link{color:#fff}

  /* Remove CSS transitions for the collapsed menu on mobile so it appears instantly */
  #mainNav .navbar-collapse,
  #mainNav .navbar-collapse.collapse,
  #mainNav .navbar-collapse.collapse.show{
    transition: none !important;
    -webkit-transition: none !important;
    max-height: none !important;
  }

  /* Ensure scroll-top is left of floating widgets on narrower screens */
  #scrollTopBtn{right:96px;bottom:110px}
}
