/* ==========================================
   DESIGN TOKENS
   ========================================== */
:root {
  --forest-deep: #333f3a;
  --forest: #4b5d54;
  --forest-soft: #71857a;
  --olive: #71857a;
  --khaki: #a9b8ae;
  --ochre: #4b5d54;
  --ochre-soft: #a9b8ae;
  --wood: #71857a;
  --beige: #e8ede9;
  --sand: #f4f6f4;
  --cream: #fdfdfc;

  --bg: var(--cream);
  --bg-alt: #f3f4f2;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --border: #e5e7e3;
  --heading: var(--forest-deep);
  --text: #33332f;
  --muted: #6e6e68;
  --accent: var(--ochre);
  --accent-2: var(--olive);
  --primary: var(--forest);
  --primary-ink: #ffffff;

  --shadow-sm: 0 2px 10px rgba(45, 56, 51, 0.06);
  --shadow-md: 0 14px 34px rgba(45, 56, 51, 0.1);
  --shadow-lg: 0 28px 60px rgba(45, 56, 51, 0.14);

  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --radius-btn: 6px;
  --maxw: 1180px;
  --nav-h: 76px;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --serif-formal: var(--serif);
  --sans: "Fira Sans", system-ui, -apple-system, sans-serif;
  --mono: var(--sans);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================
   RESET & BASICS
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  color: var(--heading);
  line-height: 1.15;
  font-weight: 700;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--forest);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 110px 0;
  position: relative;
}

.section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__title {
  font-size: 2.6rem;
  margin-bottom: 16px;
}

.section__lead {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
}

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ==========================================
   BUTTONS & LINKS
   ========================================== */
.btn {
  --pad-y: 13px;
  --pad-x: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
  position: relative;
  overflow: hidden;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--forest);
  color: var(--primary-ink);
}

.btn--primary:hover {
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  color: var(--forest);
  border-bottom: 2px solid transparent;
  transition: gap 0.25s var(--ease), border-color 0.25s;
}

