/* ==========================================================================
   PadelEngineer.com — site.css
   Sister brand of WindCalculations.com / EngineerLetters.co (Oasis Engineering LLC)
   Palette and type inherited from the EngineerLetters.co brand source.
   ========================================================================== */

:root {
  /* Inherited palette (EngineerLetters.co tailwind.config.mjs) */
  --ink: #0a0a0a;
  --ink-soft: #1d1d1f;
  --ink-muted: #6e6e73;
  --paper: #ffffff;
  --paper-soft: #fbfbfd;
  --paper-section: #f5f5f7;
  --accent: #0b3a5f;        /* Oasis navy */
  --accent-hover: #0e4a79;
  --accent-glow: #1d6fb0;   /* engineering blue */
  --trust: #2d7a4f;         /* compliance green */
  /* Brand orange from the PadelEngineer logo (#FC5609). Used for the 40 mph hook, key CTAs, chart contrast. */
  --storm: #fc5609;
  --storm-soft: #fff1e8;
  --brand: #fc5609;
  --line: rgba(10, 10, 10, 0.08);
  --radius: 1.25rem;
  --radius-sm: 0.75rem;
  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -8px rgba(11,58,95,.12);
  --shadow-lift: 0 4px 12px rgba(0,0,0,.06), 0 24px 48px -12px rgba(11,58,95,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01", "ss03";
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent-glow); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Layout ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .wrap { padding: 0 2.5rem; } }
.section { padding: 4rem 0; }
@media (min-width: 768px) { .section { padding: 6rem 0; } }
.section.alt { background: var(--paper-section); }
.section.dark { background: var(--accent); color: #fff; }
.section.dark a { color: #fff; }
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.narrow { max-width: 68ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Type ------------------------------------------------------------------ */
h1, h2, h3, h4 { margin: 0 0 .75rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2.25rem, 6vw, 4.25rem); letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.125rem; color: var(--ink-muted); max-width: 42rem; }
@media (min-width: 768px) { .lede { font-size: 1.25rem; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8125rem; font-weight: 600; color: var(--accent); margin-bottom: 1rem; }
.section.dark .eyebrow, .section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lede { color: rgba(255,255,255,.8); }
.muted { color: var(--ink-muted); }
.small { font-size: .875rem; }
.prose p, .prose li { font-size: 1.0625rem; color: var(--ink-soft); }
.prose h2 { margin-top: 3rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }
.flag { background: #fff6d6; color: #6b4b00; padding: 0 .3em; border-radius: 3px; font-family: var(--mono); font-size: .85em; }
code, .mono { font-family: var(--mono); font-size: .9em; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .8rem 1.5rem; font-size: .9375rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s;
  font-family: inherit; line-height: 1.2;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: #d94800; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--accent); }
.btn-light { background: #fff; color: var(--accent); }
.btn-light:hover { background: var(--paper-section); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn-row.center { justify-content: center; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-size: 1.05rem; text-decoration: none !important; }
.brand .dot { color: var(--accent-glow); }
.brand img { height: 54px; width: auto; }
.site-footer .brand img { height: 72px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: none; gap: 1.75rem; }
.nav ul a { color: var(--ink-soft); font-size: .9375rem; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--accent); text-decoration: none; }
.nav ul a[aria-current="page"] { font-weight: 600; }
.nav .btn { padding: .55rem 1.1rem; font-size: .8125rem; }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; }
.nav-cta { display: none; }
@media (min-width: 900px) {
  .nav ul { display: flex; }
  .nav-toggle { display: none; }
  .nav-cta { display: inline-flex; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: .5rem 0; }
.mobile-menu a { display: block; padding: .8rem 1.25rem; color: var(--ink-soft); font-weight: 500; }
.mobile-menu a:hover { background: var(--paper-section); text-decoration: none; }

/* Hero ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; }
@media (min-width: 768px) { .hero { padding: 7rem 0 6rem; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(29,111,176,.12), transparent 60%),
    radial-gradient(800px 400px at 10% 110%, rgba(45,122,79,.08), transparent 55%),
    linear-gradient(180deg, #fff, var(--paper-soft));
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-art { border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lift); padding: 1rem; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; max-width: 40rem; }
.stats dt { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
@media (min-width: 768px) { .stats dt { font-size: 1.625rem; } }
.stats dd { margin: .25rem 0 0; font-size: .8125rem; color: var(--ink-muted); }

/* Photos ---------------------------------------------------------------- */
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem 1rem; font-size: .8125rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(10,10,10,.65)); }
.photo-band { position: relative; min-height: 420px; display: grid; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band-caption { position: relative; align-self: end; padding: 6rem 0 3rem; background: linear-gradient(180deg, transparent, rgba(11,58,95,.85)); color: #fff; }
.photo-band-caption h2 { color: #fff; max-width: 34rem; }
@media (min-width: 768px) { .photo-band { min-height: 560px; } }
figure.photo { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); }
figure.photo img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
figure.photo figcaption { font-size: .8125rem; color: var(--ink-muted); padding: .6rem .8rem; }

/* Photos ---------------------------------------------------------------- */
.hero-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lift); position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .75rem 1rem; font-size: .8125rem; color: #fff; background: linear-gradient(180deg, transparent, rgba(10,10,10,.65)); }
.photo-band { position: relative; min-height: 420px; display: grid; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band-caption { position: relative; align-self: end; padding: 6rem 0 3rem; background: linear-gradient(180deg, transparent, rgba(11,58,95,.85)); color: #fff; }
.photo-band-caption h2 { color: #fff; max-width: 34rem; }
@media (min-width: 768px) { .photo-band { min-height: 560px; } }
figure.photo { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); }
figure.photo img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; }
figure.photo figcaption { font-size: .8125rem; color: var(--ink-muted); padding: .6rem .8rem; }

/* Cards ----------------------------------------------------------------- */
.card {
  background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); padding: 1.75rem;
}
.card h3 { margin-top: 0; }
.card .num { display: inline-flex; width: 2.25rem; height: 2.25rem; border-radius: 999px; background: var(--accent); color: #fff; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 1rem; }
.card-storm { border-left: 5px solid var(--storm); background: var(--storm-soft); }
.card-storm h2, .card-storm h3 { color: #a33800; }

/* Steps ----------------------------------------------------------------- */
.steps { counter-reset: step; }

/* Logo strip ------------------------------------------------------------ */
.logo-strip { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: center; }
.logo-strip .logo-ph {
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8125rem; color: var(--ink-muted);
  padding: .6rem 1rem; border: 1px dashed var(--line); border-radius: 999px;
}
.logo-strip img { max-height: 44px; width: auto; }

/* Project cards --------------------------------------------------------- */
.project { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
.project figure { margin: 0; aspect-ratio: 16/10; background: linear-gradient(135deg, #e9eef5, #d7e3ef); position: relative; }
.project figure img { width: 100%; height: 100%; object-fit: cover; }
.project figure .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: .8125rem; font-weight: 600; text-align: center; padding: 1rem; }
.project .body { padding: 1.5rem; }
.project dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 1rem 0 0; font-size: .9375rem; }
.project dt { color: var(--ink-muted); }
.project dd { margin: 0; }

/* Pricing --------------------------------------------------------------- */
.tier { display: flex; flex-direction: column; }
.tier.featured { border-color: var(--accent); box-shadow: var(--shadow-lift); position: relative; }
.tier .badge { position: absolute; top: -.75rem; left: 1.5rem; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 600; padding: .2rem .7rem; border-radius: 999px; letter-spacing: .05em; }
.tier .price { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; margin: .5rem 0 1rem; }
.tier ul { padding-left: 1.1rem; margin: 0 0 1.5rem; flex: 1; }
.tier li { margin-bottom: .5rem; font-size: .9375rem; color: var(--ink-soft); }

/* Forms ----------------------------------------------------------------- */
form { max-width: 100%; }
.field { margin-bottom: 1.1rem; }
.field label, .field .label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.field .hint { font-size: .8125rem; color: var(--ink-muted); margin-top: .3rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%; font: inherit; padding: .7rem .9rem; border: 1px solid #d2d2d7; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-glow); box-shadow: 0 0 0 3px rgba(29,111,176,.18); outline: none; }
textarea { min-height: 8rem; resize: vertical; }
input[type="file"] { font: inherit; font-size: .875rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(var(--cols, 2), 1fr); } }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-msg { border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin: 1rem 0; display: none; }
.form-msg.ok { display: block; background: #e8f5ee; color: #1e5a38; border: 1px solid #bfe3cf; }
.form-msg.err { display: block; background: #fdecec; color: #8a1c1c; border: 1px solid #f3c4c4; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: .75rem; padding: 0; }
.toggle { display: inline-flex; border: 1px solid #d2d2d7; border-radius: 999px; padding: .2rem; background: #fff; }
.toggle button { border: 0; background: transparent; padding: .4rem .9rem; border-radius: 999px; font: inherit; font-size: .8125rem; font-weight: 600; cursor: pointer; color: var(--ink-muted); }
.toggle button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Calculator ------------------------------------------------------------ */
.calc-layout { display: grid; gap: 2rem; }
@media (min-width: 960px) { .calc-layout { grid-template-columns: 420px 1fr; align-items: start; } .calc-inputs { position: sticky; top: 5.5rem; } }
.calc-inputs .card { padding: 1.5rem; }
.result-big { display: grid; gap: 1rem; }
@media (min-width: 640px) { .result-big { grid-template-columns: 1fr 1fr; } }
.kpi { background: var(--accent); color: #fff; border-radius: var(--radius); padding: 1.5rem; }
.kpi .v { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.kpi .u { font-size: 1rem; font-weight: 500; opacity: .8; margin-left: .25rem; }
.kpi .l { font-size: .8125rem; opacity: .85; margin-top: .5rem; }
.kpi.storm { background: var(--storm); }
.result-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.result-table th, .result-table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.result-table th { font-weight: 600; color: var(--ink-muted); font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.result-table td.n { font-family: var(--mono); text-align: right; white-space: nowrap; }
.result-table th.n { text-align: right; }
.compare { margin: 1.5rem 0; }
.compare svg { width: 100%; height: auto; }
.disclaimer { font-size: .8125rem; color: var(--ink-muted); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; background: var(--paper-soft); }
.gate { border: 2px solid var(--accent); }
details.method summary { cursor: pointer; font-weight: 600; }
details.method { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-top: 1.5rem; font-size: .9375rem; }

/* Compare bars (inline SVG) */
.bar-40 { fill: var(--trust); }
.bar-v { fill: var(--storm); }

/* CTA band -------------------------------------------------------------- */
.cta-band { background: var(--accent); background-image: radial-gradient(800px 300px at 90% -20%, rgba(252,86,9,.35), transparent 60%); color: #fff; border-radius: var(--radius); padding: 2.5rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .cta-logo { height: 56px; width: auto; margin: 0 auto 1.25rem; }
.cta-band p { color: rgba(255,255,255,.85); }

/* Footer ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-soft); padding: 4rem 0 2rem; font-size: .9375rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }
.footer-brands { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; margin-top: 1.25rem; }
.footer-brands img { max-height: 44px; width: auto; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .8125rem; color: var(--ink-muted); }

/* Motion ---------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease) forwards; }
  @keyframes fadeUp { to { opacity: 1; transform: none; } }
}

/* Print (calculator summary) ------------------------------------------- */
@media print {
  .site-header, .site-footer, .calc-inputs, .gate, .no-print, .mobile-menu { display: none !important; }
  .calc-layout { display: block; }
  body { font-size: 11pt; }
  .kpi { color: #000; background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
