/* =============================================
   BACEBUILT — Public Site Styles (public.css)
   Extends variables.css / main.css
   ============================================= */

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 6vw;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(140, 123, 107, 0.15);
  transition: box-shadow 0.3s;
}

.site-nav.scrolled { box-shadow: 0 2px 20px rgba(46, 37, 32, 0.08); }

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--deep); text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; }

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--soil); text-decoration: none;
  position: relative; transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 2px;
  transition: background 0.25s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--soil) !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 72px;
  overflow: hidden;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 8vw 5vw 8vw 8vw;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.75rem;
  opacity: 0; animation: fadeUp 0.8s ease 0.3s forwards;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 5rem);
  font-weight: 300; line-height: 1.08;
  color: var(--deep); margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.9s ease 0.5s forwards;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1rem; font-weight: 300; line-height: 1.8;
  color: var(--bark); max-width: 430px; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp 0.9s ease 0.7s forwards;
}

.hero-actions {
  display: flex; gap: 1rem; align-items: center;
  opacity: 0; animation: fadeUp 0.9s ease 0.9s forwards;
}

.hero-right { position: relative; overflow: hidden; }

.hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; animation: fadeIn 1.2s ease 0.4s forwards;
}

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--white) 0%, transparent 25%);
  z-index: 1;
}

.hero-badges {
  position: absolute; bottom: 3rem; left: 0; z-index: 3;
  opacity: 0; animation: fadeUp 0.8s ease 1.1s forwards;
}

.badge-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--stone); overflow: hidden; }
.badge { background: rgba(250, 248, 245, 0.96); padding: 1rem 1.25rem; backdrop-filter: blur(8px); }
.badge-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 0.15rem; }
.badge-val { font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; color: var(--deep); }

/* ── MARQUEE ── */
.marquee-wrap { background: var(--soil); padding: 0.9rem 0; overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-flex; gap: 3rem; animation: marquee 24s linear infinite; }
.marquee-inner span { font-family: var(--font-body); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); display: inline-flex; align-items: center; gap: 0.9rem; }
.marquee-dot { width: 3px; height: 3px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

/* ── SECTION BASE ── */
.pub-section { padding: 7rem 8vw; }

.section-label {
  font-family: var(--font-body); font-size: 0.67rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem;
}
.section-label::before { content: ''; width: 22px; height: 1px; background: var(--accent); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  font-weight: 300; line-height: 1.12; color: var(--deep);
}
.section-title em { font-style: italic; color: var(--accent); }

.divider { width: 36px; height: 1px; background: var(--accent); margin: 1.5rem 0; }

/* ── BUTTONS ── */
.btn-pub-primary {
  background: var(--accent); color: var(--white);
  padding: 0.85rem 2rem; border-radius: 2px;
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  transition: background 0.25s, transform 0.15s; display: inline-block;
}
.btn-pub-primary:hover { background: var(--soil); transform: translateY(-1px); color: var(--white); }

.btn-pub-ghost {
  color: var(--soil); font-family: var(--font-body);
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
  transition: color 0.25s, gap 0.25s;
}
.btn-pub-ghost::after { content: '→'; font-size: 1rem; }
.btn-pub-ghost:hover { color: var(--accent); gap: 0.75rem; }

/* ── ABOUT ── */
.about-section {
  background: var(--cream);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.about-text p { font-size: 1rem; font-weight: 300; line-height: 1.85; color: var(--bark); margin-top: 1.4rem; }
.area-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem; margin-top: 0.75rem; }
.area-list li { font-size: 0.875rem; font-weight: 300; color: var(--soil); display: flex; align-items: center; gap: 0.45rem; }
.area-list li::before { content: ''; width: 3px; height: 3px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }

.about-img-wrap { position: relative; }
.about-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.about-img-accent { position: absolute; bottom: -1.5rem; left: -1.5rem; width: 55%; aspect-ratio: 1; background: var(--sand-dark); z-index: -1; }

/* ── SERVICES ── */
.services-section { background: var(--white); }
.services-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.services-intro p { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--bark); }

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--sand-dark); border: 1px solid var(--sand-dark); overflow: hidden; }
.service-card { background: var(--white); overflow: hidden; cursor: default; transition: background 0.25s; }
.service-card:hover { background: var(--cream); }
.service-img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.service-card:hover .service-img { transform: scale(1.04); }
.service-body { padding: 1.4rem 1.4rem 1.8rem; }
.service-num { font-family: var(--font-display); font-size: 0.82rem; color: var(--stone); display: block; margin-bottom: 0.4rem; }
.service-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: var(--deep); line-height: 1.2; margin-bottom: 0.65rem; }
.service-desc { font-size: 0.83rem; font-weight: 300; line-height: 1.7; color: var(--bark); margin-bottom: 0.75rem; }
.service-tags { list-style: none; display: flex; flex-direction: column; gap: 0.2rem; }
.service-tags li { font-size: 0.75rem; font-weight: 300; color: var(--bark); display: flex; align-items: center; gap: 0.35rem; }
.service-tags li::before { content: '—'; color: var(--accent-lt); font-size: 0.65rem; }

