/* ================================
   RAS Architecture — style.css
   Light theme | Figma-matched
   ================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:       #ffffff;
  --clr-dark:     #2B2A29;
  --clr-gold:     #D19563;
  --clr-muted:    #6B6B6B;
  --clr-border:   #E5E5E5;
  --clr-surface:  #F7F7F5;
  --ff-serif:     'Merriweather', Georgia, serif;
  --ff-sans:      'Source Sans 3', sans-serif;
  --ff-ui:        'Manrope', sans-serif;
  --max-w:        1280px;
  --transition:   0.3s ease;
}

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

body {
  background: var(--clr-bg);
  color: var(--clr-dark);
  font-family: var(--ff-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
ul { list-style: none; }

/* --- Utilities --- */
.mt-16 { margin-top: 1rem; }

.heading-72 {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--clr-dark);
}

.heading-56 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 3.5rem);
  line-height: 1.15;
}

.body-sm {
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.75;
}

.body-md {
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 1.8;
}

/* --- Buttons --- */
.btn-dark {
  display: inline-block;
  background: var(--clr-dark);
  color: #fff;
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition);
}
.btn-dark:hover { background: #444; transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--clr-dark);
  color: var(--clr-dark);
  font-family: var(--ff-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.75rem;
  border-radius: 2px;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--clr-dark); color: #fff; }

.btn-project {
  display: inline-block;
  font-family: var(--ff-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-dark);
  border-bottom: 1px solid var(--clr-dark);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.btn-project:hover { color: var(--clr-gold); border-color: var(--clr-gold); }

/* --- Fade-up reveal --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ================================
   NAVBAR
   ================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2.5rem;
  max-width: 100%;
}

.nav-logo svg {
  width: 146.62px;
  height: 41.27px;
  flex: none;
  order: 0;
  flex-grow: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--ff-ui);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-dark);
  transition: color var(--transition);
}
.nav-link:hover { color: var(--clr-gold); }

.nav-cta {
  font-family: var(--ff-serif);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--clr-dark);
  border-bottom: 1px solid var(--clr-dark);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}
.nav-cta:hover { color: var(--clr-gold); border-color: var(--clr-gold); }

/* ================================
   HERO
   ================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  border-bottom: 1px solid var(--clr-border);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 2.5rem;
  max-width: 640px;
}

.hero-heading {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.2;
  color: var(--clr-dark);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-right {
  position: relative;
  overflow: hidden;
}
.hero-right img { width: 100%; height: 100%; object-fit: cover; }

/* ================================
   ABOUT
   ================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 60vh;
  border-bottom: 1px solid var(--clr-border);
}

.about-img { overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.about-content {
  padding: 5rem 2.5rem 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-content .heading-56 { margin-bottom: 1.5rem; }
.about-content .body-sm { margin-bottom: 0.75rem; }

.philosophy-list {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}
.philosophy-list li {
  list-style: disc;
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.9;
}

/* ================================
   WHAT WE DO
   ================================ */
.what-we-do {
  padding: 5rem 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.what-we-do .heading-72 { margin-bottom: 2.5rem; }

.services-list { display: flex; flex-direction: column; }

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  align-items: start;
}

.service-name {
  font-family: var(--ff-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--clr-dark);
}

.service-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
}

/* ================================
   OUR APPROACH
   ================================ */
.our-approach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding: 5rem 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: start;
  border-top: 1px solid var(--clr-border);
}

.our-approach .heading-72 { margin-bottom: 2rem; }

.approach-body {
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  color: var(--clr-muted);
  line-height: 1.85;
}

.approach-images {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 0.5rem;
  height: 420px;
}
.approach-img-large { width: 100%; height: 100%; object-fit: cover; }
.approach-img-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.approach-img-stack img { width: 100%; flex: 1; object-fit: cover; }

/* ================================
   WORK GLIMPSES
   ================================ */
.work-glimpses {
  padding: 5rem 2.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--clr-border);
}
.work-glimpses .heading-72 { margin-bottom: 3rem; }

