/* css/components.css — component styles built on tokens.css */

/* ─── Global ──────────────────────────────── */
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  min-height: 100vh;
}

/* ─── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.85; }

.btn--primary {
  background: var(--color-accent);
  color: #000;
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

/* ─── Nav ─────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: 0.02em;
}

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

.nav__logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--color-accent); }

/* ─── Hero ────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-image: url('../assets/images/hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-16) var(--space-8);
  overflow: hidden;
  /* Pull hero up under sticky nav so it fills viewport */
  margin-top: calc(-1 * (var(--space-4) * 2 + 52px));
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.55) 60%,
    rgba(0, 0, 0, 0.82) 100%
  );
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.hero__badge::before {
  content: '◎';
  font-size: var(--text-xs);
  color: var(--color-accent);
}

.hero__title {
  font-family: var(--font-sans);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

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

.hero__description {
  font-size: var(--text-lg);
  color: var(--color-text);
  max-width: 480px;
  line-height: var(--leading-normal);
  margin-bottom: var(--space-8);
}

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

.hero__actions .btn,
.featured-project .btn {
  padding: var(--space-3) var(--space-8);
  font-size: var(--text-base);
}

/* ─── Testimonials ────────────────────────── */
.testimonials {
  background: var(--color-bg);
  padding: var(--space-24) var(--space-8);
}

.testimonials__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.section-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.section-heading {
  font-family: var(--font-sans);
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.section-subheading {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  max-width: 640px;
  margin: 0 auto;
}

.testimonial-card__quote {
  font-size: var(--text-lg);
  color: var(--color-text);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
  font-style: italic;
  text-align: left;
}

.testimonial-card__quote::before { content: '\201C'; }
.testimonial-card__quote::after  { content: '\201D'; }

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ─── Footer ──────────────────────────────── */
.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) var(--space-8);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  letter-spacing: 0.02em;
}

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

.footer__logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.footer__social {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.footer__social a {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer__social a:hover { opacity: 1; }

.footer__social img,
.footer__social svg {
  width: 22px;
  height: 22px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__nav-heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.footer__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--color-accent); }

/* ─── Inner Page Hero ─────────────────────── */
.page-hero {
  position: relative;
  background-image: url('../assets/images/hero.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: calc(var(--nav-height) + var(--space-24)) var(--space-8) var(--space-20);
  margin-top: calc(-1 * (var(--space-4) * 2 + 52px));
  text-align: center;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 0;
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

/* ─── Featured Project ────────────────────── */
.featured-project {
  padding: var(--space-24) var(--space-8);
  background: var(--color-bg);
}

.featured-project__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.featured-project__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.featured-project__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.featured-project__type {
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.featured-project__description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-8);
}

.featured-project__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.featured-project__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── CTA Section ─────────────────────────── */
.cta-section {
  padding: var(--space-20) var(--space-8);
  text-align: center;
}

.cta-section .btn {
  padding: var(--space-4) var(--space-12);
  font-size: var(--text-base);
}

/* ─── Pricing ─────────────────────────────── */
.pricing {
  padding: var(--space-24) var(--space-8);
}

.pricing__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.pricing__heading {
  text-align: center;
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.pricing-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-card--featured {
  border-color: var(--color-accent);
}

.pricing-card__price {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.pricing-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent);
  line-height: var(--leading-tight);
}

.pricing-card__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-2) 0;
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  margin-bottom: var(--space-4);
}

.pricing-card__features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  padding-left: var(--space-5);
  position: relative;
}

.pricing-card__features li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

/* ─── Process ─────────────────────────────── */
.process {
  padding: var(--space-24) var(--space-8);
  border-top: 1px solid var(--color-border);
}

.process__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.process__heading {
  text-align: center;
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.process-step__icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.process-step__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.process-step__description {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* ─── FAQ ─────────────────────────────────── */
.faq {
  padding: var(--space-24) var(--space-8);
  border-top: 1px solid var(--color-border);
}

.faq__inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq__heading {
  text-align: center;
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-16);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6) 0;
}

.faq-item__question {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.faq-item__answer {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* ─── Case Studies ────────────────────────── */
.case-studies {
  padding: var(--space-24) var(--space-8);
}

.case-studies__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.case-study-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border);
}

.case-study-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.case-study-card__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.case-study-card__type {
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.case-study-card__description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-8);
}

.case-study-card__image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.case-study-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ─── Contact ─────────────────────────────── */
.contact {
  padding: var(--space-24) var(--space-8);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.contact__inner {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.contact__icon {
  width: 56px;
  height: 56px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: #fff;
}

.contact__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.contact__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-10);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
}

.form-field input,
.form-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  transition: border-color 0.2s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

.contact__submit {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.contact__submit:hover { opacity: 0.85; }

/* ─── Mobile Nav ──────────────────────────── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav__mobile.is-open { display: flex; }

.nav__mobile-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  background: none;
  border: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: var(--text-2xl);
  line-height: 1;
}

.nav__mobile a {
  display: block;
  width: 100%;
  text-align: center;
  padding: var(--space-6) var(--space-8);
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border);
}

/* ─── Responsive ──────────────────────────── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .featured-project__inner,
  .case-study-card {
    grid-template-columns: 1fr;
  }

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

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

  .footer__inner {
    flex-direction: column;
    gap: var(--space-10);
  }
}

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

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

  .hero__title {
    font-size: var(--text-4xl);
  }
}

/* ─── Placeholder Page ────────────────────── */
.placeholder-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-24) var(--space-8);
}

.placeholder-page__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-text);
}

.placeholder-page__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}
