/* Emaara — static rebuild of the Framer site at emaara.ca.
   Mobile-first. Breakpoints mirror Framer's: tablet ≥ 810px, desktop ≥ 1200px. */

:root {
  --bg: #0c1e2b;
  --surface: #132232;
  --border: #3a4a56;
  --divider: rgba(255, 255, 255, 0.16);
  --hairline: rgba(255, 255, 255, 0.12);
  --text: #fafafa;
  --text-strong: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --text-soft: #b8c4ce;
  --placeholder: #6b7b8a;
  --accent: #c4a464;
  --accent-hover: #d1b373;
  --on-accent: #0a0a0a;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-hover: rgba(255, 255, 255, 0.18);
  --grid-line: rgba(81, 183, 135, 0.09);
  --whatsapp: #25d366;
  --error: #f0a8a0;
  --success: #9fd8b8;

  --font: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1130px;
  --gutter: 20px;
  --header-h: 84px;
  --section-y: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 810px) {
  :root { --gutter: 40px; --section-y: 100px; }
}

@media (min-width: 1200px) {
  :root { --gutter: 60px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Type ---------- */

h1 {
  font-size: 40px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}

h2 {
  font-size: 44px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

@media (min-width: 810px) {
  h1 { font-size: 60px; }
}

.lead {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-muted);
}

.text-lg { font-size: 18px; line-height: 1.4; }
.text-soft { color: var(--text-soft); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 28px;
  border: 0;
  border-radius: 100px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--glass {
  background: var(--glass);
  color: var(--text);
  font-weight: 400;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--glass:hover { background: var(--glass-hover); }

.btn--block { width: 100%; min-height: 50px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (min-width: 810px) {
  .btn-row { flex-direction: row; }
}

/* ---------- Header & navigation ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: var(--bg);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 12px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.brand__mark { width: 76px; height: 44px; }
.brand__name {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--text-muted);
}

.site-nav a {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text-strong); }

/* Phone + tablet: dropdown panel under the bar */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 8px var(--gutter) 28px;
  background: var(--bg);
  border-radius: 0 0 24px 24px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.site-header.is-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: -9px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  border-radius: 10px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }
.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Desktop: inline links */
@media (min-width: 1200px) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    flex: 1;
    flex-direction: row;
    justify-content: center;
    gap: 40px;
    padding: 0;
    background: none;
    border-radius: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.js .site-header { animation: header-in 0.6s var(--ease) both; }
@keyframes header-in { from { transform: translateY(-100%); } }

/* ---------- Sections ---------- */

main > section + section,
.site-footer { border-top: 1px solid var(--divider); }

.section { padding-block: var(--section-y); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
  text-align: center;
}
.section-head p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
}
.section-head p.text-soft { color: var(--text-soft); }
.measure-440 { max-width: 440px; }
.measure-480 { max-width: 480px; }
.measure-540 { max-width: 540px; }

/* Faint teal grid behind heroes and CTAs (the Framer site used a PNG at 6% opacity). */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 35px 35px;
  background-position: center top;
  -webkit-mask-image:
    radial-gradient(35% 25% at 50% 68.3%, #000 0%, transparent 100%),
    radial-gradient(39% 25% at 50% 1.3%, #000 0%, transparent 100%),
    radial-gradient(35% 25% at 11.7% 94.3%, rgba(0, 0, 0, 0.25) 0%, transparent 100%),
    radial-gradient(35% 25% at 91.2% 90.9%, rgba(0, 0, 0, 0.25) 0%, transparent 100%);
  mask-image:
    radial-gradient(35% 25% at 50% 68.3%, #000 0%, transparent 100%),
    radial-gradient(39% 25% at 50% 1.3%, #000 0%, transparent 100%),
    radial-gradient(35% 25% at 11.7% 94.3%, rgba(0, 0, 0, 0.25) 0%, transparent 100%),
    radial-gradient(35% 25% at 91.2% 90.9%, rgba(0, 0, 0, 0.25) 0%, transparent 100%);
}
.grid-bg--center::before {
  -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 0%, transparent 100%);
  mask-image: radial-gradient(50% 50% at 50% 50%, #000 0%, transparent 100%);
}

/* ---------- Home: hero ---------- */

.hero { padding: calc(var(--header-h) + 28px) 0 20px; }

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 52px;
  text-align: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__copy h1 { max-width: 588px; }
.hero__copy .lead { max-width: 500px; margin-top: 24px; }
.hero__copy .btn-row { margin-top: 38px; }

.hero__media { position: relative; width: min(404px, 100%); flex: none; }
.hero__media > img {
  width: 100%;
  height: 512px;
  object-fit: cover;
  border-radius: 24px;
}

.stat-list {
  position: absolute;
  bottom: 10px;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 7px;
  transform: translateX(-50%);
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 255px;
  padding: 16px;
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text);
  text-align: left;
}
.stat .icon { width: 19px; height: 19px; color: var(--accent); }

@media (min-width: 810px) {
  .hero { padding: 146px 0 40px; }
}

@media (min-width: 1200px) {
  .hero { padding: 152px 0 92px; }
  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
  }
  .hero__copy { align-items: flex-start; }
  .hero__copy .lead { margin-top: 24px; }
  .hero__copy .btn-row { margin-top: 36px; }
  .stat-list { left: -114px; transform: none; }
}

/* ---------- Home: services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 810px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 20px;
  border-radius: 25px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
}
.service-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-top: -2px;
  flex: none;
  border-radius: 62px;
  box-shadow: 0 4px 50px rgba(0, 0, 0, 0.03);
  color: var(--accent);
}
.service-card h3 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-strong);
}
.service-card p { margin-top: 12px; color: var(--text-soft); }

/* ---------- Home: projects ---------- */

/* Phone: swipeable row with snap points. */
.projects {
  margin-inline: calc(-1 * var(--gutter));
  padding-inline: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.projects::-webkit-scrollbar { display: none; }

.projects__track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.project {
  flex: none;
  width: min(294px, calc(100vw - 2 * var(--gutter) - 36px));
  scroll-snap-align: start;
}
.project[aria-hidden="true"] { display: none; }
.projects.is-animated .project[aria-hidden="true"] { display: block; }
.project img {
  width: 100%;
  height: 293px;
  object-fit: cover;
  border-radius: 24px;
  background: var(--surface);
}
.project h3 {
  margin-top: 20px;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text);
}
.project p { margin-top: 8px; color: var(--text); }

/* Tablet + desktop: continuous ticker that fades at the edges. */
@media (min-width: 810px) {
  .projects {
    margin-inline: 0;
    padding: 10px;
    overflow: hidden;
    scroll-snap-type: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }
  .projects__track { gap: 24px; }
  .project { width: 344px; }
  .project img { height: 325px; }

  .projects.is-animated .projects__track {
    animation: ticker var(--ticker-duration, 25s) linear infinite;
  }
  .projects.is-animated:hover .projects__track,
  .projects.is-animated:focus-within .projects__track { animation-play-state: paused; }

  /* Reduced motion or no JS: let people scroll the row instead. */
  .projects:not(.is-animated) { overflow-x: auto; scrollbar-width: thin; }
}

.projects.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }

@media (hover: hover) and (pointer: fine) {
  .projects:not(.is-animated) { cursor: grab; }
}

.projects-nav { display: none; }
.js .projects:not(.is-animated) + .projects-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.projects-nav__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border);
  color: var(--text-strong);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.projects-nav__btn:hover:not(:disabled) { background: var(--glass-hover); }
.projects-nav__btn:disabled { opacity: 0.35; cursor: default; }
.projects-nav__btn .icon { width: 20px; height: 20px; }

@keyframes ticker {
  to { transform: translateX(calc(-50% - 12px)); }
}

/* ---------- Home: FAQ ---------- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 700px;
  margin-inline: auto;
}

.faq__item {
  border-radius: 12px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--text-strong);
}

.faq__q { font-size: inherit; font-weight: inherit; }
.faq__q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 25px;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-strong);
  cursor: pointer;
}
.faq__icon { width: 20px; height: 20px; flex: none; transition: transform 0.3s var(--ease); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }

.faq__a { display: grid; grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin-top: -4px; padding: 0 25px 20px; color: var(--text-strong); }

.js .faq__a { grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.js .faq__a > div { visibility: hidden; transition: visibility 0s linear 0.3s; }
.js .faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.js .faq__item.is-open .faq__a > div { visibility: visible; transition: none; }

/* ---------- Inner pages: hero ---------- */

.page-hero {
  padding: calc(var(--header-h) + 28px) 0 72px;
  text-align: center;
}
.page-hero h1 { max-width: 700px; margin-inline: auto; }
.page-hero .lead { max-width: 550px; margin: 24px auto 0; font-weight: 500; }
.page-hero--narrow h1 { max-width: 600px; }

@media (min-width: 810px) {
  .page-hero { padding-top: 146px; }
  .page-hero--about { padding-bottom: 92px; }
}

/* ---------- About: split blocks ---------- */

.split {
  display: grid;
  gap: 52px;
  align-items: center;
}
.split__media img {
  width: 100%;
  height: 382px;
  object-fit: cover;
  border-radius: 20px;
}
.split__copy > p { margin-top: 24px; font-size: 18px; color: var(--text-soft); }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 54px; }
  .split__media img { height: 400px; }
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 31px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  color: var(--text-soft);
}
.checklist .icon { width: 18px; height: 13px; color: var(--text); }

