/*
Theme Name: Barrow Creek Showcase
Theme URI: https://barrowcreeksoftware.com/
Author: Barrow Creek Software
Description: Complete Barrow Creek showcase with bundled logo and eight-image product slideshows.
Version: 2.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: barrow-creek
*/

:root {
  --navy: #102c51;
  --blue: #176592;
  --teal: #27aeb5;
  --ink: #10213b;
  --muted: #5d6c7d;
  --paper: #f5f8fa;
  --white: #fff;
  --border: #dce5eb;
  --shadow: 0 20px 48px rgba(16, 44, 81, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--blue); }
a:hover { color: var(--teal); }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 18px; clip: auto; background: var(--white); }
.site-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { background: var(--white); }
.brand-link { display: flex; justify-content: center; padding: 6px 0; }
.brand-logo { width: min(1025px, 94vw); max-height: 210px; object-fit: contain; object-position: center; }
.brand-name { margin: 0; padding: 32px 20px; color: var(--navy); font-size: clamp(1.6rem, 4vw, 3rem); letter-spacing: .08em; text-align: center; text-transform: uppercase; }

.site-navigation { position: relative; z-index: 10; background: var(--navy); box-shadow: 0 5px 15px rgba(6, 23, 43, .18); }
.menu-toggle { display: none; width: 100%; padding: 15px 20px; border: 0; color: var(--white); background: transparent; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.nav-list, .site-navigation .menu { display: flex; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.nav-list a, .site-navigation .menu a { display: block; padding: 17px clamp(14px, 2.4vw, 30px); color: var(--white); font-size: .88rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.external-link-icon { display: inline-block; width: .9em; height: .9em; margin-left: .42em; vertical-align: -.06em; }
.nav-list a:hover, .nav-list a:focus-visible, .site-navigation .menu a:hover, .site-navigation .menu a:focus-visible, .current-menu-item > a { color: var(--white); background: var(--blue); }

.hero { position: relative; overflow: hidden; padding: clamp(24px, 3.5vw, 46px) 0 clamp(28px, 4vw, 44px); color: var(--white); background: linear-gradient(135deg, #071b35 0%, var(--navy) 58%, #123d66 100%); text-align: center; }
.hero::before { position: absolute; inset: 0; content: ""; background: radial-gradient(circle at 15% 25%, rgba(39,174,181,.16), transparent 30%), radial-gradient(circle at 88% 80%, rgba(23,101,146,.2), transparent 32%); pointer-events: none; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { position: relative; max-width: 900px; margin: 0 auto 12px; color: var(--white); font-size: clamp(1.9rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; }
.hero-copy { position: relative; max-width: 710px; margin: 0 auto; color: rgba(255,255,255,.78); font-size: clamp(1rem, 2vw, 1.25rem); }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 18px 0 clamp(72px, 9vw, 120px); }
.product-card { position: relative; display: flex; min-height: clamp(350px, 35vw, 455px); overflow: hidden; border: 1px solid var(--border); border-radius: 20px; color: var(--ink); background: var(--white); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.product-card::before { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(5,21,41,.94) 0%, rgba(5,21,41,.78) 43%, rgba(5,21,41,.17) 78%, rgba(5,21,41,.06) 100%); }
.product-card::after { position: absolute; z-index: 1; right: -70px; bottom: -85px; width: 220px; height: 220px; border-radius: 50%; content: ""; background: var(--card-accent); opacity: .12; }
.product-card:hover, .product-card:focus-visible { color: var(--white); transform: translateY(-7px); box-shadow: 0 25px 58px rgba(16, 44, 81, .24); }
.product-slideshow { position: absolute; inset: 0; }
.product-card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: opacity 1s ease, transform 6.5s ease; }
.product-card__image.is-active { opacity: 1; transform: scale(1.035); }
.product-card__inner { position: relative; z-index: 2; display: flex; width: min(58%, 470px); flex-direction: column; align-items: flex-start; padding: clamp(30px, 5vw, 52px); }
.product-icon { display: grid; width: 58px; height: 58px; margin-bottom: 28px; place-items: center; border-radius: 16px; color: var(--white); background: var(--card-accent); font-size: 1.6rem; font-weight: 800; }
.product-card h2 { margin: 0 0 12px; color: var(--white); font-size: clamp(1.65rem, 3vw, 2.3rem); line-height: 1.15; }
.product-card p { margin: 0 0 28px; color: rgba(255,255,255,.82); }
.card-cta { margin-top: auto; color: #67dbe0; font-size: .86rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-cta::after { content: " \2192"; }
.product-card--mako { --card-accent: var(--teal); }
.product-card--watchman { --card-accent: var(--blue); }

.content-area { min-height: 50vh; padding: clamp(54px, 7vw, 90px) 0; }
.entry-card { padding: clamp(28px, 5vw, 58px); border: 1px solid var(--border); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.entry-title { margin-top: 0; color: var(--navy); line-height: 1.15; }
.site-footer { padding: 30px 0; color: rgba(255,255,255,.78); background: #091f3b; font-size: .9rem; text-align: center; }
.site-footer p { margin: 0; }

@media (max-width: 720px) {
  .site-shell { width: min(100% - 28px, 1180px); }
  .brand-link { padding: 4px 0; }
  .brand-logo { width: 96vw; max-height: 132px; }
  .menu-toggle { display: block; }
  .nav-list, .site-navigation .menu { display: none; flex-direction: column; align-items: stretch; }
  .site-navigation.is-open .nav-list, .site-navigation.is-open .menu { display: flex; }
  .nav-list a, .site-navigation .menu a { padding: 13px 20px; border-top: 1px solid rgba(255,255,255,.1); }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 390px; }
  .product-card::before { background: linear-gradient(0deg, rgba(5,21,41,.96) 0%, rgba(5,21,41,.76) 62%, rgba(5,21,41,.12) 100%); }
  .product-card__inner { width: 100%; justify-content: flex-end; padding: 28px; }
  .product-card__image { object-position: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .product-card__image:not(:first-child) { display: none; }
}