.link-arrow span {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  gap: 14px;
  border-color: var(--accent);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand__mark {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 16px 0 16px 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.brand__logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand__sub {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--accent);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  color: #fff;
  transition: color 0.25s, background 0.25s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__link.active {
  color: var(--accent);
}

.nav__link--cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  margin-left: 6px;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav__burger span {
  width: 24px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.25s;
}

.nav__burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav__burger.open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav.scrolled .brand {
  color: var(--heading);
}

.nav.scrolled .nav__link {
  color: var(--text);
}

.nav.scrolled .nav__link.active {
  color: var(--forest);
}

.nav.scrolled .nav__burger span {
  background: var(--heading);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: -8% 0 0 0;
  height: 116%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-image:
    linear-gradient(160deg, rgba(30, 36, 33, 0.25), rgba(30, 36, 33, 0.15)),
    url("../resources/P5570568.JPG") !important;
  will-change: transform;
}

.hero__bg.fallback {
  background-image: linear-gradient(160deg, #4b5d54 0%, #333f3a 55%, #2b332e 100%) !important;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 20% 20%, rgba(45, 56, 51, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(30, 36, 33, 0.55) 0%, rgba(30, 36, 33, 0.35) 40%, rgba(30, 36, 33, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ochre-soft);
  margin-bottom: 22px;
}

.hero__title {
  color: #fff;
  font-size: 4.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}

.hero__title span {
  color: var(--ochre-soft);
}

.hero__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ochre-soft);
  margin: -8px 0 18px;
}

.hero__subtitle {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 0 auto 38px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 300;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__loc {
  margin-top: 18px;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* ==========================================
   ABOUT & BIO
   ========================================== */
.about {
  background: var(--bg);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.about__media {
  position: relative;
}

.about__img {
  height: 540px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background-size: cover;
  background-position: center;
  background-image: url("../resources/52D918F1-DE20-4179-B2E7-2BC6A9E3FD69.jpg");
}

.about__img.fallback {
  background-image: linear-gradient(150deg, #71857a, #333f3a);
}

.about__badge {
  position: absolute;
  bottom: -22px;
  right: -10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 22px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about__badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--forest);
}

.about__badge span {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about__text p {
  color: var(--text);
  margin-bottom: 16px;
}

.about__text p strong {
  color: var(--heading);
}

.about__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  margin: 22px 0 6px;
}

.about__list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-weight: 500;
}

.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  background: var(--accent-2);
  border-radius: 50%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.bio-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow-md);
}

.bio-box .eyebrow {
  margin-bottom: 10px;
}

.bio-box h3 {
  font-family: var(--serif-formal);
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.bio-box__role {
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 4px;
}

.bio-box__deg {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.bio-box .about__list {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

/* ==========================================
   SERVICES
   ========================================== */
.services {
  background: var(--bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Why choose us list layout */
.why-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px 0 14px 14px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--forest);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.why-item__content {
  flex-grow: 1;
}

.why-item__title {
  font-family: var(--serif-formal);
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 6px;
  margin-top: 0;
}

.why-item__text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
  margin: 0;
}

.svc {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}

.svc::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-2);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}

.svc:hover,
.svc:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.svc:hover::before,
.svc:focus-within::before {
  transform: scaleY(1);
}

.svc__icon {
  width: 62px;
  height: 62px;
  border-radius: 16px 0 16px 16px;
  display: grid;
  place-items: center;
  color: var(--forest);
  margin-bottom: 20px;
  background: rgba(113, 133, 122, 0.14);
  transition: transform 0.4s var(--ease), background 0.4s;
}

.svc:hover .svc__icon {
  transform: rotate(-6deg) scale(1.08);
}

.svc__title {
  font-family: var(--serif-formal);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.svc__tag {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Service Categories */
.svc-cats {
  display: grid;
  gap: 24px;
}

.svc-cat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.svc-cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.svc-cat__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.svc-cat__label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 4px;
}

.svc-cat__title {
  font-family: var(--serif-formal);
  font-size: 1.4rem;
  line-height: 1.2;
}

.svc-cat__intro {
  color: var(--muted);
  margin-bottom: 18px;
}

.svc-cat__list {
  display: grid;
  gap: 13px;
}

.svc-cat__list li {
  position: relative;
  padding-left: 30px;
}

.svc-cat__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--accent-2);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.svc-cat__list li strong {
  color: var(--heading);
}

/* ==========================================
   MAP & CONTACT
   ========================================== */
.map {
  background: var(--bg);
}

.map__wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

#leafletMap {
  height: 480px;
  width: 100%;
  background: var(--beige);
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
}

.leaflet-popup-content {
  font-family: var(--sans);
}

.map-popup h4 {
  font-family: var(--serif);
  color: var(--forest);
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.map-popup span {
  color: var(--ochre);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.map-popup p {
  margin-top: 4px;
  color: #555;
  font-size: 13px;
}

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

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.contact__lead {
  color: var(--muted);
  margin: 10px 0 28px;
  max-width: 420px;
}

.contact__details {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.contact__details li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__ic {
  width: 46px;
  height: 46px;
  border-radius: 12px 0 12px 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact__details strong {
  color: var(--heading);
  font-weight: 600;
}

.contact__details a:hover {
  color: var(--accent);
}

.contact__details--center {
  max-width: 560px;
  margin: 0 auto;
  gap: 22px;
}

.contact__details--center li {
  font-size: 1.05rem;
}

.contact__details--center a:hover {
  color: var(--accent);
}

.social {
  display: flex;
  gap: 12px;
}

.social__link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--forest);
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s;
}

.social__link:hover {
  background: var(--forest);
  color: #fff;
  transform: translateY(-3px);
}

/* Form Styles */
.contact__form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-md);
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--heading);
  margin-bottom: 7px;
}

.field label .opt {
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(75, 93, 84, 0.14);
  background: var(--surface);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #c0492e;
}

.field.valid input,
.field.valid select,
.field.valid textarea {
  border-color: var(--olive);
}

.field__error {
  display: block;
  min-height: 16px;
  font-family: var(--mono);
  color: #c0492e;
  font-size: 11.5px;
  margin-top: 5px;
}

.btn__spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  display: none;
  animation: spin 0.7s linear infinite;
}

.btn.loading .btn__label {
  opacity: 0.6;
}

.btn.loading .btn__spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form__success {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  background: rgba(113, 133, 122, 0.16);
  color: var(--forest);
  border: 1px solid rgba(113, 133, 122, 0.35);
}

/* ==========================================
   SUB-PAGE HERO, BREADCRUMB & CTA BAND
   ========================================== */
.page-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  padding: var(--nav-h) 0 56px;
}

