:root {
  /* System Colors - Light Mode */
  --system-blue: #007aff;
  --system-gray: #8e8e93;
  --system-background: #f2f2f7;
  --system-grouped-background: #ffffff;
  --system-separator: #c6c6c8;
  --system-label: #000000;
  --system-secondary-label: #3c3c4399;
  
  /* Shared Constants */
  --border-radius-card: 12px;
  --border-radius-button: 10px;
  --glass-blur: 20px;
  --glass-opacity: 0.7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --system-blue: #0a84ff;
    --system-background: #000000;
    --system-grouped-background: #1c1c1e;
    --system-separator: #38383a;
    --system-label: #ffffff;
    --system-secondary-label: #ebebf599;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--system-background);
  color: var(--system-label);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.bg-alt {
  background-color: var(--system-grouped-background);
}

/* Glassmorphism Utilities */
.glass {
  background: rgba(255, 255, 255, var(--glass-opacity));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (prefers-color-scheme: dark) {
  .glass {
    background: rgba(28, 28, 30, var(--glass-opacity));
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* iOS Style Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--system-blue);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: var(--border-radius-button);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: opacity 0.2s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:active {
  opacity: 0.8;
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--system-separator);
  color: var(--system-label);
  padding: 12px 28px;
  border-radius: var(--border-radius-button);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: background 0.2s ease;
}

/* Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 0.5px solid var(--system-separator);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2001;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--system-label);
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--system-blue);
  letter-spacing: -0.5px;
}

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

.phone-link {
  color: var(--system-label);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.phone-link:hover {
  opacity: 1;
}

.nav-links a:not(.btn-primary) {
  text-decoration: none;
  color: var(--system-label);
  font-weight: 500;
  font-size: 15px;
  transition: opacity 0.2s;
}

.nav-links a:hover:not(.btn-primary) {
  opacity: 0.7;
}

/* Hero Section */
.hero-section {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
}

.glass-hero-overlay {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 60px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  max-width: 800px;
  margin: 0 auto;
}

@media (prefers-color-scheme: dark) {
  .glass-hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.hero-title {
  font-size: clamp(38px, 8vw, 64px);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--system-label);
}

.hero-title span {
  color: var(--system-blue);
}

.hero-subtitle {
  font-size: 22px;
  color: var(--system-secondary-label);
  max-width: 650px;
  margin: 0 auto 48px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Trust Badges */
.trust-badges-section {
  padding: 40px 0;
  background: var(--system-background);
  border-bottom: 1px solid var(--system-separator);
}

.badges-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
  filter: grayscale(1);
  transition: all 0.3s ease;
}

.badge-item:hover {
  opacity: 1;
  filter: grayscale(0);
}

.badge-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--system-label);
}

/* Services Grid */
.section-title {
  font-size: 34px;
  margin-bottom: 48px;
}

.service-group {
  margin-bottom: 80px;
}

.service-group h3 {
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--system-secondary-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

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

.card {
  background: var(--system-grouped-background);
  border-radius: var(--border-radius-card);
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--system-separator);
}