/* ── PROCESS ── */
.process-section { background: var(--deep); }
.process-section .section-label { color: var(--accent-lt); }
.process-section .section-label::before { background: var(--accent-lt); }
.process-section .section-title { color: var(--sand); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 4rem; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 2rem; left: 2rem; right: 2rem; height: 1px; background: linear-gradient(to right, var(--accent), transparent 80%); }

.process-step { padding: 4rem 2rem 2rem; position: relative; }
.step-num { position: absolute; top: 0; left: 2rem; width: 4rem; height: 4rem; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--white); }
.step-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; color: var(--sand); margin-bottom: 0.65rem; margin-top: 0.5rem; }
.step-desc { font-size: 0.855rem; font-weight: 300; line-height: 1.8; color: var(--stone); }

/* ── PROJECTS ── */
.projects-section { background: var(--cream); }
.projects-grid { margin-top: 3rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.project-card { overflow: hidden; background: var(--white); }
.project-img-wrap { overflow: hidden; aspect-ratio: 4/3; }
.project-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.project-card:hover .project-img { transform: scale(1.06); }
.project-info { padding: 1.4rem 1.65rem 1.8rem; border: 1px solid var(--sand-dark); border-top: none; }
.project-cat { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; display: block; }
.project-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--deep); line-height: 1.2; margin-bottom: 0.55rem; }
.project-desc { font-size: 0.855rem; font-weight: 300; line-height: 1.75; color: var(--bark); }

/* ── CONTACT ── */
.contact-section {
  background: var(--sand);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.pub-field { display: flex; flex-direction: column; gap: 0.35rem; }
.pub-field label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bark); }
.pub-field input, .pub-field select, .pub-field textarea {
  background: var(--white); border: 1px solid var(--sand-dark); border-radius: 2px;
  padding: 0.7rem 0.9rem; font-family: var(--font-body); font-size: 0.9rem;
  font-weight: 300; color: var(--deep); outline: none; -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pub-field input:focus, .pub-field select:focus, .pub-field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(160, 120, 80, 0.1);
}
.pub-field textarea { resize: vertical; min-height: 120px; }
.honeypot { display: none !important; }

.contact-meta p { font-size: 0.9rem; font-weight: 300; line-height: 1.8; color: var(--bark); max-width: 380px; margin-top: 1.5rem; margin-bottom: 2.5rem; }
.meta-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.meta-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.meta-key { font-size: 0.63rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.meta-val { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--deep); }
.meta-val a { color: var(--deep); text-decoration: none; transition: color 0.2s; }
.meta-val a:hover { color: var(--accent); }

