/*
Theme Name: CRESCO Enterprises
Theme URI: https://crescoent.com
Author: Codex
Description: Custom installable WordPress theme for CRESCO ENTERPRISES, built for B2B export verticals: spices, surgical instruments, and mineral ores.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cresco-enterprises
*/

:root {
  --cresco-green: #58b917;
  --cresco-deep: #123c2f;
  --cresco-ink: #17201d;
  --cresco-muted: #66736d;
  --cresco-line: #dce4df;
  --cresco-soft: #f5f8f4;
  --cresco-saffron: #d68b18;
  --cresco-steel: #416d88;
  --cresco-copper: #9b5a32;
  --cresco-white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 60, 47, .12);
  --radius: 8px;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cresco-ink);
  background: var(--cresco-white);
  font-family: var(--font-body, Manrope, Inter, system-ui, sans-serif);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--cresco-line);
  backdrop-filter: blur(14px);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand img { width: 92px; max-height: 56px; object-fit: contain; }
.brand span { display: none; }
.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #294039;
  font-size: 14px;
  font-weight: 700;
}
.menu a:hover { color: var(--cresco-green); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn,
button.btn,
input[type="submit"] {
  border: 0;
  border-radius: var(--radius);
  padding: 12px 17px;
  background: var(--cresco-green);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
}
.btn.secondary { background: #ecf4e9; color: var(--cresco-deep); }
.btn.dark { background: var(--cresco-deep); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.icon-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--cresco-line); background: #fff; border-radius: var(--radius); }

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(18,60,47,.94), rgba(18,60,47,.72) 48%, rgba(88,185,23,.18)),
    url("assets/images/hero-trade.svg") center/cover no-repeat;
  color: #fff;
}
.hero .wrap { padding: 70px 0 96px; }
.eyebrow { color: #b9ef8d; font-weight: 900; text-transform: uppercase; font-size: 13px; letter-spacing: .11em; }
h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(42px, 8vw, 90px); max-width: 980px; margin-top: 12px; }
.hero p { max-width: 710px; font-size: clamp(18px, 2vw, 23px); color: rgba(255,255,255,.86); }
.hero-tagline {
  margin-top: 14px;
  max-width: 760px;
  color: #dfffbf;
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 900;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-panel {
  position: absolute;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 24px;
  width: min(560px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric { padding: 18px; border-right: 1px solid rgba(255,255,255,.22); }
.metric:last-child { border-right: 0; }
.metric b { display: block; font-size: 24px; }
.metric span { display: block; color: rgba(255,255,255,.78); font-size: 13px; }

section { padding: 82px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(30px, 4vw, 56px); max-width: 820px; }
.section-head p { max-width: 460px; color: var(--cresco-muted); margin: 0; }
.trust-band { padding: 22px 0; border-bottom: 1px solid var(--cresco-line); background: #fbfdfb; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.trust-list li { border: 1px solid var(--cresco-line); border-radius: 999px; padding: 8px 13px; color: #40534d; font-size: 13px; font-weight: 800; background: #fff; }

.vertical-grid,
.product-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.vertical,
.product-card,
.feature {
  border: 1px solid var(--cresco-line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.vertical { display: grid; min-height: 470px; }
.vertical-art,
.product-art {
  min-height: 215px;
  background: var(--art), #eef4ef;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.vertical-art img,
.product-art img,
.single-art img,
.about-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.vertical-body,
.product-body,
.feature { padding: 24px; }
.vertical h3,
.product-card h3 { font-size: 26px; margin-bottom: 10px; }
.vertical p,
.product-card p,
.feature p { color: var(--cresco-muted); margin: 0 0 18px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag { border-radius: 999px; background: var(--cresco-soft); color: #40534d; padding: 7px 10px; font-size: 12px; font-weight: 800; }
.vertical:hover,
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.band { background: var(--cresco-soft); border-block: 1px solid var(--cresco-line); }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.milestone { padding: 18px; border-left: 4px solid var(--cresco-green); background: #fff; border-radius: var(--radius); min-height: 130px; }
.milestone b { display: block; font-size: 22px; color: var(--cresco-deep); }
.milestone span { color: var(--cresco-muted); font-size: 14px; }

.spec-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius); }
.spec-table th,
.spec-table td { padding: 13px 14px; border-bottom: 1px solid var(--cresco-line); text-align: left; }
.spec-table th { background: var(--cresco-deep); color: #fff; }
.spec-table td { background: #fff; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.panel { border: 1px solid var(--cresco-line); border-radius: var(--radius); background: #fff; padding: 26px; box-shadow: var(--shadow); }
.panel h2 { font-size: clamp(28px, 3vw, 46px); margin-bottom: 14px; }
.panel p { color: var(--cresco-muted); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-item { border: 1px solid var(--cresco-line); border-radius: var(--radius); padding: 22px; background: #fff; }
.contact-item b { display: block; margin-bottom: 6px; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 22, 18, .68);
}
.modal.is-open { display: flex; }
.modal-card { width: min(560px, 100%); background: #fff; border-radius: var(--radius); padding: 26px; position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid var(--cresco-line); border-radius: var(--radius); background: #fff; cursor: pointer; }
.field { display: grid; gap: 7px; margin: 14px 0; }
.field label { font-weight: 800; font-size: 14px; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--cresco-line);
  border-radius: var(--radius);
  padding: 12px 13px;
  font: inherit;
}
.field input[readonly] { background: #f1f5f2; color: #50615b; }
.form-status { margin-top: 12px; font-weight: 800; }
.footer { background: #10241d; color: rgba(255,255,255,.8); padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; }
.footer h3 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer a { display: block; margin: 7px 0; }
.copyright { margin-top: 34px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; font-size: 13px; }

.archive-hero,
.single-hero { padding: 76px 0; background: var(--cresco-soft); border-bottom: 1px solid var(--cresco-line); }
.archive-hero {
  background:
    linear-gradient(110deg, rgba(18,60,47,.94), rgba(18,60,47,.74)),
    url("assets/images/photos/spices-warehouse.jpg") center/cover no-repeat;
  color: #fff;
}
.archive-hero p { color: rgba(255,255,255,.86); max-width: 760px; }
.archive-hero h1,
.single-hero h1 { font-size: clamp(36px, 5vw, 72px); }
.single-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 34px; align-items: start; }
.single-art { border-radius: var(--radius); min-height: 430px; background: var(--art), #eef4ef; background-size: cover; background-position: center; border: 1px solid var(--cresco-line); overflow: hidden; }
.breadcrumbs { color: var(--cresco-muted); font-weight: 800; font-size: 13px; margin-bottom: 12px; }
.source-note { margin-top: 18px; color: var(--cresco-muted); font-size: 13px; font-style: italic; }
.about-hero {
  padding: 82px 0;
  background:
    linear-gradient(110deg, rgba(18,60,47,.94), rgba(18,60,47,.72)),
    url("assets/images/hero-trade.svg") center/cover no-repeat;
  color: #fff;
}
.about-hero h1 { font-size: clamp(36px, 5vw, 72px); }
.about-hero p { color: rgba(255,255,255,.84); font-size: 21px; max-width: 680px; }
.about-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about-tile {
  min-height: 190px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.about-tile.spices { background-image: url("assets/images/photos/spices-warehouse.jpg"); }
.about-tile.surgical { background-image: url("assets/images/photos/surgical-tray.jpg"); }
.about-tile.minerals { grid-column: span 2; background-image: url("assets/images/photos/minerals-logistics.jpg"); }
.about-facts { grid-template-columns: 1fr; }
.panel ul { padding-left: 20px; color: var(--cresco-muted); }
.panel li { margin: 8px 0; }

@media (max-width: 900px) {
  .icon-btn { display: inline-grid; place-items: center; }
  .menu { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--cresco-line); }
  .menu.is-open { display: grid; }
  .nav-actions .btn.secondary { display: none; }
  .hero { min-height: 760px; }
  .hero-panel { position: static; margin: -78px auto 22px; grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .vertical-grid,
  .product-grid,
  .feature-grid,
  .timeline,
  .split,
  .single-layout,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 28px, 1180px); }
  section { padding: 58px 0; }
  .nav { min-height: 68px; }
  .brand img { width: 76px; }
  .menu { top: 68px; }
  .hero .wrap { padding-top: 42px; }
  .hero-actions .btn { width: 100%; }
}
