/*
Theme Name: SearchCraft AI SEO
Theme URI: https://searchcraft.agency/
Author: SearchCraft Agency
Author URI: https://searchcraft.agency/
Description: A professional WordPress theme for SEO, AI-powered SEO, digital marketing, portfolio, case studies, and blogs.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: searchcraft-ai-seo
Tags: seo, marketing, agency, portfolio, blog, custom-logo, responsive
*/

:root {
  --sc-navy: #050B16;
  --sc-dark: #0F172A;
  --sc-blue: #2563EB;
  --sc-blue-dark: #1D4ED8;
  --sc-blue-soft: #EFF6FF;
  --sc-grey: #F3F5F8;
  --sc-grey-2: #E5E7EB;
  --sc-text: #111827;
  --sc-muted: #64748B;
  --sc-white: #FFFFFF;
  --sc-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
  --sc-radius: 22px;
  --sc-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sc-font);
  color: var(--sc-text);
  background: var(--sc-white);
  line-height: 1.65;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--sc-blue); }
img { max-width: 100%; height: auto; }
.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
}
.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; min-width: 190px; }
.site-logo img, .custom-logo { width: 210px; max-height: 70px; object-fit: contain; display: block; }
.site-title-text { font-weight: 800; font-size: 24px; letter-spacing: -0.03em; color: var(--sc-dark); }
.site-title-text span { color: var(--sc-blue); }

.nav-wrap { display: flex; align-items: center; gap: 18px; }
.primary-menu, .primary-menu ul { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; align-items: center; gap: 20px; }
.primary-menu a { color: var(--sc-dark); font-weight: 650; font-size: 15px; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; background: var(--sc-blue); color: var(--sc-white); font-weight: 800; box-shadow: 0 12px 24px rgba(37,99,235,.22); }
.header-cta:hover { background: var(--sc-blue-dark); color: var(--sc-white); }
.menu-toggle { display: none; border: 1px solid var(--sc-grey-2); background: var(--sc-white); color: var(--sc-dark); border-radius: 12px; padding: 10px 12px; font-weight: 800; }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 54%, #EFF6FF 100%);
  padding: 82px 0 58px;
}
.hero:before {
  content: "";
  position: absolute;
  right: -140px;
  top: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(37,99,235,.16), transparent 68%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.03fr .97fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--sc-blue-soft); color: var(--sc-blue-dark); font-weight: 800; font-size: 14px; }
