/* ==========================================================================
   BadFish Innovation theme — minimal, editorial, black & white.
   Mirrors the Lovable preview's design tokens (HSL, shadcn convention)
   and ships only the utility classes used by the QWeb templates so the
   payload stays small.
   ========================================================================== */

:root {
  /* Tokens — values match the Lovable source 1:1 (HSL, no commas). */
  --background: 0 0% 100%;
  --foreground: 0 0% 0%;
  --primary: 0 0% 0%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 93%;
  --secondary-foreground: 0 0% 0%;
  --muted: 0 0% 93%;
  --muted-foreground: 0 0% 40%;
  --accent: 0 0% 93%;
  --accent-foreground: 0 0% 0%;
  --border: 0 0% 90%;
  --input: 0 0% 90%;
  --ring: 0 0% 0%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 0%;
  --inverted-background: 0 0% 0%;
  --inverted-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --radius: 0px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }

h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1 { font-size: 72px; font-weight: 300; line-height: 1; letter-spacing: -0.025em; }
h2 { font-size: 48px; font-weight: 300; line-height: 1; letter-spacing: -0.025em; }
h3 { font-size: 30px; font-weight: 400; line-height: 1.2; letter-spacing: -0.025em; }
h4 { font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
p  { font-size: 18px; font-weight: 400; line-height: 1.55; color: hsl(var(--muted-foreground)); text-align: left; hyphens: manual; -webkit-hyphens: manual; }

@media (max-width: 768px) {
  h1 { font-size: 44px; line-height: 1.05; }
  h2 { font-size: 32px; line-height: 1.1; }
  h3 { font-size: 24px; line-height: 1.25; }
  p  { font-size: 16px; line-height: 1.6; }
}

/* ---------- Skip link / a11y ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Layout primitives ---------- */
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 768px) {
  .container-wide { padding-left: 64px; padding-right: 64px; }
}
@media (min-width: 1280px) {
  .container-wide { padding-left: 96px; padding-right: 96px; }
}

.section-padding {
  padding-top: 96px;
  padding-bottom: 96px;
}
.section-padding-sm {
  padding-top: 48px;
  padding-bottom: 48px;
}
@media (max-width: 768px) {
  .section-padding { padding-top: 64px; padding-bottom: 64px; }
}

.border-t-section {
  border-top: 1px solid hsl(var(--border));
}

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 20px 0;
}
@media (min-width: 768px) {
  .site-header { padding: 32px 0; }
}
/* Push main content below the fixed header. Header height = padding*2 + logo. */
main { padding-top: 84px !important; }
@media (min-width: 768px) {
  main { padding-top: 124px !important; }
}
.nav-link {
  position: relative;
  padding-bottom: 4px;
  color: hsl(var(--foreground));
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.7; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: hsl(var(--foreground));
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--background));
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-link {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid hsl(var(--border));
}

/* ---------- Footer ---------- */
.site-footer {
  background: hsl(var(--inverted-background));
  color: hsl(var(--inverted-foreground));
}
/* Logos: width auto so aspect ratio is preserved, !important to defeat
   Odoo website module's img sizing rules. */
/* Both PNGs are 598x191, tight-cropped with 100% visible content.
   Aspect 3.13:1, so height N px renders as (N * 3.13)w.
   Header runs smaller than footer (footer has more breathing room). */
.header-logo,
.footer-logo {
  width: auto !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
}
.header-logo { height: 44px !important; }
.footer-logo { height: 56px !important; }
@media (min-width: 768px) {
  .header-logo { height: 60px !important; }
  .footer-logo { height: 80px !important; }
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 14px;
  opacity: 0.7;
}
.footer-nav a { transition: opacity 0.2s ease; }
.footer-nav a:hover { opacity: 1; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid hsl(var(--inverted-foreground) / 0.1);
}
.footer-copy { font-size: 14px; opacity: 0.5; }

