/*
Theme Name: ReadyFloorPlans
Theme URI: https://readyfloorplans.com/
Author: ReadyFloorPlans
Description: Lightweight WooCommerce theme for selling ready-made Indian house plans. Filter by plot size, facing, BHK, floors and plan type.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: rfp
*/

:root {
	--ink: #10233a;
	--ink-2: #4a5d72;
	--ink-3: #7b8a9b;
	--line: #e3e8ef;
	--bg: #f6f7f9;
	--card: #ffffff;
	--brand: #e8590c;
	--brand-dark: #c2410c;
	--brand-soft: #fff1e8;
	--navy: #0c2a4d;
	--navy-2: #123a66;
	--ok: #15803d;
	--wa: #25d366;
	--radius: 12px;
	--shadow: 0 1px 2px rgba(16, 35, 58, .06), 0 4px 16px rgba(16, 35, 58, .06);
	--wrap: 1200px;
	--font: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section--white { background: var(--card); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { color: var(--ink-2); margin: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.muted { color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, color .15s; line-height: 1.2; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--navy); }
.btn--wa { background: var(--wa); color: #06331a; }
.btn--wa:hover { background: #1fb957; }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 24px; font-size: 1.05rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none !important; white-space: nowrap; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo span b { color: var(--brand); }
.logo img { max-height: 44px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.nav a:hover, .nav .current-menu-item > a { background: var(--bg); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
	.site-header .wrap { gap: 12px; }
	.menu-toggle { display: inline-flex; }
	.header-actions { margin-left: auto; }
	.header-actions .btn--wa { display: none; }
	.nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; margin: 0; box-shadow: var(--shadow); }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; padding: 8px 16px 16px; }
	.nav a { padding: 12px; }
}

/* Hero */
.hero { position: relative; color: #fff; background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px; padding: 64px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #ffb27a; }
.hero-sub { font-size: 1.1rem; color: #c9d6e6; max-width: 34em; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.hero-proof div { font-size: .9rem; color: #c9d6e6; }
.hero-proof strong { display: block; font-size: 1.5rem; color: #fff; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 40px 0 48px; } }

/* Plot finder */
.finder { background: #fff; color: var(--ink); border-radius: 16px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.finder h2 { font-size: 1.25rem; margin-bottom: 4px; }
.finder p { color: var(--ink-2); font-size: .92rem; }
.finder-plot { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.finder-plot .x { padding-bottom: 12px; font-weight: 700; color: var(--ink-3); }
.finder-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 16px; }
.field label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.field input, .field select, .input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; }
.field input:focus, .field select:focus, .input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none !important; }
.chip:hover, .chip.is-active { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.chip small { color: var(--ink-3); font-weight: 500; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--bg); color: var(--ink-2); font-size: .78rem; font-weight: 600; }
.tag--brand { background: var(--brand-soft); color: var(--brand-dark); }

/* Type cards */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.type-card { display: block; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.type-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.type-card .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.type-card .ico svg { width: 24px; height: 24px; }
.type-card p { color: var(--ink-2); font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .types { grid-template-columns: 1fr; } }

/* Plan grid + cards */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.plan-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.plan-card__img { position: relative; display: block; aspect-ratio: 16 / 10; background: #e9edf2; overflow: hidden; }
.plan-card__img img { width: 100%; height: 100%; object-fit: cover; }
.plan-card__badge { position: absolute; left: 10px; top: 10px; background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; padding: 4px 10px; border-radius: 6px; }
.plan-card__video { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; display: flex; align-items: center; gap: 4px; }
.plan-card__video svg { width: 12px; height: 12px; }
.plan-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-card__title { font-size: 1rem; font-weight: 700; margin: 0; line-height: 1.35; }
.plan-card__title a { color: var(--ink); }
.plan-card__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.price { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.price del { color: var(--ink-3); font-weight: 500; font-size: .85em; margin-right: 4px; }
.price ins { text-decoration: none; }
.plan-card__foot .btn { padding: 8px 14px; font-size: .88rem; }

/* Shop layout */
.page-hero { background: var(--card); border-bottom: 1px solid var(--line); padding: 32px 0 24px; }
.page-hero p { color: var(--ink-2); max-width: 48em; margin: 0; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); }
.shop { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 28px 0 56px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 88px; }
.filters h2 { font-size: 1.05rem; margin-bottom: 12px; }
.filters .field { margin-bottom: 14px; }
.filters .finder-plot input { height: 42px; }
.filters-actions { display: flex; gap: 8px; }
.filters-actions .btn { flex: 1; padding: 10px; }
.filters-toggle { display: none; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-bar .woocommerce-ordering { margin: 0; }
.results-bar select { height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font: inherit; background: #fff; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.active-filters a { font-size: .85rem; padding: 4px 10px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; }
@media (max-width: 900px) {
	.shop { grid-template-columns: 1fr; }
	.filters { position: static; display: none; }
	.filters.is-open { display: block; }
	.filters-toggle { display: inline-flex; }
}

/* Pagination */
.woocommerce-pagination ul, .pagination .nav-links { display: flex; gap: 6px; list-style: none; padding: 0; margin: 28px 0 0; justify-content: center; flex-wrap: wrap; border: 0 !important; }
.woocommerce-pagination ul li { border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span, .pagination .page-numbers { display: inline-flex !important; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 8px !important; border: 1px solid var(--line) !important; background: #fff; color: var(--ink) !important; font-weight: 600; padding: 0 10px !important; }
.woocommerce-pagination .current, .pagination .current { background: var(--ink) !important; color: #fff !important; border-color: var(--ink) !important; }

/* Single plan */
.plan { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; padding: 28px 0 40px; align-items: start; }
.gallery__main { border-radius: var(--radius); overflow: hidden; background: #e9edf2; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery__thumbs button { flex: none; width: 84px; height: 60px; padding: 0; border-radius: 8px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #fff; }
.gallery__thumbs button.is-active { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: sticky; top: 88px; }
.buybox h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.buybox .price { font-size: 1.9rem; margin: 8px 0 16px; display: block; }
.buybox form.cart { margin: 0 0 12px; }
.buybox .quantity { display: none !important; }
.buybox .single_add_to_cart_button { width: 100%; }
.trust { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.trust li { display: flex; gap: 8px; align-items: flex-start; }
.trust svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 2px; }
.keyspecs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 20px; }
.keyspecs div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.keyspecs span { display: block; font-size: .72rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.keyspecs strong { font-size: 1rem; }
.plan-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; padding-bottom: 56px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel h2 { font-size: 1.25rem; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--ink-2); font-weight: 600; width: 45%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 2px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; padding: 0; }
.video .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 48px; }
.entry { font-size: 1rem; }
.entry > *:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
	.plan, .plan-body { grid-template-columns: 1fr; gap: 24px; }
	.buybox { position: static; }
}
@media (max-width: 420px) { .keyspecs { grid-template-columns: repeat(2, 1fr); } }

/* Steps / features */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: flex; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 12px; }
.step p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* YouTube band */
.yt { background: var(--navy); color: #fff; }
.yt .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.yt p { color: #c9d6e6; }
.yt h2 { color: #fff; }
.yt-stats { display: flex; gap: 28px; margin: 20px 0 24px; }
.yt-stats strong { display: block; font-size: 1.6rem; }
.yt-stats span { color: #c9d6e6; font-size: .9rem; }
@media (max-width: 900px) { .yt .wrap { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; color: var(--ink-2); }

/* CTA */
.cta { background: var(--brand-soft); border: 1px solid #fed7bd; border-radius: 16px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin-bottom: 4px; }
.cta p { margin: 0; color: var(--ink-2); }

/* Generic pages */
.page-content { padding: 32px 0 56px; }
.page-content .entry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); max-width: 860px; }
.page-content--wide .entry { max-width: none; background: transparent; border: 0; padding: 0; }
.entry h2 { margin-top: 1.4em; font-size: 1.35rem; }
.entry h2:first-child { margin-top: 0; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .35em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card p { margin: 0 0 12px; color: var(--ink-2); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Blog */
.blog-cats { margin-bottom: 24px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; list-style: none; margin: 0 0 8px; padding: 0; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.post-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--navy), var(--navy-2)); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__img svg { width: 46px; height: 46px; color: rgba(255, 255, 255, .5); }
.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__body .eyebrow { margin: 0; }
.post-card__body h3 { font-size: 1.1rem; line-height: 1.35; }
.post-card__body p { margin: 0; font-size: .94rem; }
.post-card__meta { margin-top: auto; font-size: .85rem; color: var(--ink-3); }
.post-meta { color: var(--ink-2); font-size: .92rem; margin: 10px 0 0 !important; }
.post-cover { margin: 0 0 24px; max-width: 860px; }
.post-cover img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.section-head--plain { max-width: 860px; margin: 40px 0 20px; }
.section-head--plain h2 { font-size: 1.35rem; }

/* Article typography: a comfortable reading measure on top of .entry */
.entry h3 { margin-top: 1.5em; font-size: 1.1rem; }
.entry p, .entry ul, .entry ol { margin-bottom: 1.1em; }
.entry > p:first-child { font-size: 1.08rem; color: var(--ink-2); }
.entry .spec-table { margin: 0 0 1.4em; font-size: .95rem; }
.entry .spec-table th { width: auto; white-space: nowrap; padding-right: 14px; }
@media (max-width: 600px) { .entry .spec-table th { white-space: normal; } }
.entry .spec-table thead td, .entry .spec-table thead th { color: var(--ink); }
.entry a { color: var(--brand-dark); text-underline-offset: 2px; }

/* Blog layout: article/list beside a sticky sidebar */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.blog-main { min-width: 0; }
.blog-layout .entry, .blog-layout .post-cover, .blog-layout .author-box, .blog-layout .section-head--plain { max-width: none; }
/* Taller than the viewport on a long article, so it scrolls inside itself:
   sticky alone would leave the lower boxes unreachable. */
.blog-aside { position: sticky; top: 88px; display: grid; gap: 16px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; padding-right: 2px; }
.aside-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.aside-box h2 { font-size: 1rem; margin-bottom: 10px; }
.aside-box p { color: var(--ink-2); font-size: .9rem; margin: 0 0 12px; }
.aside-box .chips { gap: 6px; }
.aside-box .chip { padding: 6px 11px; font-size: .86rem; }
.aside-more { display: inline-block; margin-top: 12px; font-size: .88rem; font-weight: 600; }
.aside-finder { background: var(--brand-soft); border-color: #fed7bd; }
.aside-finder .btn { width: 100%; }

.aside-toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 7px; font-size: .9rem; }
.aside-toc a { color: var(--ink-2); text-decoration: none; }
.aside-toc a:hover { color: var(--brand-dark); text-decoration: underline; }

.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aside-links a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; }
.aside-links a:hover { color: var(--brand-dark); }
.aside-links svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

.plan-minis { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan-mini a { display: flex; gap: 11px; align-items: center; text-decoration: none; color: inherit; }
.plan-mini__img { flex: none; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--bg); display: block; }
.plan-mini__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-mini__body { display: grid; gap: 2px; min-width: 0; }
.plan-mini__title { font-weight: 600; font-size: .88rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.plan-mini a:hover .plan-mini__title { color: var(--brand-dark); }
.plan-mini__meta { font-size: .82rem; color: var(--ink-3); }
.plan-mini__meta .price, .plan-mini__meta b { color: var(--ink-2); }

@media (max-width: 1000px) {
	.blog-layout { grid-template-columns: 1fr; }
	.blog-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-height: none; overflow: visible; padding-right: 0; }
	.aside-toc { display: none; }
}

.author-box { display: flex; gap: 18px; max-width: 860px; margin: 32px 0 0; background: var(--brand-soft); border: 1px solid #fed7bd; border-radius: var(--radius); padding: 24px; }
.author-box__ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.author-box__ico svg { width: 24px; height: 24px; }
.author-box h2 { font-size: 1.1rem; margin-bottom: 6px; }
.author-box p { color: var(--ink-2); margin: 0 0 14px; }
.author-box__links { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .author-box { flex-direction: column; gap: 12px; } }

/* Footer */
.site-footer { background: #0a1f38; color: #b7c4d4; padding: 48px 0 24px; font-size: .92rem; }
.site-footer a { color: #dfe7f1; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.wa-float svg { width: 30px; height: 30px; }

/* WooCommerce: cart, checkout, account */
.woocommerce-page .page-content .entry { max-width: none; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit { background: var(--brand) !important; color: #fff !important; border-radius: 10px !important; font-weight: 700 !important; padding: 12px 20px !important; font-family: var(--font) !important; }
.woocommerce .button:hover, .woocommerce button.button:hover, .woocommerce a.button:hover { background: var(--brand-dark) !important; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-family: var(--font); min-height: 46px; }
.woocommerce form .form-row label { font-weight: 600; font-size: .9rem; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-radius: 10px; border-top-width: 0 !important; border-left: 4px solid var(--brand); background: #fff; box-shadow: var(--shadow); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--brand) !important; }
.woocommerce table.shop_table { border-radius: var(--radius); background: #fff; }
#order_review_heading, .woocommerce-billing-fields h3 { font-size: 1.2rem; }
.woocommerce-checkout #payment { background: var(--bg) !important; border-radius: var(--radius) !important; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 4px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a { background: var(--brand-soft); color: var(--brand-dark); }

/* WooCommerce shortcode/block loops reuse the plan card grid */
.woocommerce ul.products, ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }

.muted svg { width: 16px; height: 16px; display: inline; vertical-align: -3px; }

/* Contact form (theme's own, no plugin) */
.contact-form .field { margin-bottom: 14px; }
.contact-form .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); background: #fff; resize: vertical; }
.contact-form .field textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.contact-form .req { color: var(--brand); }
.contact-form .muted { font-size: .85rem; margin-bottom: 14px; }
.rfp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-weight: 600; }
.notice--ok { background: #e8f6ee; border: 1px solid #b6e0c7; color: #14633a; }
.notice--err { background: #fdecec; border: 1px solid #f3c2c2; color: #8c1c1c; }
.footer-legal { font-size: .85rem; }
.checkout-policies { margin: 0 0 16px; font-size: .9rem; color: var(--ink-2); }

/* Plan PDF uploader (/upload-plans/) */
.uploader .field { margin-bottom: 16px; }
.uploader .field select, .uploader .field input[type="file"] { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.uploader .field input[type="file"] { padding: 14px 12px; }
.uploader .muted { font-size: .9rem; margin-bottom: 16px; }
.upload-list { width: 100%; border-collapse: collapse; margin-bottom: 20px; font-size: .92rem; table-layout: fixed; }
.upload-list th, .upload-list td { text-align: left; padding: 10px 16px 10px 0; vertical-align: top; }
.upload-list th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.upload-list td { border-top: 1px solid var(--line); }
.upload-list th:first-child, .upload-list td:first-child { width: 50%; word-break: break-word; }
.upload-list th:nth-child(2), .upload-list td:nth-child(2) { width: 28%; }
.upload-list th:last-child, .upload-list td:last-child { width: 22%; padding-right: 0; }
.upload-list td .muted { display: block; font-size: .8rem; margin: 2px 0 0; }