.eyebrow:before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc-blue); }
.hero h1 { margin: 18px 0 16px; font-size: clamp(32px, 4.1vw, 46px); line-height: 1.08; letter-spacing: -0.055em; color: var(--sc-navy); }
.hero h1 .accent { color: var(--sc-blue); }
.lead { font-size: 18px; color: var(--sc-muted); max-width: 640px; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px; border-radius: 999px; font-weight: 850; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sc-blue); color: var(--sc-white); box-shadow: 0 16px 30px rgba(37,99,235,.24); }
.btn-primary:hover { background: var(--sc-blue-dark); color: var(--sc-white); }
.btn-secondary { background: var(--sc-white); color: var(--sc-dark); border-color: var(--sc-grey-2); }
.btn-secondary:hover { border-color: var(--sc-blue); color: var(--sc-blue); }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.hero-points li { padding: 9px 12px; border-radius: 999px; background: var(--sc-white); border: 1px solid var(--sc-grey-2); color: var(--sc-muted); font-weight: 700; font-size: 14px; }
.hero-card { background: var(--sc-navy); color: var(--sc-white); border-radius: 30px; padding: 28px; box-shadow: var(--sc-shadow); position: relative; overflow: hidden; }
.hero-card:after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -70px; top: -70px; background: rgba(37,99,235,.38); }
.hero-card > * { position: relative; z-index: 2; }
.score-box { display: grid; gap: 14px; }
.score-top { display: flex; align-items: center; justify-content: space-between; }
.score-label { color: #AFC3E8; font-weight: 800; }
.score-value { font-size: 42px; font-weight: 950; letter-spacing: -0.05em; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
.metric { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 16px; }
.metric strong { display: block; font-size: 24px; letter-spacing: -0.04em; }
.metric span { color: #B8C7DF; font-size: 14px; }

.section { padding: 74px 0; }
.section.grey { background: var(--sc-grey); }
.section-head { max-width: 760px; margin-bottom: 34px; }
.section-kicker { color: var(--sc-blue); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 900; margin-bottom: 10px; display: block; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.16; margin: 0 0 12px; color: var(--sc-navy); letter-spacing: -0.04em; }
.section-head p { color: var(--sc-muted); margin: 0; font-size: 17px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--sc-white); border: 1px solid var(--sc-grey-2); border-radius: var(--sc-radius); padding: 24px; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.card:hover { border-color: rgba(37,99,235,.35); box-shadow: var(--sc-shadow); }
.icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; background: var(--sc-blue-soft); color: var(--sc-blue); font-weight: 950; margin-bottom: 14px; }
.card-title { font-size: 20px; font-weight: 900; margin: 0 0 8px; color: var(--sc-dark); letter-spacing: -0.02em; }
.card p { color: var(--sc-muted); margin: 0 0 14px; }
.card ul { margin: 0; padding-left: 18px; color: var(--sc-muted); }
.card li { margin-bottom: 7px; }

.about-band { background: var(--sc-navy); color: var(--sc-white); border-radius: 30px; padding: 34px; display: grid; grid-template-columns: 1fr .8fr; gap: 28px; align-items: center; }
.about-band .label { color: #9CC1FF; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.about-band .statement { font-size: 26px; line-height: 1.25; letter-spacing: -0.035em; margin: 10px 0 0; font-weight: 900; }
.about-band p { color: #B8C7DF; margin: 0; }

.portfolio-wrap { display: grid; grid-template-columns: .88fr 1.12fr; gap: 24px; align-items: stretch; }
.case-card { border-radius: 26px; background: var(--sc-white); border: 1px solid var(--sc-grey-2); padding: 26px; box-shadow: var(--sc-shadow); }
.case-card.dark { background: var(--sc-navy); color: var(--sc-white); border-color: transparent; }
.case-card.dark p, .case-card.dark .meta { color: #B8C7DF; }
.meta { color: var(--sc-muted); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.case-title { font-size: 24px; font-weight: 950; margin: 10px 0 10px; letter-spacing: -0.04em; line-height: 1.2; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.stat { padding: 14px; border-radius: 18px; background: rgba(37,99,235,.10); }
.case-card.dark .stat { background: rgba(255,255,255,.08); }
.stat strong { display: block; font-size: 22px; }
.stat span { color: inherit; opacity: .78; font-size: 13px; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--sc-white); border: 1px solid var(--sc-grey-2); border-radius: var(--sc-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(15,23,42,.05); display: flex; flex-direction: column; }
.post-thumb { height: 170px; background: linear-gradient(135deg, #0F172A, #2563EB); }
.post-content { padding: 22px; }
.post-date { color: var(--sc-muted); font-size: 13px; font-weight: 800; }
.post-title { font-size: 20px; line-height: 1.25; margin: 9px 0 10px; font-weight: 900; letter-spacing: -0.025em; }
.post-content p { color: var(--sc-muted); margin: 0 0 14px; }
.read-more { color: var(--sc-blue); font-weight: 900; }

.contact-section { background: linear-gradient(135deg, var(--sc-navy), #10234D); color: var(--sc-white); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; align-items: start; }
.contact-section h2 { color: var(--sc-white); }
.contact-section p { color: #B8C7DF; }
.contact-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; color: #D7E2F5; font-weight: 700; }
.form-card { background: var(--sc-white); color: var(--sc-text); border-radius: 26px; padding: 26px; box-shadow: var(--sc-shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 850; color: var(--sc-dark); font-size: 14px; }
input, textarea, select { width: 100%; border: 1px solid var(--sc-grey-2); background: #F8FAFC; border-radius: 14px; padding: 13px 14px; font-family: var(--sc-font); font-size: 15px; color: var(--sc-dark); }
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sc-blue); box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.alert { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; font-weight: 800; }
.alert.success { background: #ECFDF5; color: #047857; }
.alert.error { background: #FEF2F2; color: #B91C1C; }
.honeypot { display: none !important; }

.page-hero { background: var(--sc-grey); padding: 58px 0; }
.page-hero h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.045em; color: var(--sc-navy); }
.page-hero p { color: var(--sc-muted); font-size: 18px; max-width: 760px; margin: 0; }
.content-area { padding: 60px 0; }
.entry-content { max-width: 820px; }
.entry-content h2 { margin-top: 32px; }
.entry-content p, .entry-content li { color: var(--sc-muted); }
.posts-layout { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.pagination { margin-top: 34px; display: flex; gap: 10px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 10px 14px; border: 1px solid var(--sc-grey-2); border-radius: 12px; font-weight: 800; }
.pagination .current { background: var(--sc-blue); color: var(--sc-white); border-color: var(--sc-blue); }

.site-footer { background: var(--sc-navy); color: var(--sc-white); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr .8fr; gap: 28px; }
.footer-logo img { width: 200px; filter: brightness(1.1); background: var(--sc-white); border-radius: 14px; padding: 8px; }
.footer-text { color: #B8C7DF; margin: 16px 0 0; }
.footer-title { font-weight: 950; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { color: #B8C7DF; }
.footer-links a:hover { color: var(--sc-white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; color: #92A3BF; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero-grid, .portfolio-wrap, .contact-grid, .about-band { grid-template-columns: 1fr; }
  .card-grid, .blog-grid, .posts-layout { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1140px); }
  .header-inner { min-height: 72px; }
  .site-logo img, .custom-logo { width: 178px; }
  .menu-toggle { display: inline-flex; }
  .nav-wrap { position: absolute; left: 14px; right: 14px; top: 78px; background: var(--sc-white); border: 1px solid var(--sc-grey-2); border-radius: 18px; padding: 16px; display: none; flex-direction: column; align-items: stretch; box-shadow: var(--sc-shadow); }
  .nav-wrap.active { display: flex; }
  .primary-menu { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-cta { width: 100%; }
  .hero { padding: 54px 0 44px; }
  .hero h1 { font-size: 33px; }
  .section { padding: 54px 0; }
  .card-grid, .blog-grid, .posts-layout, .metric-grid, .stat-row, .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
}
