/*
Theme Name: 911DATA
Theme URI: https://911data.co.za
Author: 911DATA
Author URI: https://911data.co.za
Description: Custom theme for 911DATA – Compliant Document Management South Africa. Warm navy navigation and footer, light body, red CTAs. Fully editable via WordPress Customiser.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
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: 911data
*/

/* ═══════════════════════════════════════════
   911DATA THEME STYLES
   ═══════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1B2A4A;
  --navy-light: #2A3D66;
  --red-cta: #DC2626;
  --red-hover: #B91C1C;
  --pale-blue: #F7FAFD;
  --hero-blue: #E8F0FE;
  --white: #FFFFFF;
  --text-dark: #1E293B;
  --text-mid: #475569;
  --text-light: #64748B;
  --border-light: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
  --radius: 1rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* ─── Header / Nav ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo img {
  height: 72px;
  width: auto;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.8;
}

.header-contact {
  display: none;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

.header-contact a {
  color: rgba(255,255,255,0.8);
}

.header-contact a:hover {
  color: var(--white);
}

.header-contact .separator {
  color: rgba(255,255,255,0.4);
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--red-cta);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  border: 2px solid var(--white);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  min-height: 44px;
}

.btn-cta:hover {
  background: var(--red-hover);
}

.btn-cta:active {
  transform: scale(0.97);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 44px;
}

.btn-cta-outline:hover {
  background: rgba(255,255,255,0.05);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-toggle a,
.mobile-toggle button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  cursor: pointer;
  font-size: 1.25rem;
}

.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 1rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.mobile-menu .mobile-contact {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text-mid);
}

.mobile-menu .mobile-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-weight: 400;
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .header-contact { display: flex; }
  .mobile-toggle { display: none; }
}

/* ─── Hero ─── */
.hero {
  padding-top: 120px;
  padding-bottom: 4rem;
  background: linear-gradient(to bottom, var(--hero-blue), var(--white));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  color: var(--red-cta);
}

.hero .subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 540px;
}

.hero-cta {
  margin-top: 2.5rem;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

@media (min-width: 1024px) {
  .hero { padding-top: 140px; padding-bottom: 6rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3.5rem; }
}

/* ─── Section Headings ─── */
.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(27,42,74,0.6);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

@media (min-width: 640px) {
  .section-title { font-size: 2.75rem; }
}

/* ─── Services ─── */
.services {
  padding: 5rem 0;
  background: var(--white);
}

.services-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.services-header p {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--text-mid);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: #2563EB;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-mid);
  line-height: 1.6;
}

.services-cta {
  text-align: center;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Banner ─── */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.cta-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15,23,42,0.85), rgba(15,23,42,0.5));
  display: flex;
  align-items: center;
}

.cta-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.cta-banner p {
  color: rgba(255,255,255,0.8);
  margin-top: 0.5rem;
  font-size: 1.125rem;
}

.banner-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .cta-banner img { height: 280px; }
  .cta-banner h3 { font-size: 1.875rem; }
}

/* ─── Why 911DATA ─── */
.why-section {
  padding: 5rem 0;
  background: var(--pale-blue);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.why-section .about-text {
  font-size: 1.125rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.trust-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.trust-item .trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #2563EB;
  font-size: 1.25rem;
}

.trust-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

.trust-item p {
  font-size: 0.875rem;
  color: var(--text-mid);
  margin-top: 0.375rem;
  line-height: 1.5;
}

.why-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.docit-badge {
  margin-top: 1.5rem;
  text-align: center;
}

.docit-badge img {
  height: 40px;
  width: auto;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Contact CTA ─── */
.contact-cta {
  padding: 5rem 0;
  background: var(--pale-blue);
  text-align: center;
}

.contact-cta .logo-mark {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 2rem;
}

.contact-cta p {
  color: var(--text-mid);
  font-size: 1.125rem;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--navy);
  padding: 3rem 0;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.footer-logo img {
  height: 64px;
  width: auto;
  margin-bottom: 1rem;
}

.site-footer p {
  font-size: 0.875rem;
  line-height: 1.6;
}

.site-footer h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-links a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}

.footer-contact a:hover {
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.social-icons a:hover {
  background: rgba(255,255,255,0.2);
}

.social-icons svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,0.8);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom .docit-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom .docit-footer img {
  height: 28px;
  width: auto;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ─── Contact Form (Contact Form 7) ─── */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  background: #F8FAFC;
  font-size: 0.9375rem;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--red-cta);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--red-cta);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--white);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 48px;
  width: 100%;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--red-hover);
}

.wpcf7 label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
}

.wpcf7 .form-row {
  margin-bottom: 1rem;
}

/* ─── WordPress Specific ─── */
.wp-block-image img {
  border-radius: var(--radius);
}

.alignfull {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
