:root {
  --octopus-orange: #ff5500;
  --octopus-orange-dark: #d94700;
  --octopus-ink: #11171b;
  --octopus-ink-soft: #1a2329;
  --octopus-paper: #f4f4f1;
  --octopus-white: #ffffff;
  --octopus-muted: #626c72;
  --octopus-line: #dfe3e4;
  --octopus-radius: 24px;
  --octopus-shadow: 0 24px 70px rgba(17, 23, 27, .12);
  --octopus-max: 1180px;
}

html { scroll-padding-top: 100px; }
body {
  font-family: Inter, Ubuntu, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -.035em; }
.container, .shell { width: min(calc(100% - 40px), var(--octopus-max)); margin-inline: auto; }

/* Shared fixed navigation */
.site-header,
.hero > .nav {
  z-index: 1000;
  top: 0;
  color: var(--octopus-white);
  background: rgba(17, 23, 27, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header { position: fixed; right: 0; left: 0; }
.hero > .nav {
  position: fixed;
  left: 50%;
  width: min(calc(100% - 40px), var(--octopus-max));
  min-height: 82px;
  transform: translateX(-50%);
  box-shadow: 0 8px 30px rgba(0,0,0,.12), 0 0 0 100vmax rgba(17,23,27,.9);
  clip-path: inset(0 -100vmax);
}
.header-inner,
.hero > .nav {
  min-height: 82px;
  align-items: center;
}
.brand,
.nav-brand,
.footer-brand > div,
footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img,
.nav-brand img,
.footer-brand img,
footer .brand img {
  width: 210px;
  max-width: min(52vw, 210px);
  height: auto;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.18));
}
.brand > span,
.nav-brand > span,
.footer-brand > div > span,
footer .brand > span,
.brand-product {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  color: #fff;
  background: var(--octopus-orange);
  border-radius: 7px;
  font-size: .69rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-nav,
.nav-links,
.nav-menu {
  align-items: center;
  gap: 28px;
}
.site-nav a,
.nav-links a,
.nav-menu a {
  color: #e8ebec;
  font-size: .92rem;
  font-weight: 700;
}
.site-nav a:hover,
.nav-links a:hover,
.nav-menu a:hover { color: #fff; }
.nav-contact,
.nav-cta,
.nav-order {
  min-height: 42px;
  padding: 10px 18px;
  color: #fff !important;
  background: var(--octopus-orange) !important;
  border: 0;
  border-radius: 999px !important;
  font-weight: 800;
}
.nav-contact:hover,
.nav-cta:hover,
.nav-order:hover { background: var(--octopus-orange-dark) !important; }

/* Shared controls and content surfaces */
.button,
.octopus-button {
  min-height: 52px;
  padding: 13px 24px;
  border-radius: 12px !important;
  font-weight: 850;
  line-height: 1.15;
}
.button-primary,
.octopus-button:not(.octopus-button-ghost) {
  color: #fff;
  background: var(--octopus-orange);
  box-shadow: 0 12px 28px rgba(255,85,0,.25);
}
.button-primary:hover,
.octopus-button:not(.octopus-button-ghost):hover { background: var(--octopus-orange-dark); }
.plan-card,
.price-card,
.service-card,
.feature-card,
.bundle-card,
.use-cards article,
.feature-grid article,
.benefit-grid article,
.process-grid article,
.process-grid li,
.faq-list details,
.contact-card,
.custom-enquiry,
.ai-console,
.connection-card {
  border-radius: var(--octopus-radius);
}
.plan-card,
.price-card,
.service-card,
.feature-card,
.bundle-card,
.use-cards article,
.feature-grid article,
.benefit-grid article,
.process-grid article,
.process-grid li {
  border-color: var(--octopus-line);
  box-shadow: 0 10px 32px rgba(17,23,27,.05);
}
.eyebrow, .kicker { color: var(--octopus-orange); font-weight: 850; letter-spacing: .14em; }
input, select, textarea { border-radius: 10px; }
dialog { border-radius: 24px; box-shadow: 0 35px 100px rgba(0,0,0,.3); }

/* Matching, readable footer */
.site-footer,
body > footer {
  color: #dce1e3;
  background: var(--octopus-ink);
}
.footer-grid { align-items: start; }
.site-footer h2,
.site-footer h3,
body > footer h2,
body > footer h3 { color: #fff; }
.site-footer a,
body > footer a { color: #dce1e3; }
.site-footer a:hover,
body > footer a:hover { color: #ff8a50; }
.footer-bottom {
  border-top-color: rgba(255,255,255,.12) !important;
  color: #9da7ac;
}

/* Joomla main site */
.octopus-site .site-header {
  position: sticky;
  right: auto;
  left: auto;
  min-height: 0;
}
.octopus-site .header-main { min-height: 92px; padding-top: 16px; }
.octopus-site .brand { display: inline-flex; align-items: center; gap: 10px; }
.octopus-site .brand img {
  width: 210px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.octopus-site .brand-product { flex: 0 0 auto; }
.octopus-site .navigation-column { padding-top: 14px; }
.octopus-site .primary-navigation > .mod-menu > li > a,
.octopus-site .primary-navigation a { font-weight: 700; }
.octopus-site .cabinet-link {
  border-radius: 999px;
  border-color: var(--octopus-orange);
  background: var(--octopus-orange);
}
.octopus-site .content-grid { display: block; }
.octopus-site .main-content { width: 100%; max-width: none; min-width: 0; }
.octopus-site .footer-modules {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(260px, 1.1fr) minmax(260px, .9fr);
  gap: 48px;
}
.octopus-site .footer-brand-block p { max-width: 330px; color: #aeb7bb; }
.octopus-site .footer-menu-links { display: grid; grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 10px 20px; }
.octopus-site .footer-menu-links a { color: #dce1e3; font-weight: 700; }
.octopus-site .footer-contact-links { display: grid; gap: 8px; }
.octopus-site .equipment-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
  padding: 34px;
  margin: 42px 0 10px;
  background: #fff;
  border: 1px solid var(--octopus-line);
  border-radius: var(--octopus-radius);
  box-shadow: 0 16px 44px rgba(17,23,27,.07);
}
.octopus-site .equipment-inline__heading { grid-column: 1 / -1; }
.octopus-site .equipment-inline__heading h2 { margin-bottom: 8px; }
.octopus-site .equipment-inline__heading p { margin: 0; color: var(--octopus-muted); }
.octopus-site .equipment-inline figure { margin: 0; overflow: hidden; background: var(--octopus-paper); border-radius: 18px; }
.octopus-site .equipment-inline img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 18px; background: #fff; }
.octopus-site .equipment-inline figcaption { padding: 14px 16px; color: #3c454a; font-size: .9rem; font-weight: 700; }
.octopus-site .equipment-inline video { width: 100%; min-height: 220px; object-fit: cover; border-radius: 18px; }

@media (max-width: 980px) {
  .site-nav, .nav-links, .nav-menu { gap: 16px; }
  .brand img, .nav-brand img { width: 175px; }
  .brand > span, .nav-brand > span { font-size: .6rem; }
  .octopus-site .footer-modules { grid-template-columns: 1fr 1fr; }
  .octopus-site .footer-brand-block { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .hero > .nav { min-height: 72px; }
  .hero > .nav .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .hero > .nav .nav-links,
  .hero > .nav .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 18px;
    background: rgba(17,23,27,.98);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 24px 55px rgba(0,0,0,.35);
  }
  .hero > .nav .nav-links.open,
  .hero > .nav .nav-menu.open { display: grid; }
  .hero > .nav .nav-links a,
  .hero > .nav .nav-menu a,
  .hero > .nav .nav-cta { width: 100%; justify-content: flex-start; }
  .octopus-site .header-main { min-height: 82px; }
  .octopus-site .brand img { width: 165px; }
  .octopus-site .footer-modules { grid-template-columns: 1fr; gap: 30px; }
  .octopus-site .footer-brand-block { grid-column: auto; }
}

@media (max-width: 560px) {
  .container, .shell { width: min(calc(100% - 28px), var(--octopus-max)); }
  .brand img, .nav-brand img, .octopus-site .brand img { width: 142px; }
  .brand > span, .nav-brand > span, .brand-product { max-width: 120px; white-space: normal; text-align: center; }
  .octopus-site .equipment-inline { grid-template-columns: 1fr; padding: 20px; }
  .octopus-site .footer-menu-links { grid-template-columns: 1fr; }
}
/* WhatsApp QR block shared across Octopus site footers. */
.footer-qr,
.footer-brand-qr {
  display: grid !important;
  width: 166px !important;
  max-width: 100%;
  min-width: 0;
  grid-column: auto !important;
  grid-template-columns: 166px !important;
  grid-auto-rows: max-content;
  justify-content: start;
  justify-items: center;
  align-items: start !important;
  align-self: start;
  justify-self: start;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
}
.footer-qr h2,
.footer-qr h3,
.footer-brand-qr h2,
.footer-brand-qr h3 {
  width: 166px !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  color: #fff !important;
  font: 700 13px/1.2 Ubuntu, Arial, sans-serif !important;
  letter-spacing: .1em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
.footer-qr a,
.footer-brand-qr a {
  display: block !important;
  width: 166px !important;
  height: 166px !important;
  margin: 0 !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: none !important;
  line-height: 0 !important;
}
.footer-qr img,
.footer-brand-qr img {
  display: block !important;
  width: 150px !important;
  max-width: none !important;
  height: 150px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: #fff !important;
  object-fit: contain;
}
.footer-qr p,
.footer-brand-qr p {
  width: 166px !important;
  max-width: 166px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  color: #8f999e !important;
  font: 400 13px/1.45 Ubuntu, Arial, sans-serif !important;
  text-align: center !important;
}
.site-footer .footer-grid,
.site-footer .footer-inner,
.octopus-site .footer-modules {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
@media (max-width: 780px) {
  .site-footer .footer-grid,
  .site-footer .footer-inner,
  .octopus-site .footer-modules { grid-template-columns: 1fr; }
}
