:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #f1eee5;
  --primary: #54593d;
  --primary-dark: #3e4330;
  --accent: #a3682b;
  --text: #323726;
  --muted: #6b7157;
  --border: #ddd5c8;
  --shadow: 0 18px 45px rgba(62, 67, 48, 0.08);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.brand-tag {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  font-weight: 600;
  color: var(--muted);
  position: relative;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--primary-dark);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.25s ease;
  cursor: pointer;
}

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

.button-dark {
  background: var(--primary);
  color: #fff;
}

.button-dark:hover { background: var(--primary-dark); }

.button-accent {
  background: var(--accent);
  color: #fff;
}

.button-accent:hover { opacity: 0.95; }

.button-light {
  background: #fff;
  border-color: var(--border);
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
}

.hero {
  padding: 70px 0 40px;
  background:
    radial-gradient(circle at top left, rgba(163,104,43,0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(84,89,61,0.18), transparent 35%);
}

.hero-grid,
.split-grid,
.contact-grid,
.about-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-grid { grid-template-columns: 1.08fr 0.92fr; }

.badge,
.eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #76805a;
}

.hero h1,
.page-banner h1,
.section-heading h2,
.cta-panel h2,
.content-block h2 {
  font-family: 'Playfair Display', serif;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--primary-dark);
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  margin: 18px 0;
}

.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-cards,
.mini-cards,
.product-grid,
.strength-grid,
.service-grid,
.stats-grid {
  display: grid;
  gap: 18px;
}

.hero-cards {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
}

.card,
.feature-card,
.product-card,
.service-card,
.contact-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card { padding: 20px; }

.card h3,
.feature-card h3,
.product-card h3,
.service-card h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
}

.card p,
.feature-card p,
.product-card p,
.service-card p,
.content-card p {
  margin: 0;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 38px;
  padding: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top center;
  border-radius: 30px;
}

.section { padding: 80px 0; }

.section.alt {
  background: rgba(255,255,255,0.7);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.03rem;
}

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

.stat-box {
  background: #faf8f2;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 22px;
}

.stat-box strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #7f8564;
}

.stat-box span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.about-grid { grid-template-columns: 0.95fr 1.05fr; }

.rounded-image {
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid var(--border);
  padding: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.rounded-image img {
  border-radius: 28px;
  min-height: 430px;
  object-fit: cover;
  width: 100%;
}

.mini-cards {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.mini-card-dark {
  background: var(--primary);
  color: #fff;
}

.mini-card-dark p { color: #ece4d6; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.service-card,
.contact-card,
.content-card {
  padding: 26px;
}

.product-showcase {
  background: var(--primary);
  color: #fff;
}

.product-showcase .section-heading h2,
.product-showcase .section-heading p {
  color: #fff;
}

.product-showcase .eyebrow {
  background: rgba(255,255,255,0.12);
  color: #ebddca;
  border-color: rgba(255,255,255,0.14);
}

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

.product-card {
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.1);
  box-shadow: none;
}

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

.product-card .content { padding: 22px; }

.product-card p { color: #eee6da; }

.product-card .button {
  margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}

.product-card .button:hover {
  background: #fff;
  color: var(--primary);
}

.page-banner {
  padding: 70px 0 40px;
  background: linear-gradient(180deg, rgba(84,89,61,0.08), rgba(163,104,43,0.05));
}

.page-banner h1 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  margin: 18px 0 12px;
}

.page-banner p {
  color: var(--muted);
  max-width: 760px;
}

.content-block { max-width: 820px; }

.content-block p {
  color: var(--muted);
  font-size: 1.03rem;
}

.products-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-tile {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-tile img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.product-tile .content { padding: 22px; }

.contact-grid { grid-template-columns: 0.95fr 1.05fr; }

.contact-panel {
  background: var(--primary-dark);
  color: #fff;
  border-radius: 36px;
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  color: #fff;
  margin-top: 12px;
}

.contact-panel p,
.contact-panel li {
  color: #ece4d6;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fcfbf7;
  font: inherit;
  color: var(--text);
  outline: none;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

.flash-success,
.flash-error {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 600;
}

.flash-success {
  background: #e8f4ea;
  color: #1f6a31;
}

.flash-error {
  background: #f9e8e8;
  color: #9b2c2c;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid #eee8db;
  text-align: left;
  vertical-align: top;
}

th {
  background: #faf8f2;
  color: var(--primary-dark);
  font-size: 0.95rem;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--primary-dark);
  color: #fff;
  padding: 28px 22px;
}

.admin-sidebar a {
  display: block;
  color: #ebe2d5;
  padding: 12px 14px;
  border-radius: 14px;
  margin-top: 6px;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,0.1);
}

.admin-main {
  padding: 34px;
  background: #f7f4ed;
}

.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 24px;
  padding: 44px 0 30px;
}

.footer-brand {
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.16em;
}

.site-footer h4 {
  margin-top: 0;
  color: var(--primary-dark);
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 1100px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .stats-grid,
  .feature-grid,
  .product-grid,
  .products-layout {
    grid-template-columns: 1fr 1fr;
  }

  .hero-cards { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
  }

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

  .menu-toggle { display: block; }

  .header-cta { display: none; }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .stats-grid,
  .feature-grid,
  .product-grid,
  .products-layout,
  .footer-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    height: 420px;
  }

  .mini-cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-main { padding: 22px; }

  .admin-top,
  .footer-bottom,
  .header-wrap {
    flex-wrap: wrap;
  }
}