.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 122, 255, 0.1);
  color: var(--system-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.icon-green { background: rgba(52, 199, 89, 0.1); color: #34c759; }
.icon-orange { background: rgba(255, 149, 0, 0.1); color: #ff9500; }
.icon-indigo { background: rgba(88, 86, 214, 0.1); color: #5856d6; }

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--system-blue);
}

.card h4 {
  font-size: 21px;
  margin-bottom: 12px;
}

.card p {
  color: var(--system-secondary-label);
  font-size: 16px;
}

/* Trades List */
.section-subtitle {
  font-size: 18px;
  color: var(--system-secondary-label);
  margin-bottom: 40px;
}

.trades-list {
  display: flex;
  flex-direction: column;
  background: var(--system-grouped-background);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  border: 1px solid var(--system-separator);
  max-width: 800px;
  margin: 0 auto;
}

.trade-item {
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid var(--system-separator);
}

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

.trade-item span {
  font-size: 14px;
  color: var(--system-blue);
  background: rgba(0, 122, 255, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

/* Gallery Styles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay h4 {
  font-size: 19px;
  margin-bottom: 4px;
}

.gallery-overlay span {
  font-size: 14px;
  opacity: 0.8;
  font-weight: 500;
}

/* Testimonials Styles */
.rating {
  color: #ff9500;
  font-size: 18px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 17px;
  font-style: italic;
  margin-bottom: 24px;
  color: var(--system-label) !important;
}

.client-info {
  display: flex;
  flex-direction: column;
  border-top: 0.5px solid var(--system-separator);
  padding-top: 16px;
}

.client-info strong {
  font-size: 16px;
  color: var(--system-label);
}

.client-info span {
  font-size: 14px;
  color: var(--system-secondary-label);
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.33, 1, 0.68, 1);
  pointer-events: none;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Form Styles */
.contact-card {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--system-secondary-label);
  text-transform: uppercase;
  padding-left: 4px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--border-radius-button);
  border: 1px solid var(--system-separator);
  background: var(--system-background);
  color: var(--system-label);
  font-size: 17px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--system-blue);
  background: var(--system-grouped-background);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--system-separator);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

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

.footer-brand p {
  margin-top: 16px;
  color: var(--system-secondary-label);
  max-width: 300px;
}

.footer-info h4, .footer-social h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--system-secondary-label);
}

.footer-info p {
  margin-bottom: 12px;
  color: var(--system-label);
}

.footer-info a {
  color: var(--system-blue);
  text-decoration: none;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links a {
  color: var(--system-label);
  text-decoration: none;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid var(--system-separator);
  color: var(--system-secondary-label);
  font-size: 14px;
}

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

.footer-legal a {
  color: inherit;
  text-decoration: none;
}

/* Floating Action Button */
.fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--system-blue);
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.fab:hover {
  transform: scale(1.1);
}

.fab:active {
  transform: scale(0.95);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 550px;
  border-radius: 28px;
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 32px 32px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 24px;
}

.close-btn {
  background: var(--system-separator);
  color: var(--system-label);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-body {
  padding: 0 32px 32px;
  overflow-y: auto;
  max-height: 70vh;
}

.modal-footer {
  padding: 24px 32px 32px;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--system-separator);
}

.wizard-footer {
  display: flex;
  gap: 12px;
}

/* Progress Bar */
.progress-container {
  height: 4px;
  background: var(--system-separator);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--system-blue);
  transition: width 0.3s ease;
}

/* Wizard Steps */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: wizardFadeIn 0.4s ease;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wizard-step h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

/* Option Grid */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.option-card {
  cursor: pointer;
  position: relative;
}

.option-card input {
  position: absolute;
  opacity: 0;
}

.option-content {
  border: 2px solid var(--system-separator);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  background: var(--system-grouped-background);
}

.option-icon {
  font-size: 32px;
}

.option-card input:checked + .option-content {
  border-color: var(--system-blue);
  background: rgba(0, 122, 255, 0.05);
}

.option-card:hover .option-content {
  border-color: var(--system-blue);
}

/* Photo Upload */
.photo-upload-area {
  border: 2px dashed var(--system-separator);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.photo-upload-area:hover {
  border-color: var(--system-blue);
  background: rgba(0, 122, 255, 0.05);
}

.upload-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 12px;
}

.photo-preview-item {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--system-separator);
}

/* Success State */
.success-state {
  text-align: center;
  padding: 40px 0;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.w-full {
  width: 100%;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--system-background);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2000;
    padding: 40px;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 28px !important;
    font-weight: 700 !important;
  }

  .hero-title {
    font-size: 44px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions a {
    width: 100%;
  }
  
  .contact-card {
    padding: 32px 20px;
  }

  .modal-content {
    width: 100%;
    max-width: none;
    border-radius: 28px 28px 0 0;
    position: absolute;
    bottom: 0;
    padding: 0;
    transform: translateY(100%);
    max-height: 90vh;
  }
  
  .modal-overlay.active .modal-content {
    transform: translateY(0);
  }

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