/* ============================================================
   FabProcisions — Semiconductor Equipment Engineering Services
   Distinct industrial aesthetic: copper/bronze palette
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --copper-dark:    #5C3317;
  --copper:         #B87333;
  --copper-light:   #D4A574;
  --copper-pale:    #F5E6D3;
  --bronze:         #CD7F32;
  --slate-dark:     #1A1D23;
  --slate:          #2C3038;
  --slate-mid:      #4A4F5A;
  --slate-light:    #8A919E;
  --white:          #FFFFFF;
  --off-white:      #F8F6F3;
  --accent-green:   #2E7D5B;
  --accent-green-light: #E8F5EE;
  --font-heading:   'Outfit', sans-serif;
  --font-body:      'Inter', sans-serif;
  --max-width:      1200px;
  --section-pad:    80px 24px;
  --radius:         8px;
  --shadow:         0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--slate-dark);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--copper); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--copper-dark); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--slate-dark);
  border-bottom: 3px solid var(--copper);
  padding: 0 24px;
}

.header-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white); font-family: var(--font-heading);
  font-weight: 700; font-size: 1.25rem;
}

.brand img { height: 36px; width: auto; }

.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  color: var(--slate-light); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--copper-light); }

.header-cta {
  background: var(--copper); color: var(--white);
  padding: 8px 20px; border-radius: 6px;
  font-weight: 600; font-size: 0.9rem;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--copper-dark); color: var(--white); }

/* Mobile menu */
.menu-toggle {
  display: none; background: none; border: none;
  color: var(--white); font-size: 1.5rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate) 100%);
  color: var(--white);
  padding: 100px 24px 80px;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><rect width="60" height="60" fill="none"/><path d="M0 30h60M30 0v60" stroke="rgba(184,115,51,0.06)" stroke-width="1"/></svg>');
  opacity: 0.5;
}

.hero-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}

.hero-eyebrow {
  color: var(--copper-light); font-size: 0.85rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.75rem; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 40%, var(--copper-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 1.1rem; color: var(--slate-light);
  margin-bottom: 32px; max-width: 520px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 6px;
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s; cursor: pointer; border: none;
}

.button-primary {
  background: var(--copper); color: var(--white);
}
.button-primary:hover {
  background: var(--copper-dark); color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(184,115,51,0.4);
}

.button-secondary {
  background: transparent; color: var(--white);
  border: 2px solid var(--slate-mid);
}
.button-secondary:hover {
  border-color: var(--copper); color: var(--copper-light);
}

.hero-visual {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--slate);
  display: flex; align-items: center; justify-content: center;
}

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

/* ---------- Section Titles ---------- */
.section-header {
  text-align: center; margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2rem; margin-bottom: 12px;
  color: var(--slate-dark);
}

.section-header p {
  color: var(--slate-mid); font-size: 1.05rem;
  max-width: 640px; margin: 0 auto;
}

.section-divider {
  width: 60px; height: 3px; background: var(--copper);
  margin: 16px auto 0; border-radius: 2px;
}

/* ---------- Services Grid ---------- */
.services { padding: var(--section-pad); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 3px solid transparent;
  transition: all 0.3s;
}

.service-card:hover {
  border-top-color: var(--copper);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 52px; height: 52px;
  background: var(--copper-pale);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.15rem; margin-bottom: 10px;
  color: var(--slate-dark);
}

.service-card p {
  color: var(--slate-mid); font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Products ---------- */
.products {
  padding: var(--section-pad);
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--off-white);
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  aspect-ratio: 16/10;
  background: var(--slate);
  overflow: hidden;
}

.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-body { padding: 20px; }

.product-body h3 {
  font-size: 1.05rem; margin-bottom: 8px;
  color: var(--slate-dark);
}

.product-body p {
  color: var(--slate-mid); font-size: 0.9rem;
  margin-bottom: 14px;
}

