/*
Theme Name: eventphotographer.in
Theme URI: https://eventphotographer.in/
Author: eventphotographer.in
Description: Lead-generation theme for event photography in Pune. Auto-creates every SEO landing page, includes a quick enquiry form with a built-in Leads CRM, schema markup, and Customizer slots for every photo.
Version: 1.3.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: eventphotographer
*/

:root {
	--brand: #6b2a33;
	--brand-dark: #521f27;
	--brand-soft: #f4eaeb;
	--bg: #f8f6f3;
	--alt: #f1ece6;
	--surface: #ffffff;
	--ink: #1d1a1a;
	--muted: #5f5957;
	--line: #e3ddd6;
	--wa: #1faa53;
	--radius: 12px;
	--head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.12rem; color: #3b3534; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--brand); margin-bottom: .6em; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; min-height: 48px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-light { background: #fff; color: var(--brand); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover, .btn-light:hover { opacity: .9; color: inherit; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-logo { max-height: 44px; width: auto; }
.brand-name, .footer-brand { font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.brand-name span, .footer-brand span { color: var(--brand); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; gap: 4px; align-items: center; }
.site-nav a, .site-nav button { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font: 500 .98rem var(--body); background: none; border: 0; cursor: pointer; border-radius: 8px; }
.site-nav a:hover, .site-nav button:hover { background: var(--brand-soft); color: var(--brand); }
.has-dd { position: relative; }
.dd { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.has-dd:hover .dd, .has-dd.open .dd, .has-dd:focus-within .dd { display: block; }
.nav-toggle { display: none; }

/* Hero */
.hero, .page-hero { padding: 40px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.hero-copy h1 { margin-top: .1em; }
.hero-media { margin-top: 24px; border-radius: var(--radius); overflow: hidden; }
.hero-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ticks li::before, .checklist li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }
.quick-links { font-size: .95rem; color: var(--muted); }
.price-pill { display: inline-flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; margin-top: 4px; }
.price-pill span { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.price-pill strong { font-family: var(--head); font-size: 1.5rem; color: var(--brand); }

/* Form */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 18px 40px rgba(60,30,30,.08); scroll-margin-top: 90px; }
.form-title { font-family: var(--head); font-weight: 700; font-size: 1.35rem; margin: 0 0 4px; }
.form-sub { color: var(--muted); margin-bottom: 16px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.f-field label, .f-seg legend { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 4px; color: #3b3534; }
.f-field input, .f-field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cfc7c0; border-radius: 10px; font: 16px var(--body); background: #fff; color: var(--ink); }
.f-field input:focus, .f-field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.f-seg { border: 0; padding: 0; margin: 14px 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.f-seg legend { float: left; margin: 0 8px 0 0; }
.f-seg label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cfc7c0; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .95rem; }
.f-seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.form-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }
.form-error { background: #fdecec; color: #8a1c1c; border-radius: 8px; padding: 10px 12px; font-size: .92rem; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--alt); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.card, .post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.08); transform: translateY(-2px); color: var(--ink); }
.card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3, .post-card h2 { font-size: 1.15rem; margin-bottom: .4em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-price { margin-top: auto; margin-bottom: 0; font-weight: 700; color: var(--brand) !important; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.gallery-6 { grid-template-columns: repeat(3, 1fr); }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--head); color: var(--brand); font-weight: 700; margin-bottom: 8px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .95rem; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.pkg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.pkg h3 { margin-bottom: 2px; }
.pkg-dur { color: var(--muted); margin-bottom: 8px; }
.pkg-price { font-family: var(--head); font-size: 1.4rem; font-weight: 700; color: var(--brand); }
.pkg-full .btn { margin-top: auto; }
.why { list-style: none; padding: 0; }
.why li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding: 6px 0; padding-left: 1.6em; text-indent: -1.6em; }
.info-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.areas { line-height: 2; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 18px 8px; color: #3b3534; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.related-item { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.related-item span { color: var(--muted); font-size: .92rem; }
.related-item:hover { border-color: var(--brand); color: var(--ink); }
.link-list { list-style: none; padding: 0; }
.link-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-list span { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 20px; }
.price-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #faf8f6; }
.price-table td:nth-child(2) { font-weight: 700; color: var(--brand); white-space: nowrap; }
.factors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-bottom: 24px; }
.factors h3 { margin-bottom: .3em; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.contact-list { list-style: none; padding: 0; }
.contact-list li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list span { width: 90px; flex: none; color: var(--muted); }
.big-tick { font-size: 3rem; color: var(--brand); margin: 0; }

/* Trust */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.stats strong { display: block; font-family: var(--head); font-size: 1.7rem; color: var(--brand); }
.stats span { color: var(--muted); font-size: .9rem; }
.review { margin: 0 0 14px; background: var(--surface); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 16px 18px; }
.review p { font-size: 1.02rem; }
.review footer { color: var(--muted); font-size: .9rem; }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; padding: 48px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; opacity: .9; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.article-side { position: sticky; top: 90px; }
.entry { font-size: 1.05rem; }
.entry h2 { margin-top: 1.4em; }
.entry-img { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }
.inline-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--brand-soft); border-radius: var(--radius); padding: 22px; margin: 32px 0; }
.nav-links { display: flex; gap: 8px; margin-top: 24px; }
.page-numbers { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; background: #fff; }

/* Footer */
.site-footer { background: #1f1a1a; color: #d9d2cf; padding: 56px 0 90px; font-size: .95rem; }
.site-footer a { color: #f2ecea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-brand { color: #fff; font-size: 1.3rem; }
.footer-brand span { color: #e8a0aa; }
.footer-h { color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #3a3232; margin-top: 36px; padding-top: 20px; font-size: .88rem; }

/* WhatsApp float + mobile bar */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.2); z-index: 60; }
.mobile-bar { display: none; }

/* Admin-only photo placeholders */
.ep-ph { background: repeating-linear-gradient(45deg, #efe7e1, #efe7e1 10px, #f7f1ec 10px, #f7f1ec 20px); border: 2px dashed #c9b7ad; border-radius: 10px; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; color: #6b5a52; aspect-ratio: 4/3; }
.ep-ph span { font-weight: 700; }
.ep-ph small { font-size: .75rem; margin-top: 4px; }
.ep-ph-text { aspect-ratio: auto; min-height: 120px; }
.gallery .ep-ph { aspect-ratio: 1; min-height: 0; }

/* Responsive */
@media (max-width: 1080px) {
	.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; order: 3; }
	.nav-toggle > span:first-child, .nav-toggle > span:first-child::before, .nav-toggle > span:first-child::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; content: ""; }
	.nav-toggle > span:first-child::before { position: absolute; top: -6px; }
	.nav-toggle > span:first-child::after { position: absolute; top: 6px; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; max-height: calc(100vh - 68px); overflow-y: auto; }
	.site-nav.open { display: block; }
	.site-nav > ul { flex-direction: column; align-items: stretch; }
	.dd { position: static; box-shadow: none; border: 0; padding-left: 12px; }
	.has-dd:hover .dd { display: none; }
	.has-dd.open .dd { display: block; }
	.cards, .posts { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.hero-grid, .two-col, .article-grid { grid-template-columns: 1fr; gap: 28px; }
	.hero-media { display: none; }
	.hero, .page-hero { padding: 24px 0 40px; }
	.section { padding: 44px 0; }
	.pkg-grid, .related { grid-template-columns: 1fr; }
	.gallery { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr; gap: 24px; }
	.factors { grid-template-columns: 1fr; }
	.article-side { position: static; }
	.header-cta { display: none; }
	.wa-float { display: none; }
	.mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); padding: 8px; gap: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
	.mobile-bar a { flex: 1; text-align: center; padding: 12px 6px; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); font-size: .95rem; }
	.mobile-bar .mb-primary { flex: 1.6; background: var(--brand); border-color: var(--brand); color: #fff; }
	body { padding-bottom: 72px; }
}
@media (max-width: 560px) {
	h1 { font-size: 2rem; }
	.cards, .posts { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.f-grid { grid-template-columns: 1fr; }
	.form-card { padding: 18px; }
	.ticks { flex-direction: column; gap: 4px; }
	.quick-links { display: none; }
	/* Keep the form within the first screen on phones. */
	.hero .eyebrow, .page-hero .price-pill, .hero .ticks { display: none; }
	.hero .lead, .page-hero .lead { font-size: 1rem; }
	.form-title { font-size: 1.15rem; }
	.form-sub { margin-bottom: 10px; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.card { transition: none; }
}