/* ── FOOTER ── */
.site-footer { background: var(--deep); padding: 4rem 8vw; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; align-items: start; }
.footer-logo { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; color: var(--sand); display: block; margin-bottom: 0.65rem; text-decoration: none; }
.footer-logo span { color: var(--accent-lt); }
.footer-tagline { font-size: 0.85rem; font-weight: 300; line-height: 1.8; color: var(--stone); max-width: 280px; margin-bottom: 0.75rem; }
.footer-lic { font-size: 0.7rem; font-weight: 300; color: var(--bark); }
.footer-col h5 { font-family: var(--font-body); font-size: 0.63rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-lt); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col ul a { font-size: 0.875rem; font-weight: 300; color: var(--stone); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent-lt); }
.footer-col address { font-style: normal; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col address span, .footer-col address a { font-size: 0.875rem; font-weight: 300; color: var(--stone); text-decoration: none; transition: color 0.2s; }
.footer-col address a:hover { color: var(--accent-lt); }
.footer-bottom { background: var(--deep); padding: 1.1rem 8vw; border-top: 1px solid rgba(140, 123, 107, 0.12); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.73rem; font-weight: 300; color: var(--bark); }


/* ── CONTACT FORM GRID ROWS ── */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

/* ── SUBMIT BUTTON ── */
.btn-pub-submit {
  background: var(--deep);
  color: var(--white);
  border: none;
  padding: 0.95rem 2.4rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  -webkit-appearance: none;
}
.btn-pub-submit:hover  { background: var(--accent); transform: translateY(-1px); }
.btn-pub-submit:active { transform: translateY(0); }

/* ── HAMBURGER BUTTON ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 2px;
  transition: background 0.2s;
  -webkit-appearance: none;
}
.nav-hamburger:hover { background: var(--sand); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--deep);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.nav-drawer {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(250, 248, 245, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sand-dark);
  padding: 1.5rem 6vw 2rem;
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s;
}
.nav-drawer.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-drawer ul li a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--sand-dark);
  font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soil); text-decoration: none;
  transition: color 0.2s;
}
.nav-drawer ul li a:hover { color: var(--accent); }
.nav-drawer .drawer-cta {
  display: block;
  margin-top: 1.25rem;
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.25s;
}
.nav-drawer .drawer-cta:hover { background: var(--soil); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── ANIMATIONS ── */
@keyframes fadeUp  { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* 1024px — tablet landscape */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid  { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
}

/* 900px — tablet portrait */
@media (max-width: 900px) {
  .site-nav { padding: 0 5vw; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: block; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left  { padding: 5vw 5vw 4vw; order: 2; }
  .hero-right { height: 60vw; max-height: 480px; order: 1; }
  .hero-overlay { background: linear-gradient(to bottom, transparent 40%, rgba(250,248,245,0.5) 100%); }
  .hero-badges { display: none; }
  .hero-title { font-size: clamp(2.2rem, 6vw, 3.5rem); }

  .pub-section { padding: 4.5rem 5vw; }
  .about-section   { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-section { grid-template-columns: 1fr; gap: 3rem; }
  .services-intro  { grid-template-columns: 1fr; gap: 1.5rem; }
  .projects-grid   { grid-template-columns: repeat(2, 1fr); }

  .site-footer { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* 640px — large phone */
@media (max-width: 640px) {
  .hero-right { height: 72vw; max-height: 360px; }
  .hero-left  { padding: 5vw 5vw 3.5vw; }
  .hero-sub   { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .btn-pub-primary { width: 100%; text-align: center; }
  .btn-pub-ghost   { padding-left: 0; }

  .pub-section { padding: 3.5rem 5vw; }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }

  .services-grid { grid-template-columns: 1fr; }
  .service-img   { aspect-ratio: 16/9; }

  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding: 4.5rem 1.5rem 1.5rem; }

  .projects-grid { grid-template-columns: 1fr; }

  .form-row-2 { grid-template-columns: 1fr; }
  .btn-pub-submit { width: 100%; justify-content: center; }

  .site-footer { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.25rem; text-align: center; }

  .marquee-inner span { font-size: 0.62rem; }
}

/* 400px — small phone */
@media (max-width: 400px) {
  .site-nav { height: 64px; }
  .nav-drawer { top: 64px; }
  .hero { padding-top: 64px; }
  .pub-section { padding: 3rem 4.5vw; }
  .about-img-accent { display: none; }
}
