/* ============================================================
   MRL FERFORJE - COMPONENTS (components.css)
   Skills: frontend-design, UI/UX Pro Max, Taste Skill, Web Animation, CRO
   ============================================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm);
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700;
  padding: 14px 32px; border: 2px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition-base); text-decoration: none;
  line-height: 1.4; letter-spacing: 0.06em; text-transform: uppercase;
}
.btn--primary { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.btn--primary:hover { background: var(--color-accent-light); border-color: var(--color-accent-light); transform: translateY(-2px); box-shadow: var(--shadow-accent); color: var(--color-white); }
.btn--outline { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.5); }
.btn--outline:hover { background: var(--color-white); color: var(--color-primary); border-color: var(--color-white); transform: translateY(-2px); }
.btn--dark { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.btn--dark:hover { background: var(--color-primary-light); transform: translateY(-2px); color: var(--color-white); }
.btn--lg { padding: 18px 44px; font-size: var(--text-base); }
.btn--sm { padding: 10px 20px; font-size: var(--text-xs); }
.btn--full { width: 100%; }

/* --- Header / Navigation --- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: transparent; transition: all var(--transition-base);
  height: var(--header-height);
}
.header.scrolled {
  background: rgba(20,20,20,0.97); backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4); height: 68px;
}
.header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header__logo { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.header__logo-text {
  font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900;
  color: var(--color-white); letter-spacing: 0.05em; text-transform: uppercase;
}
.header__logo-text span { color: var(--color-accent); }
.header__nav { display: flex; align-items: center; gap: var(--space-xl); }
.header__nav a {
  color: rgba(255,255,255,0.8); font-size: var(--text-xs); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; transition: color var(--transition-fast);
  padding: var(--space-sm) 0; position: relative;
}
.header__nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px;
  background: var(--color-accent); transition: width var(--transition-base);
}
.header__nav a:hover { color: var(--color-white); }
.header__nav a:hover::after { width: 100%; }
.header__cta { margin-left: var(--space-lg); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: var(--space-sm); background: none; border: none; }
.hamburger span { width: 22px; height: 1.5px; background: var(--color-white); transition: all var(--transition-base); display: block; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: rgba(20,20,20,0.99); z-index: 999; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--space-xl);
  opacity: 0; pointer-events: none; transition: opacity var(--transition-base);
}
.mobile-nav.active { display: flex; opacity: 1; pointer-events: all; }
.mobile-nav a { color: var(--color-white); font-family: var(--font-subheading); font-size: var(--text-2xl); font-weight: 500; transition: color var(--transition-fast); }
.mobile-nav a:hover { color: var(--color-accent); }

/* --- Hero --- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(14,14,14,0.93) 0%, rgba(20,20,20,0.80) 55%, rgba(14,14,14,0.70) 100%);
  z-index: 1;
}
/* Iron lattice texture overlay */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: 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' stroke='rgba(184,134,11,0.06)' stroke-width='0.5'%3E%3Cpath d='M30 0 L30 60 M0 30 L60 30'/%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3Ccircle cx='0' cy='0' r='6'/%3E%3Ccircle cx='60' cy='0' r='6'/%3E%3Ccircle cx='0' cy='60' r='6'/%3E%3Ccircle cx='60' cy='60' r='6'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
}
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--space-3xl);
}
.hero__content { max-width: 680px; }
.hero__label {
  display: inline-flex; align-items: center; gap: var(--space-md);
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--color-accent); margin-bottom: var(--space-xl);
}
.hero__label::before { content: ''; width: 32px; height: 1px; background: var(--color-accent); display: block; flex-shrink: 0; }
.hero__title { color: var(--color-white); margin-bottom: var(--space-xl); }
.hero__title .hero__line { display: block; }
.hero__subtitle {
  font-size: var(--text-lg); color: rgba(255,255,255,0.75); line-height: 1.85;
  margin-bottom: var(--space-xl); max-width: 520px;
}
.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.hero__trust-chips { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* Hero glassmorphism stat card */
.hero__stat-card {
  min-width: 220px; padding: var(--space-xl) var(--space-lg);
  display: flex; flex-direction: column; gap: var(--space-xl);
  flex-shrink: 0;
}
.hero__stat-item { text-align: center; }
.hero__stat-number {
  font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 900;
  color: var(--color-accent); line-height: 1; display: block;
}
.hero__stat-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.6); margin-top: 4px; display: block; }
.hero__stat-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.1); }

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: var(--space-xl); left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: var(--text-xs); letter-spacing: 0.15em; text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 48px; background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.4; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(0.6); } }

