/* =========================================================
   ContiempoTech Innovator — Main Stylesheet
   Theme: Cream & Gold — matched to contiempotech.com
   Fonts: Instrument Serif (headings) + Syne (body)
   ========================================================= */

:root {
  --bg-deep: #faf8f4;
  --bg-alt: #f5f0e4;
  --bg-card: rgba(255, 255, 255, 0.78);
  --stroke: rgba(176, 140, 58, 0.28);
  --text: #1a1612;
  --muted: #5e574c;
  --accent: #b8942e;
  --accent-bright: #d4af37;
  --accent-deep: #8b6914;
  --accent-soft: rgba(184, 148, 46, 0.14);
  --glow: rgba(184, 148, 46, 0.38);
  --radius: 1.25rem;
  --shadow: 0 4px 14px rgba(139, 105, 20, 0.06),
            0 18px 44px rgba(139, 105, 20, 0.08);
  --shadow-lift: 0 8px 20px rgba(139, 105, 20, 0.08),
                 0 28px 60px rgba(139, 105, 20, 0.14);
  --font-head: 'Instrument Serif', Georgia, serif;
  --font-body: 'Syne', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 130% 70% at 50% -25%, rgba(212, 175, 55, 0.14), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, var(--bg-deep) 38%, #fffefb 100%);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Film-grain noise overlay (same as live site) */
body::after {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  z-index: 2000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

.brand-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

h1, h2 { font-family: var(--font-head); font-weight: 400; line-height: 1.1; }
h3, h4 { font-family: var(--font-body); line-height: 1.25; }

/* Accent words: italic gold serif, like the live site's <em> */
.gradient-text {
  font-style: italic;
  color: var(--accent);
}

/* ---------- Buttons (gold gradient pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #fffef8;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--glow);
}

.btn-ghost {
  padding: 1rem 1.5rem;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--stroke);
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-ghost:hover {
  border-color: rgba(184, 148, 46, 0.45);
  background: rgba(212, 175, 55, 0.08);
}

.btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--accent-deep);
  border: 1px solid rgba(255, 254, 248, 0.6);
  box-shadow: 0 10px 30px rgba(80, 60, 10, 0.25);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(80, 60, 10, 0.3); }

.btn-nav {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.8rem;
}
.btn-nav:hover {
  border-color: var(--accent-bright);
  color: var(--text);
  background: rgba(212, 175, 55, 0.12);
}

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled {
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 8px 30px rgba(139, 105, 20, 0.08);
  border-bottom: 1px solid var(--stroke);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.92; }
.logo-mark {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(139, 105, 20, 0.12)) drop-shadow(0 0 18px rgba(212, 175, 55, 0.28));
}
.logo-text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.logo-text span { color: var(--accent); }
.logo-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.55) 0%, transparent 68%);
  top: -15%; right: -10%; left: auto;
}
.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(180, 130, 52, 0.38) 0%, transparent 65%);
  bottom: 5%; left: -15%;
  animation-delay: -6s;
}
.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 65%);
  top: 45%; left: 50%;
  opacity: 0.3;
  animation-delay: -12s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 4%) scale(1.05); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--stroke) 1px, transparent 1px),
    linear-gradient(90deg, var(--stroke) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(212, 175, 55, 0.09);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--glow);
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 500;
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 52px; align-items: center; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--accent-deep);
}
.stat span { color: var(--muted); font-size: 0.82rem; font-weight: 500; }

/* Hero floating cards */
.hero-visual {
  position: relative;
  height: 420px;
  perspective: 1000px;
}
.hero-ring {
  position: absolute;
  inset: 10% 6%;
  border: 1.5px dashed rgba(176, 140, 58, 0.4);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.hero-card strong { font-weight: 700; font-size: 0.92rem; display: block; color: var(--text); }
.hero-card small { color: var(--muted); font-size: 0.76rem; font-weight: 500; }
.hc-icon { font-size: 1.6rem; }

.card-float-1 { top: 6%; left: 4%; }
.card-float-2 { top: 42%; right: 0; animation-delay: -2s; }
.card-float-3 { bottom: 6%; left: 12%; animation-delay: -4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.scroll-down {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--stroke);
  background: rgba(255, 254, 251, 0.9);
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  box-shadow: 0 8px 20px rgba(139, 105, 20, 0.1);
  animation: bounce 2.2s infinite;
  z-index: 1;
}
.scroll-down svg { width: 18px; height: 18px; }
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { padding: 110px 0; }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--stroke);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1rem; font-weight: 500; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  perspective: 1400px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px rgba(139, 105, 20, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.portfolio-card:hover {
  border-color: rgba(184, 148, 46, 0.42);
  box-shadow: var(--shadow-lift);
}

.pc-media {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 3.2rem;
}
.pc-media span { transform: translateZ(40px); }
.grad-1 { background: linear-gradient(135deg, #d4af37, #8b6914); }
.grad-2 { background: linear-gradient(135deg, #c9a227, #7a5c12); }
.grad-3 { background: linear-gradient(135deg, #e0bc4a, #9a7029); }
.grad-4 { background: linear-gradient(135deg, #b8942e, #6e5310); }
.grad-5 { background: linear-gradient(135deg, #cfa93a, #85661a); }
.grad-6 { background: linear-gradient(135deg, #dab440, #8b6914); }

.pc-body { padding: 24px; }
.pc-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pc-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.pc-body p { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

/* =========================================================
   STAFF AUGMENTATION
   ========================================================= */
.staff-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.staff-circle {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 1.5px dashed rgba(176, 140, 58, 0.4);
  border-radius: 50%;
}
.avatar {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 254, 250, 0.92);
  border: 1px solid var(--stroke);
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.avatar.center {
  width: 110px;
  height: 110px;
  font-size: 2.8rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  box-shadow: 0 12px 40px var(--glow);
  animation: none;
}
.a1 { top: -12px; left: 50%; margin-left: -38px; }
.a2 { top: 50%; right: -18px; margin-top: -38px; animation-delay: -1.5s; }
.a3 { bottom: -12px; left: 50%; margin-left: -38px; animation-delay: -3s; }
.a4 { top: 50%; left: -18px; margin-top: -38px; animation-delay: -4.5s; }

.staff-content h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 18px;
}
.staff-content > p { color: var(--muted); font-weight: 500; margin-bottom: 26px; }

.check-list { list-style: none; margin-bottom: 34px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 500;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #fffef8;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px var(--glow);
}

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  perspective: 1400px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover {
  border-color: rgba(184, 148, 46, 0.42);
  box-shadow: var(--shadow-lift);
}

.sc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  transform: translateZ(0);
  transition: transform 0.35s ease;
}
.service-card:hover .sc-icon { transform: translateZ(40px); }
.sc-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  transform: translateZ(0);
  transition: transform 0.35s ease;
}
.service-card:hover h3 { transform: translateZ(25px); }
.service-card p { color: var(--muted); font-size: 0.9rem; font-weight: 500; }

.service-featured {
  border-color: rgba(184, 148, 46, 0.42);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.11), rgba(255, 252, 245, 0.95));
}

.sub-services {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stroke);
  color: var(--text);
}

/* =========================================================
   TEAMS
   ========================================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  perspective: 1400px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.team-card:hover {
  border-color: rgba(184, 148, 46, 0.42);
  box-shadow: var(--shadow-lift);
}

.tc-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  box-shadow: 0 12px 32px rgba(139, 105, 20, 0.25);
  transform: translateZ(0);
  transition: transform 0.35s ease;
}
.team-card:hover .tc-avatar { transform: translateZ(35px); }
.team-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.team-card p { color: var(--muted); font-size: 0.86rem; font-weight: 500; }

/* =========================================================
   TECHNOLOGIES
   ========================================================= */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 860px;
  margin-inline: auto;
}
.tech-pill {
  padding: 12px 26px;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.9);
  border: 1px solid var(--stroke);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              background 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}
.tech-pill:hover {
  transform: translateY(-4px);
  color: #fffef8;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  border-color: transparent;
  box-shadow: 0 12px 32px var(--glow);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  border-radius: 1.5rem;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.11), rgba(255, 252, 245, 0.95));
  padding: clamp(1.5rem, 5vw, 3rem);
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.6rem;
}
.contact-info > p {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--stroke);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.contact-links a:hover { border-color: var(--accent); color: var(--accent); }
.contact-links a svg { flex-shrink: 0; opacity: 0.6; }

.offices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.office {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.office::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
}
.office:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(139, 105, 20, 0.14);
}

/* Bangladesh: green & red flag tint */
.office--bd {
  background: linear-gradient(135deg, rgba(0, 106, 78, 0.12), rgba(244, 42, 65, 0.05) 60%, rgba(255, 255, 255, 0.85));
  border-color: rgba(0, 106, 78, 0.3);
}
.office--bd::before { background: linear-gradient(180deg, #006a4e, #f42a41); }
.office--bd .office-label { color: #006a4e; }

/* Canada: red & white flag tint */
.office--ca {
  background: linear-gradient(135deg, rgba(213, 43, 30, 0.12), rgba(213, 43, 30, 0.04) 60%, rgba(255, 255, 255, 0.85));
  border-color: rgba(213, 43, 30, 0.3);
}
.office--ca::before { background: #d52b1e; }
.office--ca .office-label { color: #b3231a; }

.office-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* CSS-drawn mini flags (emoji flags don't render on Windows) */
.office-flag {
  width: 34px;
  height: 24px;
  border-radius: 5px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.flag-bd { background: radial-gradient(circle at 44% 50%, #f42a41 0 34%, #006a4e 35%); }
.flag-ca { background: linear-gradient(90deg, #d52b1e 0 24%, #ffffff 24% 76%, #d52b1e 76%); }

.office-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-address {
  display: flex;
  gap: 0.65rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.7;
}
.contact-address svg { flex-shrink: 0; margin-top: 4px; opacity: 0.6; color: var(--accent-deep); }

/* ---------- Form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.8rem 0.95rem;
  border-radius: 0.85rem;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.92);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: #a89e8c; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}
.form-field select { cursor: pointer; }

.form-field input[type="file"] {
  padding: 0.6rem 0.75rem;
  cursor: pointer;
}
.form-field input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-right: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.form-field input[type="file"]::file-selector-button:hover {
  border-color: var(--accent-bright);
  background: rgba(212, 175, 55, 0.16);
}

.label-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #a89e8c;
}
.field-hint {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact-form .btn-primary {
  align-self: flex-start;
  border: none;
}
.contact-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.form-status {
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.4em;
  margin: 0;
}
.form-status.ok { color: #4d7c0f; }
.form-status.err { color: #b91c1c; }

/* =========================================================
   FOOTER (cream, gold accents — like the live site)
   ========================================================= */
.footer {
  background: #fffefb;
  border-top: 1px solid var(--stroke);
  padding-top: 70px;
  color: var(--text);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 50px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 18px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text);
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 500;
  margin-bottom: 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-col a:hover { color: var(--accent); transform: translateX(4px); }

.footer-address {
  font-style: normal;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 500;
  line-height: 1.7;
  margin-top: 4px;
  margin-bottom: 12px;
}
.country-bd { color: #006a4e; }
.country-ca { color: #b3231a; }

.footer-bottom {
  border-top: 1px solid var(--stroke);
  padding: 22px 0;
  text-align: center;
}
.footer-bottom p { color: var(--muted); font-size: 0.8rem; font-weight: 500; }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  color: #fffef8;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  box-shadow: 0 12px 32px var(--glow);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .portfolio-grid, .services-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 300px; max-width: 520px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Mobile nav */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 82vw);
    height: 100vh;
    height: 100dvh;
    background: rgba(250, 248, 244, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 36px;
    gap: 8px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid var(--stroke);
    box-shadow: -20px 0 60px rgba(139, 105, 20, 0.15);
  }
  .nav-links.open { right: 0; }
  .nav-link {
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100%;
  }
  .btn-nav { margin-top: 18px; }

  .navbar {
    background: rgba(250, 248, 244, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .staff-inner { grid-template-columns: 1fr; gap: 48px; }
  .staff-visual { order: -1; }
  .section { padding: 80px 0; }
  .contact-block { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .portfolio-grid, .services-grid, .team-grid { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 70px; }
  .hero-stats { gap: 26px; }
  .stat strong { font-size: 1.8rem; }
  .hero-visual { height: 280px; }
  .hero-card { padding: 12px 16px; }
  .hc-icon { font-size: 1.3rem; }
  .card-float-1 { left: 0; }
  .card-float-2 { right: 0; }
  .card-float-3 { left: 6%; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form .btn-primary { align-self: stretch; justify-content: center; }
  .btn { padding: 0.85rem 1.4rem; }
  .scroll-down { display: none; }
}
