/*
Theme Name: WMD Theme Child
Theme URI: https://webmobiledevelopment.com
Author: BootesNull
Author URI: https://bootesnull.com
Description: Child theme for WMD Theme. All site-specific customizations live here.
Template: wmd-theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: wmd-theme-child
*/

/* =============================================
   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;
}

.text-accent { color: var(--color-accent); }

.section-center {
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
}

.section-center h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-center > p {
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  margin-bottom: 3rem;
  line-height: 1.7;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* =============================================
   Mobile Nav
   ============================================= */
.mobile-nav {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  margin-top: 0.75rem;
}

.mobile-nav.is-open { display: block; }

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 1.125rem;
  font-weight: var(--font-weight-medium);
  color: rgba(15,23,42,0.8);
}

/* =============================================
   Hero Section
   ============================================= */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 70% bottom;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, hsl(210,40%,98%) 20%, transparent 75%);
  z-index: 0;
}

.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsl(210,40%,98%), hsla(210,40%,98%,0.6), transparent);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 2rem;
  text-wrap: balance;
}

.hero-headline-gradient {
  background: linear-gradient(to right, var(--color-foreground), hsla(222,47%,11%,0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtext {
  font-size: 1.125rem;
  color: var(--color-muted-foreground);
  max-width: 42rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

/* Trusted By */
.trusted-by {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  z-index: 10;
}

.trusted-by-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: hsla(210,40%,98%,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid hsla(214,32%,91%,0.5);
  border-radius: 1rem;
  padding: 1rem 2rem;
  width: fit-content;
  margin: 0 auto;
}

.trusted-by-label {
  font-size: 0.625rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: hsla(222,47%,11%,0.3);
}

.trusted-by-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.client-logo {
  height: 2rem;
  opacity: 0.7;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}

.client-logo:hover {
  opacity: 1;
  filter: grayscale(0);
}

.client-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* =============================================
   Value Prop / Stats
   ============================================= */
.two-col-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.two-col-text > p {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.feature-list { display: flex; flex-direction: column; gap: 1.5rem; }

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: white;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.feature-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.feature-item p {
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
}

/* Stats grid */
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.stat-card-full { background: white; border: 1px solid var(--color-border); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.stat-card-dark { background: var(--color-foreground); color: var(--color-background); }
.stat-card-light { background: white; border: 1px solid var(--color-border); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }

.stat-number {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.25rem;
}

.stat-card-light .stat-number { color: var(--color-foreground); }

.stat-card p { font-size: 0.875rem; opacity: 0.8; }

.stat-label {
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted-foreground);
  margin-bottom: 1rem;
}

/* Bar chart */
.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 6rem;
}

.bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  transition: height 0.6s ease;
}

.chart-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-muted-foreground);
}

/* Bottom two stat cards side by side */
.stats-grid > .stat-card:nth-child(2),
.stats-grid > .stat-card:nth-child(3) {
  display: inline-flex;
  flex-direction: column;
}

.stats-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* =============================================
   Projects Section
   ============================================= */
.projects-section { color: var(--color-background); }

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 5rem;
}

.projects-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
  color: var(--color-background);
}

.projects-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.125rem;
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.2) !important;
  color: var(--color-foreground) !important;
}

.btn-outline-light:hover {
  background: white !important;
  color: var(--color-foreground) !important;
}

.projects-list { display: flex; flex-direction: column; gap: 8rem; }

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.project-item-reverse { direction: rtl; }
.project-item-reverse > * { direction: ltr; }

.project-image {
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
}

.project-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.2);
  transition: background 0.5s;
  z-index: 1;
}

.project-image:hover::before { background: transparent; }

.project-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-image:hover img { transform: scale(1.05); }

.project-content { display: flex; flex-direction: column; gap: 1.5rem; }

.project-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-family: monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-content h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-background);
}

.project-content > p {
  color: rgba(255,255,255,0.7);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.project-results {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.project-results p {
  font-size: 1.0625rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-background);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.1);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: rgba(255,255,255,0.9);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.project-link:hover { text-decoration: underline; color: var(--color-accent); }

/* =============================================
   NYC Section
   ============================================= */
.nyc-section .section-center h2 { margin-bottom: 1rem; }
.nyc-section .section-center > p { margin-bottom: 3rem; }

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

.borough-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.borough-name { font-weight: var(--font-weight-semibold); }
.borough-sub { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.25rem; }

/* =============================================
   Testimonials
   ============================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  background: hsla(214,32%,91%,0.3);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stars { color: var(--color-accent); font-size: 1rem; letter-spacing: 0.1em; }

.testimonial-card blockquote {
  font-size: 0.9375rem;
  color: rgba(15,23,42,0.8);
  line-height: 1.7;
  font-style: normal;
  flex: 1;
}

.testimonial-author { border-top: 1px solid var(--color-border); padding-top: 1rem; }
.author-name { font-weight: var(--font-weight-semibold); }
.author-role { font-size: 0.875rem; color: var(--color-muted-foreground); margin-top: 0.125rem; }

/* =============================================
   CTA Section
   ============================================= */
.cta-section { background: white; }
.cta-section h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.cta-section p { color: var(--color-muted-foreground); font-size: 1.125rem; margin-bottom: 2.5rem; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
  .project-item { grid-template-columns: 1fr; gap: 2rem; }
  .project-item-reverse { direction: ltr; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .borough-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .borough-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bottom { grid-template-columns: 1fr 1fr; }
}
