/* =============================================
   ASEF — Photography Portfolio
   ============================================= */

/* ---- Dosis variable font ----
   File: fonts/Dosis-VariableFont_wght.ttf
   A single variable file covers all weights (200–800).
   Dosis is a free Google Fonts typeface.
   --------------------------------------------------------- */
@font-face {
  font-family: "Dosis";
  src: url("fonts/Dosis-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {

  --font-body: "Dosis", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Palette */
  --white: #ffffff;
  --dark-grey: #2b2b2b;
  --mid-grey: #6b6b6b;
  --light-grey: #f5f5f5;
  --accent: #1a1a1a;

  --header-height: 64px;
  --container-width: 1200px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Header hides on scroll-down, so anchor targets align flush to the top */
  scroll-padding-top: 0;
}

body {
  font-family: var(--font-body);
  color: var(--dark-grey);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* =============================================
   Preloader
   ============================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.preloader-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 0.35rem;
  animation: logoPulse 1.8s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

.preloader-line {
  width: 130px;
  height: 2px;
  background: rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.preloader-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 40%;
  background: var(--dark-grey);
  animation: loadSlide 1.2s ease-in-out infinite;
}

@keyframes loadSlide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.preloader-text {
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--dark-grey);
  font-weight: 500;
}

/* =============================================
   Header — transparent, dark grey text
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  color: var(--dark-grey);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: transform 0.4s ease, background 0.4s ease,
              box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: transform;
}

/* Hides header when scrolling down, reveals when scrolling up */
.site-header.header-hidden {
  transform: translateY(-100%);
}

/* Solid white background after scrolling past the hero top */
.site-header.scrolled {
  background: var(--white);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* When the mobile menu is open, force a solid white header */
.site-header.menu-open {
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.site-header.menu-open .logo,
.site-header.menu-open .nav-link {
  color: var(--dark-grey);
}

.site-header.menu-open .nav-toggle span {
  background: var(--dark-grey);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--dark-grey);
  transition: color 0.4s ease, opacity 0.25s ease;
}

.logo:hover {
  opacity: 0.7;
}

/* Desktop nav */
.main-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--dark-grey);
  padding: 0.25rem 0;
  transition: color 0.4s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  opacity: 0.8;
}

/* ---- Portfolio dropdown (desktop) ---- */
.nav-item-dropdown {
  position: relative;
}

.nav-link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.caret {
  font-size: 0.7em;
  line-height: 1;
  transition: transform 0.25s ease;
}

.nav-item-dropdown.open .caret,
.nav-item-dropdown:hover .caret {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: var(--white);
  border-radius: 14px;
  padding: 0.6rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
}

/* Invisible bridge so hover isn't lost between link and menu */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-grey);
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
  background: var(--light-grey);
  color: #000;
}

/* ---- Mobile dropdown ---- */
.mobile-dropdown-toggle {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-dropdown.open .mobile-dropdown-toggle .caret {
  transform: rotate(180deg);
}

.mobile-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  padding-left: 1rem;
}

.mobile-dropdown.open .mobile-submenu {
  max-height: 640px;
}

.mobile-submenu-link {
  display: block;
  padding: 0.7rem 0;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--mid-grey);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.mobile-submenu-link:hover {
  color: var(--dark-grey);
}

/* Header turned solid (scrolled) — dark grey text on white */
.site-header.scrolled .logo,
.site-header.scrolled .nav-link {
  color: var(--dark-grey);
}

.site-header.scrolled .nav-link:hover {
  color: #000;
  opacity: 1;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark-grey);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.4s ease;
}

/* Header solid — dark hamburger */
.site-header.scrolled .nav-toggle span {
  background: var(--dark-grey);
}

/* Hamburger active (X) */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  overflow: hidden;
  max-height: 0;
  background: var(--white);
  transition: max-height 0.4s ease;
}

