@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
  color-scheme: light dark;

  --black: #1a1a1a;
  --gray-900: #2d2d2d;
  --gray-700: #4a4a4a;
  --gray-500: #6b6b6b;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;
  --white: #ffffff;
  --brand: #ff7f00;
  --brand-dark: #e67200;

  /* Light mode colors */
  --bg: var(--white);
  --bg-secondary: var(--gray-50);
  --text-primary: var(--black);
  --text-secondary: var(--gray-700);
  --text-muted: var(--gray-500);
  --border: var(--gray-200);
  --border-light: var(--gray-100);
  --card-bg: var(--white);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #d4d4d4;
    --text-muted: #a0a0a0;
    --border: #2d2d2d;
    --border-light: #252525;
    --card-bg: #141414;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Poppins", -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* Consistent Layout Container */
.page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-section {
  padding: 5rem 0;
}

.page-section-tight {
  padding: 3rem 0;
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 0 1.5rem;
  }

  .page-section {
    padding: 3rem 0;
  }

  .page-section-tight {
    padding: 2rem 0;
  }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(10, 10, 10, 0.98);
  }
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .header-content {
    padding: 1.25rem 1.5rem;
  }
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.site-logo span {
  color: var(--text-primary);
}

.site-nav {
  display: none;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.625rem 1rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.site-nav a:hover {
  background: var(--bg-secondary);
  opacity: 1;
}

.header-cta {
  display: none;
}

.menu-btn {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.menu-btn span {
  width: 1.5rem;
  height: 2px;
  background: var(--text-primary);
}

@media (min-width: 1024px) {
  .site-nav {
    display: flex;
  }
  .header-cta {
    display: block;
  }
  .menu-btn {
    display: none;
  }
}

/* Mobile Menu */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 85vw);
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.3s ease, background-color 0.3s ease,
    box-shadow 0.3s ease;
  z-index: 200;
  overflow-y: auto;
  padding: 2rem;
}

.mobile-nav.active {
  transform: translateX(0);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
}

.mobile-nav a,
.mobile-nav .btn {
  display: block;
  padding: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  border-radius: 8px;
  text-align: left;
}

.mobile-nav a:hover {
  background: var(--bg-secondary);
}

.mobile-nav hr {
  margin: 1rem 0;
  border: none;
  height: 1px;
  background: var(--border);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 150;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--brand);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 127, 0, 0.3);
  opacity: 1;
}

/* Hero Section */
.hero-section {
  padding-top: 9rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero-section h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-image {
  position: relative;
  width: 100%;
  height: clamp(400px, 60vh, 700px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-top: 4rem;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slideshow-img {
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .hero-image {
    border-radius: 12px;
  }
}

/* Full Width Image */
.full-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.full-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content Image */
.content-image {
  width: 100%;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 3rem 0;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .content-image {
    height: 280px;
    border-radius: 12px;
    margin: 2rem 0;
  }
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.content-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--brand);
}

.content-card h3 {
  font-size: 1.5rem;
}

.content-card p {
  color: var(--text-secondary);
}

.card-link {
  color: var(--brand);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:after {
  content: "→";
  transition: transform 0.2s;
}

.card-link:hover:after {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .content-card {
    padding: 1.5rem;
  }
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.image-grid-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.image-grid-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.image-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-grid-item:hover img {
  transform: scale(1.05);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  font-weight: 600;
}

@media (min-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .image-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 768px) {
  .image-grid {
    gap: 0.75rem;
  }

  .image-caption {
    padding: 1rem;
    font-size: 0.875rem;
  }
}

/* Two Column Layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 6rem;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .two-col:nth-child(even) .col-image {
    order: 2;
  }

  .two-col:nth-child(even) .col-content {
    order: 1;
  }
}

.col-image {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .two-col {
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .col-image {
    height: 280px;
    border-radius: 12px;
  }
}

/* Icon Grid */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.icon-item {
  text-align: center;
  padding: 2rem 1rem;
}

.icon-item img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .icon-item {
    padding: 1.5rem 0.5rem;
  }
}

/* CTA Box */
.cta-box {
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 4rem 3rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cta-box h2 {
  margin-bottom: 1rem;
}

.cta-box p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .cta-box {
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
  }
}

/* Content Width */
.content-width {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.content-narrow {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.pricing-card h3 {
  font-size: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.pricing-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}

.pricing-item:last-child {
  border-bottom: none;
}

.pricing-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pricing-rate {
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--brand);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .pricing-card {
    padding: 1.5rem;
  }
}

/* Service List */
.service-list {
  display: grid;
  gap: 3rem;
}

.service-item {
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.service-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.service-item h3 {
  font-size: 1.5rem;
}

/* Values List */
.values-list {
  list-style: none;
  margin: 2rem 0;
}

.values-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list strong {
  display: block;
  color: var(--brand);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col h3 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-col p,
.footer-col a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Modal */
.site-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.site-modal.active {
  display: flex;
}

.modal-box {
  background: var(--card-bg);
  border-radius: 16px;
  width: min(600px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--border);
}

.modal-box iframe {
  width: 100%;
  min-height: 600px;
  border: none;
}

/* Animations */
.fade-in,
.slide-up,
.slide-left,
.slide-right,
.scale-in,
.stagger-item {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in {
  transform: translateY(20px);
}

.slide-up {
  transform: translateY(60px);
}

.slide-left {
  transform: translateX(60px);
}

.slide-right {
  transform: translateX(-60px);
}

.scale-in {
  transform: scale(0.9);
}

.stagger-item {
  transform: translateY(30px);
  transition-delay: calc(var(--stagger-delay, 0) * 0.1s);
}

.fade-in.visible,
.slide-up.visible,
.slide-left.visible,
.slide-right.visible,
.scale-in.visible,
.stagger-item.visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .slide-up,
  .slide-left,
  .slide-right,
  .scale-in,
  .stagger-item {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Dark mode image adjustments */
@media (prefers-color-scheme: dark) {
  img {
    opacity: 0.9;
  }

  .hero-image img,
  .content-image img,
  .full-image img,
  .col-image img {
    opacity: 0.85;
  }

  img:hover {
    opacity: 1;
  }
}

/* Utilities */
.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}