.product-link {
  font-size: 0.85rem; font-weight: 600;
  color: var(--copper);
  display: inline-flex; align-items: center; gap: 4px;
}
.product-link:hover { gap: 8px; }

/* ---------- Testimonials ---------- */
.testimonials { padding: var(--section-pad); }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute; top: 16px; left: 24px;
  font-size: 4rem; color: var(--copper-pale);
  font-family: Georgia, serif; line-height: 1;
}

.stars { color: var(--bronze); font-size: 1rem; margin-bottom: 16px; }

.testimonial-card blockquote {
  font-size: 0.95rem; color: var(--slate-mid);
  line-height: 1.7; margin-bottom: 20px;
  padding-left: 20px;
}

.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}

.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--copper-pale);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--copper-dark);
}

.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; color: var(--slate-light); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--copper-dark) 0%, var(--copper) 100%);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: 1.75rem; margin-bottom: 12px;
}

.cta-banner p {
  color: var(--copper-pale); font-size: 1.05rem;
  margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto;
}

.cta-banner .button-primary {
  background: var(--white); color: var(--copper-dark);
}
.cta-banner .button-primary:hover {
  background: var(--slate-dark); color: var(--white);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-dark);
  color: var(--slate-light);
  padding: 60px 24px 32px;
}

.footer-grid {
  max-width: var(--max-width); margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

.footer-brand h3 {
  color: var(--white); font-size: 1.2rem; margin-bottom: 12px;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.6; }

.footer-col h4 {
  color: var(--white); font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--slate-light); font-size: 0.9rem; }
.footer-col a:hover { color: var(--copper-light); }

.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--slate);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-light); font-size: 0.85rem;
  transition: all 0.2s;
}
.footer-social a:hover {
  background: var(--copper); color: var(--white);
}

.footer-newsletter { margin-top: 16px; }
.footer-newsletter input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--slate-mid);
  border-radius: 6px;
  background: var(--slate);
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.footer-newsletter input::placeholder { color: var(--slate-light); }
.footer-newsletter button {
  width: 100%; padding: 10px;
  background: var(--copper); color: var(--white);
  border: none; border-radius: 6px;
  font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: background 0.2s;
}
.footer-newsletter button:hover { background: var(--copper-dark); }

.footer-bottom {
  max-width: var(--max-width); margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--slate);
  text-align: center;
  font-size: 0.8rem;
  color: var(--slate-mid);
}

/* ---------- Category Headers (Products) ---------- */
.category-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 4px;
}
.category-header:first-child { margin-top: 0; }
.category-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--copper-dark);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  white-space: nowrap;
}
.category-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--copper-light), transparent);
}

/* ---------- Capabilities ---------- */
.capabilities {
  padding: var(--section-pad);
  background: var(--slate-dark);
}
.capabilities .section-header h2 { color: var(--white); }
.capabilities .section-header p { color: var(--slate-light); }
.capabilities .section-divider { background: var(--copper); opacity: 1; }

.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.capability-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--slate);
  transition: transform 0.3s, box-shadow 0.3s;
}
.capability-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.35);
}

.capability-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.capability-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
  filter: brightness(0.8);
}
.capability-card:hover .capability-img img {
  transform: scale(1.06);
  filter: brightness(0.95);
}

.capability-body { padding: 20px 22px 24px; }

.capability-tag {
  display: inline-block;
  background: var(--copper);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.capability-body h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.capability-body p {
  color: var(--slate-light);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { padding: 60px 24px 48px; }
  .hero h1 { font-size: 1.65rem; }
  .hero-actions { flex-direction: column; }
  .button { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  :root { --section-pad: 48px 16px; }
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  animation: fadeInUp 0.6s ease-out both;
}

.reveal-delay-1 { animation-delay: 0.1s; }
.reveal-delay-2 { animation-delay: 0.2s; }
.reveal-delay-3 { animation-delay: 0.3s; }
