/*
Theme Name: Tulsi Agriculture
Theme URI: https://tulsiricemill.com
Author: Tulsi Rice Mill
Description: Agriculture landing theme for Tulsi Rice Mill.
Version: 1.5.6
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: tulsi-agriculture
*/

:root {
  --gold: #d4a017;
  --gold-soft: #c9961a;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --white: #ffffff;
  --navy: #0a0e1a;
  --font: "Montserrat", system-ui, sans-serif;
  --header-h: 72px;
  /* Modern layout: 1440px content max (docs/blogs standard), equal side space on wide screens */
  --container: 1440px;
  --gutter: clamp(1.15rem, 3.2vw, 2.75rem);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.header-inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  max-width: none;
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0;
}

.site-header.is-light .brand-name,
.site-header.is-light .nav-links a {
  color: var(--white);
}

.site-header.is-solid .brand-name,
.site-header.is-solid .nav-links a,
.site-header.is-scrolled .brand-name,
.site-header.is-scrolled .nav-links a {
  color: var(--ink);
}

.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav-links a:hover {
  color: var(--gold) !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-light .menu-toggle span {
  background: var(--white);
}

.site-header.is-solid .menu-toggle span,
.site-header.is-scrolled .menu-toggle span {
  background: var(--gold);
}

/* Buttons */
.btn-gold,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-soft);
}

.btn-outline {
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
}

.hero-cta {
  margin-top: 1.75rem;
}