.mobile-menu.open {
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 2rem 1.5rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark-grey);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* =============================================
   Hero — 100vh
   ============================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  text-align: left;
  color: var(--dark-grey);
  padding-top: var(--header-height);
}

/* Background image layer — no overlay */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("asset/images/home.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Override .container centering so the margin is measured from the screen edge */
  max-width: 100%;
  margin: 0;
  padding-left: 10vw;
  padding-right: 2rem;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--dark-grey);
  margin-bottom: 1.5rem;
}

/* Content wrapper behind the headline & description (no glass effect) */
.hero-card {
  max-width: 760px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.hero-title-name {
  display: block;
  font-size: 1.15em;
  font-weight: 300;
}

.hero-title-role {
  display: block;
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-top: 0.15em;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 400;
  max-width: 680px;
  color: var(--dark-grey);
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 1.75rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.btn:active {
  transform: translateY(-1px);
}

/* Base primary button (used outside hero) */
.btn-primary {
  background: var(--dark-grey);
  color: var(--white);
}

.btn-primary:hover {
  background: #000;
}

/* Hero buttons — sharp corners */
.hero-actions .btn {
  border-radius: 0;
}

/* "View Portfolio" — default grey */
.hero-actions .btn-primary {
  background: var(--mid-grey);
  color: var(--white);
  border-color: var(--mid-grey);
}

.hero-actions .btn-primary:hover {
  background: var(--dark-grey);
  border-color: var(--dark-grey);
}

/* "Get in Touch" — outline, turns grey on hover */
.hero-actions .btn-ghost {
  background: transparent;
  color: var(--dark-grey);
  border-color: rgba(43, 43, 43, 0.4);
}

.hero-actions .btn-ghost:hover {
  background: var(--mid-grey);
  color: var(--white);
  border-color: var(--mid-grey);
}

.btn-ghost {
  background: transparent;
  color: var(--dark-grey);
  border-color: rgba(43, 43, 43, 0.4);
}

.btn-ghost:hover {
  background: var(--dark-grey);
  color: var(--white);
  border-color: var(--dark-grey);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(43, 43, 43, 0.5);
  border-radius: 100px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-indicator span {
  width: 4px;
  height: 8px;
  background: var(--dark-grey);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* =============================================
   Key Highlights — Stats Bar
   ============================================= */
.stats-bar {
  background: var(--white);
  height: 200px;
  display: flex;
  align-items: center;
  padding: 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

.stat-number {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1;
  color: var(--dark-grey);
}

.stat-number--text {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 500;
  color: var(--dark-grey);
  letter-spacing: 0.02em;
  max-width: 220px;
}

.stat-divider {
  width: 1px;
  height: 64px;
  background: rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

/* =============================================
   About Section
   ============================================= */
.about-section {
  background: var(--light-grey);
  min-height: 750px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.about-inner {
  max-width: 900px;
  margin: 0 auto;
}

.about-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 200;
  color: var(--dark-grey);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
}

.about-lead {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--dark-grey);
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 300;
  color: var(--mid-grey);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.about-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 2rem;
}

.about-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 500;
  color: var(--dark-grey);
  line-height: 1.5;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--dark-grey);
  border-radius: 50%;
}

/* =============================================
   Portfolio Section
   ============================================= */
.section.portfolio-section {
  background: var(--white);
  padding-bottom: 9.25rem; /* base 6rem (section) + ~100px extra */
}

.portfolio-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 200;
  color: var(--dark-grey);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.portfolio-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--mid-grey);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Filter tabs */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--dark-grey);
  background: transparent;
  border: 1px solid rgba(43, 43, 43, 0.25);
  border-radius: 100px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-btn:hover {
  border-color: var(--dark-grey);
}

.filter-btn.active {
  background: var(--dark-grey);
  color: var(--white);
  border-color: var(--dark-grey);
}

/* Grid — 3 columns, square items, sharp corners */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  cursor: pointer;
  background: var(--light-grey);
  aspect-ratio: 1 / 1;
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

/* 100% black overlay on hover */
.portfolio-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.portfolio-item:hover::after {
  opacity: 1;
}

/* Centered title + description on hover */
.portfolio-item figcaption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--white);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.portfolio-item:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-caption-title {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.portfolio-caption-line {
  width: 36px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  margin: 0.6rem 0;
}

.portfolio-caption-detail {
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

/* "View more" affordance shown on hover */
.portfolio-caption-more {
  margin-top: 1.75rem;
  font-size: 0.78rem;
  font-weight: 200;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: none;
  border: none;
  padding: 0;
}

/* =============================================
   Lightbox
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.3s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-close {
  top: 1.5rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  font-size: 1.4rem;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* =============================================
   My Services Section
   ============================================= */
.services-section {
  background: var(--light-grey);
  min-height: 750px;
  display: flex;
  align-items: center;
  padding: 3rem 0;
}

.services-inner {
  width: 100%;
}

.services-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 200;
  color: var(--dark-grey);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-name {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 600;
  color: var(--dark-grey);
  line-height: 1.3;
  position: relative;
  padding-bottom: 0.6rem;
}

.service-name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--dark-grey);
}

