/*
Theme Name: Containers Haven
Theme URI: https://containershaven.com
Author: Containers Haven
Description: Industrial storefront for shipping container homes.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: containers-haven
*/

:root {
  --ch-ink: #12181f;
  --ch-steel: #2a3441;
  --ch-mist: #d7dde5;
  --ch-sand: #e8e2d6;
  --ch-accent: #d97706;
  --ch-accent-deep: #b45309;
  --ch-paper: #eef2f6;
  --ch-white: #f8fafc;
  --ch-line: rgba(18, 24, 31, 0.12);
  --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "DM Sans", "Segoe UI", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ch-ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(217, 119, 6, 0.10), transparent 55%),
    linear-gradient(180deg, #e7edf3 0%, var(--ch-paper) 42%, #e3e9f0 100%);
  font-family: var(--font-body);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ch-accent-deep); }

.ch-wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  color: var(--ch-white);
}

.site-header a { text-decoration: none; color: inherit; }
.brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav {
  display: flex;
  gap: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a { opacity: 0.92; }
.nav a:hover { opacity: 1; color: #fff; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--ch-white);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 14, 18, 0.25) 0%, rgba(10, 14, 18, 0.72) 100%),
    url("assets/hero.jpg") center/cover no-repeat,
    linear-gradient(135deg, #1c2733, #3a4654);
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-content {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 4.5rem;
  max-width: 38rem;
  animation: riseIn 900ms ease both;
}

.hero h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 10vw, 6.4rem);
  letter-spacing: 0.03em;
  line-height: 0.92;
  font-weight: 400;
}

.hero p {
  margin: 0 0 1.4rem;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  max-width: 32rem;
  color: rgba(255, 253, 248, 0.9);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-1px); color: inherit; }
.btn-primary {
  background: var(--ch-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--ch-accent-deep); color: #fff; }
.btn-ghost {
  border-color: rgba(255,255,255,0.45);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

.section {
  padding: 4.5rem 0;
}
.section h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 0.03em;
  line-height: 1;
}
.section .lede {
  margin: 0 0 2rem;
  font-family: var(--font-ui);
  color: var(--ch-steel);
  max-width: 36rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.product-tile {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.product-tile img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  background: #cfd5dc;
  filter: saturate(0.92);
  transition: transform 400ms ease, filter 400ms ease;
}
.product-tile:hover img {
  transform: scale(1.02);
  filter: saturate(1.05);
}
.product-tile h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}
.product-tile .price {
  font-family: var(--font-ui);
  color: var(--ch-accent-deep);
  font-weight: 700;
}

.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

.panel {
  padding: 1.5rem 0;
  border-top: 1px solid var(--ch-line);
}
.panel p { margin: 0.4rem 0; font-family: var(--font-ui); }
.panel strong { font-family: var(--font-ui); }

.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 3rem;
  background: var(--ch-ink);
  color: rgba(255,253,248,0.86);
}
.site-footer .brand { color: #fff; margin-bottom: 0.75rem; }
.site-footer p { margin: 0.35rem 0; font-family: var(--font-ui); font-size: 0.95rem; }
.site-footer a { color: #fff; }

/* WooCommerce light restyle */
.woocommerce ul.products,
.woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products li.product {
  float: none;
  width: auto !important;
  margin: 0 !important;
}
.woocommerce ul.products li.product a img {
  margin-bottom: 0.75rem;
}
.woocommerce div.product .product_title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.03em;
}
.woocommerce span.onsale { background: var(--ch-accent); }

.page-shell {
  padding: 7rem 0 4rem;
}
.page-shell h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .hero-content { margin-bottom: 3rem; }
}
