/*
Theme Name: DigiOrigin Performance Marketing
Theme URI: https://digiorigin.in
Author: DigiOrigin
Author URI: https://digiorigin.in
Description: Custom WordPress theme for DigiOrigin, a performance marketing and digital growth agency. Built with hand-written HTML, CSS, JavaScript and PHP — no page builder or third-party theme framework. Includes Home, About, Services, Portfolio, Blog and Contact templates, custom post type for case studies, schema markup and SEO-ready markup.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: digiorigin
Tags: agency, marketing, dark, custom, responsive
*/

/* ==========================================================================
   1. DESIGN TOKENS
   Palette derived from the DigiOrigin logo mark: electric violet (#5E17EB)
   and sky blue (#1C98ED), the same pairing used in the logo's "D" and "O/
   arrow". Base is a cool, near-black indigo so the violet-to-blue gradient
   reads as the signature accent. Display type: Manrope. Body/UI type: Inter.
   ========================================================================== */
:root{
  --bg:            #08080F;
  --bg-elevated:   #0D0E1E;
  --surface:       #12132A;
  --surface-2:     #181A38;
  --border:        rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --text:          #F5F7FA;
  --text-muted:    #9BA4B5;
  --text-faint:    #6B7383;

  --accent:        #1C98ED;
  --accent-dim:    #0E74C4;
  --accent-soft:   rgba(28,152,237,0.12);
  --accent-2:      #5E17EB;
  --accent-2-soft: rgba(94,23,235,0.14);
  --gradient:      linear-gradient(135deg, #5E17EB 0%, #1C98ED 100%);
  --gradient-soft: linear-gradient(135deg, rgba(94,23,235,0.18) 0%, rgba(28,152,237,0.08) 100%);

  --danger:  #FF5D5D;
  --success: #2ECC87;

  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,0.25);
  --shadow-md: 0 12px 40px rgba(0,0,0,0.35);
  --shadow-glow: 0 0 0 1px rgba(28,152,237,0.28), 0 10px 40px rgba(94,23,235,0.18);

  --container: 1240px;
  --nav-height: 98px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. RESET
   ========================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open{ overflow: hidden; }
img{ max-width:100%; display:block; height:auto; }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5,h6{ font-family: var(--font-display); font-weight:800; line-height:1.15; margin:0 0 16px; letter-spacing:-0.02em; }
p{ margin:0 0 16px; color: var(--text-muted); }
button{ font-family: inherit; cursor:pointer; }
input, textarea, select{ font-family: inherit; font-size: 1rem; }
:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Typography scale */
h1{ font-size: clamp(2.4rem, 5vw, 4rem); }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3{ font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4{ font-size: 1.15rem; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-body); font-weight:700; font-size:0.78rem;
  letter-spacing:0.14em; text-transform:uppercase; color: var(--accent);
  margin-bottom:16px;
}
.eyebrow::before{ content:""; width:20px; height:2px; background: var(--gradient); border-radius:2px; }

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section{ padding: 100px 0; position:relative; }
.section-tight{ padding: 64px 0; }
.section-header{ max-width: 680px; margin-bottom: 56px; }
.section-header.center{ margin-left:auto; margin-right:auto; text-align:center; }
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.divider{ height:1px; background: var(--border); border:0; margin: 0; }
.bg-elevated{ background: var(--bg-elevated); }
.bg-radial{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(560px 320px at 15% 0%, rgba(28,152,237,0.12), transparent 60%),
    radial-gradient(480px 300px at 85% 20%, rgba(94,23,235,0.12), transparent 60%);
}
.relative{ position:relative; z-index:1; }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding: 15px 28px; border-radius: var(--radius-pill);
  font-weight:700; font-size:0.95rem; border:1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space:nowrap;
}
.btn svg{ width:18px; height:18px; flex-shrink:0; }
.btn-primary{ background: var(--gradient); color:#04140D; box-shadow: var(--shadow-glow); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 46px rgba(28,152,237,0.26); }
.btn-outline{ background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover{ border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-ghost{ background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover{ border-color: var(--border-strong); }
.btn-block{ width:100%; }
.btn-sm{ padding: 10px 20px; font-size:0.85rem; }
.btn-row{ display:flex; gap:16px; flex-wrap:wrap; align-items:center; }

/* ==========================================================================
   5. HEADER / NAVIGATION
   ========================================================================== */
.site-header{
  position: fixed; top:16px; left:50%; z-index:1000;
  transform: translateX(-50%);
  width: calc(100% - 32px); max-width: var(--container);
  display:flex; align-items:center;
  padding: 12px 14px 12px 22px;
  border-radius: 18px;
  background: rgba(15,16,34,0.68);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 10px 34px rgba(0,0,0,0.32);
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease), top .35s var(--ease);
}
.site-header::after{
  content:""; position:absolute; left:22px; right:22px; bottom:-1px; height:1px;
  background: linear-gradient(90deg, transparent, rgba(94,23,235,0.5), rgba(28,152,237,0.5), transparent);
  opacity:0; transition: opacity .35s var(--ease);
}
.site-header.is-scrolled{
  top:10px;
  border-color: var(--border-strong);
  background: rgba(13,14,30,0.86);
  box-shadow: 0 18px 48px rgba(0,0,0,0.45), 0 0 0 1px rgba(28,152,237,0.12);
}
.site-header.is-scrolled::after{ opacity:1; }
.header-inner{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.site-logo{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:1.2rem; color:var(--text); }
.site-logo img{ height:38px; width:auto; display:block; }
.site-logo .mark{
  width:34px; height:34px; border-radius:9px; background: var(--gradient);
  display:flex; align-items:center; justify-content:center; color:#04140D; font-weight:900;
}
.primary-nav ul{ display:flex; align-items:center; gap:8px; }
.primary-nav a{
  font-weight:600; font-size:0.92rem; color: var(--text-muted); position:relative;
  padding:9px 16px; border-radius: var(--radius-pill);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.primary-nav a:hover{ color: var(--text); background: rgba(255,255,255,0.05); }
.primary-nav .current-menu-item a{ color: var(--text); background: var(--surface-2); }
.header-actions{ display:flex; align-items:center; gap:12px; }
.hamburger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:42px; height:42px; background:var(--surface); border:1px solid var(--border); border-radius:10px;
}
.hamburger span{ display:block; width:18px; height:2px; background: var(--text); margin:0 auto; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.hamburger.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2){ opacity:0; }
.hamburger.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-nav{
  position:fixed; top: var(--nav-height); left:0; right:0; bottom:0;
  background: var(--bg); z-index:999; padding:32px 24px;
  transform: translateY(-12px); opacity:0; pointer-events:none;
  transition: transform .35s var(--ease), opacity .3s var(--ease);
  overflow-y:auto;
}
.mobile-nav.is-open{ transform: translateY(0); opacity:1; pointer-events:auto; }
.mobile-nav ul{ display:flex; flex-direction:column; gap:6px; }
.mobile-nav a{ display:block; padding:16px 4px; font-size:1.2rem; font-weight:700; border-bottom:1px solid var(--border); }
.mobile-nav .btn{ margin-top:24px; }

@media (max-width: 900px){
  .primary-nav{ display:none; }
  .header-actions .btn-outline{ display:none; }
  .hamburger{ display:flex; }
  .site-header{ top:10px; padding:10px 12px 10px 18px; }
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero{ padding: calc(var(--nav-height) + 72px) 0 90px; position:relative; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns: 1.05fr 0.95fr; gap:56px; align-items:center; }
@media (max-width: 980px){ .hero-grid{ grid-template-columns:1fr; } }
.hero h1{ margin-bottom:22px; }
.hero h1 .accent-text{ background: var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-sub{ font-size:1.1rem; max-width:540px; margin-bottom:32px; }
.hero-stats{ display:flex; gap:36px; margin-top:44px; flex-wrap:wrap; }
.hero-stat .num{ font-family:var(--font-display); font-size:1.9rem; font-weight:800; color:var(--text); }
.hero-stat .num .suffix{ color:var(--accent); }
.hero-stat .label{ font-size:0.82rem; color:var(--text-faint); margin-top:2px; }

/* Dashboard visual */
.dashboard-card{
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border:1px solid var(--border); border-radius: var(--radius-lg);
  padding:24px; box-shadow: var(--shadow-md);
  position:relative;
}
.dashboard-card::before{
  content:""; position:absolute; inset:-1px; border-radius:inherit; padding:1px;
  background: linear-gradient(135deg, rgba(94,23,235,0.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none;
}
.dashboard-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.dashboard-head .dot-row{ display:flex; gap:6px; }
.dashboard-head .dot{ width:9px; height:9px; border-radius:50%; background: var(--border-strong); }
.dashboard-head .live{ display:flex; align-items:center; gap:8px; font-size:0.78rem; color:var(--accent); font-weight:700; }
.dashboard-head .live .pulse{ width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(28,152,237,.6); animation: pulse 2s infinite; }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 rgba(28,152,237,.55);} 70%{ box-shadow:0 0 0 10px rgba(28,152,237,0);} 100%{ box-shadow:0 0 0 0 rgba(28,152,237,0);} }
.dashboard-metrics{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-bottom:18px; }
.metric-box{ background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-sm); padding:16px; }
.metric-box .m-label{ font-size:0.74rem; color:var(--text-faint); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:8px; }
.metric-box .m-value{ font-family:var(--font-display); font-size:1.5rem; font-weight:800; }
.metric-box .m-delta{ font-size:0.76rem; font-weight:700; margin-top:6px; display:inline-flex; align-items:center; gap:4px; }
.m-delta.up{ color: var(--accent); }
.m-delta.down{ color: var(--danger); }
.dashboard-chart{ height:110px; background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-sm); padding:14px; }
.dashboard-chart svg{ width:100%; height:100%; }

/* ==========================================================================
   7. TRUST BAR / LOGOS
   ========================================================================== */
.trust-strip{ padding:36px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.trust-strip p{ text-align:center; text-transform:uppercase; letter-spacing:0.12em; font-size:0.82rem; color:var(--text-faint); margin-bottom:0; }

/* ==========================================================================
   8. CARDS — services, results, case studies, testimonials, blog
   ========================================================================== */
.card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md);
  padding: 32px; transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  height:100%;
}
.card:hover{ transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }

.service-card .icon-wrap{
  width:52px; height:52px; border-radius:14px; background: var(--accent-soft);
  display:flex; align-items:center; justify-content:center; color:var(--accent); margin-bottom:22px;
}
.service-card .icon-wrap svg{ width:26px; height:26px; }
.service-card h3{ margin-bottom:10px; }
.service-card p{ font-size:0.95rem; margin-bottom:20px; }
.card-link{ display:inline-flex; align-items:center; gap:6px; font-weight:700; font-size:0.9rem; color:var(--accent); }
.card-link svg{ width:16px; height:16px; transition: transform .25s var(--ease); }
.card-link:hover svg{ transform: translateX(4px); }

.why-item{ display:flex; gap:16px; align-items:flex-start; padding:22px 0; border-bottom:1px solid var(--border); }
.why-item:last-child{ border-bottom:0; }
.why-item .check{
  width:30px; height:30px; border-radius:9px; background: var(--accent-soft); color:var(--accent);
  display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px;
}
.why-item h4{ margin-bottom:4px; }
.why-item p{ margin-bottom:0; font-size:0.92rem; }

.process-track{ position:relative; }
.process-item{ display:grid; grid-template-columns:64px 1fr; gap:22px; padding-bottom:44px; position:relative; }
.process-item:last-child{ padding-bottom:0; }
.process-item::before{
  content:""; position:absolute; left:31px; top:64px; bottom:0; width:1px;
  background: linear-gradient(var(--border), transparent);
}
.process-item:last-child::before{ display:none; }
.process-num{
  width:64px; height:64px; border-radius:16px; background:var(--surface); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-weight:800; font-size:1.2rem; color:var(--accent);
}
.process-body h4{ margin-bottom:6px; }
.process-body p{ margin-bottom:0; max-width:520px; }

.result-card{ text-align:center; padding:36px 24px; }
.result-card .r-value{ font-family:var(--font-display); font-size:2.4rem; font-weight:800; background:var(--gradient); -webkit-background-clip:text; background-clip:text; color:transparent; }
.result-card .r-label{ color:var(--text-muted); font-size:0.92rem; margin-top:8px; }

.case-card{ overflow:hidden; padding:0; }
.case-card .case-media{ height:170px; background: var(--gradient-soft); position:relative; display:flex; align-items:center; justify-content:center; }
.case-card .case-tag{ position:absolute; top:16px; left:16px; background: var(--bg); border:1px solid var(--border); padding:6px 14px; border-radius:var(--radius-pill); font-size:0.74rem; font-weight:700; letter-spacing:0.04em; text-transform:uppercase; color:var(--accent); }
.case-card .case-body{ padding:28px; }
.case-card h3{ margin-bottom:8px; }
.case-meta{ display:flex; gap:18px; margin: 16px 0 20px; flex-wrap:wrap; }
.case-meta .cm{ font-size:0.85rem; }
.case-meta .cm strong{ display:block; color:var(--accent); font-family:var(--font-display); font-size:1.1rem; }

.testimonial-card{ display:flex; flex-direction:column; gap:20px; }
.testimonial-card .stars{ display:flex; gap:3px; color: var(--accent-2); }
.testimonial-card .stars svg{ width:16px; height:16px; }
.testimonial-card blockquote{ margin:0; font-size:1.02rem; color:var(--text); font-style:normal; }
.testimonial-person{ display:flex; align-items:center; gap:12px; margin-top:auto; }
.testimonial-person img{ width:46px; height:46px; border-radius:50%; object-fit:cover; border:2px solid var(--border-strong); }
.testimonial-person .name{ font-weight:700; font-size:0.92rem; }
.testimonial-person .role{ font-size:0.8rem; color:var(--text-faint); }

/* ==========================================================================
   9. FAQ ACCORDION
   ========================================================================== */
.faq-list{ max-width:820px; margin:0 auto; }
.faq-item{ border-bottom:1px solid var(--border); }
.faq-question{
  width:100%; display:flex; justify-content:space-between; align-items:center; gap:20px;
  background:none; border:0; color:var(--text); text-align:left; padding:26px 4px; font-size:1.05rem; font-weight:700; font-family:var(--font-display);
}
.faq-question .icon{ flex-shrink:0; width:22px; height:22px; position:relative; }
.faq-question .icon::before, .faq-question .icon::after{ content:""; position:absolute; background: var(--accent); border-radius:2px; transition: transform .3s var(--ease); }
.faq-question .icon::before{ width:14px; height:2px; top:10px; left:4px; }
.faq-question .icon::after{ width:2px; height:14px; top:4px; left:10px; }
.faq-item.is-open .faq-question .icon::after{ transform: rotate(90deg); opacity:0; }
.faq-answer{ max-height:0; overflow:hidden; transition: max-height .4s var(--ease); }
.faq-answer-inner{ padding: 0 4px 26px; }
.faq-answer p{ margin:0; }

/* ==========================================================================
   10. CTA / FOOTER
   ========================================================================== */
.cta-band{
  border-radius: var(--radius-lg); padding:64px; text-align:center; position:relative; overflow:hidden;
  background: var(--surface); border:1px solid var(--border);
}
.cta-band::before{ content:""; position:absolute; inset:0; background: var(--gradient-soft); }
.cta-band > *{ position:relative; z-index:1; }
.cta-band h2{ margin-bottom:14px; }
.cta-band p{ max-width:560px; margin:0 auto 32px; }

.site-footer{ background: var(--bg-elevated); border-top:1px solid var(--border); padding: 72px 0 28px; }
.footer-top{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap:40px; padding-bottom:48px; }
@media (max-width: 900px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }
.footer-col h5{ font-family:var(--font-display); font-size:0.85rem; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-faint); margin-bottom:20px; }
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ color: var(--text-muted); font-size:0.92rem; transition: color .25s var(--ease); }
.footer-col a:hover{ color: var(--accent); }
.footer-brand p{ max-width:280px; font-size:0.92rem; }
.social-row{ display:flex; gap:10px; margin-top:20px; }
.social-row a{ width:38px; height:38px; border-radius:10px; background:var(--surface); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; }
.social-row a:hover{ border-color: var(--accent); }
.social-row svg{ width:17px; height:17px; }
.footer-bottom{ padding-top:24px; border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-bottom p{ margin:0; font-size:0.82rem; color:var(--text-faint); }
.footer-legal{ display:flex; gap:20px; }
.footer-legal a{ font-size:0.82rem; color:var(--text-faint); }
.footer-legal a:hover{ color: var(--accent); }

/* ==========================================================================
   11. WHATSAPP FLOAT + COOKIE BANNER
   ========================================================================== */
.whatsapp-float{
  position:fixed; bottom:26px; right:26px; z-index:900;
  width:58px; height:58px; border-radius:50%; background:#25D366; color:#04140D;
  display:flex; align-items:center; justify-content:center; box-shadow:0 10px 30px rgba(37,211,102,0.35);
  transition: transform .3s var(--ease);
}
.whatsapp-float:hover{ transform: scale(1.08); }
.whatsapp-float svg{ width:28px; height:28px; }

.cookie-banner{
  position:fixed; left:20px; right:20px; bottom:20px; z-index:1100; max-width:560px; margin:0 auto;
  background: var(--surface); border:1px solid var(--border-strong); border-radius: var(--radius-md);
  padding:22px 24px; box-shadow: var(--shadow-md);
  display:flex; flex-direction:column; gap:16px;
  transform: translateY(140%); transition: transform .5s var(--ease);
}
.cookie-banner.is-visible{ transform: translateY(0); }
.cookie-banner p{ margin:0; font-size:0.88rem; }
.cookie-actions{ display:flex; gap:12px; }

/* ==========================================================================
   12. FORMS
   ========================================================================== */
.form-card{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-lg); padding:40px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-bottom:20px; }
@media (max-width:640px){ .form-row{ grid-template-columns:1fr; } }
.form-group{ margin-bottom:20px; }
.form-group label{ display:block; font-size:0.85rem; font-weight:700; margin-bottom:8px; color: var(--text); }
.form-group .required{ color: var(--accent-2); }
.form-group input, .form-group select, .form-group textarea{
  width:100%; background: var(--bg-elevated); border:1px solid var(--border); border-radius: var(--radius-sm);
  padding:14px 16px; color: var(--text); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form-group textarea{ resize:vertical; min-height:130px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline:none; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea{ border-color: var(--danger); }
.field-error{ color: var(--danger); font-size:0.78rem; margin-top:6px; display:none; }
.form-group.has-error .field-error{ display:block; }
.form-note{ margin-top:20px; padding:16px 18px; border-radius: var(--radius-sm); font-size:0.9rem; display:none; }
.form-note.success{ display:block; background: rgba(46,204,135,0.12); color: var(--success); border:1px solid rgba(46,204,135,0.35); }
.form-note.error{ display:block; background: rgba(255,93,93,0.1); color: var(--danger); border:1px solid rgba(255,93,93,0.35); }

.contact-info-list{ display:flex; flex-direction:column; gap:22px; margin-top: 12px; }
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; }
.contact-info-item .ci-icon{ width:46px; height:46px; border-radius:12px; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-info-item h4{ margin-bottom:2px; }
.contact-info-item p{ margin-bottom:0; }

/* ==========================================================================
   13. PAGE HERO (inner pages)
   ========================================================================== */
.page-hero{ padding: calc(var(--nav-height) + 64px) 0 64px; border-bottom:1px solid var(--border); }
.breadcrumb{ display:flex; align-items:center; gap:8px; font-size:0.85rem; color: var(--text-faint); margin-bottom:18px; }
.breadcrumb a{ color: var(--text-faint); }
.breadcrumb a:hover{ color: var(--accent); }
.page-hero p{ max-width: 640px; font-size:1.05rem; }

/* ==========================================================================
   14. SERVICES DETAIL BLOCKS
   ========================================================================== */
.service-detail{ padding: 80px 0; border-bottom:1px solid var(--border); }
.service-detail:last-of-type{ border-bottom:0; }
.service-detail-grid{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap:56px; align-items:start; }
@media (max-width: 900px){ .service-detail-grid{ grid-template-columns:1fr; } }
.service-detail-index{ font-family: var(--font-display); font-size:0.9rem; color: var(--accent); font-weight:800; letter-spacing:0.08em; }
.service-detail-meta{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin: 28px 0; }
.service-detail-meta .sd-block{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); padding:18px; }
.service-detail-meta .sd-block h5{ font-size:0.78rem; text-transform:uppercase; letter-spacing:0.06em; color: var(--text-faint); margin-bottom:8px; }
.sd-list li{ display:flex; gap:10px; align-items:flex-start; padding:8px 0; font-size:0.94rem; color: var(--text-muted); }
.sd-list li svg{ width:16px; height:16px; color: var(--accent); flex-shrink:0; margin-top:3px; }

/* ==========================================================================
   15. PORTFOLIO / CASE STUDIES FILTER
   ========================================================================== */
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:44px; }
.filter-btn{ background: var(--surface); border:1px solid var(--border); color: var(--text-muted); padding:10px 20px; border-radius: var(--radius-pill); font-size:0.86rem; font-weight:700; transition: all .25s var(--ease); }
.filter-btn:hover{ border-color: var(--border-strong); color: var(--text); }
.filter-btn.is-active{ background: var(--gradient); color:#04140D; border-color:transparent; }
.portfolio-item{ transition: opacity .3s var(--ease), transform .3s var(--ease); }
.portfolio-item.is-hidden{ display:none; }

/* ==========================================================================
   16. BLOG
   ========================================================================== */
.blog-layout{ display:grid; grid-template-columns: 1fr 320px; gap:48px; align-items:start; }
@media (max-width: 980px){ .blog-layout{ grid-template-columns:1fr; } }
.featured-post{ display:grid; grid-template-columns: 1fr 1fr; gap:0; overflow:hidden; padding:0; margin-bottom:44px; }
@media (max-width:768px){ .featured-post{ grid-template-columns:1fr; } }
.featured-post .fp-media{ background: var(--gradient-soft); min-height:260px; }
.featured-post .fp-body{ padding:36px; display:flex; flex-direction:column; justify-content:center; }
.post-card{ padding:0; overflow:hidden; }
.post-card .pc-media{ height:180px; background: var(--gradient-soft); }
.post-card .pc-body{ padding:26px; }
.post-meta{ display:flex; gap:14px; font-size:0.78rem; color: var(--text-faint); margin-bottom:12px; text-transform:uppercase; letter-spacing:0.04em; }
.post-category{ color: var(--accent); font-weight:700; }
.blog-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }
@media (max-width:640px){ .blog-grid{ grid-template-columns:1fr; } }
.sidebar-widget{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md); padding:26px; margin-bottom:24px; }
.sidebar-widget h5{ font-family: var(--font-display); font-size:0.95rem; margin-bottom:18px; }
.search-widget{ display:flex; gap:8px; }
.search-widget input{ flex:1; background: var(--bg-elevated); border:1px solid var(--border); border-radius: var(--radius-sm); padding:12px 14px; color:var(--text); }
.search-widget button{ background: var(--gradient); border:0; border-radius: var(--radius-sm); padding:0 16px; color:#04140D; }
.category-widget li{ display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid var(--border); font-size:0.9rem; }
.category-widget li:last-child{ border-bottom:0; }
.category-widget a{ color: var(--text-muted); }
.category-widget a:hover{ color: var(--accent); }
.category-widget span{ color: var(--text-faint); }
.pagination{ display:flex; justify-content:center; gap:8px; margin-top:48px; }
.pagination a, .pagination span{ width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; border:1px solid var(--border); font-weight:700; font-size:0.9rem; color: var(--text-muted); }
.pagination .current{ background: var(--gradient); color:#04140D; border-color:transparent; }
.pagination a:hover{ border-color: var(--accent); color: var(--accent); }

.single-post-header{ max-width:780px; margin:0 auto 40px; text-align:center; }
.single-post-content{ max-width:780px; margin:0 auto; }
.single-post-content h2{ margin-top:40px; }
.single-post-content p{ font-size:1.02rem; color: var(--text-muted); }
.single-post-content img{ border-radius: var(--radius-md); margin:24px 0; }

/* ==========================================================================
   17. ABOUT PAGE
   ========================================================================== */
.value-item{ padding:28px; }
.team-card{ text-align:center; padding:32px 24px; }
.team-card .avatar{ width:96px; height:96px; border-radius:50%; margin:0 auto 18px; object-fit:cover; border:2px solid var(--border-strong); }
.team-card h4{ margin-bottom:2px; }
.team-card .role{ color: var(--accent); font-size:0.85rem; font-weight:700; margin-bottom:14px; }

/* ==========================================================================
   18. ANIMATIONS — scroll reveal
   ========================================================================== */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }

/* ==========================================================================
   19. WORDPRESS CORE ALIGNMENT / ACCESSIBILITY HELPERS
   ========================================================================== */
.screen-reader-text{
  position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px);
  white-space:nowrap; border:0; padding:0; margin:-1px;
}
.alignwide{ max-width: 1120px; margin-left:auto; margin-right:auto; }
.alignfull{ width:100vw; margin-left:calc(50% - 50vw); }
.wp-caption-text{ font-size:0.8rem; color: var(--text-faint); text-align:center; }

@media (max-width: 640px){
  .section{ padding: 64px 0; }
  .cta-band{ padding: 40px 24px; }
  .form-card{ padding:26px; }
}
