/* ============================================
   RNROS - Restaurant & Retail Operating Systems
   Modern Dark Tech Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: #161b26;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent: #2E6EB5;
  --accent-hover: #245a96;
  --accent-glow: rgba(46, 110, 181, 0.15);
  --accent-green: #4A9B3F;
  --accent-green-hover: #3d8234;
  --border: #374151;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
  --nav-height: 72px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-secondary);
}

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

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-green-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 155, 63, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-brand img {
  height: 50px;
  width: auto;
}

.nav-brand span {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* Services dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: '';
  border: 4px solid transparent;
  border-top-color: var(--text-secondary);
  margin-top: 2px;
  transition: transform var(--transition);
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(180deg);
  border-top-color: var(--accent);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 220px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.nav-dropdown-menu a:hover {
  background: rgba(46, 110, 181, 0.08);
  color: var(--accent);
}

/* Nav CTA */
.nav-cta {
  margin-left: 0.5rem;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  padding: calc(var(--nav-height) + 4rem) 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(46, 110, 181, 0.05) 0%, transparent 60%);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

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

.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-phone {
  font-size: 1.25rem;
  margin-top: 2rem;
  color: var(--text-secondary);
}

.hero-phone a {
  font-weight: 700;
  color: var(--accent);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(46, 110, 181, 0.1);
}

.service-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.service-card:hover .card-link {
  gap: 0.5rem;
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trust-icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.trust-item strong {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-preview-content h2 {
  margin-bottom: 1rem;
}

.about-preview-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.about-list {
  margin-bottom: 2rem;
}

.about-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.about-list li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, rgba(46, 110, 181, 0.1), rgba(37, 90, 150, 0.05));
  border: 1px solid rgba(46, 110, 181, 0.2);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  margin: 2rem 0;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: calc(var(--nav-height) + 3rem) 0 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(46, 110, 181, 0.04) 0%, transparent 100%);
}

.page-hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* --- Service Page Content --- */
.service-content {
  max-width: 800px;
  margin: 0 auto;
}

.service-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.75rem;
}

.service-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-content ul {
  margin: 1rem 0 1.5rem 0;
}

.service-content ul li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.service-content ul li::before {
  content: '✓';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.feature-box h4 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.feature-box p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- POS Partner Sections --- */
.pos-partner {
  max-width: 900px;
  margin: 0 auto;
}

.pos-partner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pos-partner-header h2 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.pos-partner-tagline {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0;
}

.pos-partner > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pos-partner > p strong {
  color: var(--text-primary);
}

.pos-partner .service-features {
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .pos-partner-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- FAQ Section --- */
.faq-section {
  margin: 2rem 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.faq-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
  color: var(--text-secondary);
}

/* --- Certification Badge --- */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(46, 110, 181, 0.08);
  border: 1px solid rgba(46, 110, 181, 0.25);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin: 1rem 0;
}

/* --- Contact / Forms --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info-item h4 {
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-info-item a {
  color: var(--accent);
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-card h3 {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 110, 181, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* --- Footer --- */
.footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-brand span {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-contact-item a {
  color: var(--text-muted);
}

.footer-contact-item a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Software Product Sections --- */
.software-product {
  max-width: 1000px;
  margin: 0 auto;
}

.software-product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.software-badge {
  display: inline-block;
  background: var(--accent-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.coming-soon-badge {
  background: var(--accent);
}

.software-product-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.25rem;
}

.software-tagline {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0;
}

.software-screenshot-placeholder {
  width: 320px;
  height: 200px;
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coming-soon-placeholder {
  border-color: rgba(46, 110, 181, 0.3);
  background: rgba(46, 110, 181, 0.04);
}

.screenshot-inner {
  text-align: center;
  color: var(--text-muted);
}

.screenshot-inner span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.screenshot-inner p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.software-body h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.software-body > p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.software-extras ul {
  margin: 1rem 0 1.5rem 0;
}

.software-extras ul li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
}

.software-extras ul li::before {
  content: '✓';
  color: var(--accent-green);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.software-best-for {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent-green);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.software-best-for strong {
  color: var(--accent-green);
}

.coming-soon-banner {
  background: linear-gradient(135deg, rgba(46, 110, 181, 0.06), rgba(46, 110, 181, 0.02));
  border: 1px solid rgba(46, 110, 181, 0.2);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}

.coming-soon-banner h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.coming-soon-banner p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.coming-soon-banner .btn {
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .software-product-header {
    flex-direction: column;
  }

  .software-screenshot-placeholder {
    width: 100%;
    height: 180px;
  }

  .coming-soon-banner {
    padding: 2rem 1.5rem;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .section { padding: 3.5rem 0; }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 2.5rem) 0 3rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 0.75rem 0;
    font-size: 1.05rem;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown-toggle::after {
    transition: transform var(--transition);
  }

  .nav-dropdown.open .nav-dropdown-toggle::after {
    transform: rotate(180deg);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
