/* ===== Base layout & structure — shared by all style themes ===== */
/* Theme files (theme-*.css) define the :root variables below; this file
   only consumes them, so swapping <link> to a different theme file
   restyles the whole site without touching markup. */

:root {
  /* Fallback values (Craftsman theme) in case a theme file isn't loaded */
  --bg: #DFC596;
  --bg-alt: #1A4F1A;
  --text: #0F2F0F;
  --text-on-dark: #F0E4D0;
  --text-on-light: #0F2F0F;
  --text-on-photo: #F0E4D0;
  --photo-text-shadow: 0 2px 6px rgba(15, 47, 15, 0.75);
  --photo-heading-shadow: 0 3px 8px rgba(15, 47, 15, 0.85);
  --cta: #9F0643;
  --heading-font: 'Poppins', sans-serif;
  --body-font: 'Poppins', sans-serif;
  --blockquote-font: 'Poppins', sans-serif;
  --body-size: 1.5rem;
  --h1-size: 3.25rem;
  --h2-size: 2.5rem;
  --h3-size: 2rem;
  --h4-size: 1.5rem;
  --body-weight: 300;
  --h1-weight: 700;
  --h2-weight: 600;
  --heading-weight: 900;
  --content-width: min(90%, 1488px);
  --blueprint-max: 280px;
  --accent: #4c7c73;
  --accent-2: #d97b3f;
  --card-bg: #fffaf2;
  --card-border: #e3d3b8;
  --radius: 20px;
  --shadow: 0 6px 18px rgba(15, 47, 15, 0.12);
  --btn-primary-bg: var(--accent-2);
  --btn-primary-text: var(--champagne-mist);
  --btn-primary-border: var(--text);
  --btn-secondary-bg: transparent;
  --btn-secondary-text: var(--champagne-mist);
  --btn-secondary-border: var(--text);
  --btn-tertiary-bg: #808080;
  --btn-tertiary-text: #F0E4D0;
  --btn-tertiary-border: #9F0643;

  --header-bg: var(--bg);
  --header-text: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  line-height: 1.5;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: var(--h1-size);
  font-weight: var(--h1-weight);
}

h2 {
  font-size: var(--h2-size);
  font-weight: var(--h2-weight);
  text-align: center;
}

h3 {
  font-size: var(--h3-size);
}

h4 {
  font-size: var(--h4-size);
}

p {
  margin: 0 0 1em;
}

.photo-background-text {
  color: var(--text-on-photo);
  text-shadow: var(--photo-text-shadow);
}

.photo-background-heading {
  color: var(--text-on-photo);
  text-shadow: var(--photo-heading-shadow);
}

a {
  color: var(--accent);
}

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

section {
  padding: 4rem 1.5rem;
}

.section-sub {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 2rem;
  opacity: 0.85;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--card-border);
}

.nav-wrap {
  width: var(--content-width);
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--header-text);
  font-family: var(--heading-font);
  font-weight: bold;
  font-size: 2.25rem;
}

.mascot {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
}

.site-footer .mascot {
  width: 288px;
  height: 288px;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--header-text);
  font-size: 1rem;
  font-weight: 600;
  text-transform: lowercase;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-nav a[aria-current="page"],
.site-nav a.active {
  color: var(--accent-2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--header-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--heading-font);
  font-size: 1rem;
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-border);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
}

.btn-secondary:hover {
  filter: brightness(1.08);
}

.btn-tertiary {
  background: var(--btn-tertiary-bg);
  color: var(--btn-tertiary-text);
}

.btn-tertiary:hover {
  filter: brightness(1.08);
}

/* ---------- Hero ---------- */
.hero {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(264px, 3fr);
  gap: 2rem;
  align-items: center;
  padding-top: 3rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.hero h1,
.hero h2 {
  line-height: 0.90;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero h2 {
  text-align: left;
}

.hero-art {
  display: flex;
  justify-content: center;
  padding-block: 2rem;
}

.catstruction-figure {
  width: min(var(--blueprint-max), 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-blueprint-img,
.about-blueprint-img,
.build-process-blueprint-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  transform: none;
}

.catstruction-caption {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

/* ---------- About ---------- */
.about-content {
  width: var(--content-width);
  margin: 0 auto;
  display: flow-root;
}

.crew-line {
  font-style: italic;
  opacity: 0.85;
}

.about-art {
  float: left;
  width: min(480px, 45%);
  margin: 0 2rem 1rem 0;
  padding: 64px;
}

.about-blueprint-img {
  width: min(var(--blueprint-max), 100%);
  margin: 0 auto;
  transform: none;
}

/* ---------- Build Process ---------- */
.build-process-content {
  width: var(--content-width);
  margin: 0 auto;
}

.build-process-grid {
  width: var(--content-width);
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
}

.build-process-blueprint-img {
  width: min(var(--blueprint-max), 100%);
  margin: 0 auto;
  transform: none;
}

/* ---------- Gallery ---------- */
.gallery {
  width: min(75%, 1240px);
  margin: 0 auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: .5rem;
  box-shadow: var(--shadow);
}

.photo-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  padding: 0.5rem;
}

.photo-placeholder svg rect {
  fill: none;
  stroke: var(--card-border);
  stroke-width: 2;
}

.photo-placeholder .ph-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
}

.photo-placeholder .ph-sun {
  fill: var(--accent-2);
}

/* ---------- Real Build Photos Carousel ---------- */
.photo-carousel-wrap {
  margin-top: 1rem;
}

.carousel-heading {
  text-align: center;
  margin-bottom: 1rem;
}

.photo-carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

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

.carousel-figure {
  display: table;
  margin: 0;
  max-width: 100%;
  background: var(--card-bg);
  border: 0.2rem solid var(--card-bg);
  border-radius: var(--radius);
}

.carousel-slide img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: clamp(280px, 40vw, 600px);
  object-fit: contain;
}

.carousel-caption {
  display: table-caption;
  caption-side: bottom;
  margin: 0;
  padding: 0.5rem 1rem;
  text-align: center;
  background: var(--card-bg);
  color: var(--text-on-dark);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 1.05rem;
  font-weight: 200;
}

.carousel-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-on-dark);
  font-size: 1.5rem;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.carousel-btn:hover:not(:disabled) {
  background: var(--accent);
  color: var(--btn-primary-text);
}

