/* =============================================
   SOUTH DUBLIN PAINTERS — style.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Outfit:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --bg:         #f0ece3;
  --bg-alt:     #e8e3d6;
  --dark:       #1a2a1d;
  --dark-2:     #243327;
  --dark-3:     #111c13;
  --gold:       #c49a3c;
  --gold-light: #d4b25a;
  --text:       #1e1e1e;
  --text-muted: #6b6560;
  --white:      #ffffff;
  --border:     #d2cdc2;
  --font-d:     'Cormorant Garamond', Georgia, serif;
  --font-b:     'Outfit', system-ui, sans-serif;
  --maxw:       1200px;
  --nav-h:      72px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --t:          0.3s var(--ease);
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 60px rgba(0,0,0,0.16);
  --r:          8px;
  --r-lg:       16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-b); cursor: pointer; border: none; background: none; }

/* ── Typography ── */
h1 { font-family: var(--font-d); font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 600; line-height: 1.08; }
h2 { font-family: var(--font-d); font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 500; line-height: 1.15; }
h3 { font-family: var(--font-d); font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 500; line-height: 1.25; }
p  { font-size: 1rem; line-height: 1.75; }

/* ── Layout ── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section    { padding: 96px 0; }

/* ── Label ── */
.label {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.label::before { content: '— '; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: var(--t);
  cursor: pointer;
  border: none;
}
.btn-primary  { background: var(--gold); color: var(--white); }
.btn-primary:hover  { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,154,60,0.35); }
.btn-outline  { border: 1.5px solid rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.btn-outline:hover  { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-dark     { background: var(--dark); color: var(--white); }
.btn-dark:hover     { background: var(--dark-2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,42,29,0.25); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.35); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.scrolled {
  background: var(--dark-3);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.nav-logo {
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
  line-height: 1;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.03em;
  transition: var(--t);
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--t);
}
.nav-cta:hover { background: var(--gold-light); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--dark-3);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-d);
  font-size: 2.5rem;
  color: var(--white);
  transition: var(--t);
}
.nav-mobile a:hover { color: var(--gold); }
.nav-close {
  position: absolute;
  top: 24px; right: 28px;
  font-size: 2.4rem;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  transition: var(--t);
}
.nav-close:hover { color: var(--gold); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17,28,19,0.92) 0%,
    rgba(26,42,29,0.78) 50%,
    rgba(0,0,0,0.60) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-top: var(--nav-h);
}
.hero-eyebrow {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.75;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: bounce 2.2s ease-in-out infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  55%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Services ── */
.services { background: var(--bg); }
.services-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 64px;
}
.services-header h2 { margin-bottom: 14px; }
.services-header p  { color: var(--text-muted); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  border: 1px solid var(--border);
  transition: var(--t);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  width: 50px; height: 50px;
  background: rgba(196,154,60,0.1);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-card p  { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* ── About ── */
.about { background: var(--dark); color: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text h2   { color: var(--white); margin-bottom: 24px; }
.about-text p    { color: rgba(255,255,255,0.72); margin-bottom: 18px; font-size: 1.02rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-num {
  font-family: var(--font-d);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.about-image {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(17,28,19,0.6));
}
.about-badge {
  position: absolute;
  bottom: 24px; right: 24px;
  z-index: 2;
  background: var(--gold);
  color: var(--white);
  padding: 16px 20px;
  border-radius: var(--r);
  text-align: center;
  line-height: 1.2;
}
.about-badge strong {
  display: block;
  font-family: var(--font-d);
  font-size: 1.7rem;
  font-weight: 600;
}
.about-badge span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

/* ── Portfolio ── */
.portfolio { background: var(--bg-alt); }
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  gap: 24px;
  flex-wrap: wrap;
}
.portfolio-header h2 { max-width: 400px; }

.projects { display: flex; flex-direction: column; gap: 96px; }

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.project:nth-child(even) .project-media { order: -1; }

.project-info .label { margin-bottom: 8px; }
.project-info h3     { margin-bottom: 14px; }
.project-info p      { color: var(--text-muted); margin-bottom: 20px; font-size: 0.97rem; }
.project-hint        { font-size: 0.82rem !important; font-style: italic; }
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.project-tag {
  display: inline-block;
  padding: 5px 13px;
  background: rgba(196,154,60,0.12);
  color: var(--gold);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Before / After Slider */
.ba-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--r-lg);
  cursor: ew-resize;
  user-select: none;
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
}
.ba-after {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}
.ba-before img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.9);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}
.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 14px rgba(0,0,0,0.28);
  pointer-events: none;
}
.ba-label {
  position: absolute;
  bottom: 16px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(0,0,0,0.48);
  padding: 4px 10px;
  border-radius: 3px;
  z-index: 3;
  pointer-events: none;
}
.ba-label-before { left: 16px; }
.ba-label-after  { right: 16px; }

