/*
Theme Name: Rhixo
Theme URI: https://rhixo.com
Author: Rhixo
Author URI: https://rhixo.com
Description: Dark Command Centre theme for Rhixo - Domains, Hosting & Websites reseller business. Features a modern dark design with red accents, domain search, pricing tables, and mobile app page.
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: rhixo
Tags: dark, one-column, custom-logo, custom-menu, featured-images, full-width-template

Rhixo WordPress Theme - Your Digital Command Centre
*/

/* ============ RESET & BASE ============ */
:root {
  --red: #E31E24;
  --red-dark: #c91a1f;
  --black: #111111;
  --dark: #333333;
  --surface: #F8F9FA;
  --card: #FFFFFF;
  --white: #FFFFFF;
  --grey: #6C757D;
  --light-grey: #F1F3F5;
  --border: rgba(0,0,0,0.1);
  --text: #212529;
  --text-muted: #6C757D;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-logo { height: 32px; width: auto; }

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.875rem;
  color: #555555;
  transition: color 0.2s;
}

.navbar-links a:hover { color: #111111; }

@media (min-width: 768px) { .navbar-links { display: flex; } }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover { background: var(--red-dark); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--red);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  border: 1px solid var(--red);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover { background: var(--red); color: #ffffff; }
.btn-outline:active { transform: scale(0.97); }

/* Mobile Menu */
.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: #555555;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) { .mobile-toggle { display: none; } }

.mobile-menu {
  display: none;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

.mobile-menu.active { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.75rem 0;
  color: #555555;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}

.mobile-menu a:hover { color: #111111; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  color: #ffffff;
}

.hero-tag {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.hero h1 span { color: var(--red); }

@media (min-width: 768px) { .hero h1 { font-size: 3.75rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 4.5rem; } }

.hero-description {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 3rem;
  max-width: 36rem;
}

/* Domain Search */
.domain-search {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 36rem;
}

@media (min-width: 640px) { .domain-search { flex-direction: row; } }

.domain-search-input {
  flex: 1;
  position: relative;
}

.domain-search-input input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  color: #111111;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
}

.domain-search-input input::placeholder { color: rgba(255,255,255,0.4); }
.domain-search-input input:focus { border-color: rgba(227,30,36,0.5); }

.domain-search-input svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.4);
  width: 1.25rem;
  height: 1.25rem;
}

.domain-extensions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.domain-ext {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ============ STATS ============ */
.stats {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-item { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--red);
}

.stat-label {
  color: var(--text-muted);
}

@media (min-width: 768px) { .stat-value { font-size: 2.25rem; } }

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ============ SERVICES ============ */
.services { padding: 9rem 0; background: #ffffff; color: #111111; }
.services--dark { background: #F5F5F5; color: #111111; }

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.section-title { color: var(--text); }

.section-title { font-size: 1.875rem; }
@media (min-width: 768px) { .section-title { font-size: 3rem; } }

.service-block {
  display: grid;
  gap: 4rem;
  align-items: center;
  margin-bottom: 8rem;
}

@media (min-width: 768px) { .service-block { grid-template-columns: 1fr 1fr; } }

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(227,30,36,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-description {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-bottom: 2rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.service-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.service-image {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.service-title { color: var(--text); }
.service-block a { color: var(--red); }

/* ============ FEATURES GRID ============ */
.features { padding: 9rem 0; background: #ffffff; color: #111111; }

.features-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-card {
  padding: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--white);
  transition: border-color 0.2s, transform 0.3s cubic-bezier(0.23,1,0.32,1), box-shadow 0.3s;
}

.feature-card:hover { border-color: rgba(227,30,36,0.3); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: rgba(227,30,36,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============ PRICING ============ */
.pricing { padding: 9rem 0; background: var(--surface); color: var(--text); }

.pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 2.5rem;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: border-color 0.2s, transform 0.3s cubic-bezier(0.23,1,0.32,1);
}

.pricing-card:hover { border-color: var(--red); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

.pricing-card.popular {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(227,30,36,0.15);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #111111;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
}

.pricing-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-card .description {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 2rem;
}

.pricing-price .amount {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
}

.pricing-price .period {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.pricing-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

.pricing-card .btn-primary,
.pricing-card .btn-outline { width: 100%; justify-content: center; }

/* ============ CTA ============ */
.cta {
  padding: 9rem 0;
  background: #F5F5F5; color: #111111;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-size: cover;
  background-position: center;
}

.cta-content { position: relative; z-index: 10; }

.cta h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) { .cta h2 { font-size: 3rem; } }

.cta p {
  color: #555555;
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }

/* ============ FOOTER ============ */
.site-footer {
  padding: 6rem 0;
  background: #F5F5F5;
  color: #111111;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }

.footer-brand p {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
}

.footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.75rem; }

.footer-col a {
  font-size: 0.875rem;
  color: #555555;
  transition: color 0.2s;
}

.footer-col a:hover { color: #111111; }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) { .footer-bottom { flex-direction: row; } }

.footer-bottom p {
  font-size: 0.875rem;
  color: #999999;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  font-size: 0.875rem;
  color: #999999;
}

.footer-social a:hover { color: #555555; }

/* ============ UTILITY ============ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}


/* ============ ACCESSIBILITY ============ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--red);
  color: #111111;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============ MICRO-INTERACTIONS ============ */
.domain-ext {
  transition: transform 0.2s cubic-bezier(0.23,1,0.32,1), border-color 0.2s, color 0.2s;
}

.btn-primary, .btn-outline {
  transition: transform 0.16s cubic-bezier(0.23,1,0.32,1), background 0.2s, border-color 0.2s;
}

.feature-card {
  transition: border-color 0.2s, transform 0.3s cubic-bezier(0.23,1,0.32,1), opacity 0.5s;
}
.feature-card:hover {
  border-color: rgba(227,30,36,0.3);
  transform: translateY(-4px);
}

.pricing-card {
  transition: border-color 0.2s, transform 0.3s cubic-bezier(0.23,1,0.32,1), opacity 0.5s;
}
.pricing-card:hover {
  transform: translateY(-4px);
}

/* ============ STICKY DOMAIN QUIZ ============ */
#domain-quiz {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 300px;
  background: #F5F5F5;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  z-index: 9000;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1);
  animation: slideUp 0.4s cubic-bezier(0.23,1,0.32,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #111111;
  font-size: 0.8rem;
  font-weight: 600;
}
.quiz-close {
  background: none;
  border: none;
  color: #111111;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.quiz-body {
  padding: 1.25rem;
}
.quiz-question {
  color: #111111;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.quiz-buttons {
  display: flex;
  gap: 0.75rem;
}
.quiz-btn {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: transparent;
  color: #111111;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.quiz-btn:hover {
  border-color: var(--red);
}
.quiz-btn.quiz-yes:hover {
  background: rgba(227,30,36,0.1);
}
.quiz-result {
  color: #111111;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.quiz-cta {
  display: block;
  text-align: center;
  padding: 0.6rem 1rem;
  background: var(--red);
  color: #111111;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

/* ============ CHAT WIDGET ============ */
#chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9500;
}
.chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(227,30,36,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(227,30,36,0.5);
}
.chat-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 280px;
  background: #F5F5F5;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.23,1,0.32,1), transform 0.25s cubic-bezier(0.23,1,0.32,1);
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}
.chat-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--red);
  color: #111111;
  font-size: 0.85rem;
  font-weight: 600;
}
.chat-panel-close {
  background: none;
  border: none;
  color: #111111;
  font-size: 1.25rem;
  cursor: pointer;
}
.chat-panel-body {
  padding: 1rem;
}
.chat-panel-body p {
  color: #555555;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.chat-option {
  display: block;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  color: #111111;
  font-size: 0.8rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.chat-option:hover {
  border-color: var(--red);
  background: rgba(227,30,36,0.05);
}

/* ============ RESPONSIVE QUIZ/CHAT ============ */
@media (max-width: 640px) {
  #domain-quiz { width: calc(100% - 48px); right: 24px; left: 24px; bottom: 80px; }
  .chat-panel { width: calc(100vw - 48px); right: -12px; }
}
