/*
Theme Name: IT-Wise Solutions
Theme URI: https://it-wisesolutions.com/
Author: IT-Wise Solutions
Author URI: https://it-wisesolutions.com/
Description: Custom modern MSP theme for IT-Wise Solutions, built from the site's existing content with a refreshed, warm, founder-voiced layout. Fully responsive, no page-builder dependency.
Version: 1.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: itwise
*/

/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
  --navy: #0b2340;
  --navy-dark: #071931;
  --blue: #1f6feb;
  --blue-light: #eaf2ff;
  --accent: #10b981;
  --gray-900: #1a1f2b;
  --gray-700: #4b5563;
  --gray-400: #9ca3af;
  --gray-100: #f4f6f9;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 35, 64, 0.08);
  --maxw: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2em; }

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section-alt { background: var(--gray-100); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy p { color: var(--white); }

.eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  transition: all 0.2s ease;
}
.btn:hover { background: var(--navy); border-color: var(--navy); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #e8ecf1;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.site-branding a {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
}
.site-branding a:hover { text-decoration: none; }
.site-branding span { color: inherit; }
.site-branding img.itwise-logo-full {
  max-height: 56px;
  width: auto;
  display: block;
}

.primary-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: var(--gray-900);
  font-weight: 600;
}
.primary-nav a:hover { color: var(--blue); text-decoration: none; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 700; color: var(--navy); white-space: nowrap; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--navy);
}

@media (max-width: 860px) {
  .primary-nav { display: none; width: 100%; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: 12px 0; }
  .primary-nav li { border-top: 1px solid #eef1f5; }
  .primary-nav a { display: block; padding: 12px 0; }
  .header-inner { flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .header-phone { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 96px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lead { font-size: 1.15rem; color: #cfe0f7; max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 28px;
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.95rem;
}
.hero-card li:last-child { border-bottom: none; }
.hero-card strong { color: var(--white); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cards / Grids
   ========================================================================== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid #e8ecf1;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  height: 100%;
}
.card h3 { margin-bottom: 12px; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--gray-700); }
.card ul li { margin-bottom: 6px; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

/* Section heading block */
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================================
   About / Story blocks
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.why-list li { padding-left: 34px; position: relative; }
.why-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 24px; height: 24px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800;
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  text-align: center;
  padding: 64px 0;
  background: var(--blue-light);
  border-top: 1px solid #dbe8fb;
  border-bottom: 1px solid #dbe8fb;
}
.cta-band h2 { margin-bottom: 12px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-list { list-style: none; padding: 0; margin: 0; }
.contact-info-list li {
  padding: 16px 0;
  border-bottom: 1px solid #e8ecf1;
}
.contact-info-list strong { display: block; color: var(--navy); margin-bottom: 4px; }

.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form textarea,
form.default-contact input,
form.default-contact textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: inherit;
  font-size: 1rem;
}
form.default-contact label { font-weight: 600; display: block; margin-bottom: 6px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-dark);
  color: #b9c6dd;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 1rem; }
.site-footer a { color: #b9c6dd; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* ==========================================================================
   404 page logo
   ========================================================================== */
.notfound-logo {
  max-width: 120px;
  margin: 0 auto 24px;
}

/* Footnote / fine print (used on Services page) */
.fine-print {
  color: var(--gray-700);
  font-size: 0.9rem;
  border-top: 1px solid #e8ecf1;
  padding-top: 20px;
  margin-top: 12px;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
