:root {
  /* Refined Mid-Century Palette */
  --bg-cream: #F9F7F1;
  --bg-dark: #231F20;
  
  /* The "Fall" Tones */
  --rust: #C05832;
  --rust-dark: #9A4626;
  --mustard: #E2A03F;
  --olive: #5D6C58;
  --forest: #2C3E36;
  --espresso: #2D2420;
  
  --text-main: #2D2420;
  --text-muted: #6B635F;
  --text-white: #FFFFFF;
  
  --spacing-unit: 1rem;
  --container-width: 1400px;
  --radius: 4px; /* Sharper corners for a more modern/swiss look */
}

/* Global Reset & Typography */
* { box-sizing: border-box; }

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1rem 0;
}

h1 { font-size: 5rem; letter-spacing: -2px; }
h2 { font-size: 3.5rem; letter-spacing: -1px; }
h3 { font-size: 2rem; }

p { margin-bottom: 1.5rem; font-weight: 300; }

a { text-decoration: none; color: inherit; transition: opacity 0.3s ease; }
a:hover { opacity: 0.7; }

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5vw;
}

.section { padding: 8rem 0; }

.text-center { text-align: center; }
.text-white { color: var(--text-white); }

/* Navigation */
header {
  padding: 2rem 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
  padding: 0;
  margin: 0;
}

nav a {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 4rem; /* offset for header */
}

.hero h1 {
  color: var(--espresso);
  max-width: 18ch;
  margin-bottom: 2rem;
}

.hero p.lead {
  font-size: 1.5rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-block;
  background-color: var(--rust);
  color: white;
  padding: 1.2rem 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: var(--rust-dark);
  transform: translateY(-5px);
  opacity: 1;
}

/* Project Mosaic Grid */
.project-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  auto-rows: minmax(300px, auto);
}

.project-tile {
  grid-column: span 6; /* Default to half width */
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.4s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: white;
}

.project-tile:hover {
  transform: scale(0.98);
}

.project-tile.large { grid-column: span 8; height: 500px; }
.project-tile.medium { grid-column: span 4; height: 500px; }
.project-tile.wide { grid-column: span 12; height: 400px; }
.project-tile.standard { grid-column: span 6; height: 400px; }

/* Tile Colors & Themes */
.tile-rust { background-color: var(--rust); }
.tile-olive { background-color: var(--olive); }
.tile-mustard { background-color: var(--mustard); color: var(--espresso); }
.tile-forest { background-color: var(--forest); }
.tile-dark { background-color: var(--bg-dark); }

.tile-content {
  position: relative;
  z-index: 2;
}

.tile-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 1rem;
  display: block;
}

.tile-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.tile-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 80%;
}

.tile-arrow {
  align-self: flex-end;
  font-size: 2rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.project-tile:hover .tile-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Abstract Background Patterns for Tiles */
.pattern-circle::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.pattern-waves::before {
  content: '';
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  height: 200px;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255,255,255,0.05) 10px,
    rgba(255,255,255,0.05) 20px
  );
}

/* Testimonials */
.testimonials {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 10rem 0;
}

.quote-slider {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  line-height: 1.4;
  margin-bottom: 2rem;
}

.quote-author {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mustard);
}

/* Footer */
footer {
  background-color: var(--bg-cream);
  padding: 6rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
  display: block;
}

/* Forms */
.form-group { margin-bottom: 2rem; }

input, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #ddd;
  padding: 1rem 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--espresso);
  transition: border-color 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-bottom-color: var(--rust);
}

label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  h1 { font-size: 3.5rem; }
  .project-tile, .project-tile.large, .project-tile.medium { grid-column: span 12; height: auto; min-height: 350px; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .container { padding: 0 2rem; }
}
