/*
Theme Name: Land & Tax Strategies
Theme URI: https://landtaxstrategies.com
Author: Land & Tax Strategies
Description: Blank-canvas block theme that carries the Claude Design build of the Land & Tax Strategies website into WordPress. Pages are pasted as Custom HTML blocks; the theme supplies the fonts, shared styles, navigation, footer, and the lead-capture endpoint used by the contact form, calculator, and guides.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: landtax-strategies
*/

/* =========================================================
   1. Base — mirrors the <style> block from the Claude Design export
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: #F5F1E8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(217,164,92,0.35); }

/* The WordPress theme layer gives links an underline and colour; the design uses inherit + none. */
.lt a { color: inherit; text-decoration: none; }
.lt img { max-width: 100%; }
.lt button { font-family: inherit; }
.lt input, .lt textarea, .lt select { font-family: inherit; }

/* Neutralise block-theme wrapper spacing so the design sits edge to edge. */
.wp-site-blocks { margin: 0; padding: 0; }
.wp-site-blocks > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.entry-content > * + * { margin-block-start: 0; }
.wp-block-post-content { margin: 0; padding: 0; }
.lt-page { min-height: 60vh; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseDot { 0%,100% { opacity:1; box-shadow: 0 0 0 0 rgba(217,164,92,0.5); } 50% { opacity:.6; box-shadow: 0 0 0 6px rgba(217,164,92,0); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes meterKeep { 0% { width: 0%; } 22% { width: 100%; } 42% { width: 100%; } 56% { width: 72%; } 92% { width: 72%; } 100% { width: 0%; } }
  @keyframes meterTax { 0%, 42% { width: 0%; margin-left: 0; } 56% { width: 26%; margin-left: 2%; } 92% { width: 26%; margin-left: 2%; } 100% { width: 0%; margin-left: 0; } }
}

/* =========================================================
   2. Site navigation (header template part)
   ========================================================= */
.lt-nav { position: sticky; top: 0; z-index: 40; background: transparent; border-bottom: 1px solid rgba(58,42,30,0.08); overflow: visible; font-family: 'Inter Tight', Helvetica, Arial, sans-serif; color: #0A1628; line-height: 1.5; }
.lt-nav::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(247,245,239,0.88); -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px); }
.admin-bar .lt-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .lt-nav { top: 46px; } }
.lt-nav-inner { max-width: 1360px; margin: 0 auto; padding: 12px 20px; height: 88px; display: flex; align-items: center; gap: 16px; justify-content: space-between; overflow: visible; }
.lt-nav-spacer { flex: 0 0 auto; width: 232px; height: 64px; }
.lt-logo { position: absolute; left: 20px; top: 44px; transform: translateY(-50%); display: block; z-index: 10; line-height: 0; }
.lt-logo img { height: 100px; width: auto; max-width: none; object-fit: contain; mix-blend-mode: multiply; display: block; }
.lt-logo .lt-logo-re { display: none; }
.lt-nav.is-green .lt-logo-ed { display: none; }
.lt-nav.is-green .lt-logo-re { display: block; }