.page-hero__bg {
  position: absolute;
  inset: -8% 0 0 0;
  height: 116%;
  z-index: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.page-hero__bg.fallback {
  background-image: linear-gradient(160deg, #4b5d54 0%, #333f3a 60%, #2b332e 100%) !important;
}

/* Per-page hero backgrounds
   Add the matching class to the <div class="page-hero__bg"> of each page.
   !important is used so these win over any inline style in the HTML. */
.page-hero__bg--about {
  /* Page: Το Γραφείο και η Εμπειρία μας */
  background-image: url("../resources/IMG_1091.png") !important;
}

.page-hero__bg--services {
  /* Page: Τομείς Μελετών και Υπηρεσιών */
  background-image: url("../resources/147603.jpeg") !important;
}

.page-hero__bg--why {
  /* Page: Γιατί να επιλέξετε εμάς */
  background-image: url("../resources/DSC_0282 (1).JPG") !important;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(30, 36, 33, 0.45) 0%, rgba(30, 36, 33, 0.55) 45%, rgba(30, 36, 33, 0.85) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  color: #fff;
  font-size: 3.1rem;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.page-hero__sub {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 300;
  font-size: 1.2rem;
  max-width: 640px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: var(--ochre-soft);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb [aria-current] {
  color: #fff;
}

.cta-band {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.cta-band__bg.fallback {
  background-image: linear-gradient(135deg, #333f3a, #71857a) !important;
}

.cta-band__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(45, 56, 51, 0.92), rgba(45, 56, 51, 0.78));
}

.cta-band__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-band__inner h2 {
  color: #fff;
  font-size: 2.6rem;
  margin-bottom: 14px;
}

.cta-band__inner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.section__head .head-link {
  display: inline-block;
  margin-top: 14px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--forest-deep);
  color: #d6dccb;
  padding: 56px 0 0;
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer__brand {
  display: flex;
  gap: 14px;
  align-items: center;
  max-width: 360px;
}

.footer__brand strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: #fff;
}

.footer__brand p {
  color: #a9b39a;
  font-size: 0.95rem;
  margin-top: 4px;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-content: center;
}

.footer__nav a {
  color: #c7cfb9;
  font-weight: 500;
  transition: color 0.2s;
}

.footer__nav a:hover {
  color: var(--ochre-soft);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #9aa489;
}

.to-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.to-top:hover {
  background: var(--ochre);
  transform: translateY(-3px);
}

/* ==========================================
   REVEALS
   ========================================== */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.services__grid .reveal.in {
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ==========================================
   PORTFOLIO SECTION (PROJECTS)
   ========================================== */
.portfolio {
  background: var(--sand-light);
  padding: 100px 0;
}

.project-block {
  margin-bottom: 80px;
}

.project-block:last-of-type {
  margin-bottom: 0;
}

.project-block__header {
  margin-bottom: 35px;
  max-width: 800px;
}

.project-block__title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}

.project-block__desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--charcoal);
  opacity: 0.85;
  line-height: 1.6;
}

/* Small line under a category title (normal weight) */
.project-block__line {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.5;
  margin-top: 12px;
  max-width: 820px;
}

/* Lighter, a bit smaller sub-line (sits under a title or a __line) */
.project-block__sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 3px;
  max-width: 820px;
}

/* A bit more space when the lighter line sits directly under the title */
.project-block__title + .project-block__sub {
  margin-top: 8px;
}

.project-block__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Gallery variant: each photo keeps its natural shape (vertical stays vertical, no cropping) */
.project-block__grid--gallery {
  display: block;
  columns: 3;
  column-gap: 30px;
}

.project-block__grid--gallery .project-card {
  display: block;
  width: 100%;
  margin: 0 0 30px;
  break-inside: avoid;
}

.project-block__grid--gallery .project-card__img-wrap {
  aspect-ratio: auto;
}

.project-block__grid--gallery .project-card__img {
  width: 100%;
  height: auto;
  object-fit: initial;
}

@media (max-width: 980px) {
  .project-block__grid--gallery {
    columns: 2;
  }
}

@media (max-width: 560px) {
  .project-block__grid--gallery {
    columns: 1;
  }
}

.project-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.project-card__img-wrap {
  position: relative;
  aspect-ratio: 1.45;
  overflow: hidden;
  background: var(--sand-dark);
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card__img {
  transform: scale(1.04);
}

/* Empty placeholder shown where a new project photo will go */
.project-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-2);
  color: var(--forest-soft);
}

.project-card__placeholder svg {
  width: 38px;
  height: 38px;
  opacity: 0.55;
}

.project-card__placeholder span {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.7;
}

.project-card__info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-title);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--forest);
  background: rgba(75, 93, 84, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-weight: 600;
}

.project-card__title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--forest-dark);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */

/* Tablet & Smaller Desktop (max 1040px) */
@media (max-width: 1040px) {
  .nav__burger {
    display: flex;
  }

  .nav {
    background: color-mix(in srgb, var(--forest-deep) 96%, transparent);
  }

  .nav.scrolled {
    background: color-mix(in srgb, var(--bg) 95%, transparent);
    backdrop-filter: blur(12px);
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--forest-deep);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding: 16px 16px 20px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition:
      opacity 0.28s var(--ease),
      visibility 0.28s,
      transform 0.28s var(--ease),
      background 0.35s var(--ease),
      border-color 0.35s;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }

  .nav__menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav.scrolled .nav__menu {
    background: var(--bg);
    border-bottom-color: var(--border);
    box-shadow: 0 8px 24px rgba(45, 56, 51, 0.1);
  }

  .nav__link {
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
  }

  .nav__link::after {
    display: none;
  }

  .nav__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
  }

  .nav__link.active {
    color: var(--ochre-soft);
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--ochre-soft);
    font-weight: 600;
  }

  .nav.scrolled .nav__menu .nav__link {
    color: var(--text);
  }

  .nav.scrolled .nav__menu .nav__link:hover {
    color: var(--heading);
    background: var(--surface-2);
  }

  .nav.scrolled .nav__menu .nav__link.active {
    color: var(--forest);
    background: rgba(75, 93, 84, 0.1);
    border-left-color: var(--forest);
  }

  .nav__link--cta {
    position: relative;
    margin: 10px 0 0;
    border-radius: var(--radius-sm);
    background: var(--ochre);
    color: #fff !important;
    font-weight: 700;
    text-align: center;
    padding: 15px 18px;
    border-left: none;
    letter-spacing: 0.3px;
  }

  .nav__link--cta:hover {
    background: var(--ochre-soft);
    opacity: 1;
    transform: none;
  }

  .nav__link--cta::before {
    content: "";
    display: block;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 0 14px;
    position: absolute;
    left: 16px;
    right: 16px;
    top: -7px;
  }
}

