/*
Theme Name: SMARTmail Support
Theme URI: https://smartmail.smartdesignworks.co.za/
Author: Smart Design Works
Author URI: https://smartdesignworks.co.za/
Description: A focused public website and login shell for the SMARTmail identity platform. Designed to coexist safely with the SMARTmail Organisation Platform plugin.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: smartmail-support
*/

:root {
  --smt-navy: #071821;
  --smt-navy-soft: #10252d;
  --smt-teal: #0a98ac;
  --smt-cyan: #31acd9;
  --smt-blue: #0986c0;
  --smt-ink: #14262d;
  --smt-muted: #65777e;
  --smt-line: #dce7ea;
  --smt-surface: #f4f8f9;
  --smt-white: #ffffff;
  --smt-success: #0d8a5f;
  --smt-radius: 20px;
  --smt-shadow: 0 24px 70px rgba(7, 24, 33, 0.12);
}

.smartmail-site,
.smartmail-site * {
  box-sizing: border-box;
}

.smartmail-site {
  margin: 0;
  background: var(--smt-white);
  color: var(--smt-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.smartmail-site a {
  color: var(--smt-blue);
}

.smartmail-site button,
.smartmail-site input,
.smartmail-site textarea,
.smartmail-site select {
  font: inherit;
}

.smt-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.smt-skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--smt-white);
  color: var(--smt-navy);
  font-weight: 800;
}

.smt-skip-link:focus {
  transform: translateY(0);
}

.smt-site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(220, 231, 234, 0.84);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.admin-bar .smt-site-header {
  top: 32px;
}

.smt-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.smt-brand,
.smt-brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--smt-navy);
  text-decoration: none;
}

.smt-brand .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.smt-brand .custom-logo {
  width: auto;
  max-width: 220px;
  max-height: 48px;
}

.smt-brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--smt-teal), var(--smt-cyan));
  box-shadow: 0 10px 28px rgba(10, 152, 172, 0.25);
  color: var(--smt-white);
  font-size: 21px;
  font-weight: 900;
}

.smt-brand-copy strong,
.smt-brand-copy small {
  display: block;
}

.smt-brand-copy strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.smt-brand-copy small {
  color: #7b8e96;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.smt-nav-wrap,
.smt-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.smt-nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.smt-nav a {
  color: #42565e;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.smt-nav a:hover,
.smt-nav a:focus-visible {
  color: var(--smt-teal);
}

.smt-header-action,
.smt-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border: 0;
  border-radius: 11px;
  background: var(--smt-teal);
  box-shadow: 0 10px 26px rgba(10, 152, 172, 0.2);
  color: var(--smt-white) !important;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.smt-header-action:hover,
.smt-button:hover {
  transform: translateY(-2px);
  background: #07899b;
  box-shadow: 0 14px 32px rgba(10, 152, 172, 0.25);
}

.smt-button-secondary {
  border: 1px solid #cad9dd;
  background: var(--smt-white);
  box-shadow: none;
  color: var(--smt-navy) !important;
}

.smt-button-secondary:hover {
  background: #f2f7f8;
  box-shadow: none;
}

.smt-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--smt-line);
  border-radius: 10px;
  background: var(--smt-white);
  cursor: pointer;
}

.smt-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--smt-navy);
}

.smt-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 76px;
  background:
    radial-gradient(circle at 86% 12%, rgba(49, 172, 217, 0.18), transparent 24%),
    radial-gradient(circle at 6% 74%, rgba(10, 152, 172, 0.1), transparent 27%),
    linear-gradient(180deg, #ffffff, #f5f9fa);
}

.smt-hero::before {
  position: absolute;
  top: 40px;
  right: -120px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(10, 152, 172, 0.12);
  border-radius: 50%;
  content: "";
}

.smt-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 0.85fr);
  align-items: center;
  gap: 72px;
}

.smt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--smt-teal);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.smt-eyebrow::before {
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--smt-cyan);
  content: "";
}

