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

:root {
  --primary:        #C8A467;        /* warm copper / brushed gold */
  --primary-light:  #DBB87C;
  --primary-dark:   #A6884F;
  --primary-soft:   rgba(200, 164, 103, 0.10);
  --bg:             #0E0D0B;        /* very dark warm black */
  --surface:        #18171450;
  --surface-2:      #1C1B17;
  --surface-3:      #242220;
  --border:         #2A2825;
  --border-strong:  #3A3833;
  --text:           #F5F2EC;        /* warm off-white */
  --text-muted:     #9C958A;        /* warm gray */
  --text-dim:       #6B655D;
  --shadow:         0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-lg:      0 30px 70px rgba(0, 0, 0, 0.7);
  --radius:         4px;
  --radius-lg:      8px;
  --container:      1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Italiana', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; font-family: 'Inter', sans-serif; font-weight: 500; letter-spacing: 0; }
h4 { font-size: 1.05rem; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 0.2px; }

em { font-style: italic; color: var(--primary); }

p { color: var(--text-muted); font-weight: 300; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.2s;
  border-radius: 0;
  background: transparent;
}
.btn-lg { padding: 16px 36px; font-size: 0.88rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--primary);
  color: #0E0D0B;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, border-color 0.3s, padding 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled {
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.3s;
}
.navbar.scrolled .nav-inner { padding: 14px 24px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: 'Italiana', serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
}
.brand-text {
  font-family: 'Italiana', serif;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: 2.5px;
}
.brand-text em { color: var(--primary); font-style: italic; }

.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s, left 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; left: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text);
  cursor: pointer;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 18px 24px 24px;
  gap: 16px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 0.92rem; color: var(--text); text-transform: uppercase; letter-spacing: 1.5px; }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--text);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(120deg, rgba(14, 13, 11, 0.88) 0%, rgba(14, 13, 11, 0.55) 60%, rgba(14, 13, 11, 0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 100px;
  max-width: 760px;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 32px;
}

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

.hero-content p {
  color: rgba(245, 242, 236, 0.78);
  font-size: 1.06rem;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  position: absolute;
  bottom: 50px;
  right: 50px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 22px 32px;
  background: rgba(14, 13, 11, 0.75);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.meta-item { display: flex; align-items: center; gap: 12px; }
.meta-item .num {
  font-family: 'Italiana', serif;
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}
.meta-item .lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  line-height: 1.3;
}
.meta-divider {
  width: 1px;
  height: 30px;
  background: var(--border-strong);
}

/* ── SECTIONS ───────────────────────────────────────────── */
.section { padding: 120px 0; }
.section-alt { background: var(--surface-2); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 80px;
}
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--primary);
  margin-bottom: 18px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 1.04rem; color: var(--text-muted); }

/* ── SERVICES ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.service-card {
  display: flex;
  gap: 24px;
  padding: 36px 38px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: transparent;
  transition: background 0.3s;
}
.service-card:hover {
  background: var(--surface-2);
}

.service-num {
  font-family: 'Italiana', serif;
  font-size: 1.8rem;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 6px;
}

.service-body { flex: 1; }
.service-body h3 { margin-bottom: 8px; }
.service-body p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 18px;
}

.service-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.service-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.service-meta i { color: var(--primary); font-size: 0.9rem; }
.service-meta .price {
  margin-left: auto;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  font-family: 'Italiana', serif;
}

.services-note {
  margin-top: 32px;
  font-size: 0.84rem;
  color: var(--text-dim);
  text-align: center;
  font-style: italic;
}

/* ── PHILOSOPHY ─────────────────────────────────────────── */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}

.philosophy-text .eyebrow { margin-bottom: 18px; }
.philosophy-text h2 { margin-bottom: 28px; }
.philosophy-text > p {
  font-size: 1.06rem;
  margin-bottom: 40px;
  max-width: 480px;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.why-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.why-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--primary);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.why-item h4 { margin-bottom: 5px; }
.why-item p { font-size: 0.9rem; line-height: 1.6; }

.philosophy-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.philosophy-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
}

/* ── GALLERY ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}
.g-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: grayscale(30%);
}
.g-item:hover img {
  transform: scale(1.07);
  filter: grayscale(0%);
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ── CONTACT ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.info-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; }
.info-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--primary);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.info-item h4 { margin-bottom: 6px; }
.info-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-form {
  background: var(--bg);
  padding: 44px 40px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form h3 {
  font-family: 'Italiana', serif;
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.field input, .field select, .field textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
}
.field textarea { resize: vertical; min-height: 90px; }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: #08070500;
  background-color: #0A0908;
  color: var(--text-muted);
  padding: 80px 0 28px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p {
  margin-top: 18px;
  font-size: 0.92rem;
  max-width: 320px;
  line-height: 1.6;
}
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 14px; }
.footer-links h5, .footer-social h5 {
  font-family: 'Italiana', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }
.social-row { display: flex; gap: 10px; margin-top: 4px; }
.social-row a {
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.social-row a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}
.footer-bottom {
  padding-top: 26px;
  font-size: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.3px;
}

/* ── DEMO BADGE ─────────────────────────────────────────── */
.demo-badge {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  padding: 9px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.demo-badge:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 14px 38px rgba(200, 164, 103, 0.25);
}
.demo-badge .badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.7; }
}
.demo-badge strong { color: var(--primary); font-weight: 600; }
.demo-badge i { font-size: 0.8rem; color: var(--primary); }

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr; border-left: none; }
  .service-card { border-right: none; padding: 30px 26px; }
  .philosophy-grid { grid-template-columns: 1fr; gap: 50px; }
  .philosophy-image { max-width: 460px; margin: 0 auto; aspect-ratio: 4 / 5; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .g-wide { grid-column: span 2; }
  .g-tall { grid-row: span 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-meta { display: none; }
}

@media (max-width: 640px) {
  .nav-links, .navbar > .nav-inner > .btn { display: none; }
  .nav-toggle { display: block; }

  .hero-content { padding-top: 110px; }

  .section { padding: 80px 0; }
  .section-head { margin-bottom: 50px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .contact-form { padding: 28px 22px; }
  .contact-form .row { grid-template-columns: 1fr; }

  .demo-badge { bottom: 14px; right: 14px; padding: 8px 12px; font-size: 0.72rem; }
  .demo-badge .badge-text { display: none; }
  .demo-badge::after {
    content: 'PabionTech';
    color: var(--primary);
    font-weight: 600;
  }
}
