/* =====================================================
   AMECO TECH — Sub-page Shared Styles
   ===================================================== */

body.subpage {
  overflow-y: auto;
}

/* =====================================================
   PAGE HERO
   ===================================================== */
.page-hero {
  padding: 160px 5vw 100px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--yellow), var(--orange), transparent);
  opacity: 0.4;
}

.page-hero-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.page-hero-heading {
  font-size: clamp(3.5rem, 9vw, 12rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.page-hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
}

/* =====================================================
   PAGE SECTIONS
   ===================================================== */
.page-section {
  padding: 80px 5vw;
}

.page-section-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.2rem;
}

.page-section-heading {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.page-section-body {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 700px;
}

/* =====================================================
   TWO-COLUMN INTRO
   ===================================================== */
.intro-cols {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6vw;
  align-items: start;
}

.intro-text p {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.intro-text p:last-child { margin-bottom: 0; }

.intro-pull {
  font-size: clamp(2.5rem, 5vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--yellow), var(--orange), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: sticky;
  top: 120px;
}

/* =====================================================
   VALUE CARDS
   ===================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 2rem;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(4, 180, 201, 0.1);
  transform: translateY(-4px);
}

.card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--teal), var(--yellow));
}

.card-icon {
  width: 36px;
  height: 36px;
  color: var(--teal);
  margin-bottom: 1.2rem;
}

.card-icon svg { width: 100%; height: 100%; }

.card-title {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.card-body {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =====================================================
   TEAM SPOTLIGHT
   ===================================================== */
.team-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6vw;
  align-items: center;
}

.team-photo {
  aspect-ratio: 3 / 4;
  background: #f0f0f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-placeholder {
  color: #ccc;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.team-photo-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.team-name {
  font-size: clamp(2rem, 4vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.4rem;
  overflow-wrap: anywhere;
}

.team-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 2rem;
  overflow-wrap: anywhere;
}

.team-bio {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.85;
  color: var(--text-secondary);
}

/* =====================================================
   PRODUCT GRID & CARDS
   ===================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
  border-color: var(--teal);
  box-shadow: 0 12px 40px rgba(4, 180, 201, 0.1);
  transform: translateY(-4px);
}

.product-card-img {
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #c8c8c8;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-img svg {
  width: 40px;
  height: 40px;
}

.product-card-body {
  padding: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.product-card-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.5rem;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.product-card-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.product-card-link {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.product-card-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal);
}

.product-card-link:hover { gap: 0.9rem; }

/* =====================================================
   FEATURED PRODUCT ROW (alternating)
   ===================================================== */
.featured-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
  padding: 5rem 0;
  border-top: 1px solid #e5e5e5;
}

.featured-row.reverse .featured-img { order: 2; }
.featured-row.reverse .featured-content { order: 1; }

.featured-img {
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8c8c8;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-img svg { width: 48px; height: 48px; }

.featured-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.75rem;
}

.featured-title {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.featured-body {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.specs-list li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.specs-list li::before {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--teal);
  flex-shrink: 0;
}

/* =====================================================
   CASES FEATURED
   ===================================================== */
.case-featured {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: #111;
}

.case-featured-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.1);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #111 0%, #1e2a2e 100%);
}

.case-featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4rem 5vw;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.case-featured-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.75rem;
}

.case-featured-title {
  font-size: clamp(1.8rem, 4vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.75rem;
}

.case-featured-outcome {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.65);
}

/* =====================================================
   CASES GRID
   ===================================================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.case-card {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.case-card-img-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0.85;
}

.case-card:hover .case-card-img {
  transform: scale(1.05);
  opacity: 0.45;
}

.case-card-placeholder {
  color: rgba(255,255,255,0.1);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.case-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  transition: background 0.4s;
}

.case-card:hover .case-card-info {
  background: linear-gradient(to top, rgba(4,180,201,0.5) 0%, transparent 100%);
}

.case-card-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.4rem;
}

.case-card-title {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.3rem;
  line-height: 1.1;
}

.case-card-outcome {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
}

.case-view-label {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.case-view-label svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.case-card:hover .case-view-label { opacity: 1; }

/* =====================================================
   PAGE STATS
   ===================================================== */
.page-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

/* Reuse stat classes from style.css */

/* =====================================================
   PAGE CTA STRIP
   ===================================================== */
.page-cta {
  padding: 80px 5vw;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.page-cta-text {
  font-size: clamp(1.8rem, 4vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.page-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.2rem;
  background: #000;
  color: #fff;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.page-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.page-cta-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  transition: transform 0.3s;
}

.page-cta-btn:hover svg { transform: translateX(4px); }

/* =====================================================
   PAGE FOOTER
   ===================================================== */
.page-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.55);
  padding: 2rem 5vw 2.5rem;
  position: relative;
  z-index: 5;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4vw;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 2rem;
}

.footer-logo a {
  display: block;
}

.footer-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: right;
}

.footer-address {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer-contact a {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--teal); }

.footer-copy {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

/* =====================================================
   ACTIVE NAV LINK
   ===================================================== */
.nav-active {
  color: var(--text-primary) !important;
}

/* =====================================================
   DIVIDERS
   ===================================================== */
.section-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0;
}

.bg-light {
  background: #f8f8f8;
}

/* =====================================================
   SEO CONTENT
   ===================================================== */
.seo-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 1.75rem;
}

.faq-item h3 {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
}

.faq-item p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =====================================================
   MOBILE
   ===================================================== */
@media (max-width: 768px) {
  .page-hero {
    padding: 130px 5vw 60px;
  }

  .page-hero-heading {
    font-size: clamp(2.1rem, 11vw, 5rem);
    max-width: 100%;
    letter-spacing: -0.04em;
    overflow-wrap: normal;
  }

  .intro-cols {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .intro-pull {
    position: static;
    font-size: clamp(2.5rem, 12vw, 5rem);
  }

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

  .team-row {
    grid-template-columns: 1fr;
  }

  .team-photo {
    aspect-ratio: 4 / 3;
  }

  .team-photo--lander img {
    object-position: top center;
  }

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

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

  .featured-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .featured-row.reverse .featured-img { order: 0; }
  .featured-row.reverse .featured-content { order: 0; }

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

  .case-featured {
    aspect-ratio: auto;
    min-height: clamp(420px, 118vw, 560px);
  }

  .case-featured-bg {
    position: absolute;
    inset: 0;
  }

  .case-featured-overlay {
    padding: 2rem 5vw;
  }

  .page-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-cta {
    flex-direction: column;
    text-align: center;
    padding: 60px 5vw;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-contact {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 1rem 2rem;
  }
}
