/* =========================
   RESET / BASE
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #f7f5f2;
  --color-surface: #ffffff;
  --color-surface-muted: #f1efeb;
  --color-surface-footer: #ece9e4;
  --color-text: #1f1f1f;
  --color-text-muted: #5a5a5a;
  --color-accent: #2f4f4f;
  --color-border: #e5e2dd;

  --container-width: 1280px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

/* =========================
   GLOBAL LAYOUT
========================= */

.container {
  width: min(100% - 2rem, var(--container-width));
  margin: 0 auto;
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.05;
  font-weight: 600;
}

h1 {
  max-width: 30ch;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
}

p {
  font-size: 1.125rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-text,
.portfolio-intro-text,
.project-intro,
.about-intro,
.home-about-text,
.contact-intro,
.work-category-header p,
.project-card p,
.contact-card p,
.gallery-caption,
.model-text {
  color: var(--color-text-muted);
}

.hero-text {
  max-width: 42rem;
  margin-top: 1.5rem;
}

.portfolio-intro-text,
.project-intro,
.about-intro,
.home-about-text,
.contact-intro {
  margin-top: 1.25rem;
}

.portfolio-intro-text {
  max-width: 40rem;
}

.project-intro,
.contact-intro {
  max-width: 36rem;
}

.about-intro {
  max-width: 30rem;
}

.home-about-text {
  margin-bottom: 2rem;
}

/* =========================
   REUSABLE SURFACES / MEDIA
========================= */

.project-card,
.project-meta-card,
.contact-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.project-hero-image-wrapper,
.about-hero-image-wrapper,
.home-about-image-wrapper,
.featured-image-wrapper,
.model-media-wrapper,
.gallery-media,
.gallery-image {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-muted);
}

.button-primary,
.next-project-button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-accent);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: opacity var(--transition), transform var(--transition), box-shadow 0.25s ease;
}

.button-primary:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.next-project-button:hover,
.project-link:hover,
.contact-link:hover,
.nav-list a:hover,
.footer-nav-list a:hover {
  opacity: 0.75;
}

.next-project-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* =========================
   HEADER
========================= */