.service-desc {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  font-weight: 300;
  color: var(--mid-grey);
  line-height: 1.6;
}

/* =============================================
   Contact Section
   ============================================= */
.contact-section {
  background: var(--white);
  height: 800px;
  display: flex;
  align-items: center;
  padding: 2.5rem 0;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.contact-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 200;
  color: var(--dark-grey);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.contact-headline {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
  color: var(--dark-grey);
  text-align: center;
  margin-bottom: 0.35rem;
}

.contact-subheadline {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--mid-grey);
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 0;
}

/* Heading block: centered at top of the section */
.contact-intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Two-column layout: form left, details right */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrap {
  display: flex;
  flex-direction: column;
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Grey filled icon badge with white icon inside */
.contact-detail-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--mid-grey);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

/* Hover popup effect on the icon badge */
.contact-detail:hover .contact-detail-icon {
  transform: translateY(-4px) scale(1.08);
  background: var(--dark-grey);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
}

.contact-detail-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-detail-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid-grey);
}

.contact-detail-value {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark-grey);
  transition: opacity 0.25s ease;
}

.contact-detail-value:hover {
  opacity: 0.7;
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--dark-grey);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--dark-grey);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--dark-grey);
  box-shadow: 0 0 0 3px rgba(43, 43, 43, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Captcha */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.captcha-question {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--dark-grey);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0;
  padding: 0.65rem 1rem;
  white-space: nowrap;
  user-select: none;
}

.captcha-row input {
  max-width: 130px;
}

.captcha-refresh {
  font-size: 1.2rem;
  line-height: 1;
  color: var(--dark-grey);
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.3s ease;
}

.captcha-refresh:hover {
  background: #f5f5f5;
  transform: rotate(90deg);
}

.form-status {
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.2em;
}

.form-status.error { color: #c0392b; }
.form-status.success { color: #1e8449; }

.contact-submit {
  align-self: center;
  min-width: 200px;
  margin-top: 0.25rem;
  border-radius: 0;
  background: var(--mid-grey);
  color: var(--white);
  border-color: var(--mid-grey);
}

.contact-submit:hover {
  background: var(--dark-grey);
  border-color: var(--dark-grey);
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--light-grey);
  height: 250px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem 3rem;
}

.footer-brand,
.footer-services,
.footer-registered {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand {
  justify-self: start;
}

/* Footer navigation */
.footer-nav {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

.footer-nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--dark-grey);
  transition: opacity 0.25s ease;
}

.footer-nav-link:hover {
  opacity: 0.6;
}

/* Center column — horizontally centered */
.footer-services {
  justify-self: center;
  text-align: center;
  align-items: center;
}

.footer-registered {
  justify-self: end;
  text-align: right;
  align-items: flex-end;
}

.footer-company-name {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--dark-grey);
  transition: opacity 0.25s ease;
}