.carousel-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

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

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ---------- Services ---------- */
.services-content {
  width: var(--content-width);
  margin: 0 auto;
}

.services-intro {
  margin: 0 auto 2rem;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-on-dark);
  box-shadow: var(--shadow);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.service-card ul {
  margin: 0;
  padding-left: 1.5em;
  text-align: left;
}

.services-note {
  margin: 2rem auto 0;
  text-align: center;
  font-weight: 600;
}

/* ---------- Crew ---------- */
.crew-grid {
  width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2rem;
}

.crew-card {
  text-align: center;
}

.crew-img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.crew-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crew-card p {
  margin-bottom: 0;
}

/* ---------- Featured Photo ---------- */
.featured-photo {
  padding: 0;
}

.featured-photo-img {
  width: 100%;
  height: clamp(280px, 40vw, 520px);
  object-fit: cover;
  object-position: center top;
}

/* ---------- Catstruction Photo ---------- */
.small-catstruction {
  display: block;
  width: 250px;
  height: 250px;
  margin: 0.5rem auto;
  object-fit: contain;
  object-position: center;
}

/* ---------- Press ---------- */
.press {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.press-inner {
  position: relative;
  z-index: 1;
  width: var(--content-width);
  margin: 0 auto;
}

.press-carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.press-viewport {
  flex: 1;
  overflow: hidden;
}

.press-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.4s ease;
  touch-action: pan-y;
}

.press-card {
  flex: 0 0 25%;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.press-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.press-card>.btn,
.press-note-cta {
  margin-top: auto;
}

.press-card>.btn {
  align-self: center;
}

.press-note-cta {
  width: 100%;
  text-align: center;
}

.press-card-title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.press-quote {
  font-style: italic;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.press-source {
  font-family: var(--heading-font);
  font-weight: 700;
  opacity: 0.75;
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.press-note {
  opacity: 0.85;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.press-card .btn {
  width: 12rem;
  padding: 0.5rem 1rem;
  text-align: center;
  white-space: nowrap;
  background: var(--deep-forest-green, #0F2F0F);
  color: var(--text-on-dark, #F0E4D0);
  border-color: var(--deep-forest-green, #0F2F0F);
}

/* ---------- Contact ---------- */
.contact-content {
  width: var(--content-width);
  margin: 0 auto;
}

.contact-form {
  --form-gap: 4rem;

  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--form-gap);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-content h2 {
  margin-bottom: 0.5rem;
}

.contact-content .section-sub {
  margin-bottom: 2rem;
}

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

.contact-form label,
.contact-form legend {
  font-weight: 400;
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  font-family: var(--body-font);
  font-size: var(--body-size);
  font-weight: var(--body-weight);
  background: #ffffff;
  color: var(--text-on-light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6b6b6b;
  opacity: 1;
}

.contact-form button {
  margin-top: 1.5rem;
  align-self: flex-start;
}

.form-status {
  margin-top: 1rem;
  font-weight: 700;
  min-height: 1.5em;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: var(--accent-2);
}

.form-status:empty {
  display: none;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid #000000;
}

.site-footer .mascot {
  margin: 0 auto 0.5rem;
}

.footer-note {
  opacity: 0.7;
  font-size: 0.75rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 1451px) {

  .hero h1,
  .hero h2 {
    white-space: nowrap;
  }
}

@media (max-width: 1450px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero h2 {
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 1200px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--card-border);
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .crew-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .press-card {
    flex-basis: 50%;
  }
}

@media (max-width: 800px) {
  :root {
    --body-size: 1.25rem;
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.5rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .build-process-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-art {
    float: none;
    width: min(480px, 100%);
    margin: 0 auto 1rem;
    padding: 40px;
  }

  .build-process-art {
    grid-row: 1;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  :root {
    --h1-size: 2rem;
    --h2-size: 1.75rem;
    --h3-size: 1.5rem;
  }

  section {
    padding: 2.5rem 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .mascot {
    width: 64px;
    height: 64px;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-art {
    padding-block: 1rem;
  }

  .crew-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .photo-carousel-wrap {
    margin-top: 1.5rem;
  }

  .carousel-figure {
    border-width: 0.15rem;
  }

  .carousel-slide img {
    max-height: clamp(200px, 40vh, 360px);
  }

  .carousel-caption {
    font-size: 0.95rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .press {
    padding-block: 3rem;
  }

  .press-card {
    flex-basis: 100%;
    padding: 1rem;
  }
}

@media (max-width: 450px) {
  .crew-grid {
    grid-template-columns: 1fr;
  }

  .photo-carousel {
    gap: 0.25rem;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
  }

  .carousel-figure {
    border-width: 0.1rem;
  }

  .carousel-slide img {
    max-height: clamp(180px, 35vh, 320px);
  }

  .carousel-caption {
    font-size: 0.85rem;
  }
}

@media (min-width: 801px) and (max-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Style preview label (removed in final single-theme site) ---------- */
.style-label {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--heading-font);
  z-index: 100;
  box-shadow: var(--shadow);
}