/* ==============================================
   DIGITALLY ENRICH — Global Stylesheet
   Canberra Digital Agency for Small Businesses
   ============================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colours */
  --navy: #0B1F3A;
  --teal: #1CA7A6;
  --teal-hover: #158F8D;
  --soft-blue: #3B82F6;

  /* Backgrounds */
  --white: #FFFFFF;
  --light-grey: #F5F7FA;

  /* Text */
  --text-primary: #2B2B2B;
  --text-secondary: #6B7280;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing (8px system) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-10: 80px;
  --sp-12: 96px;

  /* Misc */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 2px 16px rgba(11,31,58,.07);
  --shadow-card-hover: 0 8px 32px rgba(11,31,58,.12);
  --transition: .3s ease;
  --max-width: 1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-hover); }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: var(--sp-3); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); margin-bottom: var(--sp-3); font-weight: 600; line-height: 1.3; }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: var(--sp-2); font-weight: 600; }
h4 { font-size: 1.125rem; margin-bottom: var(--sp-1); font-weight: 600; }
p { margin-bottom: var(--sp-2); }
.text-secondary { color: var(--text-secondary); }
.text-center { text-align: center; }
.text-white { color: var(--white); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}
.section {
  padding: var(--sp-10) 0;
}
.section--grey {
  background: var(--light-grey);
}
.section--navy {
  background: var(--navy);
  color: var(--white);
}
.section--navy h2,
.section--navy h3,
.section--navy h4 {
  color: var(--white);
}

/* ---------- Grid ---------- */
.grid {
  display: grid;
  gap: var(--sp-4);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--teal);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--teal-hover);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(28,167,166,.35);
}

.btn--secondary {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn--secondary:hover {
  background: var(--teal);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}
.btn--white:hover {
  background: var(--light-grey);
  color: var(--navy);
}

.btn-group {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(11,31,58,.06);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(11,31,58,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.02em;
}
.logo span { color: var(--teal); }

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle { cursor: pointer; display: flex; align-items: center; gap: 4px; }
.dropdown-toggle svg { transition: transform var(--transition); width: 12px; }
.dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(11,31,58,.12);
  min-width: 260px;
  padding: var(--sp-1) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  z-index: 100;
}
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: .88rem;
  color: var(--text-primary);
}
.dropdown-menu a:hover {
  background: var(--light-grey);
  color: var(--teal);
}
.dropdown-menu a::after { display: none; }

.header-cta { margin-left: var(--sp-2); }

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 6px auto;
  transition: all var(--transition);
  border-radius: 2px;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Hidden by default on all screens */
.mobile-nav {
  display: none;
}

@media (max-width: 992px) {
  .menu-toggle { display: block; }
  .nav-links, .header-cta {
    display: none;
  }
  .mobile-nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--sp-3);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }
  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
  }
  .mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
  }
  .mobile-nav a:hover { color: var(--teal); }
  .mobile-nav .btn { margin-top: var(--sp-2); }

  /* Mobile sub-menu */
  .mobile-sub-toggle { cursor: pointer; }
  .mobile-sub-menu {
    display: none;
    padding-left: var(--sp-3);
    flex-direction: column;
    gap: var(--sp-2);
    margin-top: var(--sp-1);
  }
  .mobile-sub-menu.open { display: flex; }
  .mobile-sub-menu a { font-size: 1rem; font-weight: 500; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--sp-12) 0;
  background: linear-gradient(135deg, var(--light-grey) 0%, var(--white) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(28,167,166,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -.02em;
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
  max-width: 520px;
}
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light-grey);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .hero { padding: var(--sp-8) 0; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-image { max-width: 500px; }
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}
.service-card .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(28,167,166,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-2);
  color: var(--teal);
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 a {
  color: var(--navy);
}
.service-card h3 a:hover { color: var(--teal); }
.service-card p {
  color: var(--text-secondary);
  font-size: .95rem;
  flex: 1;
}
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: .9rem;
  margin-top: var(--sp-2);
  color: var(--teal);
}
.service-card .card-link svg { width: 16px; transition: transform var(--transition); }
.service-card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Why Choose Us / Feature Points ---------- */
.feature-point {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.feature-point .check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(28,167,166,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: var(--teal);
}
.feature-point .check svg { width: 14px; height: 14px; }

/* ---------- Process Steps ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  counter-reset: step;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto var(--sp-2);
}
.process-step h4 { margin-bottom: var(--sp-1); }
.process-step p { font-size: .92rem; color: var(--text-secondary); }

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ---------- Channels / Platforms ---------- */
.platform-icons {
  display: flex;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}
.platform-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 500;
}
.platform-icon svg { width: 36px; height: 36px; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-4);
  box-shadow: var(--shadow-card);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--teal);
  opacity: .2;
  position: absolute;
  top: 12px;
  left: 20px;
  font-family: Georgia, serif;
}
.testimonial-card p {
  font-style: italic;
  font-size: .95rem;
  position: relative;
  z-index: 1;
  padding-top: var(--sp-3);
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
}
.cta-banner h2 { margin-bottom: var(--sp-2); }
.cta-banner p {
  max-width: 600px;
  margin: 0 auto var(--sp-4);
  opacity: .9;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: var(--sp-8) 0;
  background: linear-gradient(135deg, var(--navy) 0%, #132d52 100%);
  color: var(--white);
  text-align: center;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-2);
}
.page-hero p {
  max-width: 640px;
  margin: 0 auto;
  opacity: .85;
  font-size: 1.1rem;
}

