/* ── Blacksword — self-hosted (used in navbar dept label + footer on all dept pages) ── */
@font-face {
  font-family: 'Blacksword';
  src: url('../fonts/Blacksword.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Comic Sans Pro — self-hosted ── */
@font-face {
  font-family: 'Comic Sans Pro';
  src: url('../fonts/comic-sans-pro.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Lucida Handwriting Std — self-hosted ── */
@font-face {
  font-family: 'Lucida Handwriting Std';
  src: url('../fonts/LucidaHandwritingStd-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lucida Handwriting Std';
  src: url('../fonts/LucidaHandwritingStd-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ═══════════════════════════════════════════════════
   TAILORED BAY — Shared Base CSS (Warm Gray Theme)
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px; line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ─── Layout ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
section { position: relative; padding: 96px 0; }

/* ─── Typography helpers ─── */
.section-label {
  display: block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.75px;
  margin-bottom: 1.1rem;
}
.section-sub { font-size: 1rem; line-height: 1.75; max-width: 540px; }

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Page Hero ─── */
.page-hero { position: relative; overflow: hidden; padding: 150px 5% 80px; }
.page-hero-inner { position: relative; z-index: 2; max-width: 680px; }
.page-hero-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.page-hero-title { font-family: 'Oswald', sans-serif; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 1.25rem; }
.page-hero-sub { font-size: 1.05rem; max-width: 500px; margin-bottom: 2rem; }

/* ─── CTA Band ─── */
.cta-band { padding: 80px 5%; text-align: center; }
.cta-band-title { font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; letter-spacing: -0.75px; margin-bottom: 0.9rem; }
.cta-band-sub { font-size: 1rem; margin-bottom: 2rem; }
.cta-band-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Why Grid ─── */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.why-card { border-radius: 14px; padding: 1.75rem; transition: transform 0.3s; }
.why-card:hover { transform: translateY(-4px); }
.why-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.why-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.4rem; }
.why-desc { font-size: 0.875rem; line-height: 1.6; }

/* ─── Testimonials ─── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.testimonial { border-radius: 14px; padding: 1.75rem; }
.stars { font-size: 0.8rem; margin-bottom: 0.6rem; }
.testimonial-quote { font-size: 2.5rem; line-height: 1; margin-bottom: 0.5rem; opacity: 0.25; }
.testimonial-text { font-size: 0.9rem; line-height: 1.75; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { font-weight: 700; font-size: 0.9rem; }
.testimonial-role { font-size: 0.8rem; margin-top: 2px; }

/* ─── Portfolio ─── */
.portfolio-tabs { display: flex; gap: 0.5rem; margin: 2rem 0; flex-wrap: wrap; }
.ptab { padding: 8px 20px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; border: 1.5px solid transparent; background: transparent; transition: all 0.2s; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.portfolio-item { border-radius: 12px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.portfolio-item:hover { transform: translateY(-5px); }
.portfolio-thumb { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; position: relative; overflow: hidden; }
.portfolio-thumb .overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; opacity: 0; transition: opacity 0.3s; }
.portfolio-item:hover .overlay { opacity: 1; }
.portfolio-info { padding: 1.25rem; }
.portfolio-name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.3rem; }
.portfolio-type { font-size: 0.8rem; }
.portfolio-tag { display: inline-block; margin-top: 0.5rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 100px; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; margin-top: 3rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon { width: 46px; height: 46px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.contact-item-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.25rem; }
.contact-item-val { font-weight: 600; font-size: 0.95rem; }
.contact-form-wrap { border-radius: 18px; padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; border: 1.5px solid transparent; font-family: inherit; padding: 12px 16px; border-radius: 9px; font-size: 0.9rem; transition: border-color 0.2s, box-shadow 0.2s; outline: none; appearance: none; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-btn-full { width: 100%; justify-content: center; }
.form-success { display: none; text-align: center; padding: 3rem 2rem; }
.form-success .success-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.form-success-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ─── Process ─── */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 3rem; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 27px; left: 10%; right: 10%; height: 1px; }
.process-step { text-align: center; padding: 0 0.75rem; }
.step-num { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-weight: 800; font-size: 0.95rem; margin: 0 auto 1rem; position: relative; z-index: 1; border: 2px solid transparent; transition: all 0.3s; }
.step-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.35rem; }
.step-desc { font-size: 0.78rem; line-height: 1.5; }

/* ─── Pricing ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pricing-card { border-radius: 16px; padding: 2rem; position: relative; transition: transform 0.3s; border: 1.5px solid transparent; }
.pricing-card:hover { transform: translateY(-5px); }
.pricing-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-size: 0.68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 100px; white-space: nowrap; }
.pricing-tier { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.05rem; margin-bottom: 0.5rem; }
.pricing-price { font-family: 'Oswald', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 0.2rem; }
.pricing-note { font-size: 0.8rem; margin-bottom: 1.5rem; }
.pricing-features { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 2rem; }
.pricing-features li { font-size: 0.875rem; display: flex; gap: 8px; align-items: flex-start; }
.pricing-features li::before { content: '✓'; font-weight: 700; flex-shrink: 0; }

/* ─── CAD items ─── */
.cad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3rem; }
.cad-schematic { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.schematic-svg { width: 90%; height: 90%; }
.cad-services-list { display: flex; flex-direction: column; gap: 1.25rem; }
.cad-item { border-radius: 11px; padding: 1.5rem; transition: border-color 0.25s, background 0.25s; border: 1.5px solid transparent; }
.cad-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 0.5rem; }
.cad-item-icon { font-size: 1.2rem; }
.cad-item-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1rem; }
.cad-item-desc { font-size: 0.875rem; line-height: 1.65; }

/* ─── Footer ─── */
footer { padding: 3rem 5% 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand-name { font-family: 'Oswald', sans-serif; font-size: 1.25rem; font-weight: 800; margin-bottom: 0.75rem; }
.footer-brand-desc { font-size: 0.85rem; line-height: 1.65; margin-bottom: 1.25rem; max-width: 280px; }
.footer-back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 600; transition: gap 0.2s; }
.footer-back-link:hover { gap: 10px; }
.footer-col-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 0.85rem; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 0.65; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; font-size: 0.8rem; border-top-width: 1px; border-top-style: solid; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: 0.8rem; transition: opacity 0.2s; }
.footer-bottom-links a:hover { opacity: 0.6; }

/* ─── Animations ─── */
@keyframes fadeUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }
  .pricing-grid { grid-template-columns: 1fr; }
  .cad-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .why-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band-btns { flex-direction: column; align-items: center; }
}

/* ─── Oswald / Open Sans Tuning ─── */
.section-label { letter-spacing: 4px; font-weight: 600; }
.section-title, .page-hero-title, .hero-title, .card-title,
.footer-brand-name, .cta-band-title, .nav-logo,
.dept-title, .why-title, .service-title, .cad-item-title,
.step-title, .pricing-tier, .testimonial-author,
.footer-col-title, .portfolio-name, .stat-num,
h1, h2, h3 { font-family: 'Oswald', sans-serif; letter-spacing: 0.5px; }
body, p, li, a, input, select, textarea, button,
.section-sub, .service-desc, .cad-item-desc, .why-desc,
.step-desc, .pricing-note, .testimonial-text,
.card-desc, .footer-brand-desc, .footer-links a,
.hero-sub, .page-hero-sub, .cta-band-sub { font-family: 'Open Sans', sans-serif; }
.nav-logo { letter-spacing: 1px; }
.hero-badge, .hero-badge-dot + span, .nav-dept-badge { font-family: 'Open Sans', sans-serif; font-weight: 600; }

