/* =========================================================
   Cityfy Global Solutions — local recreation
   Layout & palette matched to the live site screenshots.
   Brand colors taken from the logo: orange + navy + blue.
   ========================================================= */

:root {
  --orange:      #f79421;
  --orange-600:  #e07f12;
  --navy:        #323c52;
  --navy-deep:   #20283a;
  --blue:        #2f55d4;
  --blue-600:    #2443be;
  --ink:         #2b3146;
  --slate:       #4b5366;
  --sub-gray:    #8a8f9c;   /* section sub-headings */
  --line:        #e7ebf2;
  --bg:          #ffffff;
  --bg-blue:     #eef4fc;   /* hero + contact            */
  --bg-cream:    #fcf6ee;   /* services                  */
  --note-bg:     #f4f5f7;   /* directors note box        */
  --radius:      22px;
  --radius-sm:   14px;
  --shadow:      0 12px 34px rgba(34, 42, 68, 0.08);
  --shadow-lg:   0 24px 60px rgba(34, 42, 68, 0.14);
  --maxw:        1200px;
  --gutter:      clamp(20px, 4vw, 40px);
  --font-body:   "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head:   "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--blue); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-family: var(--font-head);
  border-radius: 999px; padding: 12px 24px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  font-size: 1rem; white-space: nowrap;
}
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 22px rgba(240,138,30,.30); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(240,138,30,.40); }
.btn-ghost { background: transparent; color: var(--navy); border-color: #cfd6e4; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 74px; }
.brand-logo { height: 38px; width: auto; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; color: var(--navy); font-size: 1rem; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--orange); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--orange); transition: width .2s ease; }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s ease; }
.mobile-menu { display: none; flex-direction: column; padding: 8px var(--gutter) 18px; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu a { padding: 13px 4px; font-weight: 500; color: var(--navy); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 880px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-title {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.12;
  letter-spacing: -0.02em; margin: 0; color: var(--navy);
}
.section-sub {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.3;
  color: var(--sub-gray); margin: 10px 0 0;
}
.section-lead { color: var(--slate); font-size: 1.1rem; margin: 18px auto 0; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-blue); color: var(--navy); padding: clamp(80px, 11vw, 140px) 0; text-align: center; }
.hero-inner { max-width: 900px; margin-inline: auto; }
.hero-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; margin: 0 0 8px; letter-spacing: -0.025em; color: var(--navy); }
.hero-tagline { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 3.6vw, 2.6rem); color: var(--sub-gray); margin: 0 0 26px; letter-spacing: -0.01em; }
.hero-lead { color: var(--slate); font-size: clamp(1rem, 1.4vw, 1.15rem); max-width: 720px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Directors (oval photos) ---------- */
.directors { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(32px, 5vw, 72px); }
.director { text-align: left; }
.director-photo {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 0 22px;
  background: linear-gradient(135deg, #fcd9a6 0%, #f9b3cd 52%, #f593b6 100%);
}
/* cover = image is zoomed to fill the whole oval; rectangular edges are clipped
   OUTSIDE the ellipse, so no cut edges/gradient gaps show. center 25% keeps the
   face framed (biased toward the top of the head-and-shoulders portrait). */
.director-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  transition: transform .5s ease;
}
/* Hover: slight zoom on the person + fade the wash so the photo reads clearly */
.director-photo:hover img { transform: scale(1.07); }
/* Pink/peach wash over the photo. Uses a translucent gradient (normal blend) so it's
   always clearly visible. For a richer photographic tint instead, delete the rgba
   values, use solid colors, and add e.g. mix-blend-mode: soft-light; */
.director-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,206,140,0.55) 0%, rgba(255,150,196,0.60) 52%, rgba(250,120,182,0.62) 100%);
  pointer-events: none;
  transition: opacity .4s ease;
}
.director-photo:hover::after { opacity: 0; }
.director-name { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 4px; color: var(--navy); }
.director-role { color: var(--sub-gray); font-style: italic; font-weight: 500; margin: 0 0 16px; font-size: 1.05rem; }
.director-bio { color: var(--slate); margin: 0; font-size: 1.02rem; }
.directors-note { background: var(--note-bg); border-radius: var(--radius); padding: clamp(24px, 3vw, 34px) clamp(26px, 4vw, 44px); margin-top: clamp(40px, 5vw, 60px); }
.directors-note p { margin: 0; font-style: italic; font-weight: 600; color: var(--navy); text-align: center; font-size: 1.05rem; }

/* ---------- Services (alternating zigzag, cream bg) ---------- */
.services-section { background: var(--bg-cream); }
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 7vw, 90px); }
.service-row:last-child { margin-bottom: 0; }
.service-row.reverse .service-text { order: 2; }
.service-row.reverse .service-media { order: 1; }
.service-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 0 10px; color: var(--navy); letter-spacing: -0.01em; }
.service-desc { color: var(--sub-gray); font-size: 1.1rem; margin: 0 0 18px; }
.service-list { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.service-list li { color: var(--ink); font-size: 1.05rem; padding-left: 4px; }
.service-list li::marker { color: var(--navy); }
.service-media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Why Choose (white cards) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 30px);
  box-shadow: var(--shadow); text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 18px; }
.feature-title { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; margin: 0 0 10px; color: var(--navy); }
.feature-card p { color: var(--sub-gray); margin: 0; }

/* ---------- Contact / CTA (light blue) ---------- */
.cta { background: var(--bg-blue); }
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 840px; margin: 0 auto 36px; }
.office-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.office-card h3 { font-family: var(--font-head); font-weight: 700; margin: 0 0 10px; font-size: 1.15rem; color: var(--navy); }
.office-card p { color: var(--slate); margin: 0; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer (navy) ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding: 52px 0; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { height: 36px; filter: brightness(0) invert(1); opacity: .92; }
.footer-tag { margin: 0; color: rgba(255,255,255,.8); }
.footer-copy { margin: 0; font-size: .9rem; color: rgba(255,255,255,.5); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Ultra-wide: widen the canvas so it doesn't look lost */
@media (min-width: 1700px) {
  :root { --maxw: 1360px; }
}
@media (min-width: 2200px) {
  :root { --maxw: 1500px; }
}

/* Laptop / small desktop */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  /* nav collapses */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* services + directors stack, image always below text */
  .service-row, .service-row.reverse { grid-template-columns: 1fr; gap: 24px; }
  .service-row .service-text, .service-row.reverse .service-text { order: 1; }
  .service-row .service-media, .service-row.reverse .service-media { order: 2; }
  .service-media img { aspect-ratio: 16 / 10; max-height: 420px; }
}

/* Mobile */
@media (max-width: 640px) {
  .directors { grid-template-columns: 1fr; }
  .director-photo { max-width: 260px; margin-inline: auto; }
  .director { text-align: center; }
  .features { grid-template-columns: 1fr; }
  .offices { grid-template-columns: 1fr; }
  .hero-actions, .contact-actions { flex-direction: column; align-items: stretch; }
  .btn-lg { width: 100%; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