.footer-company-name:hover {
  opacity: 0.7;
}

.footer-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark-grey);
}

.footer-registered-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-grey);
}

.footer-link {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--mid-grey);
  word-break: break-word;
  transition: color 0.25s ease;
}

.footer-link:hover {
  color: var(--dark-grey);
}

/* =============================================
   Floating action buttons (Call + WhatsApp)
   ============================================= */
.fab-stack {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.fab svg {
  display: block;
  margin: 0;
}

.fab:hover {
  transform: translateY(-3px) scale(1.05);
}

.fab-call { background: var(--mid-grey); }
.fab-whatsapp { background: var(--mid-grey); }
.fab-call:hover { background: var(--dark-grey); }
.fab-whatsapp:hover { background: var(--dark-grey); }

/* ---- Placeholder sections ---- */
.section {
  padding: 6rem 0;
}

.placeholder-section {
  background: var(--light-grey);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.placeholder-section:nth-child(even) {
  background: var(--white);
}

.placeholder-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-grey);
  margin-bottom: 0.75rem;
}

.placeholder-section p {
  color: var(--mid-grey);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  /* Mobile menu scrolls when the long Portfolio list is open */
  .mobile-menu.open {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Center the menu horizontally on mobile */
  .mobile-nav-list {
    align-items: center;
    text-align: center;
  }
  .mobile-nav-link {
    text-align: center;
  }
  .mobile-submenu {
    padding-left: 0;
    text-align: center;
  }
  .mobile-submenu-link {
    text-align: center;
  }
  .mobile-dropdown-toggle {
    justify-content: center;
    gap: 0.4em;
  }

  /* Stats bar on mobile */
  .stats-bar {
    height: 400px;
  }

  /* Services section on mobile */
  .services-section {
    min-height: 750px;
  }

  .stats-inner {
    flex-wrap: wrap;
    row-gap: 2.5rem;
  }

  .stat-item {
    flex: 0 0 calc(50% - 0.75rem);
  }

  .stat-divider {
    display: none;
  }

  /* Portfolio: 2 columns on tablet */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services: 2 columns on tablet */
  .services-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact: stack columns on tablet/phone */
  .contact-section {
    height: auto;
    min-height: 700px;
    padding: 3.5rem 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
  }

  .contact-intro {
    margin-bottom: 2rem;
  }

  /* Footer: stack on small screens */
  .site-footer {
    height: auto;
    padding: 2.5rem 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    gap: 1.5rem;
  }

  .footer-nav {
    justify-self: start;
    justify-content: flex-start;
    gap: 1.25rem;
  }

  .footer-services {
    justify-self: start;
    text-align: left;
    align-items: flex-start;
  }

  .footer-registered {
    justify-self: start;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 54px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .logo {
    font-size: 1.4rem;
    letter-spacing: 0.2em;
  }

  .hero {
    min-height: 560px;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.28em;
  }

  /* Keep a comfortable margin from the left on small devices */
  .hero-content {
    padding-left: 6vw;
    padding-right: 1.5rem;
  }

  .about-section {
    min-height: auto;
    padding: 3.5rem 0;
  }

  .about-list {
    grid-template-columns: 1fr;
  }

  /* Portfolio: 2 columns on phone */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services: single column on phone */
  .services-section {
    min-height: 750px;
    padding: 3rem 0;
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Contact form: single column on phone */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 1.75rem 1.25rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .lightbox-prev { left: 0.6rem; }
  .lightbox-next { right: 0.6rem; }

  .lightbox-close {
    top: 0.8rem;
    right: 0.8rem;
    width: 40px;
    height: 40px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section {
    padding: 4rem 0;
  }

  .section.portfolio-section {
    padding-bottom: 7.25rem; /* 4rem base + ~100px extra on mobile */
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .scroll-indicator span {
    animation: none;
  }
  * {
    transition: none !important;
  }
}
