/*
Theme Name: ddTech
Theme URI: https://ddtech.co.nz/
Author: ddTech
Author URI: https://ddtech.co.nz/
Description: Professional base theme for Elementor Pro and ddTech plugins, with clean WordPress fallbacks, menu support, and admin-side setup helpers.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ddtech
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, featured-images, translation-ready, elementor, custom-menu, one-column, two-columns
*/

:root {
  --ddtech-bg: #f5f7fb;
  --ddtech-surface: #ffffff;
  --ddtech-text: #12263a;
  --ddtech-muted: #5d6b82;
  --ddtech-border: #d9e2ec;
  --ddtech-primary: #1a364a;
  --ddtech-accent: #3aa76d;
  --ddtech-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
  --ddtech-radius: 16px;
  --ddtech-content-width: 1200px;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--ddtech-bg);
  color: var(--ddtech-text);
  line-height: 1.6;
}

a {
  color: var(--ddtech-primary);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

.site-main,
#site-main,
.site-header__inner,
.site-footer__inner,
.ddtech-container,
.entry-content,
.site-main > article,
.site-main > .page,
.site-main > .post {
  width: min(100% - 32px, var(--ddtech-content-width));
  margin-left: auto;
  margin-right: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100000;
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  box-shadow: var(--ddtech-shadow);
}

.site-header {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
  backdrop-filter: blur(10px);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-logo img,
.custom-logo {
  display: block;
  max-height: 56px;
  width: auto;
}

.site-branding__text {
  min-width: 0;
}

.site-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.site-title a {
  color: var(--ddtech-text);
}

.site-description {
  margin: 4px 0 0;
  color: var(--ddtech-muted);
  font-size: 0.95rem;
}

.site-nav {
  margin-left: auto;
}

.site-nav .menu,
.site-footer-nav .menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ddtech-text);
}

.site-nav a:hover,
.site-nav a:focus,
.site-footer-nav a:hover,
.site-footer-nav a:focus {
  background: rgba(26, 54, 74, 0.08);
  text-decoration: none;
}

.site-main,
#site-main {
  padding-top: 32px;
  padding-bottom: 48px;
}

.ddtech-card,
.site-main > article,
.site-main > .page,
.site-main > .post,
.home article {
  background: var(--ddtech-surface);
  border: 1px solid var(--ddtech-border);
  border-radius: var(--ddtech-radius);
  box-shadow: var(--ddtech-shadow);
  padding: 24px;
}

.home article + article {
  margin-top: 20px;
}

.site-footer {
  margin-top: 40px;
  background: var(--ddtech-primary);
  color: rgba(255, 255, 255, 0.92);
}

.site-footer a {
  color: #fff;
}

.site-footer__inner {
  padding-top: 24px;
  padding-bottom: 24px;
}

.site-footer__meta {
  font-size: 0.95rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
  }

  .site-nav .menu,
  .site-footer-nav .menu {
    gap: 10px;
  }
}
