/* Raw and Refined — Interior Design
   Self-hosted rebuild of the Google Sites original. */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f1ebe1;
  --color-text: #2b2621;
  --color-text-soft: #6b6259;
  --color-line: #e2d9cb;
  --color-accent: #a9855f;
  --color-overlay: rgba(20, 16, 12, 0.38);
  --font-display: 'Quicksand', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Source Sans Pro', -apple-system, 'Segoe UI', sans-serif;
  --container: 1180px;
  --nav-height: 84px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 17px; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.home-page { background: #211d1a; }
body.home-page .section-head h2 { color: #f6f1e9; }
body.home-page .section-head .eyebrow { color: var(--color-accent); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.2em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-solid,
.site-header.is-open {
  background: rgba(0, 0, 0, 0.8);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.35s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links a, .nav-toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.35s ease, opacity 0.2s ease;
  opacity: 0.92;
}

@media (min-width: 881px) {
  .site-header.is-solid .submenu a,
  .site-header.is-open .submenu a { color: #f1ebe1; }
}

.nav-links a:hover { opacity: 1; color: var(--color-accent); }

.nav-item-has-children { position: relative; }

.nav-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 230px;
  padding: 14px 0;
  margin: 14px 0 0;
  list-style: none;
  background: #211c17;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}
.submenu li { margin: 0; padding: 0; }

.nav-item-has-children:hover .submenu,
.nav-item-has-children:focus-within .submenu,
.nav-item-has-children.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  padding: 10px 24px;
  color: #f1ebe1;
  opacity: 0.85;
  font-size: 0.8rem;
}
.submenu a:hover { opacity: 1; color: var(--color-accent); background: rgba(255,255,255,0.04); }

.nav-toggle {
  display: none;
}

/* Mobile nav */
.menu-btn {
  display: none;
  width: 26px; height: 20px;
  position: relative;
  background: none; border: 0; cursor: pointer;
  z-index: 110;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: '';
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s ease;
}
.menu-btn::before { top: 0; }
.menu-btn span { top: 9px; }
.menu-btn::after { top: 18px; }

.site-header.is-open .menu-btn::before { transform: translateY(9px) rotate(45deg); }
.site-header.is-open .menu-btn span { opacity: 0; }
.site-header.is-open .menu-btn::after { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 880px) {
  .menu-btn { display: block; margin-left: auto; }
  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    height: calc(100vh - var(--nav-height));
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    overflow-y: auto;
  }
  .site-header.is-open .nav-links { transform: translateX(0); }
  .nav-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .nav-links a, .nav-toggle-label { display: block; padding: 16px 0; }
  .submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; box-shadow: none; margin: 0 0 8px; padding: 0;
    display: block;
  }
  .submenu li { border-bottom: none; width: auto; }
  .submenu a { color: #f1ebe1; padding: 12px 24px; opacity: 0.9; }
  .submenu a:hover { opacity: 1; }
  .nav-item-has-children > a::after { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  animation: heroFadeIn 2.2s ease-out forwards, heroZoomIn 16s ease-out forwards;
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heroZoomIn {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15,12,9,0.35) 0%, rgba(15,12,9,0.15) 45%, rgba(15,12,9,0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 96px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.2;
  max-width: 820px;
  margin: 0 auto 0.35em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.45);
}

.hero p.hero-sub {
  font-family: var(--font-body);
  font-size: calc(0.95rem + 2px);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.55), 0 6px 20px rgba(0,0,0,0.4);
}

.reveal-line {
  opacity: 0;
  transform: translateY(28px);
}
.hero .reveal-line {
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.hero .reveal-h1 { transition-duration: 1.5s; }
.hero .reveal-sub { transition-duration: 2s; }
.hero .reveal-cta {
  transition-property: opacity, transform, background, color;
  transition-duration: 1.5s, 1.5s, 0.3s, 0.3s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1), cubic-bezier(0.16, 1, 0.3, 1), ease, ease;
}
.reveal-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-scroll {
  position: absolute;
  z-index: 2;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: bob 2.4s ease-in-out infinite;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-scroll.is-visible { opacity: 1; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,6px); } }

/* Page (non-hero) header banner for interior pages */
.page-banner {
  height: 50vh;
  min-height: 420px;
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: #fff;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,12,9,0.3) 0%, rgba(15,12,9,0.58) 100%);
}
.page-banner-inner { position: relative; padding-top: var(--nav-height); text-align: center; width: 100%; }
.page-banner .eyebrow { color: rgba(255,255,255,0.75); font-weight: 600; }
.page-banner h1 {
  display: inline-block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.85);
  padding: 22px 40px;
  margin: 0 0 0.6em;
}
.page-banner .meta {
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: center;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; margin-top: 14px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid currentColor;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition-property: background, color;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}
.btn-light { color: var(--color-text); background: #fff; border-color: #fff; }
.hero .btn-light { box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
.btn-light:hover { background: transparent; color: #fff; border-color: #fff; }
.btn-dark { color: var(--color-text); border-color: var(--color-text); }
.btn-dark:hover { background: var(--color-text); color: var(--color-bg); }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--color-bg-alt); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }

/* Gallery grid on home — masonry: one tall image beside a stacked pair */
.grid-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gg-row {
  display: flex;
  gap: 18px;
  align-items: stretch;
}
.gg-row:nth-child(even) { flex-direction: row-reverse; }
.gg-tall {
  flex: 1.15;
  position: relative;
  display: block;
  overflow: hidden;
}
.gg-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.gg-stack a {
  flex: 1;
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 0;
}
.grid-gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.grid-gallery a:hover img { transform: scale(1.06); }

@media (max-width: 720px) {
  .gg-row, .gg-row:nth-child(even) { flex-direction: column; }
  .gg-stack { flex-direction: row; }
}

/* Project cards (projects index) */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}
.project-card { display: block; }
.project-card .thumb {
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-bottom: 20px;
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-card h3 { font-size: 1.5rem; margin-bottom: 0.2em; }
.project-card .loc { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-soft); }

