/*
Theme Name: SecureBox HybridMail
Theme URI: https://365hybrid.ae
Description: SecureBox HybridMail child theme for Astra. Converted from React/Vite Lovable project.
Author: Austrix Technologies
Author URI: https://365hybrid.ae
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: securebox-hybridmail
Tags: business, corporate, email
*/

/* =============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   Matching original Tailwind/shadcn design
   ============================================= */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-primary-rgb: 37, 99, 235;
  --color-foreground: #0f172a;
  --color-muted: #f1f5f9;
  --color-muted-foreground: #64748b;
  --color-background: #ffffff;
  --color-border: #e2e8f0;
  --color-card: #ffffff;
  --color-accent: #f8fafc;
  --color-gradient-start: #1e40af;
  --color-gradient-end: #2563eb;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-elevated: 0 10px 25px rgba(0,0,0,0.1), 0 4px 10px rgba(0,0,0,0.06);
}

/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--color-foreground);
  background: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-foreground);
  margin-bottom: 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; color: var(--color-muted-foreground); }
p:last-child { margin-bottom: 0; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.sb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.sb-section { padding: 5rem 0; }
.sb-section--muted { background: var(--color-muted); }
.sb-section--dark { background: var(--color-foreground); }
.sb-text-center { text-align: center; }
.sb-max-2xl { max-width: 42rem; margin: 0 auto; }
.sb-max-3xl { max-width: 56rem; margin: 0 auto; }

/* Grid helpers */
.sb-grid { display: grid; gap: 1.5rem; }
.sb-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.sb-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sb-grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* Flex helpers */
.sb-flex { display: flex; }
.sb-flex-center { display: flex; align-items: center; justify-content: center; }
.sb-flex-between { display: flex; align-items: center; justify-content: space-between; }
.sb-gap-2 { gap: 0.5rem; }
.sb-gap-4 { gap: 1rem; }

/* =============================================
   ASTRA OVERRIDES — force full-width header area
   ============================================= */
.ast-container, .site-header .ast-container { max-width: 1200px !important; }
#masthead, .site-header { display: none !important; } /* We use custom header */
#colophon, .site-footer { display: none !important; }  /* We use custom footer */
.ast-breadcrumbs-wrapper, .ast-above-header-wrap,
.ast-below-header-wrap { display: none !important; }
.entry-header, .ast-single-post-order .entry-title { display: none; }
.site-content { padding: 0 !important; margin: 0 !important; }
.ast-container { padding: 0 !important; }
#primary, .content-area { padding: 0 !important; max-width: 100% !important; }
article.post, .hentry { margin: 0; }
.entry-content { margin: 0; padding: 0; }
.entry-content > * + * { margin-top: 0; }

/* =============================================
   CUSTOM HEADER
   ============================================= */
.sb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.sb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.sb-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-foreground);
}
.sb-logo svg { color: var(--color-primary); }
.sb-logo span.accent { color: var(--color-primary); }
.sb-nav { display: flex; align-items: center; gap: 1.5rem; }
.sb-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  transition: color 0.2s;
}
.sb-nav a:hover, .sb-nav a.active { color: var(--color-primary); font-weight: 600; }
.sb-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sb-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
}
.sb-phone:hover { color: var(--color-primary); }

/* Mobile nav toggle */
.sb-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--color-foreground);
}
.sb-mobile-menu {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
  padding: 1rem 0;
}
.sb-mobile-menu.open { display: block; }
.sb-mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 1.5rem;
}
.sb-mobile-menu nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted-foreground);
  border-bottom: 1px solid var(--color-border);
}
.sb-mobile-menu nav a:last-child { border-bottom: none; }
.sb-mobile-menu nav a:hover { color: var(--color-primary); }

@media (max-width: 768px) {
  .sb-nav, .sb-header__actions { display: none; }
  .sb-mobile-toggle { display: block; }
}

/* =============================================
   CUSTOM FOOTER
   ============================================= */
.sb-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-muted);
}
.sb-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: 3rem 0 2rem;
}
.sb-footer__brand p { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.75rem; }
.sb-footer__col h2 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; color: var(--color-foreground); }
.sb-footer__col ul { list-style: none; padding: 0; margin: 0; }
.sb-footer__col li { margin-bottom: 0.5rem; }
.sb-footer__col a { font-size: 0.875rem; color: var(--color-muted-foreground); }
.sb-footer__col a:hover { color: var(--color-primary); }
.sb-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}
.sb-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.sb-footer__disclaimer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  margin-top: 0;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
  line-height: 1.6;
}
.sb-footer__contact a { font-size: 0.875rem; color: var(--color-muted-foreground); }
.sb-footer__contact a:hover { color: var(--color-primary); }
.sb-footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  list-style: none;
}

/* =============================================
   BUTTONS
   ============================================= */
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.sb-btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.sb-btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}
.sb-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.sb-btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.sb-btn--white {
  background: #fff;
  color: var(--color-primary);
  border: none;
}
.sb-btn--white:hover { background: #f0f4ff; color: var(--color-primary-dark); }
.sb-btn--lg { padding: 0.875rem 1.75rem; font-size: 1rem; border-radius: var(--radius-lg); }
.sb-btn--xl { padding: 1rem 2rem; font-size: 1.05rem; border-radius: var(--radius-lg); }

/* =============================================
   CARDS
   ============================================= */
.sb-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}
.sb-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-3px);
}
.sb-card--popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb),0.15), var(--shadow-card);
}

/* =============================================
   BADGES / PILLS
   ============================================= */
.sb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(var(--color-primary-rgb), 0.1);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* =============================================
   ICON CIRCLES
   ============================================= */