/* Medium Screens (max 980px) */
@media (max-width: 980px) {
  .hero__title {
    font-size: 3.8rem;
  }

  .section__title {
    font-size: 2.3rem;
  }

  .section {
    padding: 88px 0;
  }

  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    max-width: 460px;
  }

  .page-hero__title {
    font-size: 2.6rem;
  }

  .cta-band__inner h2 {
    font-size: 2.2rem;
  }

  .project-block__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .project-block__title {
    font-size: 1.8rem;
  }
}

/* Small Screens & Mobile (max 760px) */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: 0;
    padding: 130px 0 90px;
  }

  .hero__title {
    font-size: 2.7rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .hero__name {
    font-size: 1.1rem;
  }

  .section {
    padding: 68px 0;
  }

  .section__title {
    font-size: 2rem;
  }

  .about__img {
    height: 420px;
  }

  .about__list {
    grid-template-columns: 1fr;
  }

  .bio-box {
    padding: 26px 22px;
  }

  .svc-cat {
    padding: 26px 22px;
  }

  .svc-cat__title {
    font-size: 1.2rem;
  }

  .svc-cat__head {
    gap: 14px;
  }

  .footer__bottom {
    justify-content: center;
    text-align: center;
  }

  .page-hero {
    min-height: 360px;
    padding-top: 100px;
  }

  .page-hero__title {
    font-size: 2.1rem;
  }

  .page-hero__sub {
    font-size: 1.05rem;
  }

  .cta-band__inner h2 {
    font-size: 1.9rem;
  }

  .project-block {
    margin-bottom: 60px;
  }

  .project-block__header {
    margin-bottom: 25px;
  }

  .project-block__title {
    font-size: 1.5rem;
  }

  .project-block__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .portfolio {
    padding: 60px 0;
  }
}

/* Extra Small Phones (max 480px) */
@media (max-width: 480px) {
  :root {
    --nav-h: 64px;
  }

  .why-item {
    flex-direction: column;
    gap: 16px;
    padding: 22px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .nav__inner {
    padding: 0 16px;
  }

  .nav {
    padding-top: env(safe-area-inset-top, 0px);
  }

  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 110px 0 70px;
  }

  .hero__title {
    font-size: 1.95rem;
  }

  .hero__subtitle {
    font-size: 0.97rem;
  }

  .hero__eyebrow {
    letter-spacing: 3px;
    font-size: 11px;
  }

  .section__title {
    font-size: 1.55rem;
  }

  .section__lead {
    font-size: 0.97rem;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact__form {
    padding: 24px 18px;
  }

  .bio-box {
    padding: 22px 16px;
  }

  .svc-cat {
    padding: 22px 16px;
  }

  .about__img {
    height: 280px;
  }

  .about__badge {
    right: 0;
  }

  #leafletMap {
    height: 320px;
  }

  .footer__grid {
    flex-direction: column;
    gap: 24px;
  }

  .footer__brand {
    max-width: 100%;
  }

  .page-hero {
    min-height: 280px;
    padding-top: 80px;
    padding-bottom: 32px;
  }

  .page-hero__title {
    font-size: 1.8rem;
  }

  .page-hero__sub {
    font-size: 0.97rem;
  }

  .cta-band__inner h2 {
    font-size: 1.65rem;
  }

  .cta-band__inner p {
    font-size: 0.97rem;
  }

  .footer__bottom {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 420px) {
  .hero__title {
    font-size: 1.7rem;
  }

  .section__title {
    font-size: 1.45rem;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .brand__sub {
    display: none;
  }
}

/* Touch Device Overrides */
@media (hover: none) {

  .btn--primary:hover,
  .btn--ghost:hover,
  .svc:hover,
  .svc-cat:hover,
  .social__link:hover,
  .to-top:hover,
  .nav__link--cta:hover {
    transform: none;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
