/* ===== ORREO — Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Karla:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Josefin+Sans:wght@400;600;700&display=swap');

:root {
  --bg: #F5F0E6;
  --bg-alt: #EDE7DA;
  --bg-dark: #E2DACB;
  --white: #FFFFFF;
  --red: #D42426;
  --red-dark: #A51C1E;
  --red-light: #E8D5C4;
  --text: #2C2420;
  --text-mid: #5C534A;
  --text-light: #8A8279;
  --sand: #C4B49A;
  --line: #D5CFC2;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
::selection { background: var(--red); color: #fff; }

body {
  font-family: 'Karla', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
}
h1 { font-size: clamp(36px, 6vw, 56px); }
h2 { font-size: clamp(24px, 4vw, 38px); }
h3 { font-size: clamp(20px, 3vw, 28px); }

.label {
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
}

.subtitle {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  height: 72px;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(245, 240, 230, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  height: 56px;
}
.nav-logo {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 5px;
  transition: all 0.4s;
}
.nav.scrolled .nav-logo { font-size: 22px; }

/* Nav colors: default for pages with dark hero */
.nav-logo { color: #fff; }
.nav-links a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* When scrolled, always switch to dark-on-light */
.nav.scrolled .nav-logo { color: var(--red); }
.nav.scrolled .nav-links a { color: var(--text-light); }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--red); }

/* Home page hero has light overlay, so nav should be dark from the start */
body.home-page .nav:not(.scrolled) .nav-logo { color: var(--red); }
body.home-page .nav:not(.scrolled) .nav-links a { color: var(--text-light); }
body.home-page .nav:not(.scrolled) .nav-links a:hover,
body.home-page .nav:not(.scrolled) .nav-links a.active { color: var(--red); }

.nav-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
}
.nav-links a {
  font-family: 'Karla', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ===== HERO BANNER ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100vh;
}
.hero.short { min-height: 45vh; }
.hero-bg {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  width: 100%;
}

/* ===== SECTIONS ===== */
.section {
  padding: clamp(60px, 10vw, 120px) clamp(24px, 8vw, 120px);
}
.section-narrow {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}
.section-wide {
  max-width: 1200px;
  margin: 0 auto;
}
.bg-cream { background: var(--bg); }
.bg-alt { background: var(--bg-alt); }
.bg-white { background: var(--white); }
.bg-dark-border {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ===== RED ACCENT LINE ===== */
.accent-line {
  width: 36px;
  height: 2px;
  background: var(--red);
  margin: 16px 0;
  transition: width 0.5s ease;
}
.accent-line.center { margin: 16px auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 16px 44px;
  font-family: 'Karla', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}
.btn-primary {
  background: var(--red);
  color: #fff;
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--sand);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}
.btn-outline-red {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}
.btn-outline-red:hover {
  background: var(--red);
  color: #fff;
}
.btn-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== STATS ===== */
.stats {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 8vw, 120px);
  flex-wrap: wrap;
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ===== PROJECT CARDS ===== */
.project-card {
  display: flex;
  height: 380px;
  background: var(--white);
  margin-bottom: 3px;
  overflow: hidden;
}
.project-card:nth-child(even) { flex-direction: row-reverse; }
.project-card-img {
  flex: 1.2;
  overflow: hidden;
}
.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-card-img img {
  transform: scale(1.04);
}
.project-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px clamp(28px, 4vw, 56px);
}
.project-card:hover .accent-line { width: 72px; }
.project-type {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.project-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 6px;
}
.project-detail {
  font-size: 13px;
  font-weight: 500;
  color: var(--sand);
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.project-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-mid);
}

/* ===== SERVICES ===== */
.service-card {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  background: var(--white);
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 80px;
}
.service-card:nth-child(even) { flex-direction: row-reverse; }
.service-text {
  flex: 1;
  min-width: 300px;
  padding: 56px 44px;
}
.service-img {
  flex: 0.8;
  min-width: 280px;
  min-height: 400px;
  background-size: cover;
  background-position: center;
}
.service-items {
  list-style: none;
}
.service-items li {
  font-size: 14px;
  color: var(--text-mid);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.service-note {
  margin-top: 24px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== CREDENTIALS BOX ===== */
.credentials-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 36px;
  border: 1px solid var(--line);
  background: var(--white);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--line);
  padding: 64px clamp(24px, 8vw, 100px) 40px;
}
.footer-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
}
.footer-col { min-width: 200px; }
.footer-col-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 2.2;
  margin: 0;
}
.footer-col .brand {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 4px;
  margin-bottom: 16px;
}
.footer-col .tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.7;
}
.footer-bottom {
  max-width: 900px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 2px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== TAGLINE ROTATOR ===== */
.tagline-rotator {
  transition: opacity 0.3s ease;
}

/* ===== ABOUT BIO ===== */
.bio {
  max-width: 620px;
  margin: 0 auto;
}
.bio p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 2;
  color: var(--text-mid);
  margin-bottom: 32px;
}

/* ===== QUOTE SECTION ===== */
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 300;
  font-style: italic;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 20px;
}
.quote-attr {
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .project-card {
    flex-direction: column !important;
    height: auto;
  }
  .project-card-img { height: 250px; }
  .project-card-content { padding: 32px 24px; }
  .service-card { flex-direction: column !important; }
  .service-img { min-height: 250px; }
  .stats { gap: 32px; }
  .stat-number { font-size: 40px; }
  .footer-grid { flex-direction: column; gap: 32px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 9px; letter-spacing: 2px; }
}