@media (max-width: 720px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* Project detail body */
.project-copy {
  max-width: 760px;
  margin: 0 auto 64px;
}
.project-copy p { color: var(--color-text-soft); font-size: 1.02rem; }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-photos {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.project-photos img { width: 100%; }

@media (max-width: 720px) {
  .project-photos { gap: 14px; }
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 110px 0;
  background: var(--color-text);
  color: #fff;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0 auto 2em; }

/* About page */
.about-block { max-width: 760px; margin: 0 auto; }
.about-block h3 { font-size: 1.6rem; margin-top: 1.6em; }
.about-block p { color: var(--color-text-soft); }

/* Contact / bio page */
.bio-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.bio-layout-single { grid-template-columns: 1fr; max-width: 760px; }
.career-logo {
  width: 88px;
  margin-bottom: 12px;
}
.bio-name { font-size: 2rem; margin-bottom: 0.1em; }
.bio-title { color: var(--color-accent); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.4em; }
.bio-block p { color: var(--color-text-soft); }
.contact-links { display: flex; gap: 18px; margin-top: 1.6em; }
.icon-link {
  width: 42px; height: 42px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.icon-link:hover { background: var(--color-text); border-color: var(--color-text); }
.icon-link:hover svg { fill: #fff; }
.icon-link svg { width: 18px; height: 18px; fill: var(--color-text); transition: fill 0.3s ease; }

.timeline { margin-top: 2.4em; }
.timeline-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
}
.timeline-row:last-child { border-bottom: 1px solid var(--color-line); }
.timeline-year { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-accent); }
.timeline-row h4 { margin: 0 0 0.2em; font-size: 1.05rem; }
.timeline-row p { margin: 0; color: var(--color-text-soft); font-size: 0.95rem; }

@media (max-width: 720px) {
  .bio-layout { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: 90px 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: #1c1712;
  color: rgba(255,255,255,0.6);
  padding: 64px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; color: #fff; }
.footer-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-links a:hover { color: var(--color-accent); }
.footer-social { display: flex; gap: 14px; }
.footer-social .icon-link { border-color: rgba(255,255,255,0.2); }
.footer-social .icon-link svg { fill: rgba(255,255,255,0.75); }
.footer-social .icon-link:hover { background: var(--color-accent); border-color: var(--color-accent); }
.footer-social .icon-link:hover svg { fill: #fff; }
.footer-bottom { padding-top: 24px; font-size: 0.78rem; text-align: center; }