.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 24px;
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  color: rgba(13, 13, 13, 0.7);
}
.feature h3 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-strong);
}
.feature p { max-width: 278px; margin-top: 3px; color: var(--text-soft); }

/* ---------- About: credentials ---------- */

.awards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin-inline: auto;
}
.award {
  padding: 32px 24px;
  border-radius: 24px;
  background: var(--bg);
  box-shadow: inset 0 0 0 4px var(--hairline);
}
.award__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.award h3 {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text);
}
.award__year { color: var(--text-soft); }
.award p { margin-top: 16px; color: var(--text-soft); }

/* ---------- CTA ---------- */

.cta {
  padding-block: 96px 112px;
  text-align: center;
}
.cta h2 { max-width: 600px; margin-inline: auto; }
.cta .lead { max-width: 500px; margin: 16px auto 0; }
.cta .btn { margin-top: 32px; }

@media (min-width: 810px) {
  .cta { padding-block: 124px 152px; }
}

/* ---------- Contact form ---------- */

.form-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin-inline: auto;
  padding: 24px;
  border-radius: 24px;
  background: var(--surface);
}

@media (min-width: 810px) {
  .form-card { padding: 32px; }
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field__label { color: var(--text-soft); }

.input {
  width: 100%;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--bg);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--text-soft);
  transition: border-color 0.2s ease;
}
.input::placeholder { color: var(--placeholder); opacity: 1; }
.input:focus { outline: none; border-color: var(--accent); }
.input[aria-invalid="true"] { border-color: var(--error); }
textarea.input { min-height: 153px; resize: vertical; }

.field__error { font-size: 14px; color: var(--error); }
.field__error:empty { display: none; }

.form-status { font-size: 16px; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--error); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

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

/* ---------- Footer ---------- */

.site-footer { padding-top: 52px; }

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 12px;
}
.footer-nav a {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--text-strong); }

.site-footer__legal {
  margin-top: 50px;
  padding-block: 30px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (min-width: 810px) {
  .footer-nav { flex-direction: row; flex-wrap: wrap; gap: 12px 40px; }
}

/* ---------- WhatsApp button ---------- */

.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 80px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab .icon { width: 30px; height: 30px; }

/* ---------- 404 ---------- */

.not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  gap: 24px;
  padding: calc(var(--header-h) + 40px) var(--gutter) 80px;
  text-align: center;
}
.not-found .btn { justify-self: center; }

/* ---------- Scroll reveal (only when JS is running) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .site-header { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .faq__icon, .js .faq__a { transition: none; }
}
