/* Fairlark Properties — brand tokens pulled from fairlark.com (logo colour, Elementor kit CSS, live typography) */
:root {
  --teal: #007C8F;
  --teal-dark: #045A68;
  --teal-tint: #E6F2F3;
  --ink: #131313;
  --ink-soft: #282828;
  --grey: #6B6B6B;
  --grey-light: #D9D9D9;
  --bg: #FFFFFF;
  --bg-alt: #F6F6F4;
  --container: 1140px;
  --radius: 6px;
  --shadow: 0 20px 50px -25px rgba(19, 19, 19, 0.35);
  --transition: 0.35s cubic-bezier(.25,.8,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--teal);
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); color: var(--ink); }
.section-head p { margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--grey); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::before { display: none; }

.section-pad { padding: 96px 0; }
@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

.bg-alt { background: var(--bg-alt); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.is-scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 34px; width: auto; transition: filter var(--transition); }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-text .flag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--teal);
  margin-top: 3px;
}
.site-header:not(.is-scrolled) .brand .brand-text .flag { color: #cdeaee; }
.site-header:not(.is-scrolled) .brand img.logo-dark { display: none; }
.site-header:not(.is-scrolled) .brand img.logo-white { display: block; }
.site-header.is-scrolled .brand img.logo-dark { display: block; }
.site-header.is-scrolled .brand img.logo-white { display: none; }

.main-nav { display: flex; align-items: center; gap: 26px; min-width: 0; flex-shrink: 1; }
.main-nav a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  transition: color var(--transition), opacity var(--transition);
  opacity: 0.85;
}
.main-nav a:hover { opacity: 1; }
.site-header.is-scrolled .main-nav a { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.header-actions .btn { padding: 11px 22px; font-size: 12px; }
.site-header.is-scrolled .header-actions .btn-outline { border-color: var(--ink); color: var(--ink); }
.site-header.is-scrolled .header-actions .btn-outline:hover { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1100;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: var(--transition); }
.site-header.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.is-open span { background: var(--ink); }

@media (max-width: 1220px) {
  .main-nav {
    position: fixed; inset: 0; background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--transition), visibility 0s linear 0.35s;
    z-index: 1050;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--transition); }
  .main-nav a { color: var(--ink); opacity: 1; font-size: 18px; }
  .header-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  /* backdrop-filter on the scrolled header creates a CSS containing block, which would
     trap this fixed, full-screen mobile nav inside the header's small box instead of
     the viewport. Drop it only here, where the nav is position:fixed. */
  .site-header.is-scrolled { backdrop-filter: none; }
}

@media (max-width: 560px) {
  .site-header { padding: 16px 0; }
  .site-header.is-scrolled { padding: 12px 0; }
  .brand { gap: 9px; }
  .brand img { height: 42px; }
  .brand .brand-text .flag { font-size: 11px; margin-top: 4px; }
  .nav-toggle { gap: 6px; padding: 8px; }
  .nav-toggle span { width: 26px; height: 2.5px; }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url('../img/banner.webp') center 55%/cover no-repeat;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,17,0.72) 0%, rgba(11,15,17,0.35) 38%, rgba(11,15,17,0.55) 78%, rgba(11,15,17,0.9) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; }
.hero-content .eyebrow { color: #7fd6e0; }
.hero-content .eyebrow::before { background: #7fd6e0; }
.hero-content h1 { font-size: clamp(34px, 6vw, 64px); max-width: 820px; color: #fff; }
.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.75); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll .line { width: 1px; height: 34px; background: rgba(255,255,255,0.5); animation: scrollpulse 2s infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ===== Fairlark Properties: intro media + heading + copy + purpose quote ===== */
.fps-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  grid-template-areas: "media heading" "media copy";
  column-gap: 64px; row-gap: 24px;
  align-items: center;
}
.fps-media { grid-area: media; border-radius: var(--radius); overflow: hidden; align-self: stretch; }
.fps-media img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.fps-heading { grid-area: heading; align-self: end; }
.fps-copy { grid-area: copy; }
.fps-heading h2 { font-size: clamp(30px, 4vw, 44px); color: var(--ink); }
.fps-copy p { font-size: 16.5px; line-height: 1.75; color: var(--grey); }
.fps-copy p + p { margin-top: 16px; }

@media (max-width: 860px) {
  .fps-grid { grid-template-columns: 1fr; grid-template-areas: "media" "heading" "copy"; column-gap: 0; row-gap: 20px; align-items: start; }
  .fps-media img { min-height: 320px; }
}
@media (max-width: 560px) {
  .fps-grid {
    grid-template-columns: 118px 1fr;
    grid-template-areas: "media heading" "copy copy";
    column-gap: 18px; row-gap: 24px;
  }
  .fps-media { align-self: start; }
  .fps-media img { min-height: 0; height: 140px; border-radius: 10px; }
  .fps-heading { align-self: center; }
  .fps-heading h2 { font-size: 24px; text-wrap: balance; }
  .fps-heading .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .fps-heading .eyebrow::before { width: 18px; }
}

.fps-purpose {
  max-width: 780px; margin: 64px auto 0; padding-top: 48px;
  border-top: 1px solid var(--grey-light); text-align: center;
}
.fps-label {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 20px;
}
.fps-purpose blockquote {
  margin: 0; font-family: 'Roboto Slab', serif; font-weight: 400; font-style: italic;
  font-size: clamp(21px, 2.6vw, 30px); line-height: 1.5; color: var(--ink);
}

/* ===== About Fairlark: media + heading + copy + stat strip ===== */
.fairlark-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas: "media heading" "media copy";
  column-gap: 64px; row-gap: 24px;
  align-items: center;
}
.fairlark-heading { grid-area: heading; align-self: end; }
.fairlark-heading h2 { font-size: clamp(30px, 4vw, 44px); color: var(--ink); }
.fairlark-copy { grid-area: copy; }
.fairlark-copy p { font-size: 16.5px; line-height: 1.75; color: var(--grey); }
.fairlark-copy p + p { margin-top: 16px; }
.fairlark-media { grid-area: media; border-radius: var(--radius); overflow: hidden; align-self: stretch; }
.fairlark-media img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }

