/*
Theme Name: Rhixo
Theme URI: https://rhixo.com
Author: Rhixo Pty Ltd
Author URI: https://rhixo.com
Description: Professional WordPress theme for Rhixo - Domains, Hosting & Websites
Version: 4.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: rhixo
*/

/* ===== VARIABLES ===== */
:root {
  --red: #E31E24;
  --red-dark: #c41a1a;
  --black: #111111;
  --dark: #1a1a1a;
  --grey: #555555;
  --grey-light: #777777;
  --grey-muted: #999999;
  --border: #e8e8e8;
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --bg-section: #f5f5f5;
  --white: #ffffff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1200px;
  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--black); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ===== LAYOUT ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 30px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--white); }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: 48px; font-weight: 800; line-height: 1.15; color: var(--black); }
h2 { font-size: 32px; font-weight: 700; line-height: 1.25; color: var(--black); }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--black); }
h4 { font-size: 16px; font-weight: 700; color: var(--black); }
p { color: var(--grey); font-size: 15px; line-height: 1.7; }
.text-red { color: var(--red); }
.text-center { text-align: center; }
.text-small { font-size: 13px; }
.text-muted { color: var(--grey-muted); }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius); font-weight: 600; font-size: 14px; transition: all 0.2s ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: var(--white); color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #333; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ===== NAVIGATION ===== */
.nav { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid #f0f0f0; padding: 14px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 34px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links > a { font-size: 12.5px; font-weight: 500; color: #333; transition: color 0.2s; }
.nav-links > a:hover { color: var(--red); }
.nav-dropdown { position: relative; }
.nav-dropdown > a { font-size: 12.5px; font-weight: 500; color: #333; transition: color 0.2s; }
.nav-dropdown > a:hover { color: var(--red); }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); border: 1px solid #f0f0f0; border-radius: var(--radius); padding: 8px 0; min-width: 200px; box-shadow: var(--shadow-lg); z-index: 200; margin-top: 10px; }
.dropdown-menu a { display: block; padding: 9px 18px; font-size: 13px; color: #333; transition: all 0.15s; }
.dropdown-menu a:hover { background: var(--bg-alt); color: var(--red); }
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-right a { font-size: 11px; color: var(--grey-light); }
.nav-right a:hover { color: var(--red); }
.nav-separator { font-size: 10px; color: #ddd; }
.nav-search { color: var(--grey); display: inline-flex; align-items: center; }

/* Mobile menu */
.nav-toggle { display: none; width: 28px; height: 28px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--black); transition: all 0.3s; }

/* ===== HERO ===== */
.hero { padding: 100px 0 80px; background-size: cover; background-position: center; }
.hero-badge { display: inline-block; background: var(--red); color: var(--white); font-size: 12px; font-weight: 600; padding: 6px 14px; border-radius: 20px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.hero h1 { margin-bottom: 16px; max-width: 600px; }
.hero h1 span { color: var(--red); }
.hero p { font-size: 17px; max-width: 500px; margin-bottom: 30px; }
.hero-search { display: flex; max-width: 500px; background: var(--white); border: 2px solid var(--border); border-radius: 8px; overflow: hidden; transition: border-color 0.2s; }
.hero-search:focus-within { border-color: var(--red); }
.hero-search input { flex: 1; padding: 16px 20px; border: none; font-size: 15px; outline: none; font-family: var(--font); }
.hero-search button { background: var(--red); color: var(--white); border: none; padding: 16px 28px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.hero-search button:hover { background: var(--red-dark); }
.hero-extensions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-extensions span { font-size: 13px; color: var(--grey-light); background: var(--bg-section); padding: 4px 10px; border-radius: 4px; }

/* ===== STATS BAR ===== */
.stats { background: var(--bg-alt); border-top: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; padding: 30px 0; }
.stats-grid { display: flex; justify-content: space-around; text-align: center; }
.stat-item h3 { font-size: 28px; font-weight: 800; color: var(--red); }
.stat-item p { font-size: 13px; color: var(--grey-light); margin-top: 4px; }

/* ===== PRODUCT TABS ===== */
.tab-nav { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { padding: 10px 22px; border: 2px solid var(--border); border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; color: #333; transition: all 0.2s; background: var(--white); }
.tab-btn:hover { border-color: var(--red); color: var(--red); }
.tab-btn.active { border-color: var(--red); background: var(--red); color: var(--white); }
.tab-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.tab-content img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-lg); }
.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }

/* ===== PRICING ===== */
.pricing-toggle { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 40px; }
.pricing-toggle span { font-size: 14px; color: var(--grey); }
.pricing-toggle .active-label { font-weight: 700; color: var(--black); }
.toggle-switch { width: 50px; height: 26px; background: var(--red); border-radius: 13px; position: relative; cursor: pointer; }
.toggle-switch::after { content: ''; width: 22px; height: 22px; background: var(--white); border-radius: 50%; position: absolute; top: 2px; left: 2px; transition: left 0.2s; }
.toggle-switch.toggled::after { left: 26px; }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.pricing-card { background: var(--white); border-radius: 10px; padding: 36px 28px; border: 1px solid var(--border); position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border: 2px solid var(--red); }
.pricing-card.featured::before { content: 'MOST POPULAR'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; padding: 4px 14px; border-radius: 12px; white-space: nowrap; }
.pricing-card h4 { font-size: 18px; margin-bottom: 4px; }
.price-amount { font-size: 36px; font-weight: 800; color: var(--black); margin: 12px 0 4px; }
.price-amount span { font-size: 16px; font-weight: 400; color: var(--grey-light); }
.price-note { font-size: 12px; color: var(--grey-muted); margin-bottom: 20px; }
.pricing-card ul { margin-bottom: 24px; }
.pricing-card ul li { font-size: 13px; color: #444; padding: 8px 0; border-bottom: 1px solid #f5f5f5; padding-left: 22px; position: relative; }
.pricing-card ul li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.card-cta { display: block; text-align: center; padding: 14px; border-radius: var(--radius); font-weight: 600; font-size: 14px; transition: all 0.2s; }
.card-cta:active { transform: scale(0.97); }

/* Upfront pricing box */
.upfront-box { text-align: center; margin-top: 40px; padding: 30px; background: var(--white); border-radius: 10px; border: 1px solid var(--border); }
.upfront-prices { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 16px; }

/* ===== HOW IT WORKS ===== */
.steps-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.step { text-align: center; }
.step-num { width: 48px; height: 48px; background: var(--red); color: var(--white); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.step h4 { margin-bottom: 8px; }
.step p { font-size: 14px; }

/* ===== COMPLETE YOUR PRESENCE ===== */
.presence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.presence-card { background: var(--bg-alt); border-radius: 10px; padding: 36px; border: 1px solid var(--border); transition: transform 0.2s; }
.presence-card:hover { transform: translateY(-2px); }
.presence-card .icon { font-size: 28px; margin-bottom: 12px; }
.presence-card h3 { margin-bottom: 8px; }
.presence-card .price { font-size: 14px; color: var(--red); font-weight: 600; margin: 16px 0; }

/* ===== TRUST BAR ===== */
.trust { padding: 50px 0; background: var(--dark); }
.trust-grid { display: flex; justify-content: space-around; text-align: center; flex-wrap: wrap; gap: 20px; }
.trust-item h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.trust-item p { font-size: 12px; color: var(--grey-muted); }

/* ===== CTA SECTION ===== */
.cta-section { padding: 80px 0; text-align: center; }
.cta-section h2 { margin-bottom: 12px; }
.cta-section p { margin-bottom: 28px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: #ccc; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand img { height: 28px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: #888; line-height: 1.6; margin-top: 12px; }
.footer-col h5 { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col a { display: block; font-size: 13px; color: #888; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid #222; margin-top: 40px; padding-top: 20px; text-align: center; font-size: 12px; color: #666; }

/* ===== PAGE TEMPLATES ===== */
.page-header { padding: 60px 0 40px; background: var(--bg-alt); border-bottom: 1px solid #f0f0f0; }
.page-header h1 { font-size: 36px; }
.page-header p { font-size: 16px; margin-top: 8px; }
.page-content { padding: 60px 0; }
.page-content p { margin-bottom: 16px; }
.page-content h2 { margin: 32px 0 12px; }
.page-content h3 { margin: 24px 0 8px; }
.page-content ul, .page-content ol { padding-left: 20px; margin-bottom: 16px; }
.page-content ul li, .page-content ol li { font-size: 15px; color: var(--grey); padding: 4px 0; }

/* ===== CARDS ===== */
.card { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 28px; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; font-family: var(--font); transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--red); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px 30px; border-bottom: 1px solid #f0f0f0; box-shadow: var(--shadow); gap: 0; }
  .nav-links.open > a, .nav-links.open .nav-dropdown > a { padding: 12px 0; font-size: 14px; border-bottom: 1px solid #f5f5f5; display: block; width: 100%; }
  .nav-links.open .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 16px; margin-top: 0; }
  .nav-links.open .nav-dropdown:hover .dropdown-menu { display: block; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero { padding: 60px 0 50px; }
  .tab-content, .tab-panel.active { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps-grid { grid-template-columns: 1fr; gap: 30px; }
  .presence-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stats-grid { flex-wrap: wrap; gap: 20px; }
  .trust-grid { flex-direction: column; gap: 16px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 50px 0; }
  h1 { font-size: 28px; }
  .hero-search { flex-direction: column; }
  .hero-search button { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .upfront-prices { flex-direction: column; gap: 16px; }
}