.lt-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 40px); flex-wrap: nowrap; flex: 1 1 auto; justify-content: center; }
.lt-links > a, .lt-dd > a { font-family: 'Instrument Serif', serif; font-size: clamp(17px, 1.5vw, 22px); color: #3A2A1E; font-weight: 400; letter-spacing: -0.01em; opacity: 0.92; white-space: nowrap; }
.lt-links > a.is-active, .lt-dd > a.is-active { color: #A93B22; opacity: 1; border-bottom: 2px solid #D9A45C; padding-bottom: 2px; }
.lt-dd { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.lt-dd-btn { font-size: 13px; color: #3A2A1E; opacity: 0.6; padding: 4px; background: transparent; border: 0; cursor: pointer; line-height: 1; }
.lt-dd-wrap { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: 14px; display: none; z-index: 60; }
.lt-dd:hover .lt-dd-wrap, .lt-dd.open .lt-dd-wrap, .lt-dd:focus-within .lt-dd-wrap { display: block; }
.lt-dd-menu { background: #F5F1E8; border: 1px solid rgba(58,42,30,0.12); border-radius: 10px; box-shadow: 0 20px 40px -18px rgba(58,42,30,0.35); padding: 10px 0; min-width: 230px; display: flex; flex-direction: column; }
.lt-dd-menu a { font-family: 'Instrument Serif', serif; font-size: 19px; color: #3A2A1E; padding: 10px 22px; white-space: nowrap; }
.lt-dd-menu a:hover { color: #A93B22; background: rgba(58,42,30,0.05); }
.lt-dd-soon { font-family: 'Instrument Serif', serif; font-size: 19px; color: #3A2A1E; opacity: 0.45; padding: 10px 22px; white-space: nowrap; cursor: default; }
.lt-dd-soon small { font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }

.lt a.lt-cta, .lt-cta { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; background: #3A2A1E; color: #fff; border-radius: 999px; font-size: 15px; font-weight: 500; white-space: nowrap; flex: 0 0 auto; }
.lt-cta:hover { background: #A93B22; }
.lt-cta .lt-dot { width: 6px; height: 6px; border-radius: 50%; background: #D9A45C; box-shadow: 0 0 0 3px rgba(217,164,92,0.22); animation: pulseDot 1.6s ease-in-out infinite; }

.lt-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: 1px solid rgba(58,42,30,0.14); border-radius: 10px; cursor: pointer; flex: 0 0 auto; padding: 0; }
.lt-burger span { width: 20px; height: 2px; background: #3A2A1E; display: block; }
.lt-mobile { display: none; border-top: 1px solid rgba(58,42,30,0.1); background: #F5F1E8; padding: 12px 20px 24px; flex-direction: column; gap: 4px; }
.lt-mobile a { display: block; font-family: 'Instrument Serif', serif; font-size: 20px; color: #3A2A1E; font-weight: 400; padding: 12px 4px; border-bottom: 1px solid rgba(58,42,30,0.08); }
.lt-mobile a.is-active { color: #A93B22; }
.lt .lt-mobile a.lt-cta { display: inline-flex; justify-content: center; height: 48px; margin-top: 12px; font-size: 16px; border-bottom: 0; font-family: 'Inter Tight', Helvetica, Arial, sans-serif; color: #fff; }

@media (max-width: 1179px) {
  .lt-links, .lt-nav-inner > .lt-cta { display: none; }
  .lt-burger { display: flex; }
  .lt-logo img { height: 80px; }
  .lt-nav.menu-open .lt-mobile { display: flex; }
}

/* =========================================================
   3. FAQ accordions (converted from the prototype's state logic)
   ========================================================= */
.lt-faq .lt-faq-a { display: none; }
.lt-faq.open .lt-faq-a { display: block; }
.lt-faq .lt-faq-icon { transition: transform .3s ease; }
.lt-faq.open .lt-faq-icon { transform: rotate(45deg); }
.lt-faq-q:hover { color: #A93B22 !important; }

/* =========================================================
   4. Lead forms (contact page) — posts to the theme's lead endpoint
   ========================================================= */
.lt-lead-form input[type="text"], .lt-lead-form input[type="email"], .lt-lead-form input[type="tel"], .lt-lead-form textarea { font-family: inherit; background: #fff; }
.lt-lead-form input:focus, .lt-lead-form textarea:focus { outline: 2px solid rgba(217,164,92,0.6); outline-offset: 1px; border-color: #D9A45C !important; }
.lt-chip { position: relative; display: inline-block; }
.lt-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.lt-chip span { display: inline-block; padding: 8px 14px; border: 1px solid rgba(58,42,30,0.14); border-radius: 999px; font-size: 13px; color: #0A1628; cursor: pointer; background: #fff; }
.lt-chip input:checked + span { border-color: #3A2A1E; color: #fff; background: #3A2A1E; }
.lt-chip input:focus-visible + span { outline: 2px solid rgba(217,164,92,0.8); }
.lt-form-err { color: #A93B22; font-size: 14px; margin: 12px 0 0; }
.lt-lead-form button[disabled] { opacity: 0.6; cursor: wait; }
.lt-lead-form .lt-btn:hover { background: #A93B22 !important; }

/* =========================================================
   5. Blog posts (Insights) — light on-brand typography for future articles
   ========================================================= */
.lt-article { max-width: 760px; margin: 0 auto; padding: 72px clamp(20px,5vw,40px) 96px; font-family: 'Inter Tight', Helvetica, Arial, sans-serif; color: #0A1628; line-height: 1.65; font-size: 18px; }
.lt-article .lt-eyebrow { font-family: 'JetBrains Mono', monospace; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: #3A2A1E; margin: 0 0 18px; }
.lt-article h1 { font-family: 'Instrument Serif', serif; font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.02; letter-spacing: -0.02em; color: #3A2A1E; margin: 0 0 20px; }
.lt-article h2, .lt-article h3 { font-family: 'Instrument Serif', serif; font-weight: 500; color: #3A2A1E; letter-spacing: -0.01em; line-height: 1.15; margin: 1.6em 0 0.5em; }
.lt-article h2 { font-size: clamp(28px, 3.4vw, 38px); }
.lt-article h3 { font-size: clamp(22px, 2.6vw, 28px); }
.lt-article p, .lt-article li { color: #0A1628; opacity: 0.9; }
.lt-article a { color: #A93B22; text-decoration: underline; }
.lt-article img { max-width: 100%; height: auto; border-radius: 12px; }
.lt-article .lt-meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(58,42,30,0.7); margin: 0 0 40px; }
.lt-article blockquote { border-left: 3px solid #D9A45C; margin: 1.5em 0; padding: 0.2em 0 0.2em 1.2em; font-family: 'Instrument Serif', serif; font-size: 1.25em; color: #3A2A1E; }
.lt-archive { max-width: 1360px; margin: 0 auto; padding: 72px clamp(20px,5vw,40px) 96px; font-family: 'Inter Tight', Helvetica, Arial, sans-serif; color: #0A1628; }
.lt-archive h1 { font-family: 'Instrument Serif', serif; font-weight: 500; font-size: clamp(36px, 5vw, 56px); color: #3A2A1E; margin: 0 0 40px; }
.lt-archive .wp-block-post-title { font-family: 'Instrument Serif', serif; font-weight: 500; font-size: 28px; line-height: 1.15; }
.lt-archive .wp-block-post-title a { color: #3A2A1E; text-decoration: none; }
.lt-archive .wp-block-post-title a:hover { color: #A93B22; }
.lt-archive .wp-block-post-excerpt { font-size: 16px; opacity: 0.85; }
.lt-archive .wp-block-post-date { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(58,42,30,0.7); }
.lt-archive .wp-block-post-template { gap: 40px; }
.lt-archive .wp-block-query-pagination a { color: #A93B22; }

/* =========================================================
   6. Hover / pseudo-element styles generated from the design's
      style-hover / style-before attributes (appended by the build)
   ========================================================= */
.lt-p1::before { content: ""; position: absolute; inset: 0px; z-index: -1; background: rgba(247, 245, 239, 0.88); -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px); }
.lt-p2:hover { color: rgb(169, 59, 34) !important; background: rgba(58, 42, 30, 0.05) !important; }
.lt-p3:hover { color: rgb(58, 42, 30) !important; }
.lt-p4:hover { border-bottom: 1px solid rgb(58, 42, 30) !important; }
.lt-p5:hover { border: 1px solid rgba(217, 164, 92, 0.85) !important; box-shadow: rgba(32, 22, 13, 0.85) 0px 30px 62px -26px !important; }
.lt-p6::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(217, 164, 92, 0.22); border-radius: 9px; pointer-events: none; z-index: 3; }
.lt-p7:hover { transform: translateX(4px) !important; }
.lt-p8:hover { background: rgb(67, 48, 31) !important; transform: translateY(-3px) !important; }
