/*
Theme Name: Golshan Financial
Theme URI: https://golshanfinancial.com
Author: Golshan Financial Services
Description: Custom theme for Golshan Financial Services — financial planning and advisory site. Page content is built with standard Gutenberg blocks and is fully editable from the block editor.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: golshan-financial
*/

@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --green:#7CBB01;
  --charcoal:#202629;
  --deep-green:#315A36;
  --sage:#F3F7EF;
  --white:#FFFFFF;
  --gray:#59646B;
}

/* ===== Base typography ===== */
body{
  font-family:'Inter', -apple-system, sans-serif;
  color:var(--charcoal);
  line-height:1.6;
}
h1,h2,h3,h4,.wp-block-heading{
  font-family:'Libre Baskerville', Georgia, serif;
  font-weight:700;
  line-height:1.2;
  letter-spacing:-0.01em;
}
a{ color:inherit; }
img{ max-width:100%; height:auto; }

/* ===== Brand color palette classes (used by page content blocks) ===== */
.has-golshan-green-color{ color:var(--green) !important; }
.has-golshan-green-background-color{ background-color:var(--green) !important; }
.has-golshan-charcoal-color{ color:var(--charcoal) !important; }
.has-golshan-charcoal-background-color{ background-color:var(--charcoal) !important; }
.has-golshan-deep-green-color{ color:var(--deep-green) !important; }
.has-golshan-deep-green-background-color{ background-color:var(--deep-green) !important; }
.has-golshan-sage-color{ color:var(--sage) !important; }
.has-golshan-sage-background-color{ background-color:var(--sage) !important; }
.has-golshan-gray-color{ color:var(--gray) !important; }
.has-golshan-gray-background-color{ background-color:var(--gray) !important; }

/* ===== Buttons ===== */
.wp-block-button__link{
  border-radius:3px !important;
  font-weight:600;
  padding:14px 28px !important;
  transition:transform .18s ease, box-shadow .18s ease;
}
.wp-block-button__link:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px -8px rgba(32,38,41,0.35);
}
.wp-block-button.is-style-outline .wp-block-button__link{
  border:1.5px solid currentColor !important;
}

/* ===== Images ===== */
.wp-block-image img, .wp-block-image figure img{
  border-radius:6px;
}

/* ===== Focus visibility ===== */
:focus-visible{ outline:2.5px solid var(--green); outline-offset:2px; }

/* =========================================================
   SITE CHROME — top bar, nav, footer
   ========================================================= */
.topbar{ background:var(--charcoal); color:#cfd6d2; font-size:0.82rem; }
.topbar .inner{
  max-width:1180px; margin:0 auto; padding:0 28px;
  display:flex; justify-content:space-between; align-items:center; height:38px;
}
.topbar .left{ display:flex; gap:22px; }
.topbar a{ color:#cfd6d2; transition:color .15s ease; }
.topbar a:hover{ color:var(--green); }
.topbar .divider{ opacity:0.4; }

.site-header{
  position:sticky; top:0; z-index:100; background:rgba(255,255,255,0.96);
  backdrop-filter:blur(8px); border-bottom:1px solid #e7ece5;
}
.mainnav{
  max-width:1180px; margin:0 auto; padding:0 28px;
  display:flex; align-items:center; justify-content:space-between; height:76px;
}
.site-logo img{ height:38px; width:auto; }
.nav-links{ display:flex; gap:34px; align-items:center; list-style:none; margin:0; padding:0; }
.nav-links a{ font-size:0.94rem; font-weight:500; color:var(--charcoal); position:relative; padding:6px 0; text-decoration:none; }
.nav-links a::after{
  content:""; position:absolute; left:0; bottom:0; height:2px; width:0; background:var(--green);
  transition:width .2s ease;
}
.nav-links a:hover::after{ width:100%; }
.nav-cta{ display:flex; gap:12px; align-items:center; }
.nav-cta .btn{
  display:inline-flex; align-items:center; padding:11px 20px; border-radius:3px;
  font-size:0.88rem; font-weight:600; text-decoration:none; white-space:nowrap;
  transition:transform .18s ease, box-shadow .18s ease;
}
.nav-cta .btn-primary{ background:var(--green); color:var(--charcoal); }
.nav-cta .btn-primary:hover{ transform:translateY(-2px); box-shadow:0 10px 24px -8px rgba(124,187,1,0.55); }
.nav-cta .btn-outline{ background:transparent; border:1.5px solid var(--charcoal); color:var(--charcoal); }
.nav-cta .btn-outline:hover{ background:var(--charcoal); color:var(--white); }
.hamburger{ display:none; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:6px; }
.hamburger span{ width:24px; height:2px; background:var(--charcoal); display:block; }
.mobile-panel{ display:none; }

@media (max-width:960px){
  .nav-links{ display:none; }
  .nav-cta .btn-outline{ display:none; }
  .hamburger{ display:flex; }
  .mobile-panel{
    display:block; max-height:0; overflow:hidden; background:var(--white);
    border-top:1px solid #e7ece5; transition:max-height .3s ease;
  }
  .mobile-panel.open{ max-height:420px; }
  .mobile-panel .inner{ max-width:1180px; margin:0 auto; padding:18px 28px 26px; display:flex; flex-direction:column; gap:16px; }
  .mobile-panel a.mlink{ font-weight:500; font-size:1.02rem; padding:6px 0; border-bottom:1px solid #f0f3ee; text-decoration:none; color:var(--charcoal); }
  .mobile-panel .mcta{ display:flex; flex-direction:column; gap:10px; margin-top:6px; }
}

.site-footer{ background:var(--charcoal); color:#aeb8b3; padding:64px 0 28px; }
.site-footer .inner{ max-width:1180px; margin:0 auto; padding:0 28px; }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; margin-bottom:48px; }
.site-footer img.foot-logo{ height:32px; width:auto; margin-bottom:16px; filter:brightness(0) invert(1); }
.site-footer h4{ color:var(--white); font-family:'Inter',sans-serif; font-size:0.85rem; text-transform:uppercase; letter-spacing:0.08em; margin-bottom:16px; }
.site-footer ul{ list-style:none; display:flex; flex-direction:column; gap:10px; margin:0; padding:0; }
.site-footer a{ font-size:0.9rem; color:#aeb8b3; text-decoration:none; }
.site-footer a:hover{ color:var(--green); }
.foot-bottom{ border-top:1px solid rgba(255,255,255,0.12); padding-top:24px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:14px; font-size:0.8rem; }
.foot-legal{ max-width:900px; font-size:0.76rem; line-height:1.7; color:#8b968f; margin-top:20px; }
@media (max-width:900px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .foot-grid{ grid-template-columns:1fr; } }

main{ overflow-x:hidden; }