.smt-hero h1 {
  max-width: 760px;
  margin: 19px 0 22px;
  color: var(--smt-navy);
  font-size: clamp(47px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.smt-hero h1 em {
  color: var(--smt-teal);
  font-style: normal;
}

.smt-hero-copy > p {
  max-width: 640px;
  margin: 0;
  color: var(--smt-muted);
  font-size: 18px;
}

.smt-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 31px;
}

.smt-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 30px;
  color: #62747b;
  font-size: 12px;
  font-weight: 700;
}

.smt-trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.smt-trust-line i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #e5f7ef;
  color: var(--smt-success);
  font-size: 11px;
  font-style: normal;
}

.smt-product-shell {
  position: relative;
  padding: 15px;
  border: 1px solid #d8e6e9;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--smt-shadow);
}

.smt-product-window {
  overflow: hidden;
  min-height: 490px;
  border-radius: 19px;
  background: #f3f7f8;
}

.smt-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 15px;
  border-bottom: 1px solid #e0e9eb;
  background: var(--smt-white);
}

.smt-window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4dfe2;
}

.smt-app-frame {
  display: grid;
  grid-template-columns: 124px 1fr;
  min-height: 448px;
}

.smt-app-sidebar {
  padding: 21px 13px;
  background: var(--smt-navy);
  color: #a8bdc5;
}

.smt-mini-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 30px;
  color: var(--smt-white);
  font-size: 12px;
  font-weight: 850;
}

.smt-mini-logo b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--smt-teal);
}

.smt-app-sidebar span {
  display: block;
  margin: 8px 0;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 8px;
}

.smt-app-sidebar span:first-of-type {
  background: rgba(49, 172, 217, 0.16);
  color: var(--smt-white);
}

.smt-app-main {
  padding: 25px;
}

