/* =========================================================
   Raksha Services – Landing Page Styles
   ========================================================= */

/* ---------- Fonts (local) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --primary: #544441;          /* logo brown */
  --primary-dark: #3A2E2C;
  --secondary: #B5302F;        /* deep logo red */
  --accent: #D63B3A;           /* logo red, deepened so white text passes contrast */
  --accent-light: #FF7472;     /* red text on dark brown */
  --accent-dark: #B5302F;
  --bg: #FFFFFF;
  --bg-soft: #F8F5F4;
  --bg-blue: #F2EAE8;
  --text: #2B2321;
  --muted: #6A5D5A;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(84, 68, 65, .08);
  --shadow-lg: 0 18px 44px rgba(84, 68, 65, .16);
  --nav-h: 76px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--primary); line-height: 1.25; }
a { color: var(--secondary); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 50px; padding: .6rem 1.4rem; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn-accent { background: var(--accent); color: #fff; border: 2px solid var(--accent); }
.btn-accent:hover, .btn-accent:focus { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(240, 79, 78, .35); }

.btn-primary-brand { background: var(--primary); color: #fff; border: 2px solid var(--primary); }
.btn-primary-brand:hover, .btn-primary-brand:focus { background: var(--secondary); border-color: var(--secondary); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(199, 59, 58, .3); }

.btn-outline-light { border-width: 2px; }
.btn-outline-light:hover { color: var(--primary); transform: translateY(-2px); }

/* ---------- Navbar ---------- */
.site-nav {
  background: rgba(84, 68, 65, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-height: var(--nav-h);
  transition: background-color .3s ease, box-shadow .3s ease, min-height .3s ease;
}
.site-nav.scrolled { background: var(--primary); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); min-height: 64px; }
.brand-logo { border-radius: 50%; object-fit: cover; background: #544441; }
.brand-text { color: #fff; font-weight: 700; font-size: 1.25rem; letter-spacing: .2px; }
.brand-text span { color: var(--accent-light); }
.site-nav .nav-link { color: rgba(255, 255, 255, .85); font-weight: 500; padding: .5rem .9rem !important; position: relative; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .25s ease; transform-origin: left;
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 0; color: #fff; font-size: 1.8rem; padding: .2rem .4rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(240, 79, 78, .5); }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding: .5rem 0 1rem; }
  .site-nav .nav-link::after { display: none; }
  .site-nav .nav-link.active { color: var(--accent-light); }
  .nav-call { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-slide {
  min-height: 100vh;
  min-height: 100svh;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(40, 31, 29, .92) 0%, rgba(84, 68, 65, .78) 45%, rgba(84, 68, 65, .35) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-top: calc(var(--nav-h) + 30px); padding-bottom: 90px;
  color: #fff;
}
.hero-content h1, .hero-content .h1 {
  color: #fff; font-weight: 700; max-width: 720px;
  font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: 1rem;
}
.hero-content p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 580px; color: rgba(255, 255, 255, .9); margin-bottom: 1.8rem; }
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(240, 79, 78, .18); color: var(--accent-light);
  border: 1px solid rgba(240, 79, 78, .5); border-radius: 50px;
  padding: .35rem 1rem; font-size: .9rem; font-weight: 600; margin-bottom: 1.1rem;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-phone { margin-top: 1.6rem; color: #fff; text-decoration: none; font-size: 1.15rem; font-weight: 600; display: inline-flex; align-items: center; gap: .5rem; }
.hero-phone i { color: var(--accent-light); font-size: 1.4rem; }
.hero-phone:hover { color: var(--accent-light); }

/* text animation on active slide */
.carousel-item .hero-content > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.carousel-item.active .hero-content > * { opacity: 1; transform: none; }
.carousel-item.active .hero-content > *:nth-child(2) { transition-delay: .12s; }
.carousel-item.active .hero-content > *:nth-child(3) { transition-delay: .24s; }
.carousel-item.active .hero-content > *:nth-child(4) { transition-delay: .36s; }
.carousel-item.active .hero-content > *:nth-child(5) { transition-delay: .48s; }

.carousel-control-prev, .carousel-control-next { width: 6%; z-index: 3; }
.carousel-control-prev-icon, .carousel-control-next-icon {
  width: 3rem; height: 3rem; border-radius: 50%;
  background-color: rgba(255, 255, 255, .15); background-size: 45%;
  border: 1px solid rgba(255, 255, 255, .35);
}
.carousel-indicators { margin-bottom: 2rem; z-index: 3; }
.carousel-indicators [data-bs-target] { width: 30px; height: 5px; border-radius: 4px; border: 0; background: #fff; opacity: .5; }
.carousel-indicators .active { background: var(--accent); opacity: 1; width: 46px; }

@media (max-width: 767.98px) {
  .carousel-control-prev, .carousel-control-next { display: none; }
  .hero-slide::before { background: linear-gradient(180deg, rgba(40, 31, 29, .82), rgba(84, 68, 65, .88)); }
  .hero-btns .btn { flex: 1 1 auto; }
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-blue-soft { background: var(--bg-blue); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-eyebrow {
  display: inline-block; color: var(--secondary); font-weight: 600; text-transform: uppercase;
  letter-spacing: 1.5px; font-size: .82rem; margin-bottom: .5rem;
  padding-left: 34px; position: relative;
}
.section-eyebrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 2px; background: var(--accent); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); text-align: center; margin-bottom: .8rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

@media (max-width: 767.98px) { .section { padding: 64px 0; } }

/* ---------- About ---------- */
.about-img { position: relative; border-radius: var(--radius); }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 9 / 10; object-fit: cover; }
.about-img::before {
  content: ""; position: absolute; top: -18px; left: -18px; width: 45%; height: 45%;
  border: 4px solid var(--accent); border-radius: var(--radius); z-index: -1;
}
.about-badge {
  position: absolute; right: -10px; bottom: 30px;
  background: var(--primary); color: #fff; border-radius: var(--radius-sm);
  padding: 1rem 1.3rem; display: flex; align-items: center; gap: .8rem; box-shadow: var(--shadow-lg);
}
.about-badge i { font-size: 2rem; color: var(--accent-light); }
.about-badge strong { display: block; font-size: 1.05rem; }
.about-badge span { font-size: .85rem; opacity: .85; }
@media (max-width: 575.98px) { .about-badge { right: 10px; bottom: 14px; } .about-img::before { display: none; } }

.about-points { margin: 1.6rem 0 2rem; }
.about-points li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.1rem; }
.about-points h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.about-points p { margin: 0; color: var(--muted); font-size: .95rem; }
.icon-circle {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(199, 59, 58, .1); color: var(--secondary); font-size: 1.3rem;
}

/* ---------- Service cards ---------- */
.service-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service-img { position: relative; aspect-ratio: 10 / 7; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-icon {
  position: absolute; left: 20px; bottom: -24px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); border: 4px solid #fff;
}
.service-img .img-wrap { position: absolute; inset: 0; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }

.service-body { padding: 2.2rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.service-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.service-btns .btn { flex: 1 1 130px; min-height: 46px; }

/* ---------- Why choose us ---------- */
.feature-box {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.4rem; text-align: center;
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease;
  border-bottom: 3px solid transparent;
}
.feature-box:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-bottom-color: var(--accent); }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 1.1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff;
}
.feature-box h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.feature-box p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 575.98px) {
  .feature-box { padding: 1.4rem .9rem; }
  .feature-icon { width: 52px; height: 52px; font-size: 1.4rem; }
  .feature-box h3 { font-size: .95rem; }
  .feature-box p { font-size: .84rem; }
}

/* ---------- Contact ---------- */
.contact-info {
  background: linear-gradient(160deg, var(--primary), var(--primary-dark));
  color: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-lg);
}
.contact-info h3 { color: #fff; font-size: 1.35rem; margin-bottom: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.3rem; }
.contact-list .icon-circle { background: rgba(240, 79, 78, .15); color: var(--accent-light); }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; opacity: .75; font-weight: 500; }
.contact-list a, .contact-list address { color: #fff; text-decoration: none; font-weight: 500; word-break: break-word; font-style: normal; }
.contact-list a:hover { color: var(--accent-light); }
.map-box { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; background: rgba(255, 255, 255, .08); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }

.form-card { background: #fff; border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow); border: 1px solid #ece4e2; }
.form-card h3 { font-size: 1.35rem; margin-bottom: .3rem; }
@media (max-width: 575.98px) { .form-card, .contact-info { padding: 1.5rem; } }

.form-label { font-weight: 500; font-size: .93rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: var(--radius-sm); padding: .7rem .95rem; border-color: #dcd1ce; font-size: .97rem; }
.input-group-text { border-color: #dcd1ce; background: var(--bg-soft); border-radius: var(--radius-sm) 0 0 var(--radius-sm); font-weight: 500; }
.input-group > .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; }
.form-control:focus, .form-select:focus { border-color: var(--secondary); box-shadow: 0 0 0 .2rem rgba(199, 59, 58, .2); }

.form-status:empty { display: none; }
.form-status { border-radius: var(--radius-sm); padding: .85rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.form-status.is-success { background: #e7f6ec; color: #13623a; border: 1px solid #b6e2c6; }
.form-status.is-error { background: #fdecec; color: #8f1d1d; border: 1px solid #f3c1c1; }
.form-status.is-info { background: #f6eeec; color: var(--primary); border: 1px solid #e6d3cf; }

/* ---------- Modal ---------- */
#enquiryModal .modal-content { border: 0; border-radius: var(--radius); overflow: hidden; }
#enquiryModal .modal-header { background: linear-gradient(120deg, var(--primary), var(--secondary)); color: #fff; border: 0; padding: 1rem 1.3rem; }
#enquiryModal .modal-title { color: #fff; }
#enquiryModal .modal-header small { opacity: .85; font-size: .8rem; }
#enquiryModal .modal-body { padding: 1.4rem 1.5rem 1.6rem; }

/* ---------- Floating "Enquire Now" tab (right, centre) ---------- */
.enquire-tab {
  position: fixed; right: 0; top: 50%; z-index: 1030;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  background: var(--accent); color: #fff; border: 0;
  font-weight: 700; font-size: .95rem; letter-spacing: .5px;
  padding: 1.1rem .65rem; border-radius: 0 10px 10px 0;
  box-shadow: -4px 0 18px rgba(0, 0, 0, .2);
  display: inline-flex; align-items: center; gap: .5rem;
  transition: padding .2s ease, background-color .2s ease;
}
.enquire-tab i { display: inline-block; transform: rotate(180deg); }
.enquire-tab:hover, .enquire-tab:focus-visible { background: var(--accent-dark); padding-right: .9rem; }
.enquire-tab:focus-visible { outline: 3px solid var(--primary); }
@media (max-width: 575.98px) { .enquire-tab { font-size: .8rem; padding: .9rem .5rem; } }

/* ---------- Mobile action bar ---------- */
.mobile-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
  display: flex; box-shadow: 0 -4px 18px rgba(0, 0, 0, .15);
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
}
.mobile-actions a, .mobile-actions button {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 58px; font-weight: 600; font-size: 1rem; text-decoration: none; color: #fff;
}
.mobile-actions .ma-call { background: var(--primary); }
.mobile-actions .ma-enquire { background: var(--accent); }
.mobile-actions button { border: 0; }
.mobile-actions a:active, .mobile-actions button:active { filter: brightness(.9); }
@media (max-width: 991.98px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .carousel-indicators { margin-bottom: 1.2rem; }
}

/* ---------- Back to top ---------- */
.back-top {
  position: fixed; left: 18px; bottom: 22px; z-index: 1030;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--secondary); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--primary); color: #fff; }
@media (max-width: 991.98px) { .back-top { bottom: calc(72px + env(safe-area-inset-bottom)); right: 14px; width: 42px; height: 42px; } }

/* ---------- Footer ---------- */
.site-footer { background: #3A2E2C; color: rgba(255, 255, 255, .78); padding: 70px 0 0; font-size: .95rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; position: relative; padding-bottom: .6rem; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--accent); }
.footer-brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.footer-brand:hover { color: var(--accent-light); }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .2s ease, padding .2s ease; }
.footer-links a:hover { color: var(--accent-light); padding-left: 4px; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; }
.footer-contact i { color: var(--accent-light); margin-top: .2rem; }
.footer-contact a:hover { color: var(--accent-light); }
.footer-contact a { word-break: break-word; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding: 1.3rem 0; text-align: center; font-size: .9rem; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal, .carousel-item .hero-content > * { opacity: 1; transform: none; }
}

/* ---------- Navbar at narrow desktop widths ---------- */
.site-nav .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-nav .nav-link { padding: .5rem .6rem !important; font-size: .95rem; }
  .site-nav .nav-link::after { left: .6rem; right: .6rem; }
}
@media (max-width: 991.98px) { .footer-bottom { padding-bottom: 4.5rem; } }

/* ---------- Large map in contact section ---------- */
.map-large { aspect-ratio: auto; min-height: 420px; box-shadow: var(--shadow); border-radius: var(--radius); }
@media (max-width: 991.98px) { .map-large { min-height: 340px; } }

/* ---------- Simple copyright footer ---------- */
.site-footer { padding: 1.3rem 0; text-align: center; font-size: .92rem; }
@media (max-width: 991.98px) { .site-footer { padding-bottom: 5rem; } }

/* ---------- Floating call button ---------- */
.float-call {
  position: fixed; right: 20px; bottom: 24px; z-index: 1030;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(240, 79, 78, .45);
  animation: callPulse 2s infinite;
}
.float-call i { animation: callRing 2s infinite; }
.float-call:hover { background: var(--accent-dark); color: #fff; }
.float-call:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
@keyframes callPulse {
  0% { box-shadow: 0 0 0 0 rgba(240, 79, 78, .6); }
  70% { box-shadow: 0 0 0 16px rgba(240, 79, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 79, 78, 0); }
}
@keyframes callRing {
  0%, 50%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-15deg); }
  20%, 40% { transform: rotate(15deg); }
}
@media (max-width: 991.98px) {
  .float-call { right: 14px; bottom: calc(72px + env(safe-area-inset-bottom)); width: 50px; height: 50px; font-size: 1.3rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) { .contact-list a { font-size: .9rem; } }

/* Guard against any sideways scroll on small screens */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
