/* ===== Rohani Solution - Vanilla CSS (mirrors React design) ===== */

:root {
  --bg: #efe9dd;
  --card: #ffffff;
  --primary: #1d5b3e;        /* deep emerald */
  --primary-soft: #2a7a55;
  --secondary: #c9a13a;      /* soft gold */
  --secondary-soft: #e6cf8a;
  --foreground: #1f2a24;
  --muted-fg: #6b6b6b;
  --border: #e2dccd;
  --muted-bg: #f6efe2;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --radius-lg: 16px;
  --radius-md: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  scroll-behavior: smooth;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* page wrap centers the box */
.page-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px;
}

@media (min-width: 768px) {
  .page-wrap { padding: 32px; }
}

/* MAIN BOX */
.main-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

/* Subtle Islamic geometric background pattern */
.islamic-pattern-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><g fill='none' stroke='%231d5b3e' stroke-width='0.7'><polygon points='40,5 55,20 55,40 40,55 25,40 25,20'/><circle cx='40' cy='30' r='9'/><polygon points='10,40 20,30 20,50' /><polygon points='70,40 60,30 60,50' /></g></svg>");
  background-size: 110px 110px;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.main-box > * { position: relative; z-index: 1; }

/* HEADER */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
}

.brand {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.nav-menu {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-menu a {
  font-size: 15px;
  color: var(--foreground);
  font-weight: 500;
  transition: color .2s;
}
.nav-menu a:hover { color: var(--primary); }

.btn-call {
  background: var(--primary);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .2s, transform .2s;
}
.btn-call:hover { background: var(--primary-soft); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--primary);
}

@media (max-width: 860px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 16px;
    background: #fff;
    flex-direction: column;
    padding: 16px 22px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 20;
  }
  .nav-menu.open { display: flex; }
  .menu-toggle { display: block; }
}

/* CONTENT */
.content { padding: 0; }

/* HERO */
.hero {
  margin: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

@media (min-width: 768px) {
  .hero { margin: 24px 32px 8px; }
}

/* LAYOUT ROW (main + sidebar) */
.layout-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 16px;
}

@media (min-width: 1024px) {
  .layout-row { flex-direction: row; padding: 32px; }
  .col-main { flex: 0 0 70%; }
  .col-side { flex: 0 0 calc(30% - 32px); }
}

.col-main, .col-side {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* CARDS */
.card {
  background: var(--muted-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.welcome-card {
  background: rgba(201,161,58,0.08);
  border-color: rgba(201,161,58,0.35);
}

.welcome-card h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin: 0 0 12px;
  font-size: 26px;
}

.welcome-card p {
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(31,42,36,0.85);
}

.welcome-card strong { color: var(--primary); }

/* IMAGE FRAME */
.img-frame {
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}
.img-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform .7s;
}
.img-frame:hover img { transform: scale(1.04); }

/* URDU TEXT */
.urdu-text {
  font-family: 'Amiri', serif;
  font-size: 20px;
  line-height: 2;
  text-align: justify;
  color: rgba(31,42,36,0.92);
  margin: 0;
}

.urdu-intro { padding: 26px; }
.urdu-intro .urdu-text { font-size: 22px; }

.urdu-heading {
  font-family: 'Amiri', serif;
  color: var(--primary);
  font-size: 30px;
  font-weight: 700;
  margin: 4px 0 12px;
  text-align: right;
}

/* SECTION DIVIDER */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0 8px;
}
.section-divider .line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 28px;
  margin: 0;
  padding: 0 12px;
}

/* SERVICE BLOCKS */
.service {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary);
}
.roman-text {
  font-size: 16.5px;
  line-height: 1.9;
  color: rgba(31,42,36,0.85);
  font-style: italic;
  border-left: 4px solid var(--secondary);
  padding: 6px 0 6px 16px;
  margin: 6px 0 0;
}

/* SIDEBAR */
.cta-box {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  border-top: 5px solid var(--secondary);
  box-shadow: var(--shadow);
}
.urdu-cta {
  font-family: 'Amiri', serif;
  font-size: 22px;
  margin: 0 0 8px;
}
.cta-sub {
  font-size: 13px;
  margin: 0 0 14px;
  opacity: 0.9;
}
.btn-call-big {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: var(--primary) !important;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.4px;
  transition: background .2s, transform .2s;
}
.btn-call-big:hover {
  background: var(--secondary-soft);
  transform: translateY(-1px);
}

.whatsapp-card { padding: 22px; background: #fff; }
.whatsapp-head {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.whatsapp-head .wa-ico { color: #25D366; font-size: 22px; }
.whatsapp-head h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--primary);
}

.wa-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wa-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  font-size: 15px;
  color: var(--foreground);
  border-bottom: 1px dashed transparent;
  transition: color .2s, border-color .2s;
}
.wa-list li a::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 700;
}
.wa-list li a:hover {
  color: var(--primary);
  border-bottom-color: var(--secondary);
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25D366;
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: background .2s, transform .2s;
}
.btn-wa:hover { background: #1FAE54; transform: translateY(-1px); }

.side-img { max-width: 220px; margin: 8px auto 0; }

/* CONTACT CTA */
.contact-cta {
  margin: 8px 16px 24px;
  padding: 32px 24px;
  background: linear-gradient(135deg, rgba(201,161,58,0.18), rgba(29,91,62,0.12));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}
.contact-cta h2 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  margin: 0 0 12px;
  font-size: 28px;
}
.contact-buttons {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .contact-cta { margin: 16px 32px 24px; padding: 40px 32px; }
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--muted-bg);
  padding: 40px 24px;
  text-align: center;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
.footer-img {
  max-width: 380px;
  margin: 0 auto 18px;
}
.footer-urdu {
  font-family: 'Amiri', serif;
  font-size: 22px;
  color: var(--primary);
  line-height: 1.9;
  margin: 0 auto 12px;
  max-width: 700px;
}
.footer-roman {
  color: var(--muted-fg);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 18px;
  line-height: 1.7;
}
.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 17px;
}
.footer-link.wa { color: #1FAE54; }
.footer-link:hover { opacity: 0.8; }
.dot { color: var(--border); }
.site-footer hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px auto;
  max-width: 60%;
}
.copyright { color: var(--muted-fg); font-size: 14px; margin: 0; }

/* FLOATING WHATSAPP */
.float-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  z-index: 1000;
  transition: transform .25s, background .25s;
  animation: pulseWA 2.4s ease-out infinite;
}
.float-wa:hover { background: #1FAE54; transform: scale(1.07); }
.float-wa svg { width: 30px; height: 30px; }

@media (min-width: 768px) {
  .float-wa { width: 64px; height: 64px; right: 28px; bottom: 28px; }
  .float-wa svg { width: 32px; height: 32px; }
}

@keyframes pulseWA {
  0%   { box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0); }
}

/* RESPONSIVE TWEAKS */
@media (max-width: 640px) {
  .brand { font-size: 18px; }
  .btn-call { padding: 7px 12px; font-size: 13px; }
  .urdu-text { font-size: 18px; }
  .urdu-heading { font-size: 24px; }
  .section-divider h2 { font-size: 22px; }
  .welcome-card h2 { font-size: 22px; }
}