.site-header {
  padding: 1.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav-list,
.footer-nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-list a,
.footer-nav-list a {
  font-size: 0.95rem;
  transition: opacity var(--transition);
}

/* =========================
   HOME HERO
========================= */

.hero {
  padding: 5rem 0 5.5rem;
}

.hero-content {
  max-width: 56rem;
}

.button-primary {
  margin-top: 2rem;
}

/* =========================
   FEATURED IMAGE
========================= */

.featured-image-section {
  padding-bottom: 5rem;
}

.featured-image {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

/* =========================
   SECTION HEADERS / GRIDS
========================= */

.section-heading,
.work-category-header {
  max-width: 42rem;
}

.section-heading {
  margin-bottom: 2.5rem;
}

.work-category-header {
  margin-bottom: 1.5rem;
}

.section-heading h2,
.home-about-content h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.project-grid,
.project-hero-grid,
.project-model-grid,
.about-hero-grid,
.home-about-grid,
.contact-grid {
  display: grid;
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-hero-grid,
.about-hero-grid,
.home-about-grid {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.project-model-grid {
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 60rem;
}

/* =========================
   FEATURED PROJECTS / CARDS
========================= */

.featured-projects {
  padding: 1rem 0 5rem;
}

.project-card {
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.project-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.03);
}

.project-card-content {
  padding: 1.25rem;
}

.project-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.project-card p {
  margin-bottom: 1rem;
}

.project-link,
.contact-link {
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 600;
}

/* =========================
   PORTFOLIO PAGE
========================= */

.portfolio-hero {
  padding: 4rem 0 3rem;
}

.portfolio-hero h1 {
  max-width: 20ch;
}

.portfolio-grid-section {
  padding-bottom: 5rem;
}

/* =========================
   PROJECT PAGES
========================= */

.project-hero-split {
  padding: 4rem 0 3.5rem;
}

.project-hero-content h1 {
  max-width: 18ch;
  margin-top: 0.25rem;
}

.project-hero-grid {
  align-items: start;
}

.project-hero-image,
.home-about-image,
.gallery-media,
.gallery-image,
.about-hero-image {
  width: 100%;
  object-fit: cover;
}

.project-hero-image,
.home-about-image,
.gallery-media {
  aspect-ratio: 3 / 4;
}

.about-hero-image {
  aspect-ratio: 1 / 1;
}

.project-details {
  padding: 4rem 0 5rem;
  border-top: 1px solid var(--color-border);
}

.project-details-grid {
  max-width: 70rem;
}

.project-text-block + .project-text-block {
  margin-top: 3rem;
}

.project-text-block h2,
.about-block h2,
.contact-card h2,
.work-category-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
}

.project-meta-card {
  margin-top: 2rem;
  padding: 1.5rem;
}

.project-meta-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.project-meta-card ul,
.contact-list {
  display: grid;
  gap: 0.85rem;
}

.project-meta-card li,
.contact-list li {
  font-size: 1rem;
  line-height: 1.6;
}

.project-meta-card li {
  color: var(--color-text-muted);
}

.project-meta-card strong {
  color: var(--color-text);
}

.project-model-section,
.project-gallery-section,
.about-content,
.contact-content {
  padding-bottom: 5rem;
}

.model-media-wrapper {
  aspect-ratio: 4 / 3;
}

.model-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
}

.model-text {
  max-width: 32rem;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  display: block;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.gallery-media {
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-media {
  transform: scale(1.03);
}

.gallery-caption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

/* =========================
   TRIM WORK CATEGORIES
========================= */

.work-category-section {
  padding-bottom: 4rem;
}

.category-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 280px;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.gallery-image {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* =========================
   NEXT PROJECT NAVIGATION
========================= */

.next-project-section {
  padding: 3rem 0 1rem;
}

.next-project-inner {
  display: flex;
  justify-content: flex-end;
}

/* =========================
   ABOUT PAGE
========================= */

.about-text {
  max-width: 60rem;
}

.about-block + .about-block {
  margin-top: 3rem;
}

.about-block p + p {
  margin-top: 1rem;
  color: var(--color-text-muted);
}

.about-hero-split {
  padding: 4rem 0 3rem;
}

.about-hero-grid,
.home-about-grid {
  align-items: center;
}

.home-about-preview {
  padding: 2rem 0 5rem;
}

.home-about-content {
  max-width: 40rem;
}

.home-about-image-wrapper {
  width: min(100%, 500px);
}

/* =========================
   CONTACT PAGE
========================= */

.contact-hero {
  padding: 4rem 0 2.5rem;
}

.contact-card {
  padding: 2rem;
}

.contact-card p {
  margin-bottom: 1.25rem;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background-color: var(--color-surface-footer);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.footer-title {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-text {
  color: var(--color-text-muted);
  max-width: 24rem;
  margin-bottom: 0.5rem;
}

.footer-location {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-nav-list {
  flex-wrap: wrap;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 700px) {
  .site-header {
    padding: 1.25rem 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-list {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .hero {
    padding: 4.5rem 0 5.5rem;
  }

  p {
    font-size: 1rem;
  }

  .featured-image-section {
    padding-bottom: 4rem;
  }

  .featured-image {
    height: 320px;
  }

  .featured-projects {
    padding: 0.5rem 0 4rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .project-grid,
  .project-hero-grid,
  .project-model-grid,
  .project-gallery-grid,
  .about-hero-grid,
  .contact-grid,
  .home-about-grid,
  .category-gallery {
    grid-template-columns: 1fr;
  }

  .project-hero-grid,
  .about-hero-grid,
  .home-about-grid {
    gap: 2rem;
  }

  .category-gallery {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    overflow-x: visible;
  }

  .project-card-image,
  .project-hero-image,
  .gallery-media,
  .gallery-image,
  .about-hero-image,
  .home-about-image {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
  }

  .project-details {
    padding-bottom: 4rem;
  }

  .project-text-block + .project-text-block {
    margin-top: 2rem;
  }

  .project-hero-split {
    padding: 3.5rem 0 2.5rem;
  }

  .project-meta-card {
    margin-top: 1.5rem;
  }

  .model-media-wrapper {
    aspect-ratio: auto;
  }

  .work-category-section {
    padding-bottom: 3rem;
  }

  .work-category-header {
    margin-bottom: 1.25rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .next-project-inner {
    justify-content: center;
  }

  .next-project-button {
    width: 100%;
    text-align: center;
  }
}
