/* ============================================================
   No Cap Studio — Main Stylesheet
   AC CISNERO TILE LLC — Computer Systems Design & Integration
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --navy-950: #020617;
  --navy-900: #0a1628;
  --navy-800: #0f1d36;
  --navy-700: #162447;
  --navy-600: #1e3256;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-300: #93bbfd;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --violet-600: #7c3aed;
  --violet-500: #8b5cf6;
  --violet-400: #a78bfa;
  --rose-500: #f43f5e;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-700);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--blue-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue-500);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.btn-primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.btn-white {
  background-color: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.btn-white:hover {
  background-color: var(--slate-100);
  border-color: var(--slate-100);
  color: var(--navy-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 16px 0;
}

.site-header.scrolled {
  background-color: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--blue-600), var(--violet-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--white);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--blue-400);
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}

.mobile-menu-btn span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--white);
  margin: 6px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  background-color: var(--navy-900);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.15), transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(139, 92, 246, 0.1), transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 30%, rgba(59, 130, 246, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 100px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue-300);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--emerald-400);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  color: var(--white);
  max-width: 800px;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--blue-400), var(--violet-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--slate-300);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Section Common --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background-color: var(--navy-900);
  color: var(--slate-300);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-gray {
  background-color: var(--slate-50);
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--blue-600);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 18px;
  color: var(--slate-500);
  line-height: 1.7;
}

.section-dark .section-header p {
  color: var(--slate-400);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-600), var(--violet-600));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--blue-600);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--slate-900);
}

.service-card p {
  color: var(--slate-500);
  font-size: 15px;
  line-height: 1.7;
}

/* --- Stats Section --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: var(--slate-400);
  font-weight: 500;
}

/* --- Features Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
}

.feature-text h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--white);
}

.feature-text p {
  font-size: 15px;
  color: var(--slate-400);
  line-height: 1.7;
}

/* --- Process Section --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.process-step {
  position: relative;
  text-align: center;
  padding: 32px 24px;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.process-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--violet-600));
  color: var(--white);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--slate-900);
}

.process-step p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--blue-600), var(--violet-600));
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 50%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin-bottom: 32px;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--navy-950);
  color: var(--slate-400);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-400);
  max-width: 320px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--slate-400);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--slate-400);
  font-size: 14px;
}

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

/* --- Page Header (Sub-pages) --- */
.page-hero {
  background-color: var(--navy-900);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59, 130, 246, 0.12), transparent),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(139, 92, 246, 0.08), transparent);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero-content h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero-content p {
  color: var(--slate-300);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Policy / Terms Content --- */
.policy-content {
  padding: 80px 0;
  background-color: var(--white);
}

.policy-body {
  max-width: 820px;
  margin: 0 auto;
}

.policy-body h2 {
  font-size: 24px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--slate-900);
}

.policy-body h2:first-child {
  margin-top: 0;
}

.policy-body h3 {
  font-size: 18px;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--slate-800);
}

.policy-body p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate-600);
}

.policy-body ul,
.policy-body ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.policy-body ul li,
.policy-body ol li {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-600);
}

.policy-body strong {
  color: var(--slate-800);
}

.policy-body .contact-block {
  background-color: var(--slate-50);
  border-left: 4px solid var(--blue-600);
  padding: 24px 28px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 28px 0;
}

.policy-body .contact-block p {
  margin-bottom: 6px;
}

.policy-body .contact-block p:last-child {
  margin-bottom: 0;
}

.policy-body .last-updated {
  font-size: 14px;
  color: var(--slate-400);
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--slate-500);
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--blue-600);
  flex-shrink: 0;
}

.contact-detail-text strong {
  display: block;
  color: var(--slate-900);
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-detail-text span {
  color: var(--slate-500);
  font-size: 15px;
}

.contact-form {
  background-color: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-sans);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  color: var(--slate-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--navy-950);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right 0.3s ease;
    z-index: 999;
  }

  .main-nav.open {
    right: 0;
  }

  .main-nav a {
    font-size: 17px;
  }

  .mobile-menu-btn {
    display: block;
    position: relative;
    z-index: 1001;
  }

  .hero-content {
    padding: 140px 0 80px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section {
    padding: 64px 0;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

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

  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