/* Project Media Grids */
.project-media-grid {
  display: grid;
  gap: 8px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.project-media-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.grid-2x2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.grid-2x2 img { aspect-ratio: 1; }
.grid-tall {
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
}
.grid-tall .grid-main { grid-row: span 2; aspect-ratio: 3/5; }
.grid-tall .grid-side { aspect-ratio: 4/3; }
.grid-pair {
  grid-template-columns: 1fr 1fr;
}
.grid-pair img { aspect-ratio: 3/4; }

/* ── Location ── */
.location { background: var(--dark-3); color: var(--white); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: center;
}
.location-info h2 { color: var(--white); margin-bottom: 20px; }
.location-info > p { color: rgba(255,255,255,0.68); margin-bottom: 36px; }
.loc-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.loc-icon {
  width: 38px; height: 38px;
  background: rgba(196,154,60,0.18);
  border: 1px solid rgba(196,154,60,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.loc-text strong {
  display: block;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 3px;
  font-size: 0.95rem;
}
.loc-text span {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.55;
}
#map {
  width: 100%;
  height: 460px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 2px solid rgba(196,154,60,0.28);
}

/* ── Contact Form ── */
.contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 18px; }
.contact-info > p { color: var(--text-muted); margin-bottom: 40px; }
.contact-feat {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.contact-feat-icon {
  width: 42px; height: 42px;
  background: rgba(196,154,60,0.1);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-feat-text strong { display: block; font-weight: 500; margin-bottom: 2px; }
.contact-feat-text span   { font-size: 0.88rem; color: var(--text-muted); }

.form-wrap {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 48px 44px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font-b);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--t);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(196,154,60,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.btn-submit {
  width: 100%;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 500;
  background: var(--dark);
  color: var(--white);
  border-radius: var(--r);
  letter-spacing: 0.04em;
  transition: var(--t);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}
.btn-submit:hover {
  background: var(--dark-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,42,29,0.28);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit.loading { pointer-events: none; opacity: 0.75; }
.btn-submit.loading::after {
  content: '';
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.form-error {
  display: none;
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
}
.form-error.visible { display: block; }

/* Thank You */
.thankyou {
  display: none;
  text-align: center;
  padding: 60px 40px;
  animation: fadeUp 0.5s var(--ease) both;
}
.thankyou.visible { display: block; }
.ty-icon {
  width: 72px; height: 72px;
  background: rgba(196,154,60,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}
.thankyou h3 {
  font-family: var(--font-d);
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.thankyou p { color: var(--text-muted); max-width: 320px; margin: 0 auto; }

/* ── Footer ── */
.footer { background: var(--dark-3); color: var(--white); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand .nav-logo {
  font-size: 1.45rem;
  margin-bottom: 16px;
  display: inline-block;
}
.footer-brand p {
  color: rgba(255,255,255,0.48);
  font-size: 0.88rem;
  line-height: 1.75;
  max-width: 280px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a  { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: var(--t); }
.footer-col ul a:hover { color: var(--gold); }
.footer-col p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  line-height: 1.85;
}
.footer-col a.gold { color: var(--gold); }
.footer-col a.gold:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { color: rgba(255,255,255,0.35); font-size: 0.83rem; }

/* ── Gallery Page ── */
.gallery-hero {
  background: var(--dark-3);
  color: var(--white);
  padding: 160px 0 80px;
}
.gallery-hero h1 { color: var(--white); margin-bottom: 14px; }
.gallery-hero p   { color: rgba(255,255,255,0.65); max-width: 560px; font-size: 1.05rem; }

.gallery-section { padding: 80px 0; }
.gallery-section:nth-child(even) { background: var(--bg-alt); }
.gallery-section-head { margin-bottom: 40px; }
.gallery-section-head h2 { margin-bottom: 8px; }
.gallery-section-head p  { color: var(--text-muted); font-size: 0.96rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  cursor: zoom-in;
  aspect-ratio: 4/3;
}
.photo-item.portrait  { aspect-ratio: 3/4; }
.photo-item.wide      { grid-column: span 2; aspect-ratio: 16/9; }
.photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
  display: block;
}
.photo-item:hover img { transform: scale(1.05); }
.photo-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,42,29,0);
  transition: var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-item:hover .photo-item-overlay { background: rgba(26,42,29,0.25); }
.photo-zoom-icon {
  opacity: 0;
  color: var(--white);
  font-size: 1.8rem;
  transition: var(--t);
}
.photo-item:hover .photo-zoom-icon { opacity: 1; }

/* Gallery BA Slider (smaller) */
.gallery-ba { max-width: 680px; margin: 0 auto 40px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--r);
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  transition: var(--t);
  line-height: 1;
  background: none;
  border: none;
  z-index: 201;
}
.lightbox-close:hover { color: var(--gold); transform: rotate(90deg); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  border: none;
  transition: var(--t);
  line-height: 1;
  z-index: 201;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .about-grid,
  .contact-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-image { aspect-ratio: 4/3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project { grid-template-columns: 1fr; gap: 36px; }
  .project:nth-child(even) .project-media { order: 0; }
  .photo-item.wide { grid-column: span 1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .portfolio-header { flex-direction: column; align-items: flex-start; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .about-stats { grid-template-columns: repeat(3,1fr); gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gallery-hero { padding: 120px 0 56px; }
}

@media (max-width: 520px) {
  .services-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; gap: 12px; }
  .grid-2x2 { grid-template-columns: 1fr; }
  .grid-pair { grid-template-columns: 1fr; }
}
