/* ============================================================
   BirruMv — Redesigned Stylesheet
   ============================================================ */

:root {
  --primary: #0d6e6e;
  --primary-dark: #0a5555;
  --primary-light: #e8f5f5;
  --accent: #c44536;
  --accent-hover: #a83a2e;
  --gold: #d4a843;
  --text: #2d3436;
  --text-light: #636e72;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1100px;
}

@font-face {
  font-family: "mergedFont";
  src:
    url(../font/merged-300.woff2) format("woff2"),
    url(../font/merged-300.woff) format("woff");
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "mergedFont", "Quicksand", sans-serif, "faruma";
  -webkit-font-smoothing: antialiased;
  text-align: left;
  direction: ltr;
  font-size: 110%;
  scroll-behavior: smooth;
  overflow-wrap: anywhere;
  overflow-y: scroll;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
}
h2 {
  font-size: 1.6rem;
  font-weight: 600;
}
h3 {
  font-size: 1.2rem;
  font-weight: 500;
}
h4 {
  font-size: 1rem;
  font-weight: 500;
}
p {
  font-size: 1rem;
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

hr {
  border: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary), var(--gold));
  border-radius: 2px;
  margin: 2rem 0;
  opacity: 0.3;
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}
.mid {
  text-align: center !important;
}
.hidden {
  display: none !important;
}

.eng,
.eng p {
  font-family: "Quicksand", sans-serif, "mergedFont", serif;
  text-align: left;
  direction: ltr;
}
.dv,
.dv p,
.eng.dv {
  font-family: "mergedFont", "Quicksand", sans-serif, "faruma";
  text-align: right;
  direction: rtl;
}

/* ===== HERO ===== */
.hero {
  text-align: center !important;
  padding: 1.5rem 1rem 1.5rem;
  position: relative;
}
.hero * {
  text-align: center !important;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary),
    transparent
  );
  opacity: 0.2;
}
.basmala {
  font-size: 1.4rem !important;
  font-family: "mergedFont", "Quicksand", sans-serif, "faruma";
  color: var(--primary);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.logo {
  width: 130px;
  height: 130px;
  margin: 0 auto 1rem;
  transition: transform var(--transition);
}
.logo:hover {
  transform: scale(1.08);
}
.tagline {
  font-size: 1.3rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.social-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  direction: ltr;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.social-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.social-btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

/* ===== FLOATING ORDER BUTTON ===== */
.floating-order {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}
.floating-order-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent-hover);
  border-radius: 50px;
  padding: 14px 24px;
  font-family: "Quicksand", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition);
}
.floating-order-btn:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
}
.floating-order-btn .icon {
  font-size: 1.2rem;
}

/* ===== TAB SYSTEM ===== */
.tab-hint {
  text-align: center !important;
  margin: 1.5rem 0 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  animation: bob 1.2s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.tab-nav {
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--primary);
  margin-bottom: 2rem;
  direction: ltr;
}
.tab-btn {
  flex: 1;
  padding: 1rem 0.75rem;
  border: none;
  background: transparent;
  font-family: "mergedFont", "Quicksand", sans-serif, "faruma";
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.tab-btn:hover {
  color: var(--primary-dark);
  background: var(--primary-light);
}
.tab-btn.active {
  color: #fff;
  background: var(--primary);
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

/* ===== SECTION TITLES ===== */
.section-title {
  text-align: center !important;
  margin-bottom: 1.5rem;
}
.section-title h2 {
  color: var(--primary-dark);
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--gold);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* ===== INFO LISTS ===== */
.info-list {
  list-style: none;
  padding: 0;
}
.info-list li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}
.info-list li::before {
  content: "•";
  color: var(--primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ===== PRODUCT CARDS ===== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}
@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.product-card .carousel {
  position: relative;
  overflow: hidden;
  background: #eee;
}
.product-card .carousel-track {
  position: relative;
}
.product-card .carousel-track img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
}
.product-card .carousel-track img:first-child {
  position: static;
}
.product-card .carousel-track img.active {
  opacity: 1;
}
.product-card .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background var(--transition);
  color: #000;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  padding: 0;
  text-indent: 0;
  padding-bottom: 2px;
}
.product-card .carousel-btn:hover {
  background: #fff;
}
.product-card .carousel-prev {
  left: 8px;
}
.product-card .carousel-next {
  right: 8px;
}
.product-card .carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
.product-card .carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background var(--transition);
}
.product-card .carousel-dots span.active {
  background: #fff;
}
.product-card .card-body {
  padding: 1.2rem;
  text-align: center;
}
.product-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.product-card .card-title-dv {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}
.product-card .card-price {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.7rem 2rem;
  font-family: "Quicksand", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.product-card .card-price:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(196, 69, 54, 0.35);
}

/* ===== EXPANDABLE SECTIONS ===== */
.expand-toggle {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem;
  background: var(--primary-light);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: "mergedFont", "Quicksand", sans-serif, "faruma";
  font-size: 1rem;
  color: var(--primary-dark);
  transition: all var(--transition);
  margin: 1rem 0;
}
.expand-toggle:hover {
  background: var(--primary);
  color: #fff;
}
.expand-content {
  display: none;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.expand-content.open {
  display: block;
}
.expand-content ul {
  list-style: none;
  padding: 0;
}
.expand-content li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  line-height: 1.6;
}
.expand-content li:last-child {
  border-bottom: none;
}

/* ===== STEPS TO ORDER ===== */
.steps-box {
  background: var(--primary-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  border: 1px solid var(--primary);
  display: flex;
  flex-direction: column;
}
.steps-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}
.steps-box ol {
  margin: 0;
  padding-inline-start: 1.5rem;
  flex: 1;
}
.steps-box li {
  padding: 0.15rem 0;
  line-height: 1.4;
  font-size: 0.85rem;
}
.steps-box .calc-hint {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  align-self: flex-start;
}
.steps-box .calc-hint a {
  font-weight: 600;
}

