/* Main Styles for All Systems Go Furniture Website */

/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: white;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4) 0;
  color: var(--color-neutral-900);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin: 0 0 var(--space-4) 0;
  color: var(--color-neutral-600);
}

a {
  color: var(--color-primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-700);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-lg);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-neutral-200);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.nav {
  height: var(--header-height);
}

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

.nav-brand .brand-link {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-primary-700);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-8);
}

.nav-link {
  font-weight: var(--font-medium);
  color: var(--color-neutral-700);
  padding: var(--space-2) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-600);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary-600);
  border-radius: var(--radius-full);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  gap: 4px;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--color-neutral-700);
  transition: all var(--transition-fast);
  transform-origin: center;
}

/* Main Content */
main {
  margin-top: var(--header-height);
}

/* Hero Section */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
  line-height: var(--leading-tight);
}

.hero-text p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header h2 {
  margin-bottom: var(--space-4);
  color: var(--color-neutral-900);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--color-neutral-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Preview */
.services-preview {
  padding: var(--space-20) 0;
  background: var(--color-neutral-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.service-card {
  background: white;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-50);
  border-radius: var(--radius-full);
}

.service-icon img {
  width: 40px;
  height: 40px;
}

.service-card h3 {
  margin-bottom: var(--space-4);
  color: var(--color-neutral-900);
}

.service-card p {
  color: var(--color-neutral-600);
  margin-bottom: var(--space-6);
}

.service-link {
  color: var(--color-primary-600);
  font-weight: var(--font-semibold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
}

.service-link:hover {
  color: var(--color-primary-700);
  transform: translateX(4px);
}

.services-cta {
  text-align: center;
}

/* Why Choose Us */
.why-choose-us {
  padding: var(--space-20) 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-600));
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
}

.feature-icon img {
  width: 50px;
  height: 50px;
  filter: brightness(0) invert(1);
}

.feature-item h3 {
  margin-bottom: var(--space-4);
  color: var(--color-neutral-900);
}

.feature-item p {
  color: var(--color-neutral-600);
}

/* CTA Section */
.cta-section {
  padding: var(--space-20) 0;
  background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-800));
  color: white;
  text-shadow: none;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: var(--space-6);
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.cta-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  opacity: 0.9;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Icons */
.contact-icon img {
  width: 40px;
  height: 40px;
}

/* Footer */
.footer {
  background: var(--color-neutral-900);
  color: white;
  padding: var(--space-16) 0 var(--space-8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-section h3,
.footer-section h4 {
  color: white;
  margin-bottom: var(--space-6);
}

.footer-section h3 {
  font-size: var(--text-xl);
}

.footer-section h4 {
  font-size: var(--text-lg);
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: var(--space-3);
}

.footer-section a {
  color: var(--color-neutral-300);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: white;
}

.footer-contact p {
  margin-bottom: var(--space-4);
}

.footer-contact strong {
  color: white;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-1) 0;
  border-bottom: 1px solid var(--color-neutral-700);
}

.hours-list li:last-child {
  border-bottom: none;
}

.footer-bottom {
  border-top: 1px solid var(--color-neutral-700);
  padding-top: var(--space-8);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--text-sm);
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden {
  @extend .sr-only;
}

/* Focus Styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .cta-section,
  .hero-actions {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  .container {
    max-width: none;
    padding: 0;
  }
}