/* ==========================================================================
   Gargano Consulting
   ========================================================================== */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  --bg: #1C1C1A; --fg: #D4CFC4; --accent: #C49A6C;
  --muted: #8A8378; --rule: rgba(255,255,255,0.08); --surface: #242420;
  background: var(--bg); color: var(--fg);
  font-family: 'Darker Grotesque', sans-serif;
  font-weight: 500; font-size: 18px; line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Skip link (a11y) --- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  padding: 8px 16px; background: var(--accent); color: var(--bg);
  font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* --- Hero --- */
.v-hero {
  min-height: 100vh; min-height: 100svh;
  position: relative; display: flex;
  flex-direction: column; justify-content: flex-end; padding: 0;
}
.hero-image-wrap {
  position: absolute; inset: 0;
}
.hero-image-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-image-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(28,28,26,0.6) 40%, rgba(28,28,26,0.3) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 0 60px 80px;
}
.hero-pre {
  font-size: 13px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px; font-weight: 700;
  animation: slideIn 0.7s ease 0.2s both;
}
.hero-title {
  font-weight: 900; font-size: clamp(60px, 12vw, 160px);
  line-height: 0.85; letter-spacing: -4px; color: #fff;
  margin-bottom: 16px;
  animation: slideIn 0.7s ease 0.4s both;
}
.hero-sub {
  font-size: clamp(20px, 3vw, 36px); font-weight: 700;
  color: var(--accent); letter-spacing: 2px; text-transform: uppercase;
  animation: slideIn 0.7s ease 0.6s both;
}

/* --- Sections --- */
section:not(.v-hero) {
  padding: 80px 60px; max-width: 1100px; margin: 0 auto;
}
.section-title {
  font-weight: 900; font-size: clamp(32px, 5vw, 56px);
  color: #fff; letter-spacing: -1px; margin-bottom: 12px; line-height: 1;
}
.section-label {
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px; font-weight: 700;
}
.section-text { color: var(--muted); max-width: 600px; }
.section-text p + p { margin-top: 16px; }

/* --- Divider / Quote --- */
.v-divider {
  padding: 80px 60px; background: var(--surface);
  position: relative; overflow: hidden;
}
.v-divider::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--accent);
}
.v-divider .quote {
  font-weight: 900; font-size: clamp(22px, 3.5vw, 42px);
  color: #fff; max-width: 800px; line-height: 1.2; letter-spacing: -1px;
}

/* --- Project Grid --- */
.project-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px;
}
.project-card img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block;
  margin-bottom: 16px;
}
.project-card h3 {
  font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px;
}
.project-card p { font-size: 14px; color: var(--muted); }

/* --- Service Pills --- */
.service-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.service-pills span {
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); padding: 10px 20px;
  border: 2px solid var(--accent); transition: background 0.3s, color 0.3s;
}
.service-pills span:hover { background: var(--accent); color: var(--bg); }

/* --- Contact Grid --- */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px;
}
.contact-item {
  border-left: 3px solid var(--accent); padding-left: 20px;
}
.contact-item dt {
  font-size: 10px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px; font-weight: 700;
}
.contact-item dd a { transition: color 0.3s; }
.contact-item dd a:hover { color: var(--accent); }

/* --- Footer --- */
.site-footer {
  padding: 32px 60px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--muted); text-align: center;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Animations --- */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- Responsive: Tablet & below --- */
@media (max-width: 768px) {
  .hero-content { padding: 0 24px 60px; }
  section:not(.v-hero) { padding: 60px 24px; }
  .v-divider { padding: 60px 24px; }
  .project-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 24px; }
  .hero-title { letter-spacing: 0em; }
}

/* --- Print --- */
@media print {
  body { background: #fff; color: #000; }
  .v-hero { min-height: auto; }
  .hero-image-wrap::after { display: none; }
  .reveal { opacity: 1; transform: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

div.email > span:nth-child(2) {
  display: none;
}
