/*
Theme Name: Validraft
Theme URI: https://validraft.in/
Author: Validraft
Author URI: https://validraft.in/
Description: Custom in-house theme for Validraft — business registration, GST, ROC & MCA compliance, licensing, trademark and legal drafting services. Built for use with Elementor: the theme supplies the site shell (header, footer, base styles); individual pages are built with Elementor.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: validraft
*/

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--vd-ink);
  background: var(--vd-bg);
  font-family: var(--vd-font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--vd-font-head); }
p{ text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--vd-emerald-500); outline-offset: 2px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--vd-charcoal); color: #fff; padding: 12px 18px; border-radius: 8px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* =========================================================
   2. DESIGN TOKENS — emerald / gold / charcoal, approved
   [color update — see chat]. Fonts: Playfair Display
   (headings) + Lora (body), imported via header.php.
   ========================================================= */
:root{
  --vd-charcoal:#0F1913;       /* header-adjacent dark / hero / dark sections / footer */
  --vd-charcoal-800:#1B2B21;
  --vd-ink:#14170F;             /* headings on light background */
  --vd-body:#5C5F58;            /* paragraph text on light background */
  --vd-body-soft:#8A8D82;
  --vd-bg:#FFFFFF;
  --vd-bg-soft:#FAF9F5;
  --vd-border:#E7E4DA;
  --vd-emerald-700:#0E6B4F;     /* primary brand */
  --vd-emerald-500:#17875F;     /* lighter emerald — hover/links */
  --vd-emerald-50:#E1EFE8;      /* tint — badges, hover backgrounds */
  --vd-gold:#B8862F;            /* accent — used sparingly for credential/trust cues */
  --vd-gold-tint:#F3E4C4;
  --vd-radius-lg:20px;
  --vd-radius-md:14px;
  --vd-shadow-card:0 1px 2px rgba(15,25,19,.05), 0 12px 28px -12px rgba(15,25,19,.14);
  --vd-container:95%;
  --vd-font-head:'Playfair Display', Georgia, 'Times New Roman', serif;
  --vd-font-body:'Lora', Georgia, 'Times New Roman', serif;
}

/* =========================================================
   3. LAYOUT HELPERS
   ========================================================= */
