/* Layout Styles */

/* ============================
   HEADER (mobile-first)
============================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  padding: var(--spacing-4) var(--spacing-5);
  max-width: var(--container-xl);
  margin: 0 auto;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-3);
  color: var(--color-white);
  text-decoration: none;
  min-width: 0;
  transition: opacity var(--transition-base);
}

.logo:hover {
  opacity: 0.9;
}

.logo-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  color: #FFFFFF;
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-family-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

/* Footer-specific logo override (if different) */
.footer-logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  color: #FFFFFF;
  font-family: var(--font-family-heading);
  font-size: 26px;
  font-weight: 800;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-logo-name {
  font-family: var(--font-family-heading);
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
}

.footer-logo-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Mobile responsive logo adjustments */
@media (max-width: 480px) {
  .logo-img {
    width: 40px;
    height: 40px;
  }

  .logo-name {
    font-size: 18px;
  }

  .logo-tagline {
    font-size: 11px;
    max-width: 140px; /* Limit width on very small screens */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Navigation container */
.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

/* Note: Navigation drawer, mobile menu button, and desktop navigation styles
   have been moved to css/navigation.css for better organization and consistency */

/* ============================
   HERO SECTION
============================ */

.hero {
  padding: 100px 0 120px;
  background: #0F172A;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0) 0%, #0F172A 100%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2394A3B8' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-5);
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--spacing-5);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
  padding: var(--spacing-2) var(--spacing-4);
  background-color: rgba(255, 107, 53, 0.2);
  color: #FFB899;
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-6);
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: #FFFFFF !important; /* Force white on dark background */
  margin-bottom: var(--spacing-6);
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: #CBD5E1;
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-8);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-4);
  justify-content: center;
  align-items: center;
}

/* ============================
   PAGE HEADER (for subpages)
============================ */

.page-header {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-header-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.page-title {
  font-family: var(--font-family-heading);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .page-title {
    font-size: 36px;
  }
}

/* ============================
   REUSABLE SECTIONS
============================ */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
  padding: 0 20px;
}

.section-title {
  font-family: var(--font-family-heading);
  font-size: 48px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: #64748B;
  line-height: 1.7;
}

/* Services Section */
.services-section {
  padding: 100px 0;
  background: #F8FAFC;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  border-radius: 16px;
  margin-bottom: 24px;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Why Us Section */
.why-us-section {
  padding: 100px 0;
  background: #0F172A;
  position: relative;
  overflow: hidden;
}

.why-us-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.why-us-section .section-title {
  color: #FFFFFF;
}

.why-us-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* CTA Section */
.cta-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  text-align: center;
}

.cta-section .section-title {
  color: #FFFFFF;
  font-size: 42px;
  margin-bottom: 16px;
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin-bottom: 40px;
}

@media (max-width: 1024px) {
  .services-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 36px;
  }

  .services-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Page Specific Sections */

/* About Page: Story & Values */
.story-section {
  padding: 100px 0;
  background: #F8FAFC;
}

.story-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 0 20px;
}

.story-text h2 {
  font-family: var(--font-family-heading);
  font-size: 42px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.story-text p {
  font-size: 17px;
  line-height: 1.8;
  color: #64748B;
  margin-bottom: 20px;
}

.story-stat {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.story-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
}

.story-stat-number {
  font-family: var(--font-family-heading);
  font-size: 80px;
  font-weight: 800;
  color: #FF6B35;
  line-height: 1;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.story-stat-label {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Services Page: Detail & Icon Large */
.service-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.service-icon-large {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  border-radius: 20px;
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.service-detail h2 {
  font-family: var(--font-family-heading);
  font-size: 36px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.service-detail p {
  font-size: 17px;
  line-height: 1.7;
  color: #64748B;
  margin-bottom: 16px;
}

.service-detail ul {
  list-style: none;
  margin: 24px 0;
  padding: 0;
}

.service-detail ul li {
  padding: 12px 0;
  padding-left: 36px;
  position: relative;
  font-size: 16px;
  color: #475569;
  border-bottom: 1px solid #E2E8F0;
}

.service-detail ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  color: #FFFFFF;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

/* Contact Page: Grid & Info Cards */
.contact-section {
  padding: 100px 0;
  background: #F8FAFC;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 48px;
  height: fit-content;
}

.contact-info-card h3 {
  font-family: var(--font-family-heading);
  font-size: 28px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 32px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
  align-items: start;
}

.info-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.info-content h4 {
  font-family: var(--font-family-heading);
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 8px;
}

.info-content p {
  color: #64748B;
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.process-box {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: 20px;
  padding: 32px;
  margin-top: 40px;
}

.process-box h4 {
  font-family: var(--font-family-heading);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.process-box ol {
  margin: 0;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.8;
}

.process-box ol li {
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .story-content,
  .service-detail,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    padding: 32px;
  }

  .info-item {
    flex-direction: column;
    gap: 12px;
  }

  .info-icon {
    width: 48px;
    height: 48px;
  }
}

/* Legal Pages (Privacy/Terms) */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.policy-content h2 {
  font-family: var(--font-family-heading);
  font-size: 32px;
  font-weight: 800;
  color: #0F172A;
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.policy-content p {
  font-size: 17px;
  line-height: 1.8;
  color: #64748B;
  margin-bottom: 16px;
}

.policy-content ul {
  margin: 20px 0 20px 24px;
  padding: 0;
}

.policy-content ul li {
  font-size: 16px;
  line-height: 1.8;
  color: #475569;
  margin-bottom: 12px;
}

.policy-content > p:first-of-type {
  font-size: 19px;
  color: #0F172A;
  margin-bottom: 40px;
}

.highlight-box {
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
}

.highlight-box p {
  color: #FFFFFF;
  margin: 0;
  font-weight: 600;
}

@media (max-width: 768px) {
  .policy-content h2 {
    font-size: 26px;
  }
}

.stats {
  padding: var(--spacing-16) 0;
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-8);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-8);
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.stat-item:hover {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 107, 53, 0.1) 100%);
  border-color: rgba(255, 107, 53, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: #FF6B35;
  line-height: 1;
  margin-bottom: var(--spacing-2);
  text-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.stat-label {
  font-size: var(--font-size-base);
  color: #E2E8F0;
  font-weight: var(--font-weight-medium);
}

/* ============================
   SERVICES GRID
============================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-8);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.service-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-xl);
  padding: var(--spacing-8);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FF6B35 0%, #FF8C5A 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: #FF6B35;
  box-shadow: 0 25px 50px rgba(255, 107, 53, 0.15);
  transform: translateY(-8px);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-6);
  color: var(--color-white);
  box-shadow: 0 8px 16px rgba(255, 107, 53, 0.3);
}

.service-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-3);
}

.service-card p {
  color: var(--color-gray-700); /* Darkened for better contrast on white background */
  line-height: var(--line-height-relaxed);
}

/* ============================
   FOOTER
============================ */

.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-6);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

/* Footer Brand & Logo */
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
  color: #FFFFFF;
}

.footer-logo-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
  flex-shrink: 0;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-logo-name {
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  font-family: var(--font-family-heading);
}

.footer-logo-tagline {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 300px;
  font-size: 15px;
}

.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.footer-disclaimer {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  max-width: 600px;
  line-height: 1.6;
}

/* ============================
   RESPONSIVE LAYOUT
============================ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-description {
    font-size: var(--font-size-base);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