/* ---------- Service Detail Page ---------- */
.service-detail { }
.service-detail .includes-list,
.service-detail .benefits-list,
.service-detail .who-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .98rem;
}
.list-item .bullet {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- Two-Column Layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}
.two-col .image-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light-grey);
}
.two-col .image-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border-bottom: 1px solid rgba(11,31,58,.08);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  color: var(--teal);
}
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: var(--sp-3);
}
.faq-answer p {
  color: var(--text-secondary);
  font-size: .95rem;
}

/* ---------- Contact Form ---------- */
.contact-form {
  max-width: 640px;
}
.form-group {
  margin-bottom: var(--sp-3);
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(11,31,58,.15);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(28,167,166,.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: var(--sp-8) 0 var(--sp-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
}
.footer-brand .logo { color: var(--white); margin-bottom: var(--sp-2); display: inline-block; }
.footer-brand p { font-size: .9rem; max-width: 300px; }

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  margin-bottom: var(--sp-2);
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  padding: 3px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
  font-size: .82rem;
}
.footer-legal a {
  color: rgba(255,255,255,.5);
  margin-left: var(--sp-3);
}
.footer-legal a:hover { color: var(--teal); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Cookie Consent ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  color: var(--white);
  padding: var(--sp-3) var(--sp-4);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: .88rem; margin: 0; flex: 1; min-width: 200px; }
.cookie-banner p a { color: var(--teal); text-decoration: underline; }
.cookie-btns { display: flex; gap: var(--sp-1); flex-shrink: 0; }
.cookie-btns button {
  font-family: var(--font-heading);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-accept { background: var(--teal); color: var(--white); }
.cookie-accept:hover { background: var(--teal-hover); }
.cookie-reject { background: rgba(255,255,255,.15); color: var(--white); }
.cookie-reject:hover { background: rgba(255,255,255,.25); }

/* ---------- Scroll Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Legal Pages ---------- */
.legal-content h2 { margin-top: var(--sp-5); }
.legal-content h3 { margin-top: var(--sp-4); }
.legal-content ul {
  padding-left: var(--sp-3);
  margin-bottom: var(--sp-2);
}
.legal-content ul li {
  position: relative;
  padding-left: var(--sp-3);
  margin-bottom: var(--sp-1);
  color: var(--text-secondary);
}
.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ---------- 404 ---------- */
.page-404 {
  text-align: center;
  padding: var(--sp-12) 0;
}
.page-404 h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--teal);
  opacity: .3;
  margin-bottom: 0;
}
.page-404 h2 { margin-bottom: var(--sp-2); }

/* ---------- Blog Placeholder ---------- */
.blog-placeholder {
  text-align: center;
  padding: var(--sp-10) 0;
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }

/* ---------- Scrolling Banner ---------- */
.scrolling-banner {
  background: var(--navy);
  overflow: hidden;
  padding: 14px 0;
}
.scrolling-track {
  display: flex;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}
.scrolling-track span {
  white-space: nowrap;
  color: rgba(255,255,255,.5);
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0 var(--sp-5);
}
.scrolling-track span::after {
  content: '•';
  margin-left: var(--sp-5);
  color: var(--teal);
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Industries Grid ---------- */
.industry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-3) var(--sp-4);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.industry-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(28,167,166,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}
.industry-card .icon svg { width: 22px; height: 22px; }

/* ---------- Case Study Template ---------- */
.case-study-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.case-study-card .card-image {
  aspect-ratio: 16/9;
  background: var(--light-grey);
}
.case-study-card .card-body { padding: var(--sp-4); }