.project-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  padding: 2rem 0;
}

.project-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.project-img {
  width: 260px;
  height: 180px;
  object-fit: cover;
  border-radius: 2px;
}

.project-info { padding-top: 0.25rem; }

.project-title {
  font-family: var(--ff-serif);
  font-weight: 300;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--clr-dark);
  margin-bottom: 1.25rem;
}

.project-desc {
  font-family: var(--ff-sans);
  font-size: 0.85rem;
  color: var(--clr-muted);
  line-height: 1.8;
  max-width: 520px;
}

.project-stats {
  display: flex;
  gap: 2.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--ff-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--clr-dark);
  line-height: 1;
}
.stat-label {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-top: 0.3rem;
}

.project-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
}

/* ================================
   PROJECT SECTIONS (Residential etc.)
   ================================ */
.project-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--clr-border);
  min-height: 440px;
}

.project-section-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem;
  gap: 1.25rem;
}
.project-section-text.text-left { padding-right: 4rem; }
.project-section-text.text-right { padding-left: 4rem; }

.project-section-text .heading-72 { margin-bottom: 0.5rem; }

.grid-right,
.grid-left { overflow: hidden; background: var(--clr-surface); }

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  height: 100%;
}
.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  /* placeholder colour when no image file exists */
  background: linear-gradient(135deg, #ddd 0%, #c8c8c8 100%);
  filter: grayscale(20%);
  transition: filter var(--transition), transform var(--transition);
}
.image-grid img:hover { filter: grayscale(0%); transform: scale(1.04); }

.section-divider {
  border: none;
  border-top: 1px solid var(--clr-border);
}

/* ================================
   CTA
   ================================ */
.cta {
  text-align: center;
  padding: 7rem 2rem;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
}
.cta .heading-72 { margin-bottom: 1.25rem; }
.cta-sub {
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  color: var(--clr-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* ================================
   FOOTER
   ================================ */
.footer {
  padding: 4rem 2.5rem 2rem;
  background: #2B2A29;
  border-top: none;
}

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

.footer-brand { max-width: 420px; }

.footer-logo { margin-bottom: 0.5rem; }
.footer-logo svg {
  width: 146.62px;
  height: 41.27px;
  flex: none;
  order: 0;
  flex-grow: 0;
}
/* Invert the dark paths to white on the dark footer background */
.footer-logo svg path[fill="#2B2A29"],
.footer-logo svg rect[fill="#2B2A29"] { fill: #ffffff; }
/* Keep the gold accent */
.footer-logo svg path[fill="#D19563"] { fill: #D19563; }
/* The white bg rect inside SVG — hide it on dark bg */
.footer-logo svg rect[fill="white"] { fill: transparent; }

.footer-tagline {
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-top: 0.75rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-top: 0.25rem;
}

.footer-col-heading {
  font-family: var(--ff-ui);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul li a {
  font-family: var(--ff-sans);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #ffffff; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { height: 400px; }
  .hero-left { padding: 4rem 2rem; max-width: 100%; }

  .about { grid-template-columns: 1fr; }
  .about-img { height: 360px; }
  .about-content { padding: 3rem 2rem; }

  .our-approach { grid-template-columns: 1fr; }
  .approach-images { height: 320px; }

  .project-section { grid-template-columns: 1fr; }
  .grid-right, .grid-left { height: 360px; }
  .project-section-text.text-left,
  .project-section-text.text-right { padding: 3rem 2rem; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .navbar { padding: 0.75rem 1.25rem; }
  .nav-menu { gap: 1.5rem; }

  .service-row { grid-template-columns: 1fr; gap: 0.5rem; }

  .project-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .project-img { width: 100%; height: 220px; }

  .image-grid { grid-template-columns: repeat(3, 1fr); }

  .what-we-do, .work-glimpses, .our-approach { padding: 3rem 1.25rem; }
  .cta { padding: 5rem 1.25rem; }
  .footer { padding: 3rem 1.25rem 1.5rem; }
  .footer-links { grid-template-columns: 1fr; }
}
