/* TropicalAM site, built from the Figma template "Responsive website (Professional Services)",
   Light mode frames at 1980, 1440, 800 and 400 px. Values come from the Figma variables:
   containers 1200 / 984 / 768 / full width less 8 px gutters, Barlow type scale (headings 600, body 400 at 16 px or more, labels 500),
   4 px image radius, 2 px button and input radius. */
:root {
  --text: #0b3b41;
  --text-muted: #4f6163;
  --brand: #0f7c86;
  --cta: #c64527;
  --cta-text: #ffffff;
  --button-neutral: #05091c;
  --bg: #ffffff;
  --bg-raised: #ffffff;
  --bg-sand: #fbf7ee;
  --bg-deep: #0b3b41;
  --on-deep: #ffffff;
  --on-deep-icon: #fbf7ee;
  --line: #e6e1d6;
  --image-empty: #e4e9ea;
  --input-bg: #fbf7ee;
  --shadow: rgba(5, 9, 28, 0.15);
  --ok: #2e7d4f;
  --err: #b3261e;

  --font: "Barlow", system-ui, sans-serif;
  --logo-font: "Barlow Condensed", "Arial Narrow", sans-serif;

  --container: calc(100% - 16px);
  --gutter: 24px;
  --section: 64px;

  /* 800 and 400 px frames use the small type scale */
  --display-size: 30px; --display-lh: 38px;
  --h-large-size: 28px; --h-large-lh: 40px;
  --h-medium-size: 24px; --h-medium-lh: 34px;
  --h-small-size: 20px; --h-small-lh: 28px;
  --body-large-size: 16px; --body-large-lh: 24px;
  color-scheme: light;
}
@media (min-width: 600px) { :root { --container: min(768px, calc(100% - 32px)); } }
@media (min-width: 1440px) {
  :root {
    --container: 1120px;
    --display-size: 44px; --display-lh: 52px;
    --h-large-size: 32px; --h-large-lh: 40px;
    --h-medium-size: 24px; --h-medium-lh: 32px;
    --h-small-size: 18px; --h-small-lh: 24px;
    --body-large-size: 18px; --body-large-lh: 28px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 24px; letter-spacing: 0; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
.container { width: var(--container); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Figma text styles */
.display-xl { font-size: var(--display-size); line-height: var(--display-lh); letter-spacing: 0; font-weight: 600; }
.heading-large { font-size: var(--h-large-size); line-height: var(--h-large-lh); font-weight: 600; }
.heading-medium { font-size: var(--h-medium-size); line-height: var(--h-medium-lh); font-weight: 600; }
.heading-small { font-size: var(--h-small-size); line-height: var(--h-small-lh); font-weight: 600; text-transform: uppercase; }
.body-large { font-size: var(--body-large-size); line-height: var(--body-large-lh); font-weight: 400; }
.body-medium { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-small { font-size: 16px; line-height: 24px; font-weight: 400; }
.muted { color: var(--text-muted); }

/* Icons: Figma "Utility icon" color masks, 16 px */
.icon { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--icon) center / 16px 16px no-repeat; mask: var(--icon) center / 16px 16px no-repeat; }
.icon-arrow { --icon: url("../assets/figma/icon-arrow.svg"); }
.icon-send { --icon: url("../assets/figma/icon-send.svg"); }
.icon-menu { --icon: url("../assets/figma/icon-menu.svg"); }
.icon-location { --icon: url("../assets/figma/icon-location.svg"); }
.icon-phone { --icon: url("../assets/figma/icon-phone.svg"); }
.icon-camera { --icon: url("../assets/figma/icon-camera.svg"); }

/* Image slot: Figma "image" component, FILL crop, 4 px radius */
.img-slot { position: relative; overflow: hidden; border-radius: 4px; background: var(--image-empty); }
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ratio-1 { aspect-ratio: 1 / 1; }
.ratio-3x1 { aspect-ratio: 3 / 1; }
.ratio-4x3 { aspect-ratio: 4 / 3; }

/* Header: Figma "Inline" header */
.site-header { position: relative; z-index: 20; background: var(--bg-raised); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo img { width: 40px; height: 40px; }
.wordmark { display: flex; flex-direction: column; gap: 3px; line-height: 1; white-space: nowrap; letter-spacing: 0; }
.wm-top { font-family: var(--logo-font); font-weight: 700; font-size: 19px; letter-spacing: 0.76px; color: #0b3b41; }
.wm-sub { font-family: var(--logo-font); font-weight: 600; font-size: 8px; letter-spacing: 1.28px; color: #0f7c86; }
.nav { display: flex; gap: 16px; align-items: center; }
.nav a { padding: 8px 12px; font-size: 15px; line-height: 24px; letter-spacing: 0; }
.menu-toggle { display: none; padding: 8px 12px; border: 0; background: none; color: var(--text); cursor: pointer; line-height: 0; }
@media (max-width: 599px) {
  .header-row { height: 56px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-raised); border-bottom: 1px solid var(--line); padding: 0 8px 8px; }
  .nav.open { display: flex; }
}

/* AOG call bar: phones only, sticks to the top once the header scrolls away */
.aog-bar { display: none; }
@media (max-width: 599px) {
  .aog-bar { display: block; position: sticky; top: 0; z-index: 30; background: var(--cta); color: var(--cta-text); font-weight: 600; font-size: 16px; line-height: 24px; letter-spacing: 0; text-align: center; padding: 12px 8px; }
}

/* Home hero: Figma "hero 2" */
.hero { position: relative; z-index: 5; }
.hero-image { position: absolute; top: 0; left: 0; right: 0; height: 480px; background: var(--image-empty); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero .site-header { z-index: 20; }
.hero-text { position: relative; padding-top: 300px; display: flex; flex-direction: column; align-items: center; }
.hero-card { position: relative; margin-bottom: 0; width: var(--container); background: var(--bg-sand); border-radius: 8px; box-shadow: 0 4px 8px var(--shadow); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; z-index: 2; }
.hero-card h1 { width: 100%; }
.hero-card p { width: 100%; }
.cta-row { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cta-left { justify-content: flex-start; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 2px; font-size: 16px; line-height: 24px; letter-spacing: 0; cursor: pointer; white-space: nowrap; }
.btn-secondary-cta { min-width: 144px; padding: 11px 23px; border: 1px solid var(--button-neutral); color: var(--button-neutral); font-weight: 500; background: transparent; }
.btn-primary-cta { min-width: 144px; padding: 12px 24px; border: 0; background: var(--cta); color: var(--cta-text); font-weight: 600; }
.btn-large { padding: 12px 24px; }
.btn-outline { padding: 7px 15px; border: 1px solid var(--text); color: var(--text); background: transparent; font-weight: 500; }
.btn-filled { padding: 8px 16px; border: 0; background: var(--text); color: #ffffff; font-weight: 500; }
.btn-ghost { padding: 8px 16px; border: 0; background: transparent; font-weight: 500; }

@media (max-width: 419px) { .cta-row { gap: 8px; flex-wrap: nowrap; } }
@media (max-width: 599px) {
  .hero-image { height: 280px; }
  .hero-text { padding-top: 160px; }
  .label-an { display: none; }
}

/* Section title: Figma "title_1" */
.title { display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { color: var(--brand); }
@media (min-width: 1440px) { .title .heading-large { white-space: nowrap; } }

/* Services cards: Figma "Wrapped" + "Stacked" */
.wrapped { position: relative; z-index: 4; background: var(--bg); padding-block: var(--section); display: flex; flex-direction: column; gap: 24px; }
.card-grid { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--gutter); }
/* Tall photo cards: photo fills the card, dark gradient from the bottom, window corners */
.photo-card { position: relative; display: block; width: calc((var(--container) - 3 * var(--gutter)) / 4); aspect-ratio: 3 / 5; border-radius: 45% / 27%; overflow: hidden; background: #0a2f34; color: #ffffff; text-align: center; }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 25, 28, 0.92) 0%, rgba(5, 25, 28, 0.55) 35%, rgba(5, 25, 28, 0) 65%); }
.photo-card-text { position: absolute; left: 0; right: 0; bottom: 12%; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 0 18px; }
.photo-card-title { font-size: 18px; line-height: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.photo-card-line { font-size: 16px; line-height: 22px; font-weight: 400; color: rgba(255, 255, 255, 0.9); }
@media (max-width: 1439px) { .photo-card { width: calc((var(--container) - var(--gutter)) / 2); } }
@media (max-width: 599px) { .photo-card { width: 100%; aspect-ratio: 4 / 5; border-radius: 40% / 30%; } }
.card { width: calc((var(--container) - 3 * var(--gutter)) / 4); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.card .img-slot { width: 100%; }
@media (max-width: 1439px) { .card { width: calc((var(--container) - var(--gutter)) / 2); } }
@media (max-width: 599px) { .card-grid { gap: 12px; } .card { width: 100%; } }

/* Aircraft we work on, under the service cards */
.cards-and-aircraft { display: flex; flex-direction: column; align-items: center; gap: var(--section); }
.aircraft { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.aircraft p + p { margin-top: -16px; }
.call-row { display: flex; }
.about-home { background: var(--bg); padding-block: var(--section); }
.about-home-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.about-text { width: 100%; max-width: 720px; margin-inline: auto; display: flex; flex-direction: column; gap: 24px; text-align: left; }
.about-text p { color: var(--text); font-size: 16px; line-height: 1.6; }
.about-text .text-block { gap: 8px; }
.about-home-inner .img-slot { width: 100%; }

/* Who we are: Figma "block_About_1" */
.about-band { position: relative; z-index: 3; background: var(--bg-sand); padding: 96px 0 64px; }
.about-band .title { padding-block: 64px; }
.block { padding-block: 64px; }
.stack-32 { display: flex; flex-direction: column; gap: 32px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.sand-bg { background: var(--bg-sand); }
.text-block { display: flex; flex-direction: column; }

/* What we look for: Figma "block_Projects-1", square tiles in a 3 column grid (2 on phones) */
.projects { background: var(--bg-deep); color: var(--on-deep); padding: var(--section) 0; display: flex; flex-direction: column; gap: 24px; }
.projects-title { display: flex; align-items: center; justify-content: center; }
.projects-title .btn-ghost { color: var(--on-deep); }
.projects-title .icon { color: var(--on-deep-icon); }
/* Photo strip: 3 across on desktop, 1.2 on phones, scrolls on its own (js/site.js) */
.strip { container-type: inline-size; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.strip::-webkit-scrollbar { display: none; }
.strip-track { display: flex; gap: var(--gutter); width: max-content; }
.strip-item { margin: 0; flex: none; width: calc((100cqw - 2 * var(--gutter)) / 3); aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #0a2f34; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 599px) {
  .strip-track { gap: 12px; }
  .strip-item { width: calc((100cqw - 12px) / 1.2); }
}

/* Get in touch: Figma "contact" */
.contact-band { background: var(--bg-sand); padding: var(--section) 0; }
.contact-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--gutter); }
.contact-row > * { width: calc((var(--container) - var(--gutter)) / 2); }
.contact-text { display: flex; flex-direction: column; justify-content: flex-start; gap: 24px; }
.accent-line { width: 100px; height: 3px; display: block; }
@media (max-width: 1439px) { .contact-row > * { width: 100%; } }
@media (max-width: 599px) { .contact-row { gap: 12px; } }
@media (max-width: 599px) { :root { --section: 40px; } }

/* Forms: Figma "Form field", "text-input", "textarea" and "Button" */
.form { display: flex; flex-direction: column; gap: 12px; }
.form-right { align-items: flex-end; }
.form-right > * { align-self: stretch; }
.form-right > .btn-filled { align-self: flex-end; }
.field { display: flex; flex-direction: column; gap: 2px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field[hidden] { display: none; }
.field-label { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0; padding: 0; }
.req { color: var(--cta); }
.input { width: 100%; min-width: 144px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 2px; padding: 7px 16px; font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: 0; color: var(--text); }
.input::placeholder { color: var(--text-muted); opacity: 1; }
textarea.input { min-height: 100px; resize: vertical; display: block; }
select.input { appearance: none; -webkit-appearance: none; background-image: none; }
.input:focus { outline: none; border-color: var(--text); }
/* Photo field: the browser's file button is hidden; the label is styled like an input */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-pick { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-muted); }
.file-pick .icon { color: var(--text); }
.field:focus-within .file-pick { border-color: var(--text); outline: 2px solid var(--brand); outline-offset: 2px; }
.file-input[aria-invalid="true"] + .file-pick, .file-pick:has(+ .file-input[aria-invalid="true"]) { border-color: var(--err); }
.input[aria-invalid="true"], .field[aria-invalid="true"] .choice { border-color: var(--err); }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { flex: 1 1 0; display: flex; align-items: center; gap: 8px; min-width: 96px; background: var(--input-bg); border: 1px solid var(--line); border-radius: 2px; padding: 7px 16px; font-size: 16px; line-height: 24px; letter-spacing: 0; cursor: pointer; }
.choice input { margin: 0; accent-color: var(--text); }
.choice:has(input:checked) { border-color: var(--text); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: 0; cursor: pointer; }
.check input { margin: 4px 0 0; accent-color: var(--text); }
.check input[aria-invalid="true"] { outline: 1px solid var(--err); }
.field-row { display: flex; flex-wrap: wrap; gap: var(--gutter); }
.field-row > .field { flex: 1 1 0; min-width: 0; }
@media (max-width: 599px) { .field-row { flex-direction: column; gap: 12px; } }
.btn-full { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 20px; font-size: 14px; line-height: 20px; font-weight: 400; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Page header: Figma "Page header" */
.page-header { padding: 64px 0 48px; background: var(--bg); }
.page-header + .block { padding-top: 0; }
.page-header.sand { padding-bottom: 24px; }
.page-header.sand + .services-list { padding-top: 24px; }
.page-header.sand { background: var(--bg-sand); }
.page-header .inner { width: min(768px, var(--container)); margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }

/* Services list: Figma "services" rows, 360 x 270 photo beside the text */
.services-list { padding-block: 128px; }
.services-list .container { display: flex; flex-direction: column; gap: var(--gutter); }
.service-row { display: flex; gap: var(--gutter); padding-bottom: 12px; align-items: flex-start; }
.service-photo { flex: none; width: 360px; height: 270px; }
.service-photo-empty { display: none; }
.service-row .text-block { flex: 1 1 0; gap: 12px; min-width: 0; }
@media (max-width: 599px) {
  .services-list .container { gap: 12px; }
  .service-row { flex-direction: column; }
  .service-photo { width: 100%; height: 220px; }
}

/* Contact info: Figma "row" of "Small" columns */
.info-row { display: flex; flex-wrap: wrap; gap: var(--gutter); }
.info-col { width: calc((var(--container) - 2 * var(--gutter)) / 3); display: flex; flex-direction: column; align-items: center; }
.info { width: 245px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: var(--cta); }
.info .text-block { gap: 7px; color: var(--text); }
.info .text-block > a { display: block; }
.paras { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 599px) { .info-col { width: 100%; } }

/* Footer: Figma "local_Footer" / "4 widget" */
.site-footer { background: var(--bg-sand); padding-block: 64px; display: flex; flex-direction: column; align-items: center; gap: 64px; }
.footer-row { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--gutter); }
.footer-widget { width: calc((var(--container) - 3 * var(--gutter)) / 4); display: flex; flex-direction: column; gap: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; white-space: nowrap; }
.footer-divider { width: 100%; height: 0; border-top: 1px solid var(--line); }
@media (max-width: 1439px) { .footer-widget { width: calc((var(--container) - var(--gutter)) / 2); } }
@media (max-width: 599px) { .footer-row { gap: 16px; } .footer-widget { width: var(--container); } }
