/*
Theme Name: Istikhara Theme
Author: Mohsen
Version: 1.0
*/

/* Reset */

@font-face {
  font-family: 'Amiri';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/Amiri-Regular.woff2') format('woff2')
}

@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/Vazirmatn-Regular.woff2') format('woff2')
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Vazirmatn', serif;
  background: #fdf6e3;
  color: #1f1f1f;
  line-height: 1.7;
  direction: rtl;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

section {
  padding: 30px 0;
}

h1, h2, h3 {
  margin-bottom: 20px;
}

p {
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, #f9d976, #f39c12);
  color: #000;
  padding: 14px 32px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  margin-top: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  font-size: 16px;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #fceabb, #f1c40f);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.btn-head {
  background: linear-gradient(135deg, #f9d976, #f39c12);
  color: #000;
  padding: 10px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  font-size: 16px;
  margin-right:25px;
  margin-left:0;
}


.btn-head:hover {
  transform: translateY(-2px) scale(1.03);
  background: linear-gradient(135deg, #fceabb, #f1c40f);
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* Header */
header {
  background: #0b2f24;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #faefbe;
}
.logo {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  margin: 0;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 0;
}

nav {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 25px;
  margin-left: 0;
  opacity: 0.85;
  font-size: 16px;
  line-height: 1;
}
/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  margin-right: 20px;
  font-size: 14px;
    margin-left:0;
}

.lang-switch a {
  color: #ffd966;
  text-decoration: none;
  margin: 0 4px;
  opacity: 0.7;
  font-weight: bold;
}

.lang-switch a.active {
  opacity: 1;
  border-bottom: 1px solid #ffd966;
}

.lang-switch span {
  opacity: 0.4;
}

/* Hero */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 110px 20px;
  background:
    linear-gradient(rgba(15,61,46,0.7), rgba(15,61,46,0.85)),
    url('https://istikhara.app/wp-content/themes/istikhara-theme/images/hero-back.webp') center/cover no-repeat;
}

.hero h2 {
  font-size: 40px;
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 600px;
  margin: 15px auto;
  position: relative;
  z-index: 1;
}

.hero .btn {
  position: relative;
  z-index: 1;
  font-size: 18px;
}

/* Intro / Istikhara cards */
.intro {
  text-align: center;
  background: #fff4c2;
  color: #1f1f1f;
  padding: 80px 20px;
}
.istikhara-quote {
  max-width: 1100px;
  margin: 0 auto 40px auto;
  font-size: 20px;
  font-style: italic;
  background: #fff8d6;
  padding: 25px 30px;
  border-right: 5px solid #c87f00;
  border-left: none;
  border-radius: 8px;
}

.istikhara-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 25px;
  margin-top: 30px;
}

.istikhara-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.istikhara-card h3 {
  color: #c87f00;
  margin-bottom: 10px;
  font-size: 18px;
}


.steps{
    background-color:#0b2f24;
    background-image:url("https://istikhara.app/wp-content/themes/istikhara-theme/images/bg.webp");
    background-repeat:repeat;
    background-size:400px;

    color:#fff;
}


.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 40px;
  margin-top: 40px;
}

.step {
  background: #0f3d2e;
  padding: 30px;
  border-radius: 10px;
}

.step h3 {
  color: #ffd966;
}

/* Dua */
.dua {
  margin: 50px auto 30px;
  text-align: center;
  background: #fff8d6;
  padding: 50px 20px;
  border-radius: 12px;
  color: #1f1f1f;
}

.arabic {
  font-size: 28px;
  line-height: 2;
  background: #fff4c2;
  padding: 40px;
  border-radius: 12px;
  font-family: 'Amiri', serif;
  direction: rtl;
}

.highlight {
  color: #c87f00;
  font-weight: bold;
  padding: 3px 8px;
  border: 1px solid #c87f00;
  border-radius: 6px;
}

.translation {
  margin-top: 30px;
  max-width: 800px;
  margin-right: auto;
  margin-left: auto;
  opacity: 0.95;
  color: #1f1f1f;
}

/* CTA */
.cta {
  background: #fff4c2;
  text-align: center;
  color: #1f1f1f;
  padding: 80px 20px;
}

/* Guidance */
.guidance {
  background: #0f3d2e;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 30px;
  margin-top: 40px;
}

