/* ============================================================
   INLINE MECHANICAL LTD — Design System
   Single stylesheet. All pages share this file.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --im-dark:       #1E2330;
  --im-blue:       #2557CC;
  --im-blue-light: #3B82F6;
  --im-orange:     #F97316;
  --im-orange-dark:#EA6C0A;
  --im-light:      #F0F4FF;
  --im-surface:    #FFFFFF;
  --im-mid:        #5A6380;
  --im-border:     #DDE3F0;

  --font-display:  'Barlow Condensed', sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;

  --section-v:     5rem;
  --container:     1200px;
  --radius:        8px;
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --speed:         0.3s;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--im-dark);
  background: var(--im-light);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem);  font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; font-family: var(--font-body); }
p  { font-size: 1rem; line-height: 1.75; color: var(--im-mid); max-width: 62ch; }

.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--im-orange);
  margin-bottom: 0.75rem;
}
.label--light { color: rgba(255,255,255,0.65); }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 5vw;
}
.section {
  padding-block: var(--section-v);
}
.section--dark {
  background: var(--im-dark);
  color: #fff;
}
.section--dark p { color: rgba(255,255,255,0.65); }
.section--blue {
  background: var(--im-blue);
  color: #fff;
}
.section--surface {
  background: var(--im-surface);
}

/* ── Grid utilities ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease), transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--im-orange);
  color: #fff;
}
.btn-primary:hover { background: var(--im-orange-dark); }

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-outline-blue {
  background: transparent;
  color: var(--im-blue);
  border: 2px solid var(--im-blue);
}
.btn-outline-blue:hover {
  background: var(--im-blue);
  color: #fff;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 70px;
  display: flex;
  align-items: center;
  transition: background var(--speed) var(--ease), backdrop-filter var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.site-header.scrolled {
  background: rgba(30, 35, 48, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  line-height: 0;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: color var(--speed), background var(--speed);
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.nav-links a.active { color: #fff; }
.nav-book {
  margin-left: 0.75rem;
  padding: 0.55rem 1.25rem !important;
  background: var(--im-orange) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
}
.nav-book:hover { background: var(--im-orange-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--im-dark);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  transition: color var(--speed);
}
.nav-mobile a:hover,
.nav-mobile a.active { color: #fff; }
.nav-mobile .nav-mobile-book {
  margin-top: 1rem;
  font-size: 1.25rem !important;
  background: var(--im-orange);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  color: #fff !important;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(30, 35, 48, 0.72) 0%,
    rgba(37, 87, 204, 0.35) 60%,
    rgba(30, 35, 48, 0.80) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}
.hero-content h1 { color: #fff; margin-bottom: 1rem; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.78);
  max-width: 52ch;
  margin-bottom: 0;
}
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-hint svg { animation: bounce 2s ease-in-out infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* Mobile hero: hide video, show poster */
@media (max-width: 768px) {
  .hero-video { display: none; }
  .hero-video-wrap {
    background: url('../assets/images/hero/hero-poster.jpg') center/cover no-repeat;
  }
}

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  padding-top: calc(70px + 4rem);
  padding-bottom: 4rem;
  background: var(--im-dark);
  color: #fff;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero p  { color: rgba(255,255,255,0.65); margin-top: 0.75rem; max-width: 55ch; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--im-surface);
  border: 1px solid var(--im-border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.card:hover {
  box-shadow: 0 8px 32px rgba(37,87,204,0.12);
  transform: translateY(-3px);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--im-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--im-blue);
}

/* Service cards */
.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--im-border);
  background: var(--im-surface);
  transition: box-shadow var(--speed), transform var(--speed);
}
.service-card:hover {
  box-shadow: 0 4px 20px rgba(37,87,204,0.1);
  transform: translateY(-2px);
}
.service-card svg { flex-shrink: 0; color: var(--im-blue); margin-top: 2px; }
.service-card h4 { margin-bottom: 0.25rem; color: var(--im-dark); }
.service-card p  { font-size: 0.9rem; margin: 0; max-width: none; }

/* Promise tiles */
.promise-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}
.promise-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--im-orange);
}
.promise-tile h4 { color: #fff; font-size: 1rem; }
.promise-tile p  { font-size: 0.875rem; color: rgba(255,255,255,0.6); max-width: none; margin: 0; }

/* Stat tiles */
.stat-tile { text-align: center; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  display: block;
}
.stat-suffix {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--im-orange);
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.4rem;
  display: block;
}

/* ── CTA Strip ────────────────────────────────────────────── */
.cta-strip {
  background: var(--im-blue);
  color: #fff;
  padding-block: 4rem;
  text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-strip p  { color: rgba(255,255,255,0.75); margin-inline: auto; }
.cta-strip .phone-large {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  margin-block: 1rem;
  transition: color var(--speed);
}
.cta-strip .phone-large:hover { color: var(--im-orange); }

/* ── Marquee ──────────────────────────────────────────────── */
.marquee-section {
  background: var(--im-dark);
  padding-block: 1.5rem;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  padding-inline: 1.5rem;
}
.marquee-track span.sep {
  color: var(--im-blue);
  padding-inline: 0.5rem;
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
  border: 1px solid var(--im-border);
  border-radius: var(--radius);
  background: var(--im-surface);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--im-dark);
  cursor: pointer;
  transition: background var(--speed);
}
.faq-question:hover { background: var(--im-light); }
.faq-question.open { color: var(--im-blue); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--im-mid);
  transition: transform var(--speed) var(--ease), color var(--speed);
}
.faq-question.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--im-blue);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  margin: 0;
  max-width: none;
}

/* ── Portfolio Grid ───────────────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--im-border);
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,35,48,0.72);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--speed);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--im-blue);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--im-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--im-mid);
  background: var(--im-surface);
  transition: all var(--speed);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--im-orange);
  border-color: var(--im-orange);
  color: #fff;
}

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ── Contact Form ─────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--im-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--im-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--im-dark);
  background: var(--im-surface);
  transition: border-color var(--speed), box-shadow var(--speed);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--im-blue);
  box-shadow: 0 0 0 3px rgba(37,87,204,0.15);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--im-dark);
  color: rgba(255,255,255,0.6);
  padding-block: 3.5rem 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  display: inline-block;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  margin-bottom: 1rem;
  line-height: 0;
}
.footer-logo img {
  height: 36px;
  width: auto;
}
.footer-tagline { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; }
.footer-phone {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--speed);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.8rem;
}
.social-links { display: flex; gap: 0.75rem; }
.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: background var(--speed), color var(--speed);
}
.social-links a:hover {
  background: var(--im-blue);
  color: #fff;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── Scroll reveal animations (GSAP targets) ──────────────── */
/* Initial hidden state is set by JS (gsap.set) so content stays
   visible if scripts fail to load. */
.reveal { will-change: opacity, transform; }

/* ── Prose content (SEO pages) ───────────────────────────── */
.prose p {
  margin-bottom: 1.25rem;
  max-width: 72ch;
}
.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.prose ul {
  list-style: disc;
  padding-left: 1.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.prose ul li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--im-mid);
}
.prose ul li strong {
  color: var(--im-dark);
}
.prose > *:first-child {
  margin-top: 0;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-white   { color: #fff !important; }
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.divider {
  border: none;
  border-top: 1px solid var(--im-border);
  margin-block: 0.5rem;
}

/* ── Responsive padding ───────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-v: 3.5rem; }
  h1 { font-size: 2.6rem; }
  .cta-group { flex-direction: column; }
  .cta-group .btn { width: 100%; justify-content: center; }
}
