/* ─── Google Font ──────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;1,14..32,400&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ─── Design Tokens ────────────────────────────────────────────────────── */
:root {
  --bg: #F7F5F2;
  /* warm off-white */
  --surface: #FFFFFF;
  --surface-alt: #F0EDE9;
  --border: #E4DED8;
  --text: #1E1E1E;
  --text-muted: #6B6360;
  --accent: #8B6347;
  /* warm wood */
  --accent-dk: #6D4B34;
  --accent-lt: #F0E8E1;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, .09);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.25, .8, .25, 1);
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color .2s var(--ease);
}

/* non-hero pages need top padding for the fixed header */
.page-offset {
  padding-top: var(--header-h);
}

/* ─── Typography ───────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

p:last-child {
  margin-bottom: 0;
}

/* ─── Utilities ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5%, 3.5rem);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.8rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .9375rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}

.btn:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(139, 99, 71, .28);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ─── Header ───────────────────────────────────────────────────────────── */
header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 245, 242, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  transition: box-shadow .3s;
}

header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  display: block;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

/* Header specific logo size */
header .logo img {
  height: clamp(32px, 6vh, 54px);
}

/* Footer specific logo size */
footer .logo img {
  height: clamp(70px, 12vh, 120px);
  margin-bottom: 1rem;
  mix-blend-mode: multiply;
}

/* Desktop nav */
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.mobile-nav-logo,
.mobile-nav-footer {
  display: none;
}


.nav-links a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width .25s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

/* Hamburger */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .6rem;
  border-radius: var(--radius-sm);
  transition: background .2s;
  z-index: 201;
}

.mobile-menu-btn:hover {
  background: var(--surface-alt);
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s;
}

/* Hamburger Animation to X */
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}

.menu-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background:
    radial-gradient(ellipse 70% 60% at 70% 50%, rgba(139, 99, 71, .07) 0%, transparent 70%),
    var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent-lt);
  color: var(--accent-dk);
  font-size: .8125rem;
  font-weight: 600;
  padding: .35rem .9rem;
  border-radius: 50px;
  letter-spacing: .03em;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 460px;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5/4;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 99, 71, .12) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* ─── Section header ───────────────────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header h2 {
  margin-bottom: 0;
}

.section-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}

/* ─── Project Grid ─────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.project-card>a {
  display: block;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.project-img-wrapper {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

.project-card:hover img {
  transform: scale(1.06);
}

.project-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.project-category {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .35rem;
}

.project-title {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0;
  line-height: 1.3;
}

/* ─── Filter Bar ───────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: .625rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.filter-btn {
  padding: .5rem 1.25rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s, border-color .2s, box-shadow .2s;
}

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

.filter-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(139, 99, 71, .22);
}

/* ─── Loader ───────────────────────────────────────────────────────────── */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  width: 100%;
  grid-column: 1 / -1;
}

.loader::after {
  content: '';
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

/* ─── Footer ───────────────────────────────────────────────────────────── */
/* ─── Footer ───────────────────────────────────────────────────────────── */
footer {
  background: var(--surface-alt);
  color: var(--text-muted);
  padding: clamp(3.5rem, 8vw, 6rem) 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.footer-title {
  color: var(--text);
  font-size: 1.125rem;
  margin-bottom: 1.75rem;
  font-family: 'Playfair Display', serif;
}

/* Brand Col */
.brand-col .logo {
  margin-bottom: 1.5rem;
  filter: none;
  /* Removed the invert filter */
}

.footer-about {
  font-size: .9375rem;
  line-height: 1.7;
  max-width: 320px;
  color: var(--text-muted);
}

/* Links Col */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-nav a {
  font-size: .9375rem;
  color: var(--text-muted);
  transition: all .2s var(--ease);
}

.footer-nav a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* Contact Col */
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-contact li {
  font-size: .9375rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text);
}

.footer-contact span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.footer-contact a {
  color: inherit;
  transition: color 0.2s;
}

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

/* Footer Bottom */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: .8125rem;
  color: var(--text-muted);
}

.footer-social {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--accent);
}

/* Responsive Footer */
@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* ─── Project Detail ───────────────────────────────────────────────────── */
.project-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.project-meta {
  display: inline-block;
  background: var(--accent-lt);
  color: var(--accent-dk);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.cover-image-container {
  width: 100%;
  height: clamp(40vh, 55vh, 65vh);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-lg);
}

.cover-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  max-width: 780px;
  margin: 0 auto clamp(3rem, 5vw, 5rem);
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.85;
  color: var(--text-muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 4rem;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  position: relative;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2rem;
  opacity: 0;
  transition: all .4s var(--ease);
  backdrop-filter: blur(0px);
  /* Transition to blur on hover */
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
  backdrop-filter: blur(4px);
}

