/*
Theme Name: Impro Wealth
Theme URI: https://improwealth.com
Author: Impro Wealth
Description: Custom one-page theme for Impro Wealth — mutual funds, insurance and goal-based financial planning. Every section is editable in Appearance → Customize. Includes a blog and a contact section, optimized for SEO and speed.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: improwealth
*/

/* ================= 2. DESIGN TOKENS ================= */
:root{
  /* Colours — edit these to re-theme the whole site */
  --pine:     #0F3B2E;   /* deep green: headers, footer, primary buttons */
  --fern:     #1C5C46;   /* mid green: hover states, secondary marks     */
  --marigold: #F0A81C;   /* warm accent: highlights, small details       */
  --mist:     #EDF3EF;   /* tinted background for alternate sections     */
  --paper:    #FFFFFF;   /* main page background                         */
  --ink:      #122019;   /* body text                                    */
  --slate:    #5A6B62;   /* muted text                                   */
  --line:     #D8E2DC;   /* borders and dividers                         */

  /* Type */
  --display: "Bricolage Grotesque", Georgia, serif;
  --body:    "Instrument Sans", -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1120px;        /* max content width */
  --pad:  clamp(20px, 5vw, 48px);
  --radius: 14px;
}

/* ================= 3. STYLES ================= */
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; }
body{
  font-family:var(--body);
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  font-size:16.5px;
  overflow-x:clip; /* stops accidental sideways scrolling on phones */
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; }
.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 var(--pad); }

/* Section rhythm */
section{ padding:clamp(64px,9vw,110px) 0; }
.eyebrow{
  font-size:12.5px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:var(--fern); margin-bottom:14px;
}
.eyebrow::before{
  content:""; display:inline-block; width:22px; height:2px;
  background:var(--marigold); vertical-align:middle; margin-right:10px;
}
h1,h2,h3{ font-family:var(--display); line-height:1.12; color:var(--pine); }
h2{ font-size:clamp(28px,4vw,42px); font-weight:700; max-width:640px; }
.section-intro{ color:var(--slate); max-width:560px; margin-top:14px; }

