/*
Theme Name: DDD Computers
Theme URI: https://dddcomputers.co.za/
Author: DDD Computers
Description: A focused service-business theme for DDD Computers.
Version: 1.17.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ddd-computers
*/

:root {
  --navy: #17365d;
  --ink: #172b45;
  --cyan: #178fcb;
  --blue: #4aa9e8;
  --cloud: #f3f7fb;
  --silver: #c9d8e6;
  --slate: #51677f;
  --white: #fff;
  --border: #d9e5ef;
  --shadow: 0 18px 50px rgba(23, 54, 93, .12);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body.admin-bar .site-header { top: 32px; }
a { color: var(--cyan); }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; padding: 10px 14px; background: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: cover; border-radius: 4px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-name { font-family: Montserrat, Arial, sans-serif; font-weight: 800; font-size: 20px; }
.brand-note { margin-top: 5px; color: var(--slate); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.site-nav a:hover { color: var(--cyan); }
.menu-toggle { display: none; margin-left: auto; border: 0; background: transparent; padding: 10px; color: var(--navy); }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  background: var(--cyan);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: #0f7fb8; box-shadow: 0 10px 24px rgba(23,143,203,.22); color: #fff; }
.button-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.button-outline:hover { background: var(--navy); color: #fff; }
.button-small { min-height: 42px; padding-inline: 16px; font-size: 14px; }

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--ink);
  background-image: url("assets/images/ddd-computers-hero-v2.png");
  background-position: center;
  background-size: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 28, 52, .96) 0%, rgba(12, 37, 66, .9) 38%, rgba(12, 37, 66, .35) 68%, rgba(12, 37, 66, .08) 100%);
}
.hero-inner { position: relative; z-index: 1; min-height: 650px; display: flex; align-items: center; padding-block: 76px; }
.hero-copy { max-width: 720px; }
.eyebrow { margin: 0 0 14px; color: var(--cyan); font-size: 13px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--navy); font-family: Montserrat, Arial, sans-serif; line-height: 1.15; }
h1 { max-width: 780px; margin-bottom: 24px; font-size: clamp(42px, 5.5vw, 72px); }
h2 { margin-bottom: 18px; font-size: clamp(30px, 4vw, 46px); }
h3 { margin-bottom: 10px; font-size: 21px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--blue); }
.hero-lead { max-width: 670px; margin: 0 0 32px; color: #d9e7f2; font-size: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button-outline { border-color: #fff; color: #fff; }
.hero .button-outline:hover { background: #fff; color: var(--navy); }
.trust-strip { background: var(--navy); color: #fff; }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 92px; align-items: center; gap: 30px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.trust-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: var(--blue); }

.section { padding-block: 92px; }
.section-soft { background: var(--cloud); }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading p { color: var(--slate); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { padding: 28px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.service-card:first-child { border-top: 4px solid var(--cyan); }
.service-card:nth-child(2) { border-top: 4px solid var(--navy); }
.service-card:nth-child(3) { border-top: 4px solid var(--blue); }
.service-number { display: inline-block; margin-bottom: 28px; color: var(--cyan); font-family: Montserrat, Arial, sans-serif; font-size: 13px; font-weight: 800; }
.service-card p { margin-bottom: 18px; color: var(--slate); }
.service-card ul { padding-left: 20px; margin-bottom: 0; }
.open-request { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-top: 20px; padding: 30px; background: var(--ink); color: #fff; border-radius: 8px; }
.open-request h3, .open-request p { color: #fff; }
.open-request h3 { margin-bottom: 5px; }
.open-request p { margin: 0; color: var(--silver); }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.process-step { position: relative; padding-top: 22px; border-top: 2px solid var(--border); }
.process-step::before { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.process-step p { color: var(--slate); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: start; gap: 80px; }
.about-panel { padding: 34px; background: var(--navy); color: #fff; border-radius: 8px; }
.about-panel strong { display: block; margin-bottom: 12px; color: var(--blue); font-family: Montserrat, Arial, sans-serif; font-size: 24px; }
.about-panel p { margin-bottom: 0; color: var(--silver); }
.check-list { display: grid; gap: 14px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 900; }

.contact-band { padding-block: 76px; background: var(--cyan); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.contact-band h2, .contact-band p { color: #fff; }
.contact-band h2 { margin-bottom: 10px; }
.contact-band p { margin: 0; }
.contact-band .button { background: #fff; border-color: #fff; color: var(--navy); }
.contact-band .button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.content-area { min-height: 55vh; padding-block: 70px; }
.entry-content { max-width: 820px; }
.site-footer { padding-block: 50px 24px; background: var(--ink); color: var(--silver); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.cookieadmin_re_consent { display: none !important; }
.cookie-settings-button {
  margin: 0 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--silver);
  font: inherit;
  cursor: pointer;
}
.cookie-settings-button:hover { color: var(--blue); }
.footer-bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 78px 0 auto; padding: 20px; background: #fff; border-bottom: 1px solid var(--border); }
  .site-nav.is-open { display: block; }
  .site-nav ul { align-items: stretch; flex-direction: column; }
  .header-cta { display: none; }
  .hero { background-position: 66% center; }
  .hero::before { background: linear-gradient(90deg, rgba(8,28,52,.97) 0%, rgba(8,28,52,.9) 58%, rgba(8,28,52,.48) 100%); }
  .hero-inner { min-height: 620px; padding-block: 60px; }
  .hero-copy { max-width: 620px; }
  .service-grid, .process-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--content)); }
  .brand-note { display: none; }
  .hero { background-position: 63% center; }
  .hero::before { background: rgba(8, 28, 52, .82); }
  .hero-inner { min-height: 610px; padding-block: 48px; }
  h1 { font-size: 40px; }
  .hero-lead { font-size: 18px; }
  .hero-actions .button { width: 100%; }
  .trust-inner { grid-template-columns: 1fr; padding-block: 24px; }
  .section { padding-block: 68px; }
  .open-request, .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* Hero motion accent */
.hero-tech-orbit {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: clamp(24px, 8vw, 130px);
    width: clamp(280px, 34vw, 500px);
    aspect-ratio: 1;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: .72;
}
.orbit-ring {
    position: absolute;
    border: 1px solid rgba(74, 169, 232, .48);
    border-radius: 50%;
    animation: ddd-orbit-spin 24s linear infinite;
}
.orbit-ring::before,
.orbit-ring::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 20px rgba(74, 169, 232, .9);
}
.orbit-ring-one { inset: 7%; }
.orbit-ring-one::before { top: 10%; left: 12%; }
.orbit-ring-one::after { right: -5px; top: 50%; }
.orbit-ring-two {
    inset: 24%;
    border-style: dashed;
    animation-direction: reverse;
    animation-duration: 17s;
}
.orbit-ring-two::before { left: -5px; top: 50%; }
.orbit-ring-two::after { right: 10%; bottom: 12%; }
.orbit-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 18px rgba(255, 255, 255, .85);
    animation: ddd-dot-float 5s ease-in-out infinite;
}
.orbit-dot-one { top: 18%; right: 15%; }
.orbit-dot-two { bottom: 20%; left: 9%; animation-delay: -1.7s; }
.orbit-dot-three { top: 48%; left: 47%; animation-delay: -3.3s; }
@keyframes ddd-orbit-spin {
    to { transform: rotate(360deg); }
}
@keyframes ddd-dot-float {
    0%, 100% { transform: translateY(0); opacity: .45; }
    50% { transform: translateY(-14px); opacity: 1; }
}
@media (max-width: 900px) {
    .hero-tech-orbit { right: -110px; opacity: .42; }
}
@media (max-width: 620px) {
    .hero-tech-orbit { width: 330px; right: -170px; opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
    .orbit-ring, .orbit-dot { animation: none; }
}



/* Business partner section */
.partner-section { background: var(--cloud); }
.partner-heading { margin-bottom: 34px; }
.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.partner-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--border);
    border-top: 4px solid var(--cyan);
    border-radius: 8px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 34px rgba(23, 54, 93, .08);
}
.partner-item:nth-child(2) { border-top-color: var(--navy); }
.partner-item:nth-child(3) { border-top-color: var(--blue); }
.partner-item:nth-child(4) { border-top-color: var(--cyan); }
.partner-logo {
    display: grid;
    width: 100%;
    height: 170px;
    place-items: center;
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 7px;
    background: #fff;
}
.partner-logo-dark { background: var(--ink); }
.partner-logo img {
    display: block;
    width: 134px;
    max-width: 100%;
    height: 134px;
    max-height: 134px;
    object-fit: contain;
}
.partner-item h3 { margin-bottom: 14px; }
.partner-link {
    margin-top: auto;
    color: var(--cyan);
    font-weight: 800;
    text-decoration: none;
}
.partner-link:hover { color: var(--navy); text-decoration: underline; }
@media (max-width: 900px) {
    .partner-grid { grid-template-columns: 1fr; }
    .partner-logo { height: 150px; }
}