.vd-container { max-width: var(--vd-container); margin: 0 auto; }
.vd-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:14px 26px;border-radius:12px;font-size:15px;font-weight:700;font-family:var(--vd-font-body);
  border:1.5px solid transparent;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
  white-space:nowrap;
}
.vd-btn--primary{
  background:var(--vd-emerald-700);color:#fff;
  box-shadow:0 12px 24px -10px rgba(14,107,79,.55);
}
.vd-btn--primary:hover{ background:#0A5540; transform:translateY(-2px); box-shadow:0 16px 30px -10px rgba(14,107,79,.6); color:#fff; }
.vd-btn--ghost-dark{ background:transparent;border-color:rgba(255,255,255,.35);color:#fff; }
.vd-btn--ghost-dark:hover{ background:rgba(255,255,255,.08); border-color:#fff; color:#fff; }

/* =========================================================
   4. SITE HEADER
   ========================================================= */
.vd-topbar{ background:var(--vd-charcoal); color:rgba(255,255,255,.75); font-size:13px; font-family:var(--vd-font-body); }
.vd-topbar .vd-container{ display:flex; justify-content:space-between; align-items:center; padding-top:8px; padding-bottom:8px; flex-wrap:wrap; gap:6px; }
.vd-topbar a{ color:rgba(255,255,255,.75); }
.vd-topbar a:hover{ color:var(--vd-gold); }
.vd-topbar .vd-topbar-contact{ display:flex; gap:18px; }
.vd-topbar .vd-topbar-contact span{ display:inline-flex; align-items:center; gap:6px; }

.site-header{ background:#fff; border-bottom:1px solid var(--vd-border); position:sticky; top:0; z-index:500; }
.site-header .vd-container{ display:flex; align-items:center; justify-content:space-between; padding-top:14px; padding-bottom:14px; gap:24px; }
.site-branding a{ display:block; }
.site-branding img, .custom-logo{ height:40px; width:auto; max-width:220px; object-fit:contain; }
.site-branding .site-title{ font-family:var(--vd-font-head); font-size:20px; font-weight:800; color:var(--vd-ink); }

.primary-nav{ display:flex; align-items:center; gap:8px; font-family:var(--vd-font-body); }
.primary-nav > .menu, .primary-nav > div > .menu{ display:flex; align-items:center; gap:4px; }
.primary-nav .menu-item{ position:relative; }
.primary-nav .menu-item > a{
  display:flex; align-items:center; gap:5px; padding:10px 14px; border-radius:8px;
  font-size:14.5px; font-weight:600; color:var(--vd-ink); transition:color .15s ease,background .15s ease;
}
.primary-nav .menu-item > a:hover, .primary-nav .menu-item.current-menu-item > a{ color:var(--vd-emerald-700); background:var(--vd-emerald-50); }
.primary-nav .menu-item-has-children > a::after{
  content:""; width:7px; height:7px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor;
  transform:rotate(45deg); margin-top:-4px; opacity:.6;
}
.primary-nav .sub-menu{
  list-style:none; margin:0; padding:10px; position:absolute; top:100%; left:0;
  background:#fff; border:1px solid var(--vd-border); border-radius:var(--vd-radius-md);
  box-shadow:0 16px 34px -12px rgba(15,25,19,.18); min-width:250px;
  opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity .18s ease,transform .18s ease,visibility .18s;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children.vd-open > .sub-menu{ opacity:1; visibility:visible; transform:translateY(0); }
.primary-nav .sub-menu .menu-item > a{ display:block; padding:10px 12px; border-radius:8px; font-weight:500; }
.primary-nav .sub-menu .menu-item > a:hover{ background:var(--vd-emerald-50); color:var(--vd-emerald-700); }

.vd-header-cta{ display:flex; align-items:center; gap:14px; }
.vd-menu-toggle{
  display:none; width:44px; height:44px; border-radius:10px; border:1.5px solid var(--vd-border);
  background:#fff; cursor:pointer; align-items:center; justify-content:center; flex-direction:column; gap:4px;
}
.vd-menu-toggle span{ width:20px; height:2px; background:var(--vd-ink); border-radius:2px; }

@media (max-width: 980px){
  .primary-nav{
    display:none; position:fixed; inset:0 0 0 auto; width:min(340px,86vw); height:100vh;
    background:#fff; flex-direction:column; align-items:stretch; padding:88px 22px 30px; overflow-y:auto;
    box-shadow:-16px 0 40px rgba(15,25,19,.18); transition:transform .25s ease; transform:translateX(100%);
  }
  .primary-nav.vd-nav-open{ display:flex; transform:translateX(0); }
  .primary-nav > .menu, .primary-nav > div > .menu{ flex-direction:column; align-items:stretch; gap:2px; }
  .primary-nav .sub-menu{
    position:static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none;
    background:var(--vd-bg-soft); display:none; margin-top:4px;
  }
  .primary-nav .menu-item.vd-open > .sub-menu{ display:block; }
  .vd-menu-toggle{ display:inline-flex; }
  .vd-header-cta .vd-btn--primary{ display:none; }
}
@media (max-width: 600px){
  .vd-topbar .vd-topbar-contact span:first-child{ display:none; }
}

/* =========================================================
   5. FOOTER
   ========================================================= */
.site-footer{ background:var(--vd-charcoal); color:rgba(255,255,255,.68); font-family:var(--vd-font-body); }
.site-footer a{ color:rgba(255,255,255,.68); }
.site-footer a:hover{ color:var(--vd-gold); }
.vd-footer-top{ padding:72px 0 40px; }
.vd-footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; }
.vd-footer-grid h3{ font-family:var(--vd-font-head); color:#fff; font-size:15px; font-weight:700; margin-bottom:18px; }
.vd-footer-about .site-title{ font-family:var(--vd-font-head); color:#fff; font-size:19px; font-weight:800; display:block; margin-bottom:12px; }
.vd-footer-about p{ font-size:13.5px; line-height:1.6; margin-bottom:18px; text-align:left; }
.vd-social{ display:flex; gap:10px; margin-bottom:18px; }
.vd-social a{
  width:36px; height:36px; border-radius:9px; background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center;
}
.vd-social a:hover{ background:var(--vd-emerald-700); }
.vd-social svg{ width:16px; height:16px; }
.vd-footer-grid ul li{ margin-bottom:11px; font-size:13.5px; }
.vd-footer-grid address{ font-style:normal; font-size:13.5px; line-height:1.6; }
.vd-newsletter{ display:flex; gap:8px; margin-top:14px; }
.vd-newsletter input{
  flex:1; min-width:0; padding:11px 14px; border-radius:9px; border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06); color:#fff; font-size:13.5px; font-family:var(--vd-font-body);
}
.vd-newsletter input::placeholder{ color:rgba(255,255,255,.45); }
.vd-footer-bottom{
  border-top:1px solid rgba(255,255,255,.1); padding:22px 0; font-size:12.5px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.vd-footer-bottom .vd-legal-links{ display:flex; gap:18px; }
.vd-whatsapp-float{
  position:fixed; right:22px; bottom:22px; z-index:600; width:56px; height:56px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 10px 24px -6px rgba(37,211,102,.6);
}
.vd-whatsapp-float svg{ width:28px; height:28px; }

@media (max-width: 980px){
  .vd-footer-grid{ grid-template-columns:1fr 1fr; row-gap:32px; }
}
@media (max-width: 600px){
  .vd-footer-grid{ grid-template-columns:1fr; }
  .vd-footer-bottom{ flex-direction:column; text-align:center; }
}

/* =========================================================
   6. MINIMAL CONTENT DEFAULTS (used by page.php / index.php
   for any page NOT built as an Elementor Canvas page)
   ========================================================= */
.vd-page-header{ background:var(--vd-bg-soft); padding:64px 24px; text-align:center; border-bottom:1px solid var(--vd-border); }
.vd-page-header h1{ font-size:clamp(26px,4vw,40px); font-weight:800; }
.vd-entry-content{ padding:56px 24px; max-width:820px; margin:0 auto; }
.vd-entry-content p{ margin-bottom:1.2em; color:var(--vd-body); line-height:1.6; }
.vd-entry-content h2{ font-size:26px; font-weight:800; margin:1.4em 0 .6em; color:var(--vd-ink); }
