/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette - Dark Theme (Marketing) */
  --bg-dark: #0b111e;
  --bg-card-dark: rgba(20, 30, 50, 0.7);
  --border-dark: rgba(255, 255, 255, 0.08);
  --text-dark: #f3f4f6;
  --text-muted-dark: #9ca3af;
  
  /* Color Palette - Light Theme (Quote Portal) */
  --bg-light: #f8fafc;
  --bg-card-light: #ffffff;
  --border-light: #e2e8f0;
  --text-light: #0f172a;
  --text-muted-light: #64748b;

  /* Shared Brand Accents */
  --primary: #ff5722; /* VariPro Coral/Orange */
  --primary-hover: #e64a19;
  --secondary: #2563eb; /* Electric Blue */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 10px 30px -10px rgba(0,0,0,0.3);
}

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

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ──────────────────────────────────────────────────────────────────────────
   Marketing Site / Landing Page Styles (Dark Mode UI)
   ────────────────────────────────────────────────────────────────────────── */

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
header.marketing-header {
  padding: 24px 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 10;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: #fff;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 87, 34, 0.15), transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1), transparent 40%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff 40%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content h1 span {
  background: linear-gradient(135deg, var(--primary), #ffa726);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 18px;
  color: var(--text-muted-dark);
  margin-bottom: 40px;
  max-width: 540px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 87, 34, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 87, 34, 0.4);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-dark);
  margin-left: 16px;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Phone Mockup Frame */
.device-frame-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.iphone-mockup {
  width: 280px;
  height: 570px;
  border: 10px solid #2d3748;
  border-radius: 40px;
  background-color: #000;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8),
              0 0 0 10px rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

/* Notch */
.iphone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 25px;
  background-color: #2d3748;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 5;
}

.iphone-mockup img.screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Glow decoration */
.phone-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.2) 0%, transparent 70%);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(20px);
}

/* Features Section */
.features {
  padding: 100px 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 38px;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted-dark);
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 40px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
}

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

.feature-icon {
  font-size: 32px;
  margin-bottom: 24px;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #ffa726);
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  line-height: 1;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted-dark);
  font-size: 15px;
}

/* App Showcase Showcase */
.showcase {
  padding: 100px 0;
  background-color: rgba(255, 255, 255, 0.01);
}

.showcase-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.showcase-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: var(--transition);
  background: var(--bg-card-dark);
}

.showcase-item:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.showcase-item img {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-item p {
  padding: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted-dark);
}

/* Footer marketing */
footer.marketing-footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-dark);
  text-align: center;
  color: var(--text-muted-dark);
  font-size: 14px;
}


/* ──────────────────────────────────────────────────────────────────────────
   Quote Portal Styles (Light Mode UI - For Client Document Readability)
   ────────────────────────────────────────────────────────────────────────── */

body.portal-body {
  background-color: var(--bg-light);
  color: var(--text-light);
}

.portal-container {
  max-width: 840px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Portal Card Style */
.portal-card {
  background-color: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  margin-bottom: 24px;
}

.portal-card-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.portal-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-light);
}

.portal-logo span {
  color: var(--primary);
}

.badge-status {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-status.draft { background-color: #f1f5f9; color: #475569; }
.badge-status.sent { background-color: #dbeafe; color: #1d4ed8; }
.badge-status.accepted { background-color: #d1fae5; color: #065f46; }
.badge-status.declined { background-color: #fee2e2; color: #991b1b; }

.portal-card-body {
  padding: 32px;
}

/* Header layout in Quote */
.quote-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.business-details {
  text-align: right;
}

.portal-business-logo {
  max-width: 150px;
  max-height: 75px;
  object-fit: contain;
  margin-bottom: 12px;
  display: block;
}

@media (min-width: 601px) {
  .portal-business-logo {
    margin-left: auto;
  }
}

.business-details h2 {
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 8px;
}

.business-details p, .client-details p {
  font-size: 13px;
  color: var(--text-muted-light);
  margin-bottom: 3px;
}

.client-details h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-light);
}

/* Summary Box */
.quote-summary-box {
  background-color: #f8fafc;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
  font-size: 14px;
}

/* Tables */
.portal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.portal-table th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--border-light);
  color: var(--text-muted-light);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

.portal-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.portal-table tr.section-title-row td {
  background-color: #f8fafc;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
}

.portal-table .amount {
  text-align: right;
  font-weight: 500;
}

/* Totals Box */
.quote-totals-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 40px;
}

.quote-totals-table {
  width: 300px;
}

.quote-totals-table td {
  padding: 8px 12px;
  font-size: 14px;
}

.quote-totals-table tr.grand-total-row td {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  padding-top: 12px;
}

/* Portal Photo Section */
.portal-photos-section h2 {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-light);
}

.portal-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.portal-photo-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #fff;
}

.portal-photo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.portal-photo-card p {
  padding: 10px;
  font-size: 12px;
  color: var(--text-muted-light);
  text-align: center;
}

/* Action Footer inside portal */
.portal-actions-footer {
  padding: 24px 32px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.btn-decline {
  background-color: transparent;
  color: var(--danger);
  border: 1.5px solid var(--danger);
}

.btn-decline:hover {
  background-color: rgba(239, 68, 68, 0.05);
  transform: translateY(-2px);
}

.btn-accept {
  background-color: var(--success);
  color: #fff;
}

.btn-accept:hover {
  background-color: #059669;
  transform: translateY(-2px);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: #fff;
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 460px;
  padding: 32px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-content h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-light);
}

.modal-content p {
  font-size: 14px;
  color: var(--text-muted-light);
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-light);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-modal-cancel {
  background-color: #f1f5f9;
  color: #475569;
}

.btn-modal-cancel:hover {
  background-color: #e2e8f0;
}

/* Success View */
.success-screen {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  font-size: 56px;
  color: var(--success);
  margin-bottom: 24px;
}

.success-screen h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.success-screen p {
  color: var(--text-muted-light);
  margin-bottom: 32px;
}

/* Loading/Error screens */
.center-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 87, 34, 0.1);
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .hero-content p {
    margin: 0 auto 30px auto;
  }
  .showcase-slider {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none; /* simplifies mobile menu for this landing page */
  }
  .showcase-slider {
    grid-template-columns: 1fr;
  }
  .quote-top {
    flex-direction: column;
    gap: 16px;
  }
  .business-details {
    text-align: left;
  }
  .portal-photo-grid {
    grid-template-columns: 1fr;
  }
}