.guidance-card {
  background: #134a38;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.guidance-card h3 {
  color: #ffd966;
  margin-bottom: 10px;
}

/* Verse */
.verse {
  text-align: center;
  background: #0f5d3d;
  font-style: italic;
  color: #f6f3eb;
  padding: 80px 20px;
  font-size: 30px;
}

.quran-quote {
  max-width: 750px;
  margin: auto;
  position: relative;
  padding: 40px 30px;
}

.quran-quote::before {
  content: "“";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 90px;
  color: #ffd966;
  opacity: 0.35;
  font-family: serif;
}

.quran-quote p {
  font-size: 32px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.quran-quote cite {
  display: block;
  font-size: 16px;
  opacity: 0.8;
  font-style: normal;
}

.quran-quote::after {
  content: "";
  display: block;
  width: 120px;
  height: 3px;
  background: #ffd966;
  margin: 25px auto 0;
}

/* FAQ */
.faq {
  margin: auto;
  background: #fff8d6;
  color: #1f1f1f;
  padding: 50px 20px;
}

.faq-item {
  max-width: 1100px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(31,31,31,0.3);
  padding-bottom: 15px;
}

.faq-item h4 {
  color: #c87f00;
  margin-bottom: 8px;
}

.faq ul {
  list-style: none;
  padding-right: 0;
  margin-top: 15px;
}

.faq ul li {
  position: relative;
  padding-right: 30px;
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.faq ul li::before {
  content: "✓";
  position: absolute;
  right: 0;
  top: 0;
  color: #ffd966;
  font-weight: bold;
  font-size: 18px;
}

/* Footer */
footer {
  background: #081f18;
  color: #f6f3eb;
  padding: 30px 20px;
  font-size: 14px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: auto;
}

.footer-left p {
  margin: 0;
  opacity: 0.8;
}

.footer-right nav a {
  color: #ffd966;
  text-decoration: none;
  margin-right: 20px;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.footer-right nav a:hover {
  opacity: 1;
}

/* Responsive */
@media(max-width:768px){
  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .footer-right nav a {
    margin: 10px 8px 0 8px;
  }

  nav a[href="https://istikhara.app/#how"],
  nav a[href="https://istikhara.app/#faq"] {
    display: none;
  }
}


/* RESULT */

.result-hero{
text-align:center;
background:#0f3d2e;
color:#fff;
padding:90px 20px;
}

.result-badge{
display:inline-block;
background:#ffd966;
color:#000;
padding:10px 25px;
border-radius:30px;
font-weight:bold;
margin-bottom:20px;
}

.result-box{
margin:25px auto 0;
padding:30px 40px;
border-radius:12px;
background:#ffffff;
color:#000;
max-width:600px;
width:100%;
box-shadow:0 8px 25px rgba(0,0,0,.25);
}

.result-cta{
text-align:center;
margin-top:60px;
}

.result-box h1{
font-size:38px;
margin-bottom:10px;
}

.result-box p{
opacity:.8;
}

.result-excellent{border-top:6px solid #2ecc71;}
.result-good{border-top:6px solid #27ae60;}
.result-neutral{border-top:6px solid #f1c40f;}
.result-notgood{border-top:6px solid #e67e22;}
.result-bad{border-top:6px solid #e74c3c;}

.ayah{
background:#fff8d6;
text-align:center;
border-radius:12px;
padding:30px 30px;
}

.ayah-arabic{
font-family:'Amiri',serif;
font-size:32px;
line-height:2;
margin-bottom:10px;
direction:rtl;
}

.translit{
font-style:italic;
opacity:.85;
margin-bottom:10px;
direction:ltr;
text-align:center;
}

.result-translation{
max-width:700px;
margin:auto;
}

.decision-results{
margin-top:60px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;
}

.result-card{
background:#ffffff;
border-radius:10px;
padding:30px;
box-shadow:0 4px 10px rgba(0,0,0,.1);
}

.result-card h3{
color:#c87f00;
margin-bottom:10px;
}

.result-btn{
display:inline-block;
background:linear-gradient(135deg,#f9d976,#f39c12);
color:#000;
padding:14px 30px;
text-decoration:none;
border-radius:6px;
font-weight:bold;
margin:10px;
}