/*
Theme Name: SiteSpinners
Theme URI: https://sitespinners.com
Author: SiteSpinners
Author URI: https://sitespinners.com
Description: A bold, modern WordPress theme for SiteSpinners — an AI-powered web design & development agency. Built around an orange (#E85D26), near-black (#1C1C2E) and white palette with the SiteSpinners spider/web brand mark.
Version: 1.0.0
Requires at least: 6.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: sitespinners
Tags: custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, one-column, two-columns, right-sidebar
*/

/* =========================================================
   0. CSS VARIABLES / BRAND
   ========================================================= */
:root {
  --ss-orange: #E85D26;
  --ss-orange-dark: #C64A1A;
  --ss-black: #1C1C2E;
  --ss-black-2: #2E2E45;
  --ss-white: #FFFFFF;
  --ss-off-white: #F7F5F2;
  --ss-grey: #6B6B78;
  --ss-line: #E0D9CE;
  --ss-radius: 6px;
  --ss-max: 1160px;
  --ss-font: 'Inter', Arial, Helvetica, sans-serif;
}

/* =========================================================
   1. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ss-font);
  color: var(--ss-black);
  background: var(--ss-white);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ss-orange); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ss-orange-dark); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.5px; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.2em; }
.container { max-width: var(--ss-max); margin: 0 auto; padding: 0 24px; }
section { padding: 90px 0; }
.eyebrow {
  display: inline-block;
  color: var(--ss-orange);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: 14px;
}
.center { text-align: center; }

/* =========================================================
   2. BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--ss-radius);
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .15s ease;
}
.btn-primary { background: var(--ss-orange); color: var(--ss-white); }
.btn-primary:hover { background: var(--ss-orange-dark); color: var(--ss-white); }
.btn-outline { border-color: var(--ss-black); color: var(--ss-black); background: transparent; }
.btn-outline:hover { background: var(--ss-black); color: var(--ss-white); }
.btn-outline-white { border-color: var(--ss-white); color: var(--ss-white); background: transparent; }
.btn-outline-white:hover { background: var(--ss-white); color: var(--ss-black); }

/* =========================================================
   3. HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ss-white);
  border-bottom: 1px solid var(--ss-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.site-logo img, .site-logo svg { height: 38px; width: auto; }
.site-logo { display: flex; align-items: center; margin-left: -20px; }

.main-nav ul { display: flex; gap: 36px; align-items: center; }
.main-nav a {
  color: var(--ss-black);
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--ss-orange);
  transition: width .18s ease;
}
.main-nav a:hover::after,
.main-nav .current-menu-item a::after { width: 100%; }
.main-nav a:hover { color: var(--ss-orange); }

.header-cta { display: flex; align-items: center; gap: 20px; }
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ss-black);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 880px) {
  .main-nav { position: fixed; top: 84px; left: 0; right: 0; bottom: 0; background: var(--ss-white);
    transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; z-index: 99; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; padding: 40px 24px; gap: 24px; }
  .menu-toggle { display: block; }
  .header-cta .btn-primary { display: none; }
}

/* =========================================================
   4. HERO
   ========================================================= */
.hero {
  background: var(--ss-black);
  color: var(--ss-white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,93,38,.25), transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { color: var(--ss-white); }
.hero h1 span { color: var(--ss-orange); }
.hero p.lead { font-size: 1.2rem; color: #C9C9D6; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 56px; }
.hero-stats div strong { display: block; font-size: 2rem; color: var(--ss-orange); }
.hero-stats div span { color: #9C9CAE; font-size: .85rem; }
.hero-visual { position: relative; }
.web-graphic { width: 100%; opacity: .9; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto 20px; }
}

/* =========================================================
   5. SECTIONS — general
   ========================================================= */
.section-alt { background: var(--ss-off-white); }
.section-dark { background: var(--ss-black); color: var(--ss-white); }
.section-dark h2, .section-dark h3 { color: var(--ss-white); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

/* Services grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--ss-white);
  border: 1px solid var(--ss-line);
  border-radius: 10px;
  padding: 36px 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28,28,46,.08);
  border-color: var(--ss-orange);
}
.card .icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: rgba(232,93,38,.1);
  color: var(--ss-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

/* Process steps */
.steps { display: flex; gap: 24px; counter-reset: step; flex-wrap: wrap; }
.step { flex: 1; min-width: 200px; position: relative; padding-top: 10px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--ss-orange);
  color: var(--ss-white);
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 16px;
}

/* Portfolio */
.portfolio-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--ss-black); }
.portfolio-item img { transition: transform .3s ease; width: 100%; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  color: var(--ss-white);
}
.portfolio-caption .tag { color: var(--ss-orange); font-size: .8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }

