/* ============================================
   Canada Shitonghang - Page-Specific Styles
   Hero, Timeline, Services Grid, Contact, etc.
   ============================================ */

/* --- Hero Section (Home Page) --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--color-navy);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

/* Fallback gradient when no image */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-navy) 0%,
    var(--color-dark-blue) 50%,
    #0d1f33 100%
  );
  z-index: 1;
}

/* Subtle world map pattern overlay */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(124, 185, 232, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(245, 166, 35, 0.06) 0%, transparent 35%),
    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='%23ffffff' fill-opacity='0.02'%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");
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: rgba(245, 166, 35, 0.15);
  color: var(--color-gold);
  padding: var(--space-2) var(--space-4);
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-6);
  border: 1px solid rgba(245, 166, 35, 0.25);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  font-weight: 700;
}

.hero__title-accent {
  color: var(--color-gold);
  display: block;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 560px;
}

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

/* Hero stats bar */
.hero__stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  line-height: 1.2;
}

.hero__stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  .hero__stats {
    flex-wrap: wrap;
    gap: var(--space-6);
    justify-content: center;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Services Preview Section (Home) --- */
.services-preview {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

.section-header__tag {
  display: inline-block;
  color: var(--color-gold);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-3);
}

.section-header__title {
  margin-bottom: var(--space-4);
  color: var(--color-dark-blue);
}

.section-header__desc {
  color: var(--color-medium-gray);
  font-size: var(--text-lg);
}

/* --- About Teaser / Why Choose Us (Home) --- */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 767px) {
  .about-teaser {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .about-teaser.reverse {
    grid-template-columns: 1fr;
  }

  .about-teaser.reverse .about-teaser__content {
    order: 1;
  }

  .about-teaser.reverse .about-teaser__visual {
    order: 2;
  }
}

.about-teaser__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-sky-blue), var(--color-light-blue));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.about-teaser__visual svg {
  width: 120px;
  height: 120px;
  color: var(--color-dark-blue);
  opacity: 0.3;
}

/* Photo variant — real image fills the visual slot (no cropping) */
.about-teaser__visual--photo {
  aspect-ratio: 3 / 2;
  min-height: 0;
  box-shadow: var(--shadow-lg);
}

.about-teaser__visual--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Photo variant 4:3 — for 4:3 source images, fills slot with no crop */
.about-teaser__visual--photo-43 {
  aspect-ratio: 4 / 3;
  min-height: 0;
  box-shadow: var(--shadow-lg);
}

.about-teaser__visual--photo-43 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 767px) {
  .about-teaser__visual--photo {
    aspect-ratio: 16 / 10;
  }
}

.about-teaser__content h2 {
  margin-bottom: var(--space-4);
  color: var(--color-dark-blue);
}

.about-teaser__content p {
  color: var(--color-medium-gray);
  margin-bottom: var(--space-6);
}

/* Value Props (Why Choose Us) */
.value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 767px) {
  .value-props {
    grid-template-columns: 1fr;
  }
}

.value-prop {
  text-align: center;
  padding: var(--space-8);
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.value-prop:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
}

.value-prop__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-sky-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}

.value-prop__icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-dark-blue);
}

.value-prop__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: var(--space-2);
}

.value-prop__text {
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
}

/* --- Timeline (History Page) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-8) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-light-blue));
}

@media (min-width: 768px) {
  .timeline::before {
    left: 50%;
    transform: translateX(-1px);
  }
}

.timeline__item {
  position: relative;
  padding-left: 60px;
  padding-bottom: var(--space-10);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

@media (min-width: 768px) {
  .timeline__item {
    padding-left: 0;
    padding-right: 0;
    width: 50%;
  }

  .timeline__item:nth-child(odd) {
    margin-left: auto;
    padding-left: var(--space-10);
    text-align: right;
  }

  .timeline__item:nth-child(even) {
    margin-right: auto;
    padding-right: var(--space-10);
    text-align: left;
  }
}

.timeline__dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-gold);
  border: 3px solid var(--color-sky-blue);
  z-index: 2;
}

@media (min-width: 768px) {
  .timeline__dot {
    left: auto;
    right: -9px;
  }

  .timeline__item:nth-child(even) .timeline__dot {
    left: -9px;
    right: auto;
  }
}

.timeline__card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.timeline__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.timeline__year {
  display: inline-block;
  background-color: var(--color-gold);
  color: var(--color-black);
  font-weight: 700;
  font-size: var(--text-lg);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.timeline__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: var(--space-3);
}

.timeline__text {
  color: var(--color-medium-gray);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* --- Services Grid (Services Page) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-gold);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sky-blue), var(--color-light-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  transition: transform var(--transition-base);
}

.service-card:hover .service-card__icon {
  transform: scale(1.05);
}

.service-card__icon svg {
  width: 40px;
  height: 40px;
  color: var(--color-dark-blue);
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: var(--space-3);
}

.service-card__text {
  color: var(--color-medium-gray);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy), var(--color-dark-blue));
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-banner__text {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* --- Values / Approach Page --- */
.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 767px) {
  .values-list {
    grid-template-columns: 1fr;
  }
}

.value-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  border-left: 4px solid var(--color-gold);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.value-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.value-item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-gold);
  color: var(--color-black);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.value-item__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: var(--space-3);
}

.value-item__text {
  color: var(--color-medium-gray);
  line-height: 1.7;
}

/* Commitment Statement Card */
.commitment-card {
  background: linear-gradient(135deg, var(--color-dark-blue), var(--color-navy));
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  color: var(--color-white);
  position: relative;
  border-left: 5px solid var(--color-gold);
}

.commitment-card__quote {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.commitment-card__quote::before {
  content: '"';
  color: var(--color-gold);
  font-size: 3rem;
  line-height: 0;
  vertical-align: middle;
  margin-right: 8px;
}

.commitment-card__quote::after {
  content: '"';
  color: var(--color-gold);
  font-size: 3rem;
  line-height: 0;
  vertical-align: middle;
  margin-left: 8px;
}

.commitment-card__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.7);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 767px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-office {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-gold);
}

.contact-office__name {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.contact-office__name svg {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
}

.contact-office__detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
}

.contact-office__detail svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-light-blue);
  margin-top: 2px;
}

.contact-office__detail a {
  color: var(--color-dark-blue);
  transition: color var(--transition-fast);
}

.contact-office__detail a:hover {
  color: var(--color-gold);
}

/* Contact Form */
.contact-form {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
}

.contact-form__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-dark-blue);
  margin-bottom: var(--space-6);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark-gray);
  margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  background-color: var(--color-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 479px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Map Embed */
.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-8);
  border: 3px solid var(--color-border);
}

.map-embed iframe {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
}

@media (max-width: 767px) {
  .map-embed iframe {
    height: 250px;
  }
}

/* --- Company Story Block (History Page) --- */
.company-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 767px) {
  .company-story {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.company-story__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-sky-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
}

.company-story__logo img {
  max-width: 280px;
  height: auto;
}

.company-story__text h2 {
  color: var(--color-dark-blue);
  margin-bottom: var(--space-4);
}

.company-story__text p {
  color: var(--color-medium-gray);
  line-height: 1.8;
}

/* Services list in history page */
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.services-list__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--color-sky-blue);
  color: var(--color-dark-blue);
  padding: var(--space-2) var(--space-4);
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.services-list__item svg {
  width: 14px;
  height: 14px;
}