/* --- Stats Bar --- */
.stats-bar {
  background: var(--color-primary);
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.stats-bar::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(184,134,11,0.04) 0%, transparent 60%);
}
.stats-bar__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--space-xl); text-align: center; position: relative; }
.stats-bar__item { position: relative; }
.stats-bar__item:not(:last-child)::after {
  content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 60px; background: rgba(255,255,255,0.08);
}
.stats-bar__icon { font-size: 1.1rem; margin-bottom: var(--space-sm); display: block; }
.stats-bar__number {
  font-family: var(--font-display); font-size: var(--text-5xl); font-weight: 900;
  color: var(--color-accent); line-height: 1; margin-bottom: var(--space-xs);
}
.stats-bar__label { font-size: var(--text-xs); color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.15em; }

/* Trust strip */
.trust-strip {
  background: var(--color-bg-alt);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trust-strip__inner {
  display: flex; align-items: center; justify-content: center;
  gap: var(--space-2xl); flex-wrap: wrap;
}
.trust-strip__item {
  display: flex; align-items: center; gap: var(--space-sm);
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text);
}
.trust-strip__item svg { color: var(--color-accent-contrast); width: 16px; height: 16px; flex-shrink: 0; }

/* --- Portfolio Grid (Masonry style) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: var(--space-sm);
}
.portfolio-item {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  aspect-ratio: 4/3; cursor: pointer;
}
/* Feature first item spans 2 rows */
.portfolio-item:first-child { grid-row: span 2; aspect-ratio: unset; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-spring); }
.portfolio-item:hover img { transform: scale(1.06); }

/* Clip-path overlay reveal (Taste Skill) */
.portfolio-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,14,14,0.92) 0%, rgba(14,14,14,0.3) 60%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-lg);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.4s var(--ease-spring);
}
.portfolio-item:hover .portfolio-item__overlay { clip-path: inset(0 0 0 0); }
.portfolio-item__category {
  color: var(--color-accent); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; margin-bottom: 4px;
}
.portfolio-item__title { color: var(--color-white); font-family: var(--font-subheading); font-size: var(--text-lg); font-weight: 600; }

/* --- Service Cards (SVG icon version) --- */
.service-card {
  background: var(--color-white); padding: var(--space-2xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  transition: all var(--transition-base);
  position: relative; overflow: hidden;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--color-accent);
}
.service-card__icon {
  width: 52px; height: 52px; margin-bottom: var(--space-lg);
  color: var(--color-accent);
}
.service-card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card__title { font-family: var(--font-subheading); font-size: var(--text-xl); font-weight: 600; margin-bottom: var(--space-sm); color: var(--color-primary); }
.service-card__text { font-size: var(--text-sm); color: var(--color-text-light); margin-bottom: var(--space-lg); line-height: 1.7; }
.card__link { font-size: var(--text-sm); font-weight: 700; color: var(--color-accent-contrast); display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.04em; transition: gap var(--transition-fast); }
.card__link:hover { gap: 10px; color: var(--color-accent); }

/* --- "Why Us" Editorial Section (Taste Skill) --- */
.why-us-list { display: flex; flex-direction: column; gap: var(--space-2xl); }
.why-us-item {
  display: grid; grid-template-columns: 120px 1fr; align-items: start;
  gap: var(--space-xl); padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.why-us-item:last-child { border-bottom: none; padding-bottom: 0; }
.why-us-number {
  font-family: var(--font-display); font-size: var(--text-7xl); font-weight: 900;
  color: var(--color-white); opacity: 0.06; line-height: 0.85;
  user-select: none; pointer-events: none; flex-shrink: 0;
}
.why-us-body {}
.why-us-icon { font-size: 1.5rem; margin-bottom: var(--space-sm); }
.why-us-title { font-family: var(--font-subheading); font-size: var(--text-xl); font-weight: 600; color: var(--color-white); margin-bottom: var(--space-sm); }
.why-us-text { font-size: var(--text-sm); color: rgba(255,255,255,0.65); line-height: 1.8; margin: 0; }

/* --- Process Timeline --- */
.process { display: grid; grid-template-columns: repeat(5,1fr); gap: var(--space-lg); position: relative; counter-reset: step; }
.process__connector {
  position: absolute; top: 28px; left: calc(10% + 28px); right: calc(10% + 28px);
  height: 1px; background: rgba(184,134,11,0.2);
}
.process__connector-line {
  position: absolute; top: 0; left: 0; height: 100%; width: 0;
  background: var(--color-accent);
  transition: width 1.2s var(--ease-smooth);
}
.process__connector-line.draw { width: 100%; }
.process__step { text-align: center; position: relative; counter-increment: step; }
.process__step::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-primary); border: 2px solid var(--color-accent);
  color: var(--color-accent); font-family: var(--font-display); font-size: var(--text-base);
  font-weight: 900; margin: 0 auto var(--space-md);
  transition: all var(--transition-base);
}
.process__step:hover::before { background: var(--color-accent); color: var(--color-white); transform: scale(1.08); }
.process__title { font-family: var(--font-subheading); font-size: var(--text-base); font-weight: 600; margin-bottom: var(--space-xs); color: var(--color-primary); }
.process__text { font-size: var(--text-sm); color: var(--color-text-light); line-height: 1.6; }

