/* ========================================
   NEW HILL BUSINESS GROUP — STYLESHEET
   Design: Dark navy + warm gold, Cormorant/Inter
   ======================================== */

:root {
  --navy:       #0D1B2A;
  --navy-mid:   #1A2E44;
  --navy-light: #233D5A;
  --gold:       #C9A84C;
  --gold-light: #E2C47A;
  --cream:      #F5F0E8;
  --cream-dark: #EAE3D5;
  --white:      #FFFFFF;
  --text:       #1A1A1A;
  --text-muted: #6B7280;
  --border:     #E5E0D5;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1200px;
  --section-pad: clamp(4rem, 8vw, 7rem);
  --radius: 2px;
  --transition: 0.25s ease;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* CONTAINER */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ========== NAVIGATION ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(13, 27, 42, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.2);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  color: var(--white);
}
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  transition: filter var(--transition);
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-sm {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius);
  margin-top: 0.75rem;
  transition: all var(--transition);
}
.btn-outline-sm:hover { border-color: var(--gold); color: var(--gold); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--cream); transform: translateY(-1px); }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem clamp(1.25rem, 5vw, 3rem) 0;
}

/* Full-bleed background photo */
.hero-img {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1920&auto=format&fit=crop');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed; /* parallax */
  opacity: 0.28;
  transform: scale(1.05); /* slight scale-in on load */
  animation: hero-img-in 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hero-img-in {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 0.28; transform: scale(1.05); }
}

/* Gradient overlay: dark at top+bottom, slightly lighter in middle */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(13, 27, 42, 0.72) 0%,
      rgba(13, 27, 42, 0.45) 40%,
      rgba(13, 27, 42, 0.65) 70%,
      rgba(13, 27, 42, 0.92) 100%
    );
  pointer-events: none;
}

.hero-bg-lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 3rem;
  pointer-events: none;
}
.hero-bg-lines .line {
  width: 1px;
  background: rgba(201, 168, 76, 0.07);
  height: 100%;
}
.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
  animation: hero-content-in 1s 0.3s both cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes hero-content-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 14ch;
}
.hero-headline em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.70);
  max-width: 52ch;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-stat-strip {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  padding: 2.5rem 0 5rem; /* extra bottom padding for divider overlap */
  position: relative;
  z-index: 2;
}
.stat {
  flex: 1;
  padding: 0 2rem;
  text-align: center;
}
.stat:first-child { padding-left: 0; text-align: left; }
.stat:last-child { padding-right: 0; text-align: right; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.stat-divider {
  width: 1px;
  height: 3rem;
  background: rgba(201,168,76,0.2);
  flex-shrink: 0;
}

/* ========== SECTION DIVIDERS ========== */
/* Sits at the bottom of a section, overlaps into the next */
.divider-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 3;
}
.divider-bottom svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* Sections that contain a divider need relative + no overflow clip */
.hero,
.portfolio-preview,
.values-section {
  position: relative;
  overflow: visible; /* allow divider SVG to overflow */
}

/* But hero still needs overflow:hidden for the bg image scale animation */
.hero { overflow: hidden; }
.hero .divider-bottom { overflow: visible; }

/* Extra bottom padding on sections so content doesn't sit behind the divider */
.portfolio-preview { padding-bottom: calc(var(--section-pad) + 4rem); }
.values-section    { padding-bottom: calc(var(--section-pad) + 4rem); }


/* ========== SECTIONS ========== */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-header {
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 4rem;
}
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 1rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
.section-cta { text-align: center; margin-top: 3.5rem; }

/* ========== SCROLL REVEAL ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children inside portfolio grid */
.portfolio-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.portfolio-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.portfolio-grid .reveal:nth-child(4) { transition-delay: 0.3s; }
/* Stagger value items */
.values-right .reveal:nth-child(2) { transition-delay: 0.1s; }
.values-right .reveal:nth-child(3) { transition-delay: 0.2s; }
.values-right .reveal:nth-child(4) { transition-delay: 0.3s; }

/* ========== PORTFOLIO GRID ========== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.portfolio-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(13,27,42,0.1);
}
.card-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cream-dark);
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-body { padding: 1.5rem; }
.card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}
.card-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.card-body h3 a { color: var(--navy); transition: color var(--transition); }
.card-body h3 a:hover { color: var(--gold); }
.card-body p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ========== VALUES ========== */
.values-section { background: var(--cream); }
.values-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.values-left p {
  color: var(--text-muted);
  line-height: 1.8;
}
.values-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.value-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.value-icon {
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.value-item h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.value-item p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ========== CTA BAND ========== */
.cta-band {
  background: var(--navy);
  padding: 6rem 0 5rem;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-band p {
  color: rgba(255,255,255,0.6);
  max-width: 50ch;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.8;
}

/* ========== FOOTER ========== */
.site-footer { background: var(--navy-mid); color: rgba(255,255,255,0.7); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-top: 4rem;
  padding-bottom: 3rem;
}
.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.footer-brand p { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 0.5rem; }
.footer-tagline {
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.4) !important;
  font-style: italic;
  font-family: var(--font-display) !important;
}
.footer-nav h5, .footer-portfolio h5, .footer-contact h5 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.footer-nav ul li + li,
.footer-portfolio ul li + li { margin-top: 0.6rem; }
.footer-nav a, .footer-portfolio a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-nav a:hover, .footer-portfolio a:hover { color: var(--gold); }
.footer-contact p { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  background: var(--navy);
  padding: 10rem clamp(1.25rem, 5vw, 3rem) 5rem;
  text-align: center;
}
.page-hero .hero-eyebrow { margin-bottom: 0.75rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.page-hero h1 em { font-style: italic; color: var(--gold); }
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 54ch;
  margin: 0 auto;
  line-height: 1.8;
}

/* ========== ABOUT PAGE ========== */
.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-story-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.about-story-text p + p { margin-top: 1rem; }
.about-story-text p { color: var(--text-muted); line-height: 1.85; }
.about-story-aside { border-left: 3px solid var(--gold); padding-left: 2.5rem; padding-top: 0.5rem; }
.aside-fact { margin-bottom: 2.5rem; }
.aside-fact-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.aside-fact-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mission-vision { background: var(--navy); padding: var(--section-pad) 0; }
.mission-vision .section-eyebrow { color: var(--gold); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.mv-card { border: 1px solid rgba(201,168,76,0.2); padding: 2.5rem; }
.mv-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 1rem;
}
.mv-card p { color: rgba(255,255,255,0.6); line-height: 1.8; }

/* ========== PORTFOLIO PAGE ========== */
.portfolio-filter {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ========== CONTACT PAGE ========== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 1rem;
}
.contact-info p { color: var(--text-muted); line-height: 1.85; margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-detail-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.contact-detail-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.contact-detail-text strong { color: var(--text); font-weight: 600; display: block; }
.contact-form { background: var(--cream); padding: 2.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { height: 130px; resize: vertical; }
.form-submit { display: flex; justify-content: flex-end; }

/* ========== UTILITIES ========== */
.bg-cream { background: var(--cream); }
.text-center { text-align: center; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .values-layout,
  .about-story,
  .mv-grid,
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }

  /* Parallax doesn't work well on mobile — disable */
  .hero-img { background-attachment: scroll; }
}
@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; z-index: 101; position: relative; }
  .hero-stat-strip { flex-direction: column; gap: 2rem; }
  .stat { text-align: center !important; }
  .stat-divider { width: 60px; height: 1px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .divider-bottom svg { height: 48px; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-img { animation: none; opacity: 0.28; transform: none; }
  .hero-content { animation: none; }
}