/* ---------- Inverted sections ---------- */
.bg-inverted {
  background: hsl(var(--inverted-background));
  color: hsl(var(--inverted-foreground));
}
.bg-inverted h1, .bg-inverted h2, .bg-inverted h3, .bg-inverted h4 {
  color: hsl(var(--inverted-foreground));
}
.bg-inverted p { color: hsl(var(--inverted-foreground) / 0.7); }
.bg-secondary { background: hsl(var(--secondary)); }
.bg-card { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); }
.bg-muted { background: hsl(var(--muted)); }

/* ---------- CTA links (no buttons in this design) ---------- */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid hsl(var(--foreground));
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}
.cta-link:hover { opacity: 0.7; }
.cta-link.cta-inverted {
  border-bottom-color: hsl(var(--inverted-foreground));
  color: hsl(var(--inverted-foreground));
}
.cta-link.cta-muted {
  opacity: 0.6;
  border-bottom: 0;
}
.cta-link.cta-muted:hover { opacity: 1; }
.cta-link::after {
  content: "→";
  display: inline-block;
  transition: transform 0.2s ease;
}
.cta-link:hover::after { transform: translateX(2px); }

/* ---------- Eyebrow / kicker text ---------- */
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.bg-inverted .eyebrow { color: hsl(var(--inverted-foreground) / 0.7); }

/* ---------- Lists with vertical-pipe markers (Services/Board pages) ---------- */
.dashed-list { padding-left: 0; }
.dashed-list li {
  position: relative;
  padding: 4px 0 4px 20px;
  margin-bottom: 12px;
  font-size: 16px;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}
.dashed-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: hsl(var(--foreground));
}
.bg-inverted .dashed-list li { color: hsl(var(--inverted-foreground) / 0.8); }
.bg-inverted .dashed-list li::before { background: hsl(var(--inverted-foreground)); }

/* ---------- Forms ----------
   High specificity + !important to override Odoo's website form CSS,
   which otherwise strips the border down to a thin underline and
   uppercases labels. */
.form-field { display: block; margin-bottom: 24px; }
.form-field > .form-label,
label.form-label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: hsl(var(--foreground)) !important;
  margin-bottom: 8px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.form-field > .form-input,
