/*
Theme Name: ScaleCraft Digital
Theme URI: https://scalecraftdigital.com
Author: ScaleCraft Digital
Description: Custom digital marketing agency theme for ScaleCraft Digital - Home, About, Services (6 detail pages), Packages, Blog and Contact pages with a Supabase-connected lead form.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
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: scalecraft-digital
*/

/* WordPress helpers */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
.admin-bar header{top:32px}
@media(max-width:782px){.admin-bar header{top:46px}}
.sc-default-content{max-width:820px;margin:0 auto;padding:60px 24px}

/* ==========================================================================
   ScaleCraft Digital — stylesheet (Clean White Theme Updated)
   ========================================================================== */

:root{
  --navy:        #0A1A33;
  --navy-2:      #122A4D;
  --ink:         #101828;
  --muted:       #55617A;
  --paper:       #FFFFFF;
  --white:       #FFFFFF;
  --line:        #DEE6F2;
  --blue:        #175CD3;
  --blue-2:      #2F8CFF;
  --blue-light:  #E8F1FF;
  --shadow:      0 20px 50px -25px rgba(10,26,51,.15);
  --radius:      14px;
  --wrap:        1160px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:"Inter", -apple-system, Segoe UI, sans-serif;
  color:var(--ink);
  background:var(--paper);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:"Space Grotesk", "Inter", sans-serif;
  color:var(--navy);
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
}
p{ margin:0 0 1em; color:var(--muted); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 24px;
}
section{ padding:96px 0; }
.eyebrow{ color:var(--blue); font-weight:600; font-size:.95rem; margin-bottom:10px; display:block; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 26px;
  border-radius:10px;
  font-weight:600;
  font-size:.98rem;
  border:1px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{
  background:linear-gradient(135deg, var(--blue) 0%, var(--blue-2) 100%);
  color:#fff;
  box-shadow:0 12px 24px -10px rgba(23,92,211,.55);
}
.btn-ghost{
  background:transparent;
  border-color:rgba(16,24,40,.2);
  color:var(--navy);
}
.btn-dark{
  background:var(--navy);
  color:#fff;
}

/* Header - Clean Light Theme */
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;
  padding:16px 0;
}
.brand{ display:flex; align-items:center; gap:10px; color:var(--navy); font-weight:700; font-size:1.15rem; font-family:"Space Grotesk",sans-serif; }
.brand img{ height:36px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:32px; }
.nav-links a{ color:var(--muted); font-size:.95rem; font-weight:500; transition:color .15s; }
.nav-links a:hover{ color:var(--blue); }
.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav-phone{ color:var(--navy); font-weight:600; font-size:.92rem; }
.nav-toggle{ display:none; background:none; border:0; color:var(--navy); font-size:1.6rem; }

/* Hero - Clean Light / Professional Header style */
.hero{
  background:linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding:110px 0 130px;
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.hero .wrap{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
}
.hero h1{ color:var(--navy); font-size:clamp(2.2rem, 4vw, 3.4rem); }
.hero p.lead{ color:var(--muted); font-size:1.12rem; max-width:520px; }
.hero-actions{ display:flex; gap:16px; margin-top:32px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:36px; margin-top:56px; flex-wrap:wrap; }
.hero-stats div strong{ display:block; color:var(--navy); font-family:"Space Grotesk",sans-serif; font-size:1.6rem; }
.hero-stats div span{ color:var(--muted); font-size:.85rem; }

.hero-visual{ position:relative; }
.hero-visual svg{ width:100%; height:auto; }

/* Client strip */
.clients{
  background:var(--white);
  border-bottom:1px solid var(--line);
  padding:28px 0;
}
.clients .wrap{
  display:flex; align-items:center; justify-content:space-between;
  gap:24px; flex-wrap:wrap;
}
.clients span{ color:var(--muted); font-size:.85rem; letter-spacing:.02em; }
.client-tags{ display:flex; gap:28px; flex-wrap:wrap; }
.client-tags li{ color:var(--navy); font-weight:600; font-size:.92rem; opacity:.7; }

/* Services */
.services-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  border-top:1px solid var(--line);
}
.service-row{
  display:flex; gap:20px;
  padding:34px 28px;
  border-bottom:1px solid var(--line);
  background:var(--white);
}
.service-row:nth-child(odd){ border-right:1px solid var(--line); }
.service-icon{
  flex:none; width:48px; height:48px; border-radius:12px;
  background:var(--blue-light); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
}
.service-icon svg{ width:24px; height:24px; }
.service-row h3{ font-size:1.1rem; margin-bottom:6px; }
.service-row p{ margin:0; font-size:.95rem; }