/* --- Testimonials --- */
.testimonials-stack { position: relative; min-height: 240px; }
.testimonial-card {
  position: absolute; inset: 0;
  background: var(--color-white); padding: var(--space-2xl); border-radius: var(--radius-md);
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  opacity: 0; transition: opacity 0.6s var(--ease-smooth);
  pointer-events: none;
}
.testimonial-card.is-active { opacity: 1; pointer-events: auto; position: relative; }
.testimonial__stars { margin-bottom: var(--space-md); }
.testimonial__quote {
  font-family: var(--font-heading); font-size: var(--text-xl); font-style: italic;
  color: var(--color-text); line-height: 1.8; margin-bottom: var(--space-lg);
  position: relative; padding-left: var(--space-2xl);
}
.testimonial__quote::before {
  content: '\201C'; font-size: 4rem; color: var(--color-accent); font-family: var(--font-heading);
  position: absolute; top: -16px; left: -8px; opacity: 0.25; line-height: 1;
}
.testimonial__author { font-weight: 700; color: var(--color-primary); font-size: var(--text-base); }
.testimonial__role { font-size: var(--text-sm); color: var(--color-text-light); }
.testimonials-dots { display: flex; justify-content: flex-start; gap: 8px; margin-top: var(--space-lg); }
.testimonial-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid var(--color-accent); background: transparent;
  cursor: pointer; padding: 0; transition: all var(--transition-fast);
}
.testimonial-dot.active { background: var(--color-accent); transform: scale(1.3); }

/* --- Blog Cards --- */
.card {
  background: var(--color-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  border: 1px solid var(--color-border);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__image { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card__body { padding: var(--space-lg); }
.card__title { font-family: var(--font-subheading); font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-sm); color: var(--color-primary); line-height: 1.4; }
.card__text { font-size: var(--text-sm); color: var(--color-text-light); margin-bottom: var(--space-md); }

/* --- CTA Section (diagonal top) --- */
.cta-section {
  background: linear-gradient(135deg, #141414 0%, #1e1a10 60%, #1a1408 100%);
  padding: var(--space-5xl) 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(184,134,11,0.08) 0%, transparent 70%);
}
.cta-section h2 { color: var(--color-white); margin-bottom: var(--space-md); }
.cta-section > .container > div > p { color: rgba(255,255,255,0.65); margin-bottom: var(--space-2xl); }

/* Contact Form (premium dark treatment) */
.form-group { margin-bottom: var(--space-lg); }
.form-group label { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-sm); color: rgba(255,255,255,0.7); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 14px 18px; font-family: var(--font-body); font-size: var(--text-base);
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group select { color: rgba(255,255,255,0.7); }
.form-group select option { background: #1e1a10; color: var(--color-white); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(184,134,11,0.18); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { text-align: center; font-size: var(--text-xs); color: rgba(255,255,255,0.35); margin-top: var(--space-md); }
.form-note svg { display: inline-block; vertical-align: middle; margin-right: 4px; }

/* --- Footer --- */
.footer { background: #0E0E0E; color: rgba(255,255,255,0.6); padding: var(--space-5xl) 0 var(--space-xl); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-2xl); margin-bottom: var(--space-3xl); }
.footer__brand p { font-size: var(--text-sm); line-height: 1.85; color: rgba(255,255,255,0.5); }
.footer__title { font-family: var(--font-display); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-white); margin-bottom: var(--space-lg); }
.footer__links { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__links a { color: rgba(255,255,255,0.5); font-size: var(--text-sm); transition: color var(--transition-fast); }
.footer__links a:hover { color: var(--color-accent); }
.footer__contact { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__contact a { color: rgba(255,255,255,0.5); font-size: var(--text-sm); display: flex; align-items: center; gap: var(--space-sm); }
.footer__contact a:hover { color: var(--color-accent); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.07); padding-top: var(--space-xl); display: flex; align-items: center; justify-content: space-between; font-size: var(--text-xs); color: rgba(255,255,255,0.3); letter-spacing: 0.05em; }

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45); transition: transform var(--transition-base);
  color: var(--color-white); font-size: var(--text-xl); text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--color-white); }
.whatsapp-float__pulse { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2s infinite; }
@keyframes waPulse { 0%{transform:scale(1);opacity:1} 100%{transform:scale(1.45);opacity:0} }

/* --- Back to Top --- */
.back-to-top {
  position: fixed; bottom: 94px; right: 28px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(28,28,28,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white); font-size: var(--text-lg); cursor: pointer;
  opacity: 0; pointer-events: none; transition: all var(--transition-base);
  backdrop-filter: blur(8px);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--color-accent); border-color: var(--color-accent); transform: translateY(-2px); }