@media (max-width: 860px) {
  .fairlark-grid { grid-template-columns: 1fr; grid-template-areas: "media" "heading" "copy"; column-gap: 0; row-gap: 20px; align-items: start; }
  .fairlark-media img { min-height: 240px; }
}
@media (max-width: 560px) {
  .fairlark-grid {
    grid-template-columns: 118px 1fr;
    grid-template-areas: "media heading" "copy copy";
    column-gap: 18px; row-gap: 24px;
  }
  .fairlark-media { align-self: start; }
  .fairlark-media img { min-height: 0; height: 140px; border-radius: 10px; }
  .fairlark-heading { align-self: center; }
  .fairlark-heading h2 { font-size: 24px; text-wrap: balance; }
  .fairlark-heading .eyebrow { font-size: 11px; margin-bottom: 8px; }
  .fairlark-heading .eyebrow::before { width: 18px; }
}

.stat-strip {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--grey-light);
}
.stat-item {
  flex: 1 1 220px;
  padding: 36px 36px 0 0;
  border-bottom: 1px solid var(--grey-light);
}
.stat-item + .stat-item { border-left: 1px solid var(--grey-light); padding-left: 36px; }
.stat-item .num {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--ink);
  line-height: 1;
}
.stat-item .num span { color: var(--teal); }
.stat-item .label { margin-top: 14px; font-size: 13px; color: var(--grey); font-weight: 500; letter-spacing: 0.02em; line-height: 1.5; }
@media (max-width: 720px) {
  .stat-item { flex: 1 1 45%; padding: 28px 20px 24px 0 !important; border-left: none !important; }
  .stat-item:nth-child(odd) { padding-right: 20px; }
}

/* ===== Projects ===== */
.tabs { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn {
  background: none; border: 1px solid var(--grey-light); padding: 11px 22px; border-radius: 30px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--grey);
  transition: var(--transition);
}
.tab-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.project-panel { display: none; }
.project-panel.is-active { display: block; animation: fadein 0.5s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.project-feature {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.project-feature .pf-media { position: relative; min-height: 420px; }
.project-feature .pf-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-feature .pf-media .status-badge {
  position: absolute; top: 24px; left: 24px; z-index: 2;
  background: rgba(255,255,255,0.95); color: var(--teal); font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; border-radius: 30px;
}
.pf-body { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.pf-body .partner-line { font-size: 13px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 12px; }
.pf-body h3 { font-size: 32px; }
.pf-body .pf-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0 22px; }
.pf-body .pf-meta span { font-size: 13px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
.pf-body .pf-meta span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.pf-body p.desc { font-size: 15.5px; line-height: 1.7; color: var(--grey); margin-bottom: 28px; }
.thumb-strip { display: flex; gap: 12px; margin-top: 28px; }
.thumb-strip img { width: 84px; height: 60px; object-fit: cover; border-radius: 4px; }

@media (max-width: 860px) {
  .project-feature { grid-template-columns: 1fr; }
  .project-feature .pf-media { min-height: 260px; }
  .pf-body { padding: 30px; }
}

.placeholder-card {
  border: 1.5px dashed var(--grey-light); border-radius: var(--radius); padding: 56px 40px;
  text-align: center; color: var(--grey); background: var(--bg-alt);
}
.placeholder-card .tag-soon {
  display: inline-block; background: var(--teal-tint); color: var(--teal); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 30px; margin-bottom: 18px;
}
.placeholder-card h4 { font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.placeholder-card p { max-width: 460px; margin: 0 auto; line-height: 1.7; font-size: 15px; }

/* ===== Contact ===== */
.contact-section { position: relative; }
.contact-section .bg-image {
  position: absolute; inset: 0; background: url('../img/contact-bg.jpg') center/cover no-repeat;
  opacity: 0.06; z-index: 0;
}
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; }
.contact-info h3 { font-size: 22px; margin-bottom: 20px; }
.info-row { display: flex; gap: 16px; margin-bottom: 26px; }
.info-row .ic {
  width: 40px; height: 40px; border-radius: 8px; background: var(--teal-tint); color: var(--teal);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-row .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); margin-bottom: 4px; }
.info-row .value { font-size: 15.5px; color: var(--ink); line-height: 1.55; }
.info-row .value a { color: var(--teal); font-weight: 600; }
.group-note {
  margin-top: 32px; padding: 20px; border-radius: var(--radius); background: var(--bg-alt);
  display: flex; align-items: center; gap: 14px; font-size: 13.5px; color: var(--ink-soft);
}
.group-note img { height: 24px; }
.group-note a { color: var(--teal); font-weight: 700; }

.enquiry-form { background: #fff; border: 1px solid var(--grey-light); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--grey-light); border-radius: 4px;
  font-family: inherit; font-size: 14.5px; color: var(--ink); background: #fff; transition: border-color var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 14px; font-size: 12.5px; color: var(--grey); text-align: center; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } .enquiry-form { padding: 26px; } }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 30px; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 280px; color: rgba(255,255,255,0.55); }
.footer-col h5 { color: #fff; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,0.45);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .site-footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; column-gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 100%; }
  .footer-col h5 { margin-bottom: 14px; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a { font-size: 13.5px; }
  .footer-bottom { margin-top: 40px; flex-direction: column; gap: 8px; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Toast for mailto */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 20px); z-index: 2000;
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 30px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
