/* -------------------------------
   Global variables & reset
---------------------------------*/
:root {
  --brand-primary: #0b3c7d;
  --brand-primary-soft: #e5f0ff;
  --brand-accent: #1b7ccc;
  --brand-accent-soft: #e0f7f2;
  --bg-page: #f4f6fb;
  --bg-header: #ffffff;
  --bg-footer: #0f172a;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-subtle: #e2e8f0;
  --radius-card: 12px;
  --shadow-card: 0 10px 25px rgba(15, 23, 42, 0.07);
  --max-width: 1180px;
  --watermark-text: "compliantlabels.com";
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
}

/* -------------------------------
   Site layout
---------------------------------*/

.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* -------------------------------
   Header, sticky with contact info
---------------------------------*/

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

/* Top contact bar with Michael's info */
.top-contact {
  background: var(--brand-primary);
  color: #e5f0ff;
  font-size: 0.78rem;
  padding: 0.35rem 1rem;
}

.top-contact-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.top-contact-inner span {
  white-space: nowrap;
}

.top-contact-inner a {
  color: #bfdbfe;
  text-decoration: none;
}

.top-contact-inner a:hover {
  text-decoration: underline;
}

/* Main nav bar */

.nav-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

/* Compliant Labels logo in header */
.brand img {
  height: 40px;
  width: auto;
  display: block;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.brand-text span {
  color: var(--brand-accent);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-main);
}

nav a:hover {
  color: var(--brand-primary);
}

nav a.active {
  font-weight: 600;
  color: var(--brand-primary);
}

.nav-cta a.primary {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-primary);
  color: white;
  font-weight: 600;
}

/* Green Gregory logo sizing */
.gg-logo {
  height: 40px;
  width: auto;
  display: block;
}

/* -------------------------------
   Hero & sections
---------------------------------*/

.hero {
  max-width: var(--max-width);
  margin: 1.8rem auto 1.5rem;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.8rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.small-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

/* Constrain hero image nicely */
.hero-media .image-frame img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
}

/* Generic section layout */

.section {
  max-width: var(--max-width);
  margin: 1.8rem auto;
  padding: 1.4rem 1rem;
}

.section-alt {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.section-header {
  margin-bottom: 1rem;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 0.4rem;
}

.section-header p {
  margin: 0.1rem 0;
  color: var(--text-muted);
}

/* Layout helpers */

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
}

.card,
.card-link .card {
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-subtle);
  padding: 0.9rem;
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-link {
  text-decoration: none;
  color: inherit;
}

.card-image {
  margin-bottom: 0.5rem;
}

/* Card images: uniform size */
.card-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
}

/* -------------------------------
   Content shell with sidebar
---------------------------------*/

.content-shell {
  max-width: var(--max-width);
  margin: 1.8rem auto;
  padding: 0 1rem 1.6rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
}

.sidebar {
  align-self: flex-start;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 0.85rem 0.9rem;
  box-shadow: var(--shadow-card);
}

.sidebar h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li + li {
  margin-top: 0.25rem;
}

.sidebar a {
  font-size: 0.88rem;
  color: var(--text-main);
  text-decoration: none;
}

.sidebar a.active {
  font-weight: 600;
  color: var(--brand-primary);
}

.content-main {
  background: transparent;
}

/* Breadcrumbs */

.breadcrumbs {
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--brand-accent);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* -------------------------------
   Images & watermark
---------------------------------*/

.image-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #020617;
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* Light "compliantlabels.com" watermark overlay */
.watermarked {
  position: relative;
}

.watermarked::after {
  content: var(--watermark-text);
  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 2px 6px;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: rgba(248, 250, 252, 0.75);
  background: rgba(15, 23, 42, 0.35);
  border-radius: 999px;
  pointer-events: none;
}

/* -------------------------------
   Typography lists / misc
---------------------------------*/

.list {
  padding-left: 1.1rem;
  margin: 0.4rem 0;
}

.list li {
  margin-bottom: 0.25rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.86rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn.primary {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
}

.btn.secondary {
  background: #ffffff;
  color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn.ghost {
  background: transparent;
  color: var(--brand-primary);
  border-color: transparent;
}

/* Contact form */

.contact-form {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  font-size: 0.9rem;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  font-family: inherit;
}

/* -------------------------------
   Footer
---------------------------------*/

footer {
  background: var(--bg-footer);
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.7rem 1rem;
  text-align: center;
}

footer a {
  color: #93c5fd;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* -------------------------------
   Responsive tweaks
---------------------------------*/

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    order: -1;
  }

  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 0.7rem;
  }
}