.smt-app-main > small {
  color: var(--smt-teal);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.smt-app-main h2 {
  margin: 3px 0 17px;
  color: var(--smt-navy);
  font-size: 23px;
}

.smt-app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.smt-app-stat,
.smt-signature-card {
  border: 1px solid #dce7ea;
  border-radius: 11px;
  background: var(--smt-white);
  box-shadow: 0 7px 18px rgba(7, 24, 33, 0.04);
}

.smt-app-stat {
  padding: 11px;
}

.smt-app-stat small,
.smt-app-stat strong {
  display: block;
}

.smt-app-stat small {
  color: #88989e;
  font-size: 7px;
  text-transform: uppercase;
}

.smt-app-stat strong {
  margin-top: 4px;
  color: var(--smt-navy);
  font-size: 16px;
}

.smt-signature-card {
  margin-top: 12px;
  padding: 17px;
}

.smt-mail-line {
  width: 66%;
  height: 5px;
  margin-bottom: 7px;
  border-radius: 4px;
  background: #edf2f3;
}

.smt-mail-line.short {
  width: 42%;
}

.smt-signature-preview {
  margin-top: 23px;
  padding-top: 15px;
  border-top: 3px solid var(--smt-teal);
}

.smt-signature-preview b,
.smt-signature-preview span {
  display: block;
}

.smt-signature-preview b {
  color: var(--smt-navy);
  font-size: 16px;
}

.smt-signature-preview span {
  color: #75868d;
  font-size: 9px;
}

.smt-campaign-preview {
  display: grid;
  min-height: 82px;
  margin-top: 16px;
  padding: 14px 17px;
  align-content: center;
  border-radius: 10px;
  background: linear-gradient(110deg, var(--smt-navy), #173f4b);
  color: var(--smt-white);
}

.smt-campaign-preview small,
.smt-campaign-preview strong {
  display: block;
}

.smt-campaign-preview small {
  color: var(--smt-cyan);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.smt-campaign-preview strong {
  margin-top: 3px;
  font-size: 13px;
}

.smt-proof-strip {
  border-top: 1px solid var(--smt-line);
  border-bottom: 1px solid var(--smt-line);
  background: var(--smt-white);
}

.smt-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.smt-proof-item {
  padding: 27px 30px;
  border-right: 1px solid var(--smt-line);
}

.smt-proof-item:last-child {
  border-right: 0;
}

.smt-proof-item strong,
.smt-proof-item span {
  display: block;
}

.smt-proof-item strong {
  color: var(--smt-navy);
  font-size: 18px;
}

.smt-proof-item span {
  margin-top: 2px;
  color: var(--smt-muted);
  font-size: 12px;
}

.smt-section {
  padding: 94px 0;
}

.smt-section-soft {
  background: var(--smt-surface);
}

.smt-section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.smt-section-heading h2 {
  margin: 12px 0 13px;
  color: var(--smt-navy);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.smt-section-heading p {
  margin: 0;
  color: var(--smt-muted);
  font-size: 17px;
}

.smt-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.smt-feature-card {
  min-height: 275px;
  padding: 27px;
  border: 1px solid var(--smt-line);
  border-radius: var(--smt-radius);
  background: var(--smt-white);
  box-shadow: 0 13px 38px rgba(7, 24, 33, 0.045);
}

.smt-feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: #e9f7f9;
  color: var(--smt-teal);
  font-size: 18px;
  font-weight: 900;
}

.smt-feature-card h3 {
  margin: 25px 0 9px;
  color: var(--smt-navy);
  font-size: 21px;
  line-height: 1.2;
}

.smt-feature-card p {
  margin: 0;
  color: var(--smt-muted);
  font-size: 14px;
}

.smt-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  counter-reset: smt-flow;
}

.smt-flow-step {
  position: relative;
  padding: 27px 24px;
  border-top: 4px solid var(--smt-teal);
  border-radius: 15px;
  background: var(--smt-navy-soft);
  color: var(--smt-white);
  counter-increment: smt-flow;
}

.smt-flow-step::before {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  margin-bottom: 31px;
  border-radius: 9px;
  background: rgba(49, 172, 217, 0.15);
  color: var(--smt-cyan);
  content: counter(smt-flow, decimal-leading-zero);
  font-size: 10px;
  font-weight: 900;
}

.smt-flow-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.smt-flow-step p {
  margin: 0;
  color: #b8c8cd;
  font-size: 12px;
}

.smt-security-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  padding: 54px;
  border-radius: 28px;
  background: linear-gradient(125deg, var(--smt-navy), #12333e);
  color: var(--smt-white);
  box-shadow: var(--smt-shadow);
}

.smt-security-panel h2 {
  margin: 13px 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.smt-security-panel > div > p {
  margin: 0;
  color: #b9cbd1;
}

.smt-security-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 11px;
}

.smt-security-list div {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
}

.smt-security-list strong,
.smt-security-list span {
  display: block;
}

.smt-security-list strong {
  font-size: 13px;
}

.smt-security-list span {
  margin-top: 4px;
  color: #aebfc5;
  font-size: 11px;
}

.smt-cta {
  padding: 86px 0;
}

.smt-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 48px 52px;
  border: 1px solid #cfe4e8;
  border-radius: 25px;
  background: linear-gradient(120deg, #effbfc, #ffffff 70%);
}

.smt-cta-panel h2 {
  margin: 4px 0 7px;
  color: var(--smt-navy);
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.smt-cta-panel p {
  max-width: 660px;
  margin: 0;
  color: var(--smt-muted);
}

.smt-site-footer {
  padding: 52px 0 26px;
  background: var(--smt-navy);
  color: #b7c8ce;
}

.smt-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 50px;
  padding-bottom: 42px;
}

.smt-footer-brand {
  color: var(--smt-white);
}

.smt-footer-brand p {
  max-width: 440px;
  margin: 17px 0 0;
  color: #9eb2b9;
  font-size: 13px;
}

.smt-footer-column strong {
  display: block;
  margin-bottom: 13px;
  color: var(--smt-white);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.smt-footer-column a {
  display: block;
  margin: 8px 0;
  color: #a9bdc4;
  font-size: 12px;
  text-decoration: none;
}

.smt-footer-column a:hover {
  color: var(--smt-cyan);
}

.smt-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #78919a;
  font-size: 11px;
}

.smt-content-shell {
  min-height: 62vh;
  padding: 76px 0 96px;
  background: linear-gradient(180deg, #f4f8f9, #ffffff 340px);
}

.smt-content-header {
  max-width: 780px;
  margin-bottom: 32px;
}

.smt-content-header h1 {
  margin: 10px 0 13px;
  color: var(--smt-navy);
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.smt-content-card {
  max-width: 900px;
  padding: clamp(25px, 5vw, 52px);
  border: 1px solid var(--smt-line);
  border-radius: 22px;
  background: var(--smt-white);
  box-shadow: 0 20px 55px rgba(7, 24, 33, 0.07);
}

.smt-content-card > *:first-child {
  margin-top: 0;
}

.smt-content-card > *:last-child {
  margin-bottom: 0;
}

.smt-content-card h2,
.smt-content-card h3 {
  color: var(--smt-navy);
  line-height: 1.2;
}

.smt-post-list {
  display: grid;
  gap: 16px;
}

.smt-post-card {
  padding: 25px;
  border: 1px solid var(--smt-line);
  border-radius: 16px;
  background: var(--smt-white);
}

.smt-post-card h2 {
  margin: 0 0 5px;
}

.smt-post-card h2 a {
  color: var(--smt-navy);
  text-decoration: none;
}

.smt-empty-state {
  max-width: 650px;
  padding: 42px;
  border: 1px solid var(--smt-line);
  border-radius: 20px;
  background: var(--smt-white);
}

@media (max-width: 980px) {
  .smt-hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .smt-product-shell {
    max-width: 650px;
  }

  .smt-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .smt-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .smt-security-panel {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 760px) {
  .admin-bar .smt-site-header {
    top: 46px;
  }

  .smt-header-inner {
    min-height: 70px;
  }

  .smt-menu-toggle {
    display: block;
  }

  .smt-nav-wrap {
    position: absolute;
    top: 70px;
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--smt-line);
    border-radius: 15px;
    background: var(--smt-white);
    box-shadow: 0 18px 45px rgba(7, 24, 33, 0.15);
  }

  .smt-nav-wrap.is-open {
    display: grid;
  }

  .smt-nav,
  .smt-nav ul {
    display: grid;
    align-items: stretch;
    gap: 4px;
  }

  .smt-nav a {
    display: block;
    padding: 10px;
  }

  .smt-header-action {
    width: 100%;
  }

  .smt-hero {
    padding: 72px 0 58px;
  }

  .smt-hero h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .smt-proof-grid,
  .smt-feature-grid,
  .smt-security-list,
  .smt-footer-grid {
    grid-template-columns: 1fr;
  }

  .smt-proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--smt-line);
  }

  .smt-proof-item:last-child {
    border-bottom: 0;
  }

  .smt-section {
    padding: 72px 0;
  }

  .smt-security-panel,
  .smt-cta-panel {
    padding: 32px 25px;
  }

  .smt-cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .smt-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .smt-container {
    width: min(1180px, calc(100% - 28px));
  }

  .smt-brand-copy small {
    display: none;
  }

  .smt-product-shell {
    padding: 9px;
    border-radius: 20px;
  }

  .smt-product-window {
    min-height: 430px;
  }

  .smt-app-frame {
    grid-template-columns: 82px 1fr;
    min-height: 388px;
  }

  .smt-app-sidebar {
    padding: 16px 8px;
  }

  .smt-mini-logo {
    font-size: 0;
  }

  .smt-app-main {
    padding: 18px 13px;
  }

  .smt-app-stats {
    grid-template-columns: 1fr 1fr;
  }

  .smt-app-stat:last-child {
    grid-column: 1 / -1;
  }

  .smt-flow {
    grid-template-columns: 1fr;
  }

  .smt-flow-step::before {
    margin-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smartmail-site *,
  .smartmail-site *::before,
  .smartmail-site *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
