/* ============================================
   Ezan Vakti Namaz Vakitleri Pro — Stylesheet
   ============================================ */

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

:root {
    --green: #23a455;
    --green-dark: #1b8544;
    --green-light: #ebfff1;   /* #D7FFE2 at 50% over white, as the old theme rendered it */
    --green-mid: #d7ffe2;
    --text: #3a3a3a;
    --text-muted: #7a7a7a;
    --heading: #141414;
    --bg: #ffffff;
    --bg-alt: #f6f8f7;
    --border: #e4e8e6;
    --link: #1b8544;
    --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max: 1140px;
    --radius: 14px;
    --header-h: 72px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h4 { font-size: 1.05rem; }
p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.4rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--heading); }
blockquote { border-left: 4px solid var(--green); padding: 0.5rem 1rem; margin: 1rem 0; background: var(--green-light); border-radius: 0 8px 8px 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }

/* --- Header --- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #ffffff; /* no backdrop-filter: it would turn the header into the containing block of the fixed mobile menu */
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1rem; }
.logo img { width: 48px; height: 48px; border-radius: 10px; }
.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-links { list-style: none; display: flex; gap: 0.2rem; padding: 0; margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.nav-links li { margin: 0; }
.nav-links a {
    display: block; padding: 0.45rem 0.7rem; border-radius: 8px;
    font-size: 0.82rem; font-weight: 600; color: var(--heading); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: var(--green-light); color: var(--green-dark); text-decoration: none; }
.nav-parent {
    display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.45rem 0.7rem; border: 0; border-radius: 8px;
    background: transparent; font: inherit; font-size: 0.82rem; font-weight: 600; color: var(--heading); cursor: pointer; white-space: nowrap;
}
.nav-parent svg { transition: transform .2s; }
.has-children { position: relative; }
.has-children:hover > .nav-parent, .has-children.open > .nav-parent, .has-children.active-parent > .nav-parent { background: var(--green-light); color: var(--green-dark); }
.has-children:hover > .nav-parent svg, .has-children.open > .nav-parent svg { transform: rotate(180deg); }
.sub-menu {
    list-style: none; padding: 0.4rem; margin: 0;
    position: absolute; top: 100%; left: 0; min-width: 260px;
    background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    display: none; z-index: 110;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* hover bridge */
.has-children:hover > .sub-menu, .has-children.open > .sub-menu, .has-children:focus-within > .sub-menu { display: block; }
.sub-menu li { margin: 0; }
.sub-menu a { white-space: normal; padding: 0.55rem 0.8rem; }
.header-social { display: flex; align-items: center; gap: 0.6rem; }
.header-social > a { color: var(--text-muted); display: inline-flex; padding: 6px; border-radius: 8px; }
.header-social > a:hover { color: var(--green); background: var(--green-light); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--heading); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99; background: #fff; display: none; overflow-y: auto; padding: 1rem 20px 2rem; }
    .nav-links.open { display: flex; }
    .nav-links { display: none; flex-direction: column; gap: 0.25rem; width: 100%; }
    body.nav-open .main-nav { display: block; }
    .nav-links a { font-size: 1rem; padding: 0.8rem 1rem; white-space: normal; }
    .nav-parent { width: 100%; justify-content: space-between; font-size: 1rem; padding: 0.8rem 1rem; }
    .sub-menu { position: static; display: none; box-shadow: none; border: 0; border-left: 2px solid var(--green-mid); border-radius: 0; margin: 0.2rem 0 0.4rem 1rem; padding: 0; min-width: 0; }
    .has-children:hover > .sub-menu, .has-children:focus-within > .sub-menu { display: none; }
    .has-children.open > .sub-menu, .has-children.active-parent > .sub-menu { display: block; }
    .has-children.active-parent > .nav-parent svg { transform: rotate(180deg); }
}

/* --- Buttons --- */
.btn {
    display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px;
    font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; text-decoration: none;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(35, 164, 85, 0.35); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-light { background: #fff; color: var(--green-dark); }

/* --- Hero --- */
.hero {
    position: relative; color: #fff;
    background: #0f2a1a url('/wp-content/uploads/2020/02/ccc-1.jpg') center / cover no-repeat;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero-phone { max-width: 400px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.45)); }
.hero-text h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.6rem; }
.hero-text .hero-lead { color: #fff; font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.35; margin-bottom: 1.5rem; }
.hero-cta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-qr { width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 4px; }
.hero-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1.25rem; }
.hero-features li { margin: 0; display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; }
.hero-features li::before { content: "✓"; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; background: var(--green); border-radius: 50%; font-size: 0.75rem; flex-shrink: 0; }
@media (max-width: 820px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-phone { max-width: 280px; order: 2; }
    .hero-cta { justify-content: center; }
    .hero-features { text-align: left; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 480px) { .hero-features { grid-template-columns: 1fr; } }

/* --- Feature sections --- */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--green-light); }
.section-title { text-align: center; margin-bottom: 2rem; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.feature-media img { max-height: 560px; width: auto; margin: 0 auto; border-radius: var(--radius); }
.feature-text h2 { margin-bottom: 0.4rem; }
.feature-text h3 { color: var(--green-dark); font-size: 1.1rem; margin-bottom: 1rem; }
.feature-text ul { list-style: none; padding: 0; }
.feature-text li { position: relative; padding-left: 1.5rem; margin-bottom: 0.7rem; }
.feature-text li::before { content: "•"; position: absolute; left: 0.2rem; color: var(--green); font-weight: 800; }
.feature-text li p { margin: 0; }
.feature.reverse .feature-media { order: 2; }
.feature-media.duo { display: flex; gap: 1rem; justify-content: center; }
.feature-media.duo img { max-height: 520px; }
@media (max-width: 820px) {
    .feature, .feature.reverse { grid-template-columns: 1fr; gap: 1.5rem; }
    .feature.reverse .feature-media { order: 0; }
    .feature-media img { max-height: 440px; }
}
.cta-banner { padding: 0; }
.cta-banner img { width: 100%; }

/* --- Generic page --- */
.page-section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.page-header { background: var(--green-light); padding: clamp(1.5rem, 4vw, 2.75rem) 0; border-bottom: 1px solid var(--border); }
.page-header .kicker { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--green-dark); margin-bottom: 0.4rem; }
.page-header h1 { margin: 0; }
.page-header .page-meta { color: var(--text-muted); font-size: 0.85rem; margin: 0.5rem 0 0; }
.prose { max-width: 820px; }
.prose h2 { margin: 2rem 0 0.75rem; }
.prose h3 { margin: 1.5rem 0 0.5rem; }
.prose h4 { margin: 1.25rem 0 0.5rem; }
.prose img { border-radius: var(--radius); margin: 1rem 0; }
.prose figure { margin: 1.25rem 0; }
.prose figure img { margin: 0 auto; }
.prose figcaption { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* --- How-to steps (widget page) --- */
.steps figure { margin: 1rem 0 2rem; }
.steps figure img { max-width: 300px; margin: 0 auto; border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

/* --- Message pages: galleries --- */
.message-list { background: var(--bg-alt); border-radius: var(--radius); padding: 1.25rem 1.25rem 0.5rem 2.5rem; margin: 1.5rem 0 2rem; }
.message-list li { margin-bottom: 0.9rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.gallery figure { margin: 0; background: var(--bg-alt); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gallery figure a { display: block; }
.gallery figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin: 0; border-radius: 0; }
.gallery figcaption { padding: 0.75rem 0.9rem 0.25rem; font-size: 0.85rem; color: var(--text); text-align: left; margin: 0; }
.share-row { margin-top: auto; padding: 0.6rem 0.9rem 0.9rem; }
.share-btn {
    display: inline-flex; align-items: center; gap: 0.45rem; width: 100%; justify-content: center;
    padding: 0.55rem 1rem; border-radius: 999px; border: 1.5px solid var(--green);
    background: #fff; color: var(--green-dark); font-weight: 700; font-size: 0.85rem; text-decoration: none;
    transition: background .15s, color .15s;
}
.prose .share-btn, .share-btn:hover { text-decoration: none; }
.share-btn:hover { background: var(--green); color: #fff; }
.share-btn.is-share { background: var(--green); color: #fff; }
.share-btn.is-share:hover { background: var(--green-dark); }
.share-btn.busy { opacity: 0.6; pointer-events: none; }

/* --- FAQ --- */
.faq-group { margin-bottom: 2.5rem; }
.faq-group h2 { margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--green-mid); }
.faq-note { color: var(--text-muted); font-size: 0.9rem; }
.faq details { border: 1px solid var(--border); border-radius: 10px; margin-bottom: 0.6rem; background: #fff; }
.faq summary { cursor: pointer; padding: 0.9rem 1rem 0.9rem 2.4rem; font-weight: 700; color: var(--heading); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; position: absolute; left: 0.9rem; top: 0.75rem; color: var(--green); font-size: 1.3rem; font-weight: 800; line-height: 1; }
.faq details[open] summary::before { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .faq-answer { padding: 1rem 1rem 0.25rem; }
.faq .faq-answer img { border-radius: 10px; margin: 0.5rem 0 1rem; }

/* --- Contact --- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 3rem; align-items: start; }
.contact-grid img { max-width: 340px; margin: 0 auto; border-radius: 28px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- Footer --- */
.site-footer { background: #111614; color: #c9d1cc; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer h3 { color: #fff; font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.92rem; }
.site-footer a { color: #c9d1cc; }
.site-footer a:hover { color: #fff; }
.footer-download img { margin-bottom: 1rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { color: #c9d1cc; display: inline-flex; padding: 6px; border-radius: 8px; background: rgba(255,255,255,0.06); }
.social-links a:hover { color: #fff; background: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