/* Pricing */
.pricing-card { border: 2px solid var(--ss-line); border-radius: 12px; padding: 40px 30px; text-align: center; }
.pricing-card.featured { border-color: var(--ss-orange); position: relative; transform: scale(1.03); box-shadow: 0 20px 50px rgba(232,93,38,.15); }
.pricing-card .price { font-size: 2.6rem; font-weight: 800; color: var(--ss-black); margin: 10px 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: var(--ss-grey); }
.pricing-card ul { margin: 24px 0; text-align: left; }
.pricing-card li { padding: 8px 0; border-bottom: 1px solid var(--ss-line); }
.pricing-card li:last-child { border-bottom: none; }
.badge-popular {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ss-orange); color: var(--ss-white);
  padding: 4px 16px; border-radius: 20px; font-size: .75rem; font-weight: 700; letter-spacing: 1px;
}

/* Testimonials */
.testimonial { background: var(--ss-white); border-left: 4px solid var(--ss-orange); padding: 28px 30px; border-radius: 8px; }
.testimonial .quote { font-size: 1.05rem; font-style: italic; margin-bottom: 16px; }
.testimonial .who { font-weight: 700; }
.testimonial .who span { display: block; font-weight: 400; color: var(--ss-grey); font-size: .85rem; }

/* CTA band */
.cta-band {
  background: var(--ss-orange);
  color: var(--ss-white);
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { color: var(--ss-white); }
.cta-band .btn-outline-white { border-color: var(--ss-white); }

/* Team */
.team-card { text-align: center; }
.team-card img { border-radius: 50%; width: 140px; height: 140px; object-fit: cover; margin: 0 auto 16px; }
.team-card .role { color: var(--ss-orange); font-weight: 600; font-size: .9rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-item .icon {
  width: 46px; height: 46px; border-radius: 8px;
  background: var(--ss-black); color: var(--ss-orange);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-form { display: grid; gap: 18px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--ss-line);
  border-radius: var(--ss-radius); font-family: inherit; font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--ss-orange);
}
.contact-form label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Page header (interior pages) */
.page-header {
  background: var(--ss-black);
  color: var(--ss-white);
  padding: 70px 0;
  text-align: center;
}
.page-header h1 { color: var(--ss-white); }
.breadcrumb { color: #9C9CAE; font-size: .9rem; }
.breadcrumb a { color: #C9C9D6; }

/* =========================================================
   6. FOOTER
   ========================================================= */
.site-footer { background: var(--ss-black); color: #C9C9D6; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--ss-white); font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: #C9C9D6; }
.site-footer a:hover { color: var(--ss-orange); }
.site-footer .footer-logo img, .site-footer .footer-logo svg { height: 34px; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 50px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem; color: #8A8A9B;
}
.social-icons { display: flex; gap: 14px; }
.social-icons a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
}
.social-icons a:hover { background: var(--ss-orange); border-color: var(--ss-orange); color: var(--ss-white); }

/* =========================================================
   7. UTILITIES
   ========================================================= */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-orange { color: var(--ss-orange); }
.bg-white-card { background: var(--ss-white); border-radius: 10px; }
.screen-reader-text { position: absolute; left: -9999px; }