.form-field > .form-textarea,
input.form-input,
textarea.form-textarea {
  display: block !important;
  width: 100% !important;
  padding: 12px 14px !important;
  background: hsl(var(--background)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 16px !important;
  font-family: inherit !important;
  color: hsl(var(--foreground)) !important;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-field > .form-input:focus,
.form-field > .form-textarea:focus,
input.form-input:focus,
textarea.form-textarea:focus { border-color: hsl(var(--foreground)) !important; }
.form-field > .form-textarea,
textarea.form-textarea { min-height: 140px !important; resize: vertical !important; }
.form-submit {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 14px 28px !important;
  background: hsl(var(--foreground)) !important;
  color: hsl(var(--background)) !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
  text-transform: none !important;
  letter-spacing: 0 !important;
  transition: opacity 0.2s ease;
}
.form-submit:hover { opacity: 0.85; }

.form-success,
.form-error {
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 14px;
  border: 1px solid hsl(var(--border));
}
.form-success { background: hsl(var(--secondary)); }
.form-error { border-color: hsl(var(--destructive)); color: hsl(var(--destructive)); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Selected Work card dividers ---------- */
.work-card { padding-top: 32px; border-top: 1px solid hsl(var(--border)); }
@media (max-width: 768px) {
  .work-card { padding-top: 24px; }
}

/* ==========================================================================
   Tailwind-style utility classes — only what the templates actually use.
   ========================================================================== */

/* Display / flex / grid */
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-full { grid-column: 1 / -1; }

/* Gap (rem-equivalent at 16px base) */
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.gap-6  { gap: 24px; }
.gap-8  { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }
.gap-16 { gap: 64px; }
.gap-x-8 { column-gap: 32px; }
.gap-y-2 { row-gap: 8px; }

/* Margin / padding */
.mt-2  { margin-top: 8px; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mt-20 { margin-top: 80px; }
.mt-24 { margin-top: 96px; }
.mb-2  { margin-bottom: 8px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mb-20 { margin-bottom: 80px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.pt-8  { padding-top: 32px; }
.pt-12 { padding-top: 48px; }
.pt-20 { padding-top: 80px; }
.pt-24 { padding-top: 96px; }
.pb-1  { padding-bottom: 4px; }
.pb-8  { padding-bottom: 32px; }
.pb-12 { padding-bottom: 48px; }
.py-2  { padding-top: 8px;  padding-bottom: 8px; }
.py-4  { padding-top: 16px; padding-bottom: 16px; }
.py-8  { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }

/* Sizing */
.h-10  { height: 40px; }
.h-12  { height: 48px; }
.h-16  { height: 64px; }
.h-20  { height: 80px; }
.h-24  { height: 96px; }
.h-32  { height: 128px; }
.h-full { height: 100%; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-10   { width: 40px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }
.max-w-5xl { max-width: 1024px; }
.max-w-prose { max-width: 65ch; }

/* Position / z */
.fixed   { position: fixed; }
.sticky  { position: sticky; }
.relative { position: relative; }
.absolute { position: absolute; }
.top-0    { top: 0; }
.left-0   { left: 0; }
.right-0  { right: 0; }
.z-50     { z-index: 50; }

/* Type / text */
.text-xs   { font-size: 12px; line-height: 1.4; }
.text-sm   { font-size: 14px; line-height: 1.5; }
.text-base { font-size: 16px; line-height: 1.5; }
.text-lg   { font-size: 18px; line-height: 1.55; }
.text-xl   { font-size: 20px; line-height: 1.5; }
.text-2xl  { font-size: 24px; line-height: 1.3; }
.text-3xl  { font-size: 30px; line-height: 1.25; }
.text-4xl  { font-size: 36px; line-height: 1.15; }
.text-5xl  { font-size: 48px; line-height: 1.05; }

.font-light    { font-weight: 300; }
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }

.tracking-tight  { letter-spacing: -0.015em; }
.tracking-tighter { letter-spacing: -0.025em; }

.uppercase { text-transform: uppercase; }
.text-left   { text-align: left; }
.text-center { text-align: center; }

.text-foreground         { color: hsl(var(--foreground)); }
.text-muted-foreground   { color: hsl(var(--muted-foreground)); }
.text-inverted-foreground { color: hsl(var(--inverted-foreground)); }

/* Borders */
.border    { border: 1px solid hsl(var(--border)); }
.border-t  { border-top: 1px solid hsl(var(--border)); }
.border-b  { border-bottom: 1px solid hsl(var(--border)); }
.border-border { border-color: hsl(var(--border)); }

/* Opacity */
.opacity-50 { opacity: 0.5; }
.opacity-60 { opacity: 0.6; }
.opacity-70 { opacity: 0.7; }
.opacity-80 { opacity: 0.8; }

/* Object fit (for portrait images) */
.object-cover { object-fit: cover; }
.object-top { object-position: top; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-portrait { aspect-ratio: 4 / 5; }

/* Responsive — md (>= 768px) */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:block { display: block; }
  .md\:grid { display: grid; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-center { align-items: center; }
  .md\:justify-between { justify-content: space-between; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:h-24 { height: 96px; }
  .md\:h-12 { height: 48px; }
  .md\:pt-24 { padding-top: 96px; }
  .md\:text-5xl { font-size: 48px; line-height: 1.05; }
  .md\:text-6xl { font-size: 60px; line-height: 1; }
}

/* Responsive — lg (>= 1024px) */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:text-7xl { font-size: 72px; line-height: 1; }
}

.text-left-force, .text-left-force p { text-align: left !important; hyphens: manual; }