.sb-icon-circle {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.sb-icon-circle--lg {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
}
.sb-icon-circle--lg svg { color: #fff; }
.sb-icon-circle svg { color: var(--color-primary); width: 1.25rem; height: 1.25rem; }
.sb-icon-circle--lg svg { width: 1.75rem; height: 1.75rem; }

/* =============================================
   HERO SECTION
   ============================================= */
.sb-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f8fafc 100%);
  overflow: hidden;
  padding: 5rem 0 4rem;
}
.sb-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}
.sb-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.sb-hero__content { max-width: 36rem; }
.sb-hero__headline {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: var(--color-foreground);
}
.sb-hero__headline .accent { color: var(--color-primary); }
.sb-hero__desc {
  font-size: 1.1rem;
  color: var(--color-muted-foreground);
  margin-bottom: 2rem;
}
.sb-hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.sb-hero__image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  aspect-ratio: 4/3;
}
.sb-hero__image img { width: 100%; height: 100%; object-fit: cover; }
.sb-hero__dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.sb-hero__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}
.sb-hero__dot.active { background: var(--color-primary); }

@media (max-width: 900px) {
  .sb-hero__inner { grid-template-columns: 1fr; }
  .sb-hero__image { display: none; }
  .sb-hero { min-height: auto; padding: 4rem 0 3rem; }
}

/* =============================================
   GRADIENT SECTION (CTA)
   ============================================= */
.sb-gradient-section {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}
.sb-gradient-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.1) 1px, transparent 0);
  background-size: 40px 40px;
}
.sb-gradient-section > * { position: relative; z-index: 1; }
.sb-gradient-section h2, .sb-gradient-section p { color: #fff; }
.sb-gradient-section p { color: rgba(255,255,255,0.9); }

/* =============================================
   STATS SECTION
   ============================================= */
.sb-stat-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
}
.sb-stat-card .number { font-size: 1.75rem; font-weight: 700; color: var(--color-foreground); }
.sb-stat-card .label { font-size: 0.875rem; color: var(--color-muted-foreground); }
.sb-stat-main {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 1.5rem;
}
.sb-stat-main .big-number { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; color: var(--color-primary); }

/* =============================================
   FLOW STEPS (How It Works)
   ============================================= */
.sb-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  position: relative;
}
.sb-step {
  background: var(--color-background);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.sb-step h3 { font-size: 1rem; font-weight: 600; margin: 0.75rem 0 0.4rem; }
.sb-step p { font-size: 0.85rem; color: var(--color-muted-foreground); margin: 0; }

/* =============================================
   PRICING CARDS
   ============================================= */
.sb-pricing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  background: var(--color-background);
  position: relative;
}
.sb-pricing-card--popular {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
}
.sb-popular-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.sb-pricing-icon {
  width: 2.5rem; height: 2.5rem;
  background: var(--color-primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.sb-pricing-icon svg { color: var(--color-primary); width: 1.25rem; height: 1.25rem; }
.sb-pricing-price { font-size: 1.75rem; font-weight: 800; color: var(--color-foreground); }
.sb-pricing-unit { font-size: 0.8rem; color: var(--color-muted-foreground); }
.sb-pricing-desc { font-size: 0.875rem; color: var(--color-muted-foreground); margin: 0.75rem 0 1.25rem; }
.sb-pricing-features { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.sb-pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: var(--color-foreground);
  border-bottom: 1px solid var(--color-border);
}
.sb-pricing-features li:last-child { border-bottom: none; }
.sb-check { color: var(--color-primary); flex-shrink: 0; }

/* =============================================
   FORM STYLES
   ============================================= */
.sb-form-group { margin-bottom: 1.25rem; }
.sb-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--color-foreground);
}
.sb-input, .sb-textarea, .sb-select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--color-foreground);
  background: var(--color-background);
  transition: border-color 0.2s;
  outline: none;
}
.sb-input:focus, .sb-textarea:focus, .sb-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}
.sb-textarea { resize: vertical; min-height: 8rem; }

/* =============================================
   PAGE HERO VARIANT
   ============================================= */
.sb-page-hero {
  position: relative;
  padding: 7rem 0 5rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  overflow: hidden;
}
.sb-page-hero__bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.sb-page-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 50rem;
  margin: 0 auto;
}
.sb-page-hero h1 { color: var(--color-foreground); }

/* =============================================
   SAVINGS TABLE
   ============================================= */
.sb-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.sb-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  text-align: left;
}
.sb-table td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-foreground);
}
.sb-table tr:last-child td { border-bottom: none; }
.sb-table tr:nth-child(even) td { background: var(--color-muted); }
.sb-table .savings { color: #16a34a; font-weight: 700; }

/* =============================================
   RESPONSIVE HELPERS
   ============================================= */
@media (max-width: 640px) {
  .sb-section { padding: 3rem 0; }
  .sb-hero__ctas { flex-direction: column; }
  .sb-hero__ctas .sb-btn { width: 100%; justify-content: center; }
  .sb-footer__grid { grid-template-columns: 1fr; }
  .sb-footer__bottom-inner { flex-direction: column; text-align: center; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
}

/* =============================================
   ACCORDION / FAQ
   ============================================= */
.sb-accordion { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.sb-accordion-item { border-bottom: 1px solid var(--color-border); }
.sb-accordion-item:last-child { border-bottom: none; }
.sb-accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-foreground);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
}
.sb-accordion-trigger:hover { background: var(--color-muted); }
.sb-accordion-trigger .arrow {
  flex-shrink: 0;
  transition: transform 0.25s;
}
.sb-accordion-trigger[aria-expanded="true"] .arrow { transform: rotate(180deg); }
.sb-accordion-body { display: none; padding: 0 1.25rem 1.25rem; }
.sb-accordion-body.open { display: block; }
.sb-accordion-body p { font-size: 0.9rem; color: var(--color-muted-foreground); margin: 0; }