/* ===== AQIQAH CALCULATOR ===== */
.calculator-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 1.5rem auto;
}
.calc-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.calc-row label {
  flex: 1;
  min-width: 180px;
  font-size: 0.95rem;
}
.calc-row input,
.calc-row select {
  flex: 1;
  min-width: 140px;
  padding: 0.6rem 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: var(--radius-sm);
  font-family: "Quicksand", sans-serif;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color var(--transition);
}
.calc-row input:focus,
.calc-row select:focus {
  outline: none;
  border-color: var(--primary);
}
.calc-result {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: "Quicksand", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  margin-left: auto;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
  margin: 3rem 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
@media (min-width: 600px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .testimonials-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  overflow: hidden;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--gold), var(--primary));
  border-radius: var(--radius) var(--radius) 0 0;
}
.testimonial-card::after {
  content: "\201C";
  position: absolute;
  bottom: 0.5rem;
  right: 1rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--primary);
  font-family: serif;
  pointer-events: none;
  opacity: 0.35;
  transform: rotate(180deg);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.testimonial-card .stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.6rem;
  display: block;
}
.testimonial-card .quote {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
  font-style: italic;
  position: relative;
  z-index: 1;
}
.testimonial-card .author {
  display: block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open {
  display: flex;
}
.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  max-width: 420px;
  width: 100%;
  max-height: min(calc(100vh - 2rem), 95vh);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modalIn 0.3s ease-out;
  position: relative;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
}
.modal-close:hover {
  color: var(--text);
}
.modal-box h2 {
  text-align: center;
  margin-bottom: 0.8rem;
  color: var(--text);
  font-size: 1rem;
  white-space: nowrap;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition);
  font-family: "Quicksand", sans-serif;
  font-size: 0.85rem;
}
.contact-item:hover {
  background: var(--primary-light);
  color: var(--primary-dark);
  transform: translateX(-4px);
}
.contact-item .icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item .icon-wrap svg {
  width: 14px;
  height: 14px;
  fill: #fff;
}

/* ===== FOOTER (Full Width) ===== */
.footer {
  text-align: center !important;
  padding: 2.5rem 1.5rem;
  margin-top: 3rem;
  background: #0a5555;
  color: #fff;
}
.footer * {
  text-align: center !important;
}
.footer .footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.footer-links a:hover {
  color: #fff;
}
.footer-divider {
  width: 80%;
  max-width: 600px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.2rem;
  border-radius: 2px;
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 102px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 0;
  padding: 0;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top:hover {
  transform: translateY(-3px);
  background: var(--accent-hover);
}

/* ===== DARK MODE ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1621;
    --bg-card: #1a2533;
    --text: #e0e0e0;
    --text-light: #8899aa;
    --primary-dark: #4a9e9e;
    --primary-light: #1a3a3a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
  }
  .tab-btn.active {
    background: var(--primary);
  }
  .section-title h2 {
    color: var(--text);
  }
  .steps-box {
    background: #1a3a3a;
    border-color: var(--primary);
  }
  .steps-box h3 {
    color: var(--text);
  }
  .steps-box .calc-hint {
    background: var(--bg);
    color: var(--text);
  }
  .carousel {
    background: #1a2533 !important;
  }
  .expand-toggle {
    background: #1a3a3a;
    border-color: var(--primary);
    color: var(--text);
  }
  .expand-toggle:hover {
    background: var(--primary);
    color: #fff;
  }
  .expand-content li {
    border-color: #2a3a4a;
  }
  .calc-result {
    color: var(--text) !important;
  }
  .contact-item {
    background: #1a2533;
  }
  .contact-item:hover {
    background: #1a3a3a;
  }
  .calc-row input,
  .calc-row select {
    background: #1a2533;
    color: var(--text);
    border-color: #2a3a4a;
  }
  a {
    color: #5ab4b4;
  }
  .testimonial-card::after {
    color: #5ab4b4;
    opacity: 0.6;
  }
  .testimonial-card .author {
    color: #5ab4b4;
  }
  /* Footer keeps its hardcoded #0a5555 from light mode */
  .carousel-btn {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  }
  .carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: #fff;
  }
  .carousel-dots span {
    background: rgba(255, 255, 255, 0.35);
  }
  .carousel-dots span.active {
    background: #fff;
  }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
  .footer-break {
    display: none;
  }
}
@media (max-width: 599px) {
  .dv-steps {
    display: none !important;
  }
  .modal-box h2 {
    white-space: normal;
  }
  .footer-dash {
    display: none;
  }
  .tab-sep {
    display: none;
  }
  .tab-label-dv {
    display: block;
    font-size: 0.8rem;
    opacity: 0.85;
  }
  .wrapper {
    padding: 0 1rem;
  }
  .steps-grid {
    grid-template-columns: 1fr !important;
  }
  .basmala {
    font-size: 1.2rem !important;
  }
  .logo {
    width: 100px;
    height: 100px;
  }
  .tagline {
    font-size: 1.1rem;
  }
  .tab-btn {
    font-size: 0.85rem;
    padding: 0.8rem 0.5rem;
  }
  .product-card .card-body {
    padding: 1rem;
  }
  .calculator-card {
    padding: 1.2rem;
  }
  .modal-box {
    padding: 1.5rem;
  }
  .floating-order-btn {
    padding: 12px 18px;
    font-size: 0.85rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.telegram-embed {
  margin: 1.5rem 0;
  text-align: center;
}