.gallery-item-info {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: .6rem 1.4rem;
  border-radius: 50px;
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  transform: translateY(20px);
  transition: all .4s var(--ease);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .gallery-item-info {
  transform: translateY(0);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ─── Project Hero (fullbleed banner) ──────────────────────────────────── */
.project-hero {
  height: clamp(40vh, 55vh, 65vh);
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .65) 30%, rgba(0, 0, 0, .15) 100%);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.project-hero-no-img {
  background: linear-gradient(135deg, var(--accent-lt) 0%, var(--surface-alt) 100%);
  position: relative;
}

.project-hero-no-img .container h1 {
  color: var(--text);
}

.project-hero-no-img .project-meta-pill {
  background: var(--accent-lt);
  color: var(--accent-dk);
}

.project-hero .container h1 {
  color: #fff;
  margin-bottom: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}

.project-meta-pill {
  display: inline-block;
  background: rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

/* ─── Project Detail Layout ─────────────────────────────────────────────── */
.project-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: flex-start;
}

.project-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.project-meta-block {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.meta-item:last-child {
  border-bottom: none;
}

.meta-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}

.meta-item span:last-child {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
}

.project-content {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.project-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.project-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.project-section-title h3 {
  margin-bottom: 0;
  white-space: nowrap;
}

.project-back {
  margin-top: clamp(3rem, 5vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ─── Contact Page ──────────────────────────────────────────────────────── */
.contact-page-header {
  background: linear-gradient(135deg, var(--accent-lt) 0%, var(--surface-alt) 100%);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.contact-page-header h1 {
  margin-bottom: .75rem;
}

.contact-page-header p {
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 0;
}

.contact-page-header .section-label {
  margin-bottom: .5rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: .35rem;
}

.contact-card p {
  margin-bottom: 0;
  font-size: .9375rem;
}

.contact-card a {
  color: var(--accent);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--accent-dk);
  text-decoration: underline;
}

/* Social links column */
.contact-social-wrap h2 {
  margin-bottom: 1rem;
}

.contact-social-wrap>p {
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: .9375rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s, background .2s, color .2s;
}

.social-link:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}

.social-link svg {
  flex-shrink: 0;
}

.social-instagram {
  color: #C13584;
}

.social-instagram:hover {
  background: #fff0f7;
  border-color: #C13584;
}

.social-facebook {
  color: #1877F2;
}

.social-facebook:hover {
  background: #f0f5ff;
  border-color: #1877F2;
}

.social-whatsapp {
  color: #25D366;
}

.social-whatsapp:hover {
  background: #f0fff6;
  border-color: #25D366;
}

.social-tiktok {
  color: #010101;
}

.social-tiktok:hover {
  background: #f5f5f5;
  border-color: #010101;
}

/* ─── Responsive ───────────────────────────────────────────────────────── */


/* Tablet */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-image {
    max-width: 520px;
    margin-inline: auto;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Project sidebar collapses above content on tablet */
  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
  }

  .project-meta-block {
    display: flex;
    flex-wrap: wrap;
  }

  .meta-item {
    flex: 1 1 140px;
  }

  /* Contact grid stacks */
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 680px) {

  /* Mobile nav */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;
    inline-size: 80%;
    max-inline-size: 320px;
    background: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2.5rem 2rem;
    gap: 0.75rem;
    font-size: 1.125rem;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 199;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-weight: 600;
    color: var(--accent-dk);
    background: var(--accent-lt);
    border-radius: var(--radius-sm);
    transition: transform .25s var(--ease), background .25s var(--ease), color .25s;
    border: none;
  }

  .nav-links a.active {
    background: var(--accent);
    color: #fff;
  }

  .nav-links a:hover {
    background: var(--accent-dk);
    color: #fff;
    transform: translateX(8px);
  }

  .nav-links a::after {
    display: none;
  }

  .mobile-nav-logo {
    display: block;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-lt);
    width: 100%;
  }

  .mobile-nav-logo .logo {
    font-size: 1.5rem;
  }

  .mobile-nav-footer {
    margin-top: auto;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 100%;
  }

  .mobile-nav-footer p {
    margin-bottom: 1rem;
  }

  /* Hero */
  .hero-badge {
    font-size: .75rem;
  }

  /* Grid: single column */
  .grid {
    grid-template-columns: 1fr;
  }

  /* Gallery: 2 cols */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section header stacked */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  /* Project hero shorter */
  .project-hero {
    height: 35vh;
  }

  .project-layout {
    gap: 2rem;
  }

  /* Contact cards full width */
  .contact-card {
    padding: 1.25rem;
  }

}

@media (max-width: 400px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── GLightbox Custom Styles ──────────────────────────────────────────── */
.gslide-description {
  background: rgba(139, 99, 71, 0.85) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.gdesc-inner {
  padding: 1.5rem 2rem !important;
}

.gslide-title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 0.35rem !important;
  font-size: 1.15rem !important;
}

.gslide-desc {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
}

/* Navigation & Close buttons */
.gprev,
.gnext,
.gclose {
  background: rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px);
  border-radius: 50% !important;
  transition: all 0.3s ease !important;
}

.gprev:hover,
.gnext:hover,
.gclose:hover {
  background: rgba(255, 255, 255, 0.25) !important;
}

.gprev svg path,
.gnext svg path,
.gclose svg path {
  fill: #fff !important;
}