/* Buttons */
.btn{
  display:inline-block; padding:14px 26px; border-radius:999px;
  font-weight:600; font-size:15.5px; text-decoration:none;
  border:1.5px solid transparent; cursor:pointer;
  transition:transform .15s ease, background .15s ease, color .15s ease;
}
.btn:active{ transform:scale(.98); }
.btn-primary{ background:var(--pine); color:#fff; }
.btn-primary:hover{ background:var(--fern); }
.btn-ghost{ border-color:var(--pine); color:var(--pine); background:transparent; }
.btn-ghost:hover{ background:var(--mist); }
.btn:focus-visible{ outline:3px solid var(--marigold); outline-offset:2px; }

/* ---------- Header / navigation ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  height:72px;
}
.logo{
  font-family:var(--display); font-weight:800; font-size:21px;
  color:var(--pine); text-decoration:none; letter-spacing:.01em;
}
.logo span{ color:var(--marigold); }
.nav-links{ display:flex; gap:28px; list-style:none; align-items:center; }
.nav-links a{
  text-decoration:none; font-size:15px; font-weight:500; color:var(--ink);
}
.nav-links a:hover{ color:var(--fern); }
.nav-cta{ display:flex; gap:12px; align-items:center; }
.menu-btn{
  display:none; background:none; border:1.5px solid var(--line);
  border-radius:10px; padding:8px 12px; font-size:20px; line-height:1;
  cursor:pointer; color:var(--pine);
}

/* ---------- Hero ---------- */
.hero{ padding:clamp(56px,8vw,96px) 0 clamp(48px,7vw,80px); overflow:hidden; }
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr;
  gap:clamp(32px,5vw,64px); align-items:center;
}
.hero h1{
  font-size:clamp(36px,5.4vw,60px); font-weight:800; letter-spacing:-.01em;
}
.hero h1 em{
  font-style:normal; color:var(--fern);
  background:linear-gradient(transparent 62%, rgba(240,168,28,.35) 62%);
}
.hero p{ color:var(--slate); font-size:18px; max-width:520px; margin:20px 0 30px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* Signature element: the compounding curve */
.curve-card{
  background:var(--pine); border-radius:20px; padding:26px 26px 18px;
  color:#EAF3EE; box-shadow:0 24px 60px -24px rgba(15,59,46,.5);
}
.curve-card .curve-label{
  display:flex; justify-content:space-between; align-items:baseline;
  font-size:13px; letter-spacing:.1em; text-transform:uppercase;
  color:#9CC3B2; margin-bottom:8px;
}
.curve-card .curve-label strong{ color:var(--marigold); font-size:13px; letter-spacing:.1em; }
#growthPath{
  fill:none; stroke:var(--marigold); stroke-width:3; stroke-linecap:round;
  stroke-dasharray:1200; stroke-dashoffset:1200;
  animation:draw 2.4s ease-out .3s forwards;
}
#growthFill{ fill:url(#fillGrad); opacity:0; animation:fadein 1s ease 1.6s forwards; }
.milestone{ opacity:0; animation:fadein .6s ease forwards; }
.milestone circle{ fill:#fff; stroke:var(--marigold); stroke-width:3; }
.milestone text{ fill:#DCEBE2; font-family:var(--body); font-size:12.5px; font-weight:600; }
@keyframes draw{ to{ stroke-dashoffset:0; } }
@keyframes fadein{ to{ opacity:1; } }
@media (prefers-reduced-motion:reduce){
  #growthPath{ animation:none; stroke-dashoffset:0; }
  #growthFill,.milestone{ animation:none; opacity:1; }
  html{ scroll-behavior:auto; }
}

/* ---------- Why Impro Wealth ---------- */
.why{ background:var(--mist); }
.why-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:16px; margin-top:44px;
}
.why-item{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:22px 20px;
}
.why-item .tick{
  width:30px; height:30px; border-radius:50%; display:grid; place-items:center;
  background:var(--pine); color:var(--marigold); font-weight:700; margin-bottom:12px;
}
.why-item h3{ font-size:16.5px; font-weight:600; font-family:var(--body); color:var(--ink); }

/* ---------- Solutions ---------- */
.sol-grid{
  display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px; margin-top:44px;
}
.sol-card{
  border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 24px; transition:border-color .2s ease, box-shadow .2s ease;
}
.sol-card:hover{
  border-color:var(--fern);
  box-shadow:0 14px 34px -18px rgba(15,59,46,.35);
}
.sol-card .glyph{ font-size:26px; margin-bottom:14px; }
.sol-card h3{ font-size:19px; margin-bottom:8px; }
.sol-card p{ color:var(--slate); font-size:15px; }

/* ---------- Goals ---------- */
.goals{ background:var(--pine); color:#EAF3EE; }
.goals h2{ color:#fff; }
.goals .eyebrow{ color:#9CC3B2; }
.goal-chips{ display:flex; flex-wrap:wrap; gap:12px; margin-top:36px; }
.goal-chip{
  border:1.5px solid rgba(255,255,255,.28); border-radius:999px;
  padding:12px 22px; font-weight:500; font-size:15.5px;
  display:flex; align-items:center; gap:10px;
}
.goal-chip::before{ content:"◆"; color:var(--marigold); font-size:11px; }
.goals .note{ margin-top:26px; color:#B9D3C6; font-size:15px; max-width:560px; }

/* ---------- How it works (a genuine sequence, so numbered) ---------- */
.steps{ counter-reset:step; display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; margin-top:44px; }
.step{ border-top:3px solid var(--line); padding-top:18px; position:relative; }
.step::before{
  counter-increment:step; content:counter(step,decimal-leading-zero);
  font-family:var(--display); font-weight:700; font-size:15px;
  color:var(--marigold); display:block; margin-bottom:8px;
}
.step h3{ font-size:17.5px; font-family:var(--body); font-weight:600; color:var(--ink); }

/* ---------- Tools / calculators ---------- */
.tools{ background:var(--mist); }
.tool-tabs{ display:flex; flex-wrap:wrap; gap:10px; margin:38px 0 22px; }
.tool-tab{
  padding:10px 20px; border-radius:999px; border:1.5px solid var(--line);
  background:#fff; font-weight:600; font-size:15px; cursor:pointer;
  color:var(--slate); font-family:var(--body);
}
.tool-tab[aria-selected="true"]{ background:var(--pine); color:#fff; border-color:var(--pine); }
.tool-tab:focus-visible{ outline:3px solid var(--marigold); outline-offset:2px; }
.tool-panel{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  padding:clamp(22px,4vw,36px);
  display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,4vw,48px);
}
.tool-panel[hidden]{ display:none; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:14px; font-weight:600; margin-bottom:6px; }
.field input{
  width:100%; padding:12px 14px; border:1.5px solid var(--line);
  border-radius:10px; font-size:16px; font-family:var(--body);
}
.field input:focus{ outline:2px solid var(--fern); border-color:var(--fern); }
.result{
  background:var(--mist); border-radius:var(--radius); padding:26px;
  align-self:start;
}
.result .big{
  font-family:var(--display); font-weight:800; font-size:clamp(28px,4vw,38px);
  color:var(--pine); margin:4px 0 2px;
}
.result .sub{ color:var(--slate); font-size:14.5px; }
.result dl{ margin-top:18px; border-top:1px solid var(--line); padding-top:14px; }
.result dl div{ display:flex; justify-content:space-between; padding:5px 0; font-size:15px; }
.result dt{ color:var(--slate); }
.result dd{ font-weight:600; }
.tool-note{ font-size:13px; color:var(--slate); margin-top:16px; }

/* ---------- Insights ---------- */
.insights-list{ margin-top:40px; border-top:1px solid var(--line); }
.insight{
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  padding:22px 4px; border-bottom:1px solid var(--line); text-decoration:none;
  transition:background .15s ease;
}
.insight:hover{ background:var(--mist); }
.insight h3{ font-size:18.5px; font-weight:600; font-family:var(--body); color:var(--ink); }
.insight .tag{ font-size:13px; color:var(--slate); margin-top:4px; display:block; }
.insight .arrow{ color:var(--fern); font-size:20px; flex-shrink:0; }

/* ---------- Final CTA ---------- */
.cta{ background:var(--pine); text-align:center; }
.cta h2{ color:#fff; margin:0 auto; }
.cta p{ color:#B9D3C6; max-width:520px; margin:16px auto 30px; }
.cta .btn-primary{ background:var(--marigold); color:var(--pine); }
.cta .btn-primary:hover{ background:#F7BE49; }

/* ---------- Contact / footer ---------- */
footer{ background:#0B2C22; color:#C6D8CE; padding:64px 0 34px; }
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px;
}
footer h3{ color:#fff; font-size:16px; margin-bottom:14px; font-family:var(--body); font-weight:700; }
footer ul{ list-style:none; }
footer li{ margin-bottom:10px; font-size:15px; }
footer a{ text-decoration:none; }
footer a:hover{ color:var(--marigold); }
.socials{ display:flex; gap:14px; margin-top:6px; }
.socials a{
  width:38px; height:38px; border:1px solid rgba(255,255,255,.25); border-radius:50%;
  display:grid; place-items:center; font-size:14px; font-weight:700;
}
.disclaimer{
  margin-top:44px; padding-top:22px; border-top:1px solid rgba(255,255,255,.15);
  font-size:13px; color:#8FAA9D; line-height:1.7;
}

/* Scroll reveal */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .reveal{ opacity:1; transform:none; transition:none; } }

/* ---------- Tablet (≤ 860px) ---------- */
@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
  .tool-panel{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .menu-btn{ display:block; }
  .nav-links{
    position:absolute; top:72px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--line);
    flex-direction:column; align-items:stretch;
    padding:10px var(--pad) 20px; gap:0; display:none;
    box-shadow:0 18px 30px -20px rgba(15,59,46,.35);
  }
  .nav-links.open{ display:flex; }
  .nav-links li a{
    display:block; padding:14px 4px; font-size:16.5px;
    border-bottom:1px solid var(--line);
  }
  .nav-mobile-cta{ display:block !important; margin-top:14px; }
  .nav-mobile-cta a.btn{
    display:block; text-align:center; border-bottom:none; padding:14px 26px;
  }
  .nav-cta > a.btn{ display:none; } /* header button moves into the menu on phones */
}

/* ---------- Phone (≤ 560px) ---------- */
@media (max-width:560px){
  section{ padding:56px 0; }
  .hero{ padding:40px 0 56px; }
  .hero h1{ font-size:clamp(30px,9vw,38px); }
  .hero p{ font-size:16.5px; margin:16px 0 24px; }

  /* Full-width, easy-to-tap buttons */
  .hero-actions{ flex-direction:column; }
  .hero-actions .btn, .cta .btn{ display:block; width:100%; text-align:center; }

  .curve-card{ padding:18px 14px 12px; border-radius:16px; }
  .curve-card .curve-label{ font-size:11px; }

  h2{ font-size:clamp(25px,7vw,30px); }
  .why-grid{ grid-template-columns:1fr 1fr; gap:12px; margin-top:32px; }
  .why-item{ padding:16px 14px; }
  .why-item h3{ font-size:15px; }
  .sol-grid,.steps{ grid-template-columns:1fr; margin-top:32px; }
  .goal-chips{ margin-top:28px; }
  .goal-chip{ width:100%; justify-content:flex-start; padding:12px 18px; }

  /* Calculator tabs become a tidy 2×2 grid */
  .tool-tabs{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:30px 0 18px; }
  .tool-tab{ padding:12px 8px; font-size:14px; text-align:center; }
  .tool-panel{ padding:20px 16px; gap:22px; }
  .result{ padding:20px 16px; }
  .result .big{ font-size:27px; }

  .insight{ padding:18px 2px; }
  .insight h3{ font-size:16.5px; }
  .insight .arrow{ display:none; }

  footer{ padding:48px 0 28px; }
}

/* The in-menu CTA link is hidden on desktop, shown by the tablet rules above */
.nav-mobile-cta{ display:none; }

/* ================= WordPress / blog additions ================= */
[data-hidden-section]{ display:none !important; }

/* Blog archive + single */
.blog-wrap{ max-width:760px; margin:0 auto; padding:0 clamp(20px,5vw,48px); }
.page-hero{ background:var(--mist); padding:clamp(44px,7vw,72px) 0; }
.page-hero h1{ font-size:clamp(30px,5vw,44px); font-weight:800; }
.page-hero p{ color:var(--slate); margin-top:10px; max-width:560px; }
article.post-card{ border-bottom:1px solid var(--line); padding:30px 0; }
article.post-card h2{ font-size:23px; max-width:none; }
article.post-card h2 a{ text-decoration:none; color:var(--pine); }
article.post-card h2 a:hover{ color:var(--fern); }
.post-meta{ font-size:13.5px; color:var(--slate); margin:6px 0 10px; }
.post-card p{ color:var(--slate); }
.readmore{ font-weight:600; color:var(--fern); text-decoration:none; font-size:15px; }
.readmore:hover{ text-decoration:underline; }

.single-article{ padding:clamp(44px,7vw,72px) 0 80px; }
.single-article .tag{ font-size:13px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--fern); }
.single-article h1{ font-size:clamp(29px,5.5vw,44px); font-weight:800; margin:12px 0 8px; }
.entry-content{ font-size:17px; line-height:1.75; }
.entry-content h2{ font-size:25px; margin:34px 0 12px; max-width:none; }
.entry-content h3{ font-size:20px; margin:26px 0 10px; }
.entry-content p{ margin:0 0 16px; }
.entry-content ul,.entry-content ol{ margin:0 0 18px 24px; }
.entry-content li{ margin-bottom:8px; }
.entry-content a{ color:var(--fern); }
.entry-content img{ border-radius:12px; margin:10px 0; height:auto; }
.single-cta{ background:var(--mist); border-radius:14px; padding:26px; margin-top:44px; }
.single-cta h3{ font-size:20px; margin-bottom:8px; }
.single-cta p{ color:var(--slate); font-size:15.5px; margin-bottom:16px; }
.post-nav{ display:flex; justify-content:space-between; gap:16px; margin-top:40px; font-size:15px; }
.post-nav a{ color:var(--fern); text-decoration:none; font-weight:600; }
.pagination{ display:flex; gap:8px; margin:36px 0; flex-wrap:wrap; }
.pagination .page-numbers{ padding:8px 14px; border:1.5px solid var(--line); border-radius:9px; text-decoration:none; color:var(--ink); font-size:14.5px; }
.pagination .current{ background:var(--pine); color:#fff; border-color:var(--pine); }

/* Contact section with form */
.contact-sec{ background:var(--mist); }
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:clamp(24px,5vw,56px); margin-top:44px; align-items:start; }
.contact-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:clamp(22px,4vw,32px); }
.contact-list{ list-style:none; margin-top:8px; }
.contact-list li{ margin-bottom:14px; font-size:16px; }
.contact-list a{ color:var(--fern); text-decoration:none; font-weight:600; }
.form-note{ background:#FFF4DC; border:1px solid #EBCB8B; color:#6b4e00; border-radius:10px; padding:14px 16px; font-size:14px; }
/* Make common form plugins match the design */
.contact-card input[type=text], .contact-card input[type=email], .contact-card input[type=tel],
.contact-card textarea{
  width:100%; padding:12px 14px; border:1.5px solid var(--line); border-radius:10px;
  font-family:var(--body); font-size:16px; margin-bottom:6px;
}
.contact-card input[type=submit], .contact-card button[type=submit]{
  background:var(--pine); color:#fff; border:none; border-radius:999px;
  padding:13px 28px; font-weight:600; font-size:15.5px; cursor:pointer; font-family:var(--body);
}
.contact-card input[type=submit]:hover{ background:var(--fern); }
.contact-card label{ font-size:14px; font-weight:600; }

@media (max-width:820px){ .contact-grid{ grid-template-columns:1fr; } }
