/* ============================================================
   MASH DESIGN STUDIO — MAIN STYLESHEET
   Architecture | Interior | Design & Build
   ============================================================ */

/* ============================================================
   1. RESET & ROOT VARIABLES
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-black: #111111;
  --color-white: #ffffff;
  --color-grey: #888888;
  --color-light-grey: #f5f4f2;
  --color-stone: #c8b89a;
  --color-rule: #dddddd;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-white);
  color: var(--color-black);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

/* ============================================================
   2. NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 4rem;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-rule);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

/* Logo — enlarged and given a light grey pill so it reads on the white nav */
.nav-logo__image {
  height: 70px;
  width: auto;
  display: block;
  background: #f0efed;
  border-radius: 6px;
  padding: 6px 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.nav-logo__text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--color-black);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-stone);
}

.nav-cta {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--color-black);
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* ============================================================
   3. HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 74px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 4rem;
  border-right: 1px solid var(--color-rule);
}

.hero__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-grey);
  margin-bottom: 2rem;
  display: block;
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 4.5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero__headline em {
  font-style: italic;
  color: var(--color-stone);
}

.hero__body {
  font-size: 0.88rem;
  color: var(--color-grey);
  max-width: 40ch;
  margin-bottom: 3rem;
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.92;
}

.hero__badge {
  position: absolute;
  bottom: 2.5rem;
  left: 2.5rem;
  background: rgba(0, 0, 0, 0.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.2rem 1.8rem;
}

.hero__badge-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__badge-inner img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
  flex-shrink: 0;
}

.hero__badge-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero__badge-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-white);
  line-height: 1.2;
}

.hero__badge p {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 0;
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn-primary {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  background: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #333333;
}

.btn-ghost {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-grey);
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--color-black);
  border-color: var(--color-black);
}

/* ============================================================
   5. SECTION COMMON STYLES
   ============================================================ */
section {
  padding: 6rem 4rem;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-stone);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.rule {
  width: 40px;
  height: 1px;
  background: var(--color-stone);
  margin-bottom: 2rem;
}

/* ============================================================
   6. VISION / ABOUT SECTION
   ============================================================ */
.vision {
  background: var(--color-black);
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.vision .section-title {
  color: var(--color-white);
}

.vision__body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #aaaaaa;
  font-family: var(--font-display);
  font-weight: 300;
}

.vision__stats {
  border-left: 1px solid #2a2a2a;
  padding-left: 6rem;
}

.vision-stat {
  margin-bottom: 2.5rem;
}

.vision-stat:last-child {
  margin-bottom: 0;
}

.vision-stat__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--color-stone);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.vision-stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #555555;
}

/* ============================================================
   7. SERVICES SECTION
   ============================================================ */
.services {
  background: var(--color-white);
}

.services__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.service-card {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--color-rule);
  transition: background 0.25s;
}

.service-card:last-child {
  border-right: none;
}

.service-card:hover {
  background: var(--color-light-grey);
}

.service-card__icon {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.service-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.service-card__list {
  list-style: none;
  font-size: 0.78rem;
  color: var(--color-grey);
  line-height: 2.1;
}

.service-card__list li::before {
  content: '— ';
  color: var(--color-stone);
}

/* ============================================================
   8. PROJECTS SECTION
   ============================================================ */
.projects {
  background: var(--color-light-grey);
}

.projects__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--color-rule);
}

.project-card {
  position: relative;
  overflow: hidden;
  background: var(--color-black);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s;
  opacity: 0.9;
}

.project-card:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.project-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.8rem 1.6rem 1.4rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  transform: translateY(20%);
  opacity: 0;
  transition: transform 0.35s, opacity 0.35s;
  text-align: left;
}

.project-card:hover .project-card__info {
  transform: translateY(0);
  opacity: 1;
}

.project-card__type {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-stone);
  display: block;
  margin-bottom: 0.3rem;
}

.project-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-white);
  font-weight: 300;
}

.projects__cta {
  padding-top: 3rem;
  display: flex;
  justify-content: center;
}

@media (min-width: 901px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
  }
}

/* ============================================================
   9. APPROACH / PROCESS SECTION
   ============================================================ */
.approach {
  background: var(--color-white);
}

.approach__inner {
  margin-top: 3rem;
  max-width: 760px;
}

.approach-steps {
  display: flex;
  flex-direction: column;
}

.approach-step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-rule);
}

.approach-step__letter {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--color-stone);
  line-height: 1;
  min-width: 2rem;
}

.approach-step__content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.approach-step__content p {
  font-size: 0.82rem;
  color: var(--color-grey);
  line-height: 1.75;
}

/* ============================================================
   10. CONTACT SECTION
   ============================================================ */
.contact {
  background: var(--color-black);
  color: var(--color-white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0;
}

.contact__info {
  padding: 6rem 4rem;
  border-right: 1px solid #222222;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact__info .section-title {
  color: var(--color-white);
}

.contact__body {
  font-size: 0.88rem;
  color: #777777;
  margin-bottom: 3rem;
  line-height: 1.85;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item__label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-stone);
  display: block;
  margin-bottom: 0.2rem;
}

.contact-item__value {
  font-size: 0.9rem;
  color: #cccccc;
}

.contact__form-wrap {
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #555555;
}

.form-input,
.form-select,
.form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #2a2a2a;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-stone);
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: #1a1a1a;
}

.form-textarea {
  resize: none;
  min-height: 80px;
}

.form-submit {
  margin-top: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: var(--color-stone);
  color: var(--color-black);
  border: none;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s;
  font-weight: 500;
}

.form-submit:hover {
  background: #b8a888;
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
  background: #080808;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #1a1a1a;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__brand img {
  height: 28px;
  filter: brightness(0) invert(0.4);
}

.site-footer__copy {
  font-size: 0.7rem;
  color: #444444;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.7rem;
  color: #444444;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-stone);
}

/* ============================================================
   12. PROJECT MODAL / CAROUSEL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.is-active {
  display: flex;
}

.modal-content {
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title-group__label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-stone);
  display: block;
  margin-bottom: 0.3rem;
}

.modal-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-white);
  font-weight: 300;
}

.modal-close {
  background: none;
  border: 1px solid #444444;
  color: var(--color-white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  border-color: var(--color-stone);
  color: var(--color-stone);
}

.carousel {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #050505;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
}

.carousel-arrow--prev {
  left: 1rem;
}

.carousel-arrow--next {
  right: 1rem;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #444444;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--color-stone);
}
