/* ==========================================================================
   NewRose Pig and Poultry Farm — stylesheet
   Palette: ink #2A2118, rust #8F3C26, gold #C98E3A, parchment #F2EAD8,
            sage #6E7A52, card white #FFFDF8
   Type: 'Fraunces' (display/serif) + 'Inter' (body/sans)
   ========================================================================== */

:root {
  --ink: #2a2118;
  --ink-soft: #4a3f32;
  --rust: #8f3c26;
  --rust-dark: #6e2e1c;
  --gold: #c98e3a;
  --gold-soft: #e4c48b;
  --sage: #6e7a52;
  --parchment: #f2ead8;
  --parchment-deep: #e9dcc0;
  --card: #fffdf8;
  --line: rgba(42, 33, 24, 0.14);
  --shadow: 0 12px 28px rgba(42, 33, 24, 0.12);

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --sidebar-w: 260px;
  --content-max: 920px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 68ch; }

.container { max-width: var(--content-max); margin: 0 inset; }

:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

/* ---------- Layout shell: fixed sidebar + scrolling content ---------- */

.shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--ink);
  color: var(--parchment);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.5rem;
  z-index: 40;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-bottom: 2rem;
}

.brand img { width: 44px; height: 44px; border-radius: 50%; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--parchment);
}

.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  margin-top: 2px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-links a {
  display: block;
  text-decoration: none;
  color: rgba(242, 234, 216, 0.78);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.97rem;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover { background: rgba(242, 234, 216, 0.08); color: var(--parchment); }

.nav-links a.active {
  color: var(--parchment);
  border-left-color: var(--gold);
  background: rgba(201, 142, 58, 0.15);
  font-weight: 600;
}

.sidebar-contact {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(242, 234, 216, 0.18);
  font-size: 0.88rem;
}

.sidebar-contact p {
  margin: 0 0 0.55rem;
  color: rgba(242, 234, 216, 0.85);
}

.sidebar-contact a {
  text-decoration: none;
  color: var(--parchment);
  word-break: break-word;
}

.sidebar-contact .label {
  display: block;
  font-size: 0.7rem;
  text-transform: none;
  color: var(--gold-soft);
  margin-bottom: 2px;
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  background: var(--sage);
  color: #fff;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Mobile top bar ---------- */

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--parchment);
  padding: 0.8rem 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar .brand { margin: 0; }
.topbar .brand img { width: 34px; height: 34px; }
.topbar .brand-name { font-size: 0.92rem; }

.menu-toggle {
  background: transparent;
  border: 1px solid rgba(242, 234, 216, 0.4);
  color: var(--parchment);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  line-height: 1;
}

.contact-strip {
  display: none;
  background: var(--rust);
  color: var(--parchment);
  font-size: 0.78rem;
  padding: 0.4rem 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-strip a { color: var(--parchment); text-decoration: none; }

/* ---------- Main content ---------- */

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
}

.page-section {
  padding: 3.4rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.page-section:last-of-type { border-bottom: none; }

.page-section > .inner { max-width: var(--content-max); }

.eyebrow-none { /* intentionally no all-caps eyebrow labels, per design guidance */ }

/* ---------- Hero (home) ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3.8rem clamp(1.5rem, 5vw, 4rem) 3rem;
}

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

.hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-cta { display: flex; gap: 0.8rem; margin-top: 1.6rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
}

.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dark); }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--parchment); }

.hero-media {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.1; }

.hero-media figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(42,33,24,0.78), transparent);
  color: var(--parchment);
  font-size: 0.82rem;
  padding: 0.8rem 1rem 0.6rem;
  margin: 0;
}

/* ---------- Cards / grids ---------- */

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.card img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }

.card img.img-contain,
img.img-contain {
  object-fit: contain;
  background: var(--parchment-deep);
  padding: 0.6rem;
}

.card-body { padding: 1.1rem 1.2rem 1.3rem; }

.card h3 { margin-bottom: 0.4rem; }

.card p { font-size: 0.94rem; margin-bottom: 0; }

.stat-row {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.stat .num {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--rust);
  display: block;
}

.stat .lbl { font-size: 0.85rem; color: var(--ink-soft); }

/* values list */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.6rem;
  padding: 0;
  margin: 1.2rem 0 0;
  list-style: none;
}

.values-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.97rem;
  padding: 0.7rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.values-grid .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  margin-top: 0.5em;
  flex-shrink: 0;
}

/* CEO quote block */
.quote-block {
  background: var(--ink);
  color: var(--parchment);
  border-radius: 14px;
  padding: 2.2rem clamp(1.4rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: center;
}

.quote-block img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold);
}

.quote-block blockquote {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.4;
}

.quote-block cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--gold-soft);
}

/* service detail block */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--line);
}

.service-block:last-child { border-bottom: none; }

.service-block.reverse .service-media { order: 2; }

.service-media img { border-radius: 12px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; }

.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.service-list li {
  padding: 0.5rem 0 0.5rem 1.3rem;
  position: relative;
  border-bottom: 1px dashed var(--line);
  font-size: 0.96rem;
}

.service-list li:last-child { border-bottom: none; }

.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1rem;
  width: 7px; height: 7px;
  background: var(--rust);
  border-radius: 50%;
}

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

.gallery-grid figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: var(--card);
}

.gallery-grid img { aspect-ratio: 1/1; object-fit: cover; }

.gallery-grid figcaption {
  padding: 0.6rem 0.75rem;
  font-size: 0.83rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

/* contact page */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.info-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }

.info-list li {
  display: flex;
  gap: 0.8rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.info-list .ic {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--parchment-deep);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.info-list a { text-decoration: none; color: var(--rust); font-weight: 600; }

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--rust);
  outline: none;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 1.5rem;
}

.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }

/* footer */
.site-footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 2.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.site-footer a { color: var(--rust); text-decoration: none; }

/* floating whatsapp button (mobile + desktop) */
.wa-float {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  background: var(--sage);
  color: #fff;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(42,33,24,0.28);
  z-index: 60;
  text-decoration: none;
  font-size: 1.5rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-block { grid-template-columns: 1fr; }
  .service-block.reverse .service-media { order: 0; }
  .contact-wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  .topbar, .contact-strip { display: flex; }
  .main { margin-left: 0; }
  .sidebar.open {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 100;
  }
  .grid-2, .values-grid { grid-template-columns: 1fr; }
  .quote-block { grid-template-columns: 1fr; text-align: left; }
  .quote-block img { margin-bottom: 0.4rem; }
}

@media (max-width: 560px) {
  .grid-3 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