/* Accent (replaces Canva slide numbers) */
.accent-bar {
  width: 4px;
  min-height: 40px;
  background: var(--gold);
  display: block;
  margin-top: 0.2rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 26, 0.55) 0%, rgba(20, 12, 4, 0.45) 45%, rgba(10, 14, 26, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7rem 1.5rem 4rem;
  max-width: 920px;
  margin: 0 auto;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.hero-url {
  margin: 1rem 0 0;
  color: var(--gold);
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-kicker {
  margin: 0 0 0.75rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.item-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.section-head .body-copy {
  margin-bottom: 0;
}

.section-head .gold-rule {
  margin-left: auto;
  margin-right: auto;
}

.section-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Stats — card KPI strip (agri/trust-site pattern) */
.stats-strip {
  background:
    linear-gradient(180deg, #f7f1e6 0%, #faf8f3 100%);
  color: var(--ink);
  padding: 2.75rem var(--gutter) 3rem;
  border-bottom: 1px solid rgba(212, 160, 23, 0.18);
}

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

.stats-intro {
  text-align: center;
  margin-bottom: 1.5rem;
}

.stats-label {
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stats-heading {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

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

.stat-item {
  background: var(--white);
  border: 1px solid rgba(10, 14, 26, 0.06);
  border-top: 3px solid var(--gold);
  padding: 1.35rem 1rem 1.25rem;
  text-align: center;
  box-shadow: 0 10px 24px rgba(20, 12, 4, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(20, 12, 4, 0.1);
}

.stat-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.65rem;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.stat-icon svg {
  width: 26px;
  height: 26px;
}

.stat-item strong {
  display: block;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  color: var(--navy);
  line-height: 1.1;
  font-weight: 800;
}

.stat-item span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Home products */
.home-products {
  padding: 4.5rem var(--gutter);
  background: #faf8f3;
}

/* Welcome */
.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: auto;
}

.welcome-media {
  min-height: 360px;
  background-size: cover;
  background-position: center;
}

.welcome-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4.5rem var(--gutter);
  background: var(--white);
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
}

.gold-rule {
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 1.1rem 0 1.4rem;
  border: 0;
}

.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 700;
}

.body-copy {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42rem;
}

/* Projects */
.projects {
  padding: 4.5rem var(--gutter);
  background: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  width: min(100%, var(--container));
  max-width: none;
  margin: 0 auto;
}

.project-items {
  display: grid;
  gap: 2rem;
  margin-top: 2.2rem;
}

.project-item {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 1rem;
  align-items: start;
}

.project-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-photos {
  display: grid;
  gap: 1rem;
}

.project-photos img,
.media-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.media-card {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  display: block;
  width: 100%;
  text-align: left;
}

.media-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.media-card span {
  position: absolute;
  left: 0.9rem;
  bottom: 0.85rem;
  z-index: 2;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.media-card:hover img {
  transform: scale(1.04);
}

.media-card img {
  transition: transform 0.35s ease;
}

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

.gallery-grid .media-card img {
  height: clamp(160px, 22vw, 260px);
}

/* About */
.about-band {
  padding: 4rem var(--gutter) 0;
  background: var(--white);
  text-align: center;
}

.about-band .section-title {
  max-width: 900px;
  margin: 0 auto;
}

.about-band .gold-rule {
  margin-left: auto;
  margin-right: auto;
}

.about-band .body-copy {
  margin: 0 auto 2.5rem;
  max-width: 820px;
}

.about-copy-below {
  margin-top: 1.25rem !important;
  margin-bottom: 0 !important;
}

/* Soft alternate bands so sections feel connected, not empty */
.projects,
.vision,
.team {
  background: #faf8f3;
}

.welcome,
.about-band,
.mission,
.portfolio,
.contact-split {
  background: var(--white);
}

.about-photo {
  width: min(var(--container), 100%);
  margin: 1.5rem auto 0;
  height: clamp(240px, 42vw, 460px);
  object-fit: cover;
}

/* Vision */
.vision {
  padding: 4rem var(--gutter);
  background: var(--white);
}

.vision-grid {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.25rem;
  align-items: center;
}

.vision-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.vision-photos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.numbered-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Mission */
.mission {
  padding: 4rem 0 4rem var(--gutter);
  background: var(--white);
  overflow: hidden;
}

.mission-grid {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: stretch;
}

.mission-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.mission-card {
  display: grid;
  grid-template-columns: 4px 1fr;
  gap: 0.85rem;
  align-items: start;
}

.mission-card .accent-bar {
  min-height: 32px;
}

.mission-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.mission-media {
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

/* Portfolio */
.portfolio {
  padding: 4rem var(--gutter);
  background: var(--white);
}

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

.portfolio-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.portfolio-photos {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0.85rem;
}

.portfolio-photos img {
  width: 100%;
  height: clamp(180px, 26vw, 300px);
  object-fit: cover;
}

/* Team */
.team {
  padding: 4.5rem var(--gutter);
  background: var(--white);
}

.team-grid {
  width: min(100%, var(--container));
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.team-card {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover,
.team-card:focus-within,
.team-card.is-open {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.14);
}

.team-card-media {
  position: relative;
  overflow: hidden;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.team-card:hover img,
.team-card:focus-within img,
.team-card.is-open img {
  transform: scale(1.06);
}

.team-hover-details {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 1.1rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0.15) 10%, rgba(10, 14, 26, 0.88) 70%);
  color: var(--white);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.team-card:hover .team-hover-details,
.team-card:focus-within .team-hover-details,
.team-card.is-open .team-hover-details {
  opacity: 1;
  transform: none;
}

.team-hover-role {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-hover-bio {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.team-hover-points {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.team-hover-points li {
  position: relative;
  padding-left: 0.85rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
}

.team-hover-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 5px;
  height: 5px;
  background: var(--gold);
}

.team-name {
  background: var(--gold);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 0.5rem 0.35rem;
}

.team-role {
  background: var(--gold);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0 0.5rem 0.7rem;
}

/* Contact */
.contact-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--white);
}

.contact-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 4rem 1.5rem 4rem var(--gutter);
}

.contact-photos img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem var(--gutter) 4rem 2rem;
}

.contact-details {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
  max-width: 420px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.85rem 0.95rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(212, 160, 23, 0.35);
  border-color: var(--gold);
}

.contact-form .btn-gold {
  border: 0;
  cursor: pointer;
  width: fit-content;
}

/* Modal */
body.modal-open {
  overflow: hidden;
}

.detail-modal[hidden] {
  display: none !important;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.72);
}

.detail-modal-panel {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.detail-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  z-index: 3;
  border: 0;
  background: var(--navy);
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.detail-modal-media img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.detail-modal-body {
  padding: 2rem 1.75rem;
}

.modal-points {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.modal-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.modal-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
}

/* Floating action buttons */
.float-actions {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.float-btn {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.float-btn svg {
  width: 26px;
  height: 26px;
  display: block;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  color: #fff;
}

.whatsapp-float {
  background: #25d366;
}

.whatsapp-float:hover {
  background: #1ebe57;
}

.back-top {
  background: var(--gold);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.back-top:hover {
  background: var(--gold-soft);
}

.nav-links a.is-active {
  color: var(--gold) !important;
}

/* Inner pages */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
}

.page-hero-compact {
  min-height: 34vh;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30, 18, 8, 0.45), rgba(20, 12, 4, 0.62));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7rem 1.5rem 3.5rem;
}

.page-hero-title {
  color: var(--white);
}

.page-hero-copy {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
}

.page-breadcrumb {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
}

.page-breadcrumb a:hover {
  color: var(--gold);
}

.page-breadcrumb span {
  margin: 0 0.35rem;
}

/* Products */
.products-section {
  padding: 4.5rem var(--gutter);
  background: var(--white);
}

.products-grid {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.product-card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card-body {
  padding: 1.35rem 1.25rem 1.5rem;
}

.product-card-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.product-card-excerpt {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.product-card-link {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.15rem;
}

.product-card-link:hover {
  color: var(--gold);
}

.product-detail {
  padding: 4.5rem var(--gutter) 3rem;
  background: var(--white);
}

.product-detail-grid {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-media img {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
}

.product-detail-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-top: 0.35rem;
}

.product-detail-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0.5rem 0 1.5rem;
}

.product-specs {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-spec {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-spec-label {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0.35rem 0.6rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-detail-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.product-detail-actions .btn-gold {
  border: 0;
  cursor: pointer;
  font: inherit;
}

/* Product enquiry (same page flow) */
.product-enquiry {
  padding: 3.5rem var(--gutter) 4.5rem;
  background: #faf8f3;
  border-top: 1px solid rgba(212, 160, 23, 0.16);
}

.product-enquiry-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.enquiry-highlights {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.enquiry-highlights li {
  color: var(--muted);
  font-size: 0.92rem;
}

.enquiry-highlights strong {
  color: var(--ink);
}

.enquiry-form {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
  box-shadow: 0 12px 28px rgba(20, 12, 4, 0.06);
}

.enquiry-form label {
  display: grid;
  gap: 0.35rem;
}

.enquiry-form label span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.enquiry-form input,
.enquiry-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.enquiry-form input:focus,
.enquiry-form textarea:focus {
  outline: 2px solid rgba(212, 160, 23, 0.35);
  border-color: var(--gold);
}

.enquiry-full {
  grid-column: 1 / -1;
}

.enquiry-form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.enquiry-form-actions .btn-gold {
  border: 0;
  cursor: pointer;
}

.enquiry-status {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.enquiry-status.is-ok {
  color: #1f7a3f;
}

.enquiry-status.is-error {
  color: #b42318;
}

@media (max-width: 900px) {
  .product-enquiry-inner,
  .enquiry-form {
    grid-template-columns: 1fr !important;
  }

  .product-enquiry {
    padding: 2rem 1rem 2.5rem !important;
  }
}

.related-products {
  padding-top: 1rem;
}

.related-head {
  max-width: var(--container);
  margin: 0 auto 2rem;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin: 0 auto;
  padding: 4rem 0 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand p {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-col h3 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin: 0 auto;
  padding: 1.25rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.site-footer .gold {
  color: var(--gold);
}

/* Tablet */
@media (max-width: 1024px) {
  .portfolio-photos,
  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }

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

  .mission {
    padding-right: var(--gutter);
  }

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

/* Mobile / small tablet — tighter section stacking */
@media (max-width: 900px) {
  :root {
    --header-h: 64px;
    --section-y: 1.35rem;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  .site-nav.is-open {
    max-height: 360px;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
  }

  .site-nav .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
    color: var(--ink) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .welcome,
  .projects-grid,
  .vision-grid,
  .mission-grid,
  .portfolio-copy,
  .portfolio-photos,
  .gallery-grid,
  .contact-split,
  .contact-photos,
  .mission-cards,
  .products-grid,
  .product-detail-grid,
  .footer-inner,
  .detail-modal-panel,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .welcome {
    min-height: auto;
  }

  .welcome-media {
    min-height: 180px;
  }

  .hero {
    min-height: 68vh;
    min-height: 68svh;
  }

  .hero-content {
    padding: 5rem 1rem 2.25rem;
  }

  .hero-actions {
    gap: 0.65rem;
  }

  .hero-cta,
  .hero-actions .btn-gold,
  .hero-actions .btn-ghost {
    min-height: 42px;
    padding: 0.65rem 1.1rem;
  }

  .stats-strip {
    padding: 1.35rem 1rem 1.5rem;
  }

  .stats-intro {
    margin-bottom: 1rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.7rem;
  }

  .stat-item {
    padding: 1rem 0.75rem 0.95rem;
  }

  .stat-item strong {
    font-size: 1.45rem;
  }

  .stat-item span {
    font-size: 0.68rem;
  }

  .stat-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0.4rem;
  }

  .stat-icon svg {
    width: 22px;
    height: 22px;
  }

  /* Key fix: cut double white space between sections */
  .welcome-content,
  .projects,
  .vision,
  .mission,
  .portfolio,
  .team,
  .home-products,
  .about-band,
  .contact-info,
  .contact-photos,
  .products-section,
  .product-detail {
    padding: var(--section-y) 1rem !important;
  }

  .about-band {
    padding-top: var(--section-y) !important;
    padding-bottom: var(--section-y) !important;
  }

  .section-head {
    margin-bottom: 0.9rem;
  }

  .gold-rule {
    margin: 0.7rem 0 0.9rem;
  }

  .project-items,
  .numbered-list {
    gap: 1rem;
    margin-top: 1.1rem;
  }

  .mission-cards {
    gap: 0.85rem;
    margin-top: 1.1rem;
  }

  .portfolio-top {
    margin-bottom: 1rem;
  }

  .section-cta {
    margin-top: 1.1rem;
  }

  .about-copy-below {
    margin-top: 0.85rem !important;
    margin-bottom: 0 !important;
  }

  .about-photo {
    height: 170px;
    margin-top: 0.75rem;
  }

  .project-photos {
    gap: 0.65rem;
  }

  .project-photos img,
  .media-card img,
  .contact-photos img,
  .mission-media {
    height: 170px;
    min-height: 170px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.55rem;
  }

  .gallery-grid .media-card img {
    height: 140px;
  }

  .vision-photos {
    gap: 0.55rem;
  }

  .team-grid {
    max-width: none;
    width: 100%;
    margin: 0.85rem 0 0;
    gap: 0.85rem;
    grid-template-columns: 1fr !important;
  }

  .team-card img {
    aspect-ratio: 16 / 11;
    object-position: top;
  }

  .section-title {
    font-size: clamp(1.45rem, 6.5vw, 1.9rem);
  }

  .body-copy {
    font-size: 0.88rem;
    margin-bottom: 0.7rem;
  }

  .reveal {
    transform: translateY(12px);
  }

  .contact-details {
    margin: 0.9rem 0;
    gap: 0.7rem;
  }

  .contact-photos {
    gap: 0.55rem;
    padding-bottom: 0 !important;
  }

  .contact-info {
    padding-top: 1rem !important;
  }

  .footer-inner {
    padding: 1.75rem 1rem 1.15rem;
    gap: 1.15rem;
  }

  .footer-bottom {
    padding: 0.85rem 1rem 1.15rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .detail-modal-panel {
    max-height: 90vh;
  }

  .detail-modal-body {
    padding: 1.15rem 1rem 1.35rem;
  }

  .detail-modal-media img {
    min-height: 180px;
    max-height: 210px;
  }

  .float-actions {
    right: 0.85rem;
    bottom: 0.85rem;
    gap: 0.65rem;
  }

  .float-btn {
    width: 50px;
    height: 50px;
  }

  .float-btn svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --section-y: 1.15rem;
  }

  .products-grid {
    grid-template-columns: 1fr !important;
  }

  .vision-photos {
    grid-template-columns: 1fr 1fr !important;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .product-spec {
    grid-template-columns: 80px 1fr;
  }

  .header-inner {
    width: min(100% - 2rem, var(--container));
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem 0.65rem;
  }

  /* Hide second long lorem on welcome for tighter mobile */
  .welcome-content .body-copy:nth-of-type(2) {
    display: none;
  }
}