/* Why us - Retaining dark theme accent card look */
.why{ background:var(--navy); color:#fff; }
.why h2{ color:#fff; }
.why .section-head{ max-width:640px; }
.why-grid{
  margin-top:48px;
  display:grid; grid-template-columns:repeat(4,1fr); gap:1px;
  background:rgba(255,255,255,.12);
  border-radius:var(--radius);
  overflow:hidden;
}
.why-item{ background:#0d1f3d; padding:32px 24px; }
.why-item h3{ color:#fff; font-size:1.4rem; margin-bottom:8px; }
.why-item p{ color:#a9b8d6; font-size:.92rem; margin:0; }

/* Process */
.process-list{ counter-reset:step; margin-top:48px; }
.process-item{
  display:grid; grid-template-columns:64px 1fr; gap:24px;
  padding:26px 0; border-top:1px solid var(--line);
}
.process-item:last-child{ border-bottom:1px solid var(--line); }
.process-num{
  counter-increment:step; font-family:"Space Grotesk",sans-serif;
  color:var(--blue); font-size:1.4rem; font-weight:600;
}
.process-num::before{ content: counter(step, decimal-leading-zero); }
.process-item h3{ font-size:1.1rem; margin-bottom:6px; }
.process-item p{ margin:0; max-width:560px; }

/* Testimonials */
.testimonials{ background:var(--white); }
.t-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:48px; }
.t-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px;
}
.t-card p{ color:var(--ink); font-size:.98rem; }
.t-name{ font-weight:700; color:var(--navy); font-size:.92rem; }
.t-role{ color:var(--muted); font-size:.82rem; }

/* Contact Section - Clean White with Dark Form Card */
.contact{ background:var(--white); color:var(--ink); }
.contact-grid{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:56px;
  margin-top:40px;
}
.contact h2{ color:var(--navy); }
.contact-info-list{ margin-top:28px; display:flex; flex-direction:column; gap:18px; }
.contact-info-item{ display:flex; gap:14px; align-items:flex-start; }
.contact-info-item .ic{
  flex:none; width:38px; height:38px; border-radius:9px; background:var(--blue-light);
  display:flex; align-items:center; justify-content:center;
}
.contact-info-item .ic svg{ width:18px; height:18px; color:var(--blue); }
.contact-info-item strong{ display:block; color:var(--navy); font-size:.95rem; }
.contact-info-item span{ color:var(--muted); font-size:.88rem; }

/* Professional Dark Card Form on Clean White Page */
.form-card{
  background:#111827; color:#ffffff; border-radius:var(--radius);
  padding:32px; box-shadow:0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #1f2937;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; color:#f3f4f6; }
.field input, .field select, .field textarea{
  width:100%; padding:12px 14px; border:1px solid #374151; border-radius:8px;
  font-family:inherit; font-size:.95rem; background:#1f2937; color:#ffffff;
}
.field input::placeholder, .field textarea::placeholder{ color:#9ca3af; }
.field select option{ background:#1f2937; color:#ffffff; }
.field textarea{ resize:vertical; min-height:100px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:2px solid var(--blue-2); outline-offset:1px; border-color:var(--blue-2);
}
.form-msg{ margin-top:14px; font-size:.9rem; font-weight:600; display:none; }
.form-msg.show{ display:block; }
.form-msg.ok{ color:#34d399; }
.form-msg.err{ color:#f87171; }
.form-card button[type="submit"]{ width:100%; justify-content:center; }
.form-card button[disabled]{ opacity:.6; cursor:not-allowed; transform:none; }

/* Footer social */
.footer-social{ display:flex; gap:10px; margin-top:18px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; color:#cfd9ec; transition:background .15s, color .15s;
}
.footer-social a:hover{ background:var(--blue); color:#fff; }
.footer-social svg{ width:18px; height:18px; }

/* Floating WhatsApp button */
.wa-float{
  position:fixed; right:22px; bottom:22px; z-index:60;
  width:58px; height:58px; border-radius:50%;
  background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 26px -8px rgba(0,0,0,.45);
  bottom:calc(22px + env(safe-area-inset-bottom,0px));
}
.wa-float svg{ width:30px; height:30px; }
.wa-float:hover{ transform:scale(1.06); }

/* Footer */
footer{ background:#08152B; color:#93a3c2; padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; }
.footer-brand{ color:#fff; font-family:"Space Grotesk",sans-serif; font-weight:700; font-size:1.2rem; display:flex; gap:10px; align-items:center; margin-bottom:14px; }
.footer-brand img{ height:32px; }
.footer-grid h4{ color:#fff; font-size:.95rem; margin-bottom:16px; }
.footer-grid li{ margin-bottom:10px; font-size:.9rem; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08); margin-top:48px; padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.82rem;
}

/* Dropdown nav */
.has-dropdown{ position:relative; }
.dropdown{
  position:absolute; top:100%; left:0; margin-top:14px;
  background:#ffffff; min-width:200px; padding:8px 0;
  border-radius:10px; box-shadow:0 10px 30px rgba(0,0,0,0.1);
  border: 1px solid var(--line);
  display:none; flex-direction:column;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown{ display:flex; }
.dropdown a{ display:block; padding:10px 18px; font-size:.88rem; color:var(--navy); }
.dropdown a:hover{ background:var(--blue-light); color:var(--blue); }

/* Page hero (inner pages) */
.page-hero{
  background:linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding:70px 0 60px;
  border-bottom:1px solid var(--line);
}
.page-hero h1{ color:var(--navy); margin-bottom:8px; font-size:clamp(1.9rem,3.4vw,2.6rem); }
.page-hero p{ color:var(--muted); margin:0; max-width:560px; }
.breadcrumb{ color:var(--muted); font-size:.85rem; margin-bottom:14px; }
.breadcrumb a{ color:var(--muted); }
.breadcrumb a:hover{ color:var(--blue); }

/* Page hero with background image (service pages) */
.page-hero.has-bg{
  position:relative;
  background-size:cover;
  background-position:center;
  padding:100px 0 80px;
  border-bottom:none;
  isolation:isolate;
}
.page-hero.has-bg::before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(10,26,51,.82) 0%, rgba(10,26,51,.68) 100%);
  z-index:0;
}
.page-hero.has-bg .wrap{ position:relative; z-index:1; }
.page-hero.has-bg h1{ color:#fff; }
.page-hero.has-bg p{ color:rgba(255,255,255,.85); }
.page-hero.has-bg .breadcrumb,
.page-hero.has-bg .breadcrumb a{ color:rgba(255,255,255,.75); }
.page-hero.has-bg .breadcrumb a:hover{ color:#fff; }
.page-hero.has-bg .service-hero-icon{ background:rgba(255,255,255,.15); color:#fff; }

/* Generic N-col grid (reuses why-item look) */
.grid-3{ grid-template-columns:repeat(3,1fr) !important; }

/* About page */
.about-split{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.about-split img{ border-radius:var(--radius); box-shadow:var(--shadow); }
.stat-row{ display:flex; gap:48px; margin-top:36px; flex-wrap:wrap; }
.stat-row div strong{ display:block; font-family:"Space Grotesk",sans-serif; font-size:1.8rem; color:var(--navy); }
.stat-row div span{ color:var(--muted); font-size:.85rem; }

/* About Page Banner Image Styling */
.about-banner-section {
  padding: 40px 0 0;
  background: var(--white);
}
.about-banner-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* CTA banner (used on service/blog pages) */
.cta-banner{
  background:linear-gradient(135deg, var(--navy) 0%, #16305c 100%);
  border-radius:var(--radius);
  padding:48px;
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.cta-banner h3{ color:#fff; margin-bottom:6px; }
.cta-banner p{ color:#a9b8d6; margin:0; }

/* Service detail page */
.service-hero-icon{
  width:64px; height:64px; border-radius:16px; background:var(--blue-light); color:var(--blue);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
}
.service-hero-icon svg{ width:32px; height:32px; }
.feature-list{ margin-top:24px; display:flex; flex-direction:column; gap:14px; }
.feature-list li{ display:flex; gap:12px; align-items:flex-start; color:var(--ink); font-size:.98rem; }
.feature-list li svg{ flex:none; width:20px; height:20px; color:var(--blue); margin-top:2px; }

/* Blog */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:44px; }
.blog-card{ border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:#fff; box-shadow:0 4px 12px rgba(0,0,0,0.03); }
.blog-thumb{ height:150px; }
.blog-body{ padding:22px; }
.blog-date{ color:var(--blue); font-size:.8rem; font-weight:600; margin-bottom:8px; display:block; }
.blog-body h3{ font-size:1.08rem; margin-bottom:8px; }
.blog-body p{ font-size:.92rem; margin:0; }

/* Responsive */
@media (max-width: 900px){
  .nav-links, .nav-cta .nav-phone{ display:none; }
  .nav-toggle{ display:block; }
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; }
  .services-grid{ grid-template-columns:1fr; }
  .service-row:nth-child(odd){ border-right:none; }
  .why-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; }
  .t-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  section{ padding:64px 0; }
  .about-split{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr !important; }
  .blog-grid{ grid-template-columns:1fr; }
  .dropdown{ position:static; display:flex !important; background:transparent; box-shadow:none; border:none; padding-left:14px; margin-top:6px; }
  .dropdown a { color: var(--muted); }
  .cta-banner{ flex-direction:column; align-items:flex-start; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .btn:hover{ transform:none; }
}