/* Devon Pet Food — shared stylesheet */

:root {
  --forest: #26392f;
  --forest-light: #34503f;
  --sage: #6b8f71;
  --cream: #faf7f0;
  --cream-dark: #f1ece0;
  --tan: #c9a15a;
  --ink: #23281f;
  --grey: #6b6b63;
  --border: #e3ddcc;
  --radius: 10px;
  --max-width: 1160px;
  --shadow: 0 10px 30px rgba(38, 57, 47, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 400;
}

h1 { font-size: 2.75rem; letter-spacing: -0.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink); }

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

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

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--forest);
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-mark img { width: 100%; height: 100%; display: block; }

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}
.logo-text span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--forest);
  border-bottom-color: var(--tan);
}

.header-cta {
  display: inline-block;
  background: var(--forest);
  color: var(--cream) !important;
  text-decoration: none;
  padding: 11px 22px;
  border-radius: 30px;
  font-size: 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
}
.header-cta:hover { background: var(--forest-light); }

.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-light); }
.btn-outline { border-color: var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-light { background: var(--cream); color: var(--forest); }
.btn-light:hover { background: var(--cream-dark); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(120deg, rgba(29, 44, 35, 0.88) 0%, rgba(29, 44, 35, 0.55) 55%, rgba(29, 44, 35, 0.3) 100%),
    url("../images/hero-beach-dog.jpg");
  background-size: cover;
  background-position: center 65%;
  color: var(--cream);
  padding: 96px 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--tan);
  margin-bottom: 18px;
}
.hero h1 { color: var(--cream); }
.hero p.lead {
  font-size: 1.15rem;
  color: #d9e2da;
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-panel {
  background: rgba(250, 247, 240, 0.06);
  border: 1px solid rgba(250, 247, 240, 0.18);
  border-radius: var(--radius);
  padding: 34px;
}
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(250, 247, 240, 0.14);
  font-size: 0.92rem;
  color: #cdd6cd;
}
.hero-panel li:last-child { border-bottom: none; }
.hero-panel li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--tan);
  font-weight: 600;
  font-size: 0.98rem;
}

/* ---------- Photo band (full-width image strip) ---------- */
.photo-band {
  height: 380px;
  background-size: cover;
  background-position: center 55%;
  background-repeat: no-repeat;
}
@media (max-width: 680px) {
  .photo-band { height: 240px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: var(--forest);
  color: var(--cream);
  padding: 66px 0 56px;
}
.page-hero.page-hero-tall { padding: 150px 0 130px; }
@media (max-width: 680px) {
  .page-hero.page-hero-tall { padding: 90px 0 70px; }
}
.page-hero h1 { color: var(--cream); margin-bottom: 10px; }
.page-hero p { color: #d9e2da; max-width: 60ch; }
.breadcrumb {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--tan);
  margin-bottom: 14px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 60px 0; }
.section-alt { background: var(--cream-dark); }
.section-forest { background: var(--forest); color: var(--cream); }
.section-forest h2, .section-forest h3 { color: var(--cream); }

.section-head { max-width: 640px; margin: 0 auto 50px; text-align: center; }
.section-head .hero-eyebrow { text-align: center; }
.section-head.left { margin-left: 0; margin-right: auto; text-align: left; }
.section-head.left .hero-eyebrow { text-align: left; }

/* ---------- Grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; stroke: var(--forest); }

/* ---------- Product cards ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-thumb {
  height: 150px;
  background: linear-gradient(135deg, var(--sage), var(--forest));
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb svg { width: 46px; height: 46px; stroke: var(--cream); }
.product-thumb.has-image {
  background: var(--cream-dark);
  padding: 6px;
  height: 210px;
}
.product-thumb.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { margin-bottom: 8px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 16px; }
.tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--cream-dark);
  color: var(--forest);
  padding: 5px 10px;
  border-radius: 20px;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--tan);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, serif;
  font-size: 1.1rem;
}

/* ---------- Process infographic ---------- */
.process-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.process-flow::before {
  content: '';
  position: absolute;
  top: 46px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 6px;
}
.process-icon {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--tan);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-icon svg { width: 36px; height: 36px; stroke: var(--forest); }
.process-icon .process-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--grey); }

@media (max-width: 900px) {
  .process-flow { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .process-flow::before { display: none; }
}
@media (max-width: 560px) {
  .process-flow { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat h3 { font-size: 2.2rem; color: var(--tan); margin-bottom: 4px; }
.stat p { color: #cdd6cd; margin: 0; font-size: 0.9rem; }

/* ---------- Table ---------- */
table.spec-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
table.spec-table th, table.spec-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
table.spec-table th { background: var(--cream-dark); color: var(--forest); font-weight: 600; }
table.spec-table tr:last-child td { border-bottom: none; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.85rem; color: var(--grey); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--sage); outline-offset: 1px; }

.contact-info-card {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 34px;
}
.contact-info-card h3 { color: var(--cream); }
.contact-info-card .row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(250,247,240,0.15); }
.contact-info-card .row:last-child { border-bottom: none; }
.contact-info-card .row svg { width: 20px; height: 20px; stroke: var(--tan); flex-shrink: 0; margin-top: 2px; }
.contact-info-card small { color: #cdd6cd; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--tan);
  color: var(--forest);
  border-radius: var(--radius);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { margin: 0; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #1d2c23;
  color: #cdd6cd;
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(250,247,240,0.12);
}
.footer-grid h4 { color: var(--cream); font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid a { text-decoration: none; color: #cdd6cd; }
.footer-grid a:hover { color: var(--tan); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #93a093;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  h1 { font-size: 2.1rem; }
  nav.main-nav { display: none; }
  .header-cta { padding: 9px 16px; font-size: 0.82rem; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .cta-band { flex-direction: column; text-align: center; }
}
