/*
Theme Name: H2 Digital Solutions
Author: H2 Digital Solutions
Description: A navy-and-gold one-page theme for digital marketing, social media, AI and automation.
Version: 1.0.0
Requires at least: 6.4
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: h2-digital
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/
:root {
  --navy: oklch(0.2775 0.0598 242.45);
  --soft: oklch(0.362 0.078 242.2);
  --gold: oklch(0.8506 0.1468 85.6);
  --white: oklch(1 0 0);
  --paper: oklch(0.9812 0.0034 247.86);
  --muted: oklch(0.492 0.033 244);
  --line: oklch(0.905 0.011 247);
  --light: oklch(1 0 0 / 85%);
  --light-line: oklch(1 0 0 / 20%);
  --error: oklch(0.48 0.15 26);
  --display: Manrope, Arial, sans-serif;
  --body: Inter, Arial, sans-serif;
  --radius: 6px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font: 16px/1.65 var(--body);
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.25;
  letter-spacing: 0;
  margin: 0 0 20px;
}
h1 {
  font-size: 64px;
}
h2 {
  font-size: 38px;
}
h3 {
  font-size: 22px;
}
p {
  margin: 0 0 20px;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.container {
  width: calc(100% - 48px);
  max-width: 1160px;
  margin: auto;
}
.section {
  padding: 80px 0;
}
.section p {
  max-width: 70ch;
}
.paper {
  background: var(--paper);
}
.dark {
  background: var(--navy);
  color: var(--white);
}
.dark p {
  color: var(--light);
}
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.dark .eyebrow,
.hero .eyebrow {
  color: var(--gold);
}
.lead {
  font-size: 18px;
}
.grid {
  display: grid;
  gap: 28px;
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid > * {
  min-width: 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.btn.outline {
  background: transparent;
  border-color: var(--light-line);
  color: inherit;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  padding: 12px;
  background: var(--gold);
  color: var(--navy);
  z-index: 1000;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--navy);
  color: var(--white);
  border-bottom: 1px solid var(--light-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  padding-block: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--white);
}
.brand-text {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 800;
}
.brand-text small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-top: 4px;
}
.nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 14px;
}
.nav-list a:hover {
  color: var(--gold);
}
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
}
.hero {
  padding: 60px 0 76px;
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.hero-inner {
  max-width: 900px;
  margin: auto;
}
.hero .lead {
  max-width: 660px;
  margin: 24px auto;
}
.hero .actions {
  justify-content: center;
}
.digitally {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25em;
  color: var(--gold);
  line-height: 1.3;
}
.digitally:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform-origin: left;
  animation: signal 1s ease-out both;
}
.ecosystem {
  position: relative;
  width: 220px;
  aspect-ratio: 1;
  margin: 0 auto 28px;
}
.ecosystem:before,
.ecosystem:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--light-line);
  border-radius: 50%;
}
.ecosystem:after {
  inset: 20px;
  border: 1px dashed var(--gold);
  animation: orbit 35s linear infinite;
}
.ecosystem.is-paused:after {
  animation-play-state: paused;
}
.ecosystem img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 116px;
  height: 116px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 12px;
  z-index: 2;
}
.system-status {
  margin-top: 36px;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold);
}
.service {
  border-top: 2px solid var(--gold);
  padding-top: 24px;
}
.number {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.service a {
  font-size: 14px;
  font-weight: 700;
}
.supporting {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 24px;
  font-size: 14px;
}
.supporting strong {
  margin-right: auto;
}
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 32px 0;
}
.flow button {
  width: 100%;
  min-height: 76px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 8px;
  color: var(--navy);
  font-size: 14px;
}
.flow button:hover,
.flow button[aria-pressed="true"] {
  color: var(--white);
  background: var(--navy);
  border-color: var(--navy);
}
.flow-explanation {
  min-height: 54px;
  color: var(--muted);
}
.social-layout {
  grid-template-columns: 1.4fr 1fr;
}
.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.instagram-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.highlight-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.highlight-list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 80px;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
}
.highlight-icon {
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.ai-network {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.ai-network span {
  padding: 16px 8px;
  text-align: center;
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 14px;
}
.chatbox {
  padding: 24px;
  border: 1px solid var(--light-line);
  border-radius: var(--radius);
}
.chatbox p {
  font-size: 14px;
}
.chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-options button {
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--gold);
  padding: 9px 12px;
  border-radius: var(--radius);
  min-height: 44px;
  font-size: 13px;
}
.chat-reply {
  margin: 20px 0;
  min-height: 74px;
}
.disclaimer {
  font-size: 12px !important;
}
.automation {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin-top: 32px;
}
.automation li {
  padding: 20px 10px;
  border-top: 2px solid var(--gold);
  font-size: 14px;
}
.automation small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-grid {
  grid-template-columns: 0.8fr 1.2fr;
}
.contact-details {
  padding: 0;
  list-style: none;
}
.contact-details li {
  margin-bottom: 16px;
  overflow-wrap: anywhere;
}
.contact-details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field {
  min-width: 0;
}
.field.full,
.contact-form > .btn,
.contact-form > .form-note {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}
textarea {
  resize: vertical;
}
.form-note {
  font-size: 12px;
  color: var(--muted);
}
.trap,
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.notice {
  padding: 18px;
  border-left: 3px solid var(--gold);
  background: var(--paper);
  margin-bottom: 24px;
}
.notice.error {
  border-color: var(--error);
}
.final-cta {
  text-align: center;
}
.final-cta p {
  margin-inline: auto;
}
.final-cta .actions {
  justify-content: center;
}
.site-footer {
  padding: 40px 0 100px;
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid var(--light-line);
  font-size: 14px;
}
.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
}
.site-footer ul {
  list-style: none;
  padding: 0;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer p {
  color: var(--light);
  overflow-wrap: anywhere;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--light-line);
  font-size: 12px;
}
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: var(--gold);
}
.content {
  max-width: 800px;
  margin: auto;
  overflow-wrap: anywhere;
}
.content h1 {
  font-size: 44px;
}
.content h2 {
  font-size: 30px;
}
.content figure {
  max-width: 100%;
  margin-inline: 0;
}
.alignwide,
.alignfull,
.wp-caption {
  max-width: 100%;
}
.wp-caption-text,
.gallery-caption {
  font-size: 13px;
}
.sticky {
  border-top: 2px solid var(--gold);
}
.bypostauthor {
  font-weight: 600;
}
.post-item {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.admin-bar .site-header {
  top: 32px;
}
.reveal {
  opacity: 1;
}
.motion-ready .reveal {
  transition:
    transform 0.5s,
    opacity 0.5s;
}
.motion-ready .reveal.pending {
  opacity: 0;
  transform: translateY(18px);
}
@keyframes signal {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 999px) {
  h1 {
    font-size: 52px;
  }
  h2 {
    font-size: 34px;
  }
  .nav-list {
    gap: 14px;
  }
  .header-inner > .btn {
    display: none;
  }
  .automation {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
  .section {
    padding: 56px 0;
  }
  .menu-toggle {
    display: flex;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .site-nav {
    width: 100%;
  }
  .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .nav-list a {
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid var(--light-line);
  }
  .js .site-nav {
    display: none;
  }
  .js .site-nav.is-open {
    display: block;
  }
  .three,
  .two,
  .social-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 36px 0 56px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .ecosystem {
    width: 180px;
  }
  .ecosystem img {
    width: 96px;
    height: 96px;
  }
  .ecosystem:after {
    animation: none;
  }
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .automation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .instagram-panel {
    padding: 22px;
  }
  .motion-ready .reveal {
    transition: none;
  }
  .motion-ready .reveal.pending {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 480px) {
  .container {
    width: calc(100% - 36px);
  }
  h1,
  .hero h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 29px;
  }
  h3 {
    font-size: 21px;
  }
  .hero .actions,
  .final-cta .actions {
    flex-direction: column;
  }
  .actions .btn {
    width: 100%;
  }
  .brand img {
    width: 54px;
    height: 54px;
  }
  .brand-text {
    font-size: 12px;
  }
  .contact-form {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .highlight-icon {
    width: 44px;
    height: 44px;
  }
  .ai-network {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chat-options button {
    flex: 1 1 120px;
  }
  .chatbox {
    padding: 20px;
  }
  .content h1 {
    font-size: 32px;
  }
  .whatsapp-float {
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .motion-ready .reveal.pending {
    opacity: 1;
    transform: none;
  }
}
