/* ============================================================
   THEHYDROPONICS.COMPANY — Shared Asset Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --blue-deep:    #0a1628;
  --blue-mid:     #1a3a6e;
  --blue-bright:  #1d6fcf;
  --blue-light:   #e8f1fb;
  --green-accent: #2d9e5f;
  --green-light:  #e6f7ee;
  --white:        #ffffff;
  --off-white:    #f8fafd;
  --grey-light:   #eef1f6;
  --grey-mid:     #8a94a6;
  --grey-dark:    #3a4255;
  --black:        #111827;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-sm:    0 2px 8px rgba(10,22,40,0.08);
  --shadow-md:    0 8px 32px rgba(10,22,40,0.12);
  --shadow-lg:    0 20px 60px rgba(10,22,40,0.18);
  --transition:   0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Shared Blog Article Styles ── */
.blog-article { max-width: 780px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.blog-article h2 { font-family: var(--font-display); font-size: 1.8rem; color: var(--blue-deep); margin: 2rem 0 0.75rem; }
.blog-article h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--blue-mid); margin: 1.5rem 0 0.5rem; }
.blog-article p  { margin: 0 0 1.2rem; }
.blog-article ul, .blog-article ol { padding-left: 1.5rem; margin: 0 0 1.2rem; }
.blog-article li { margin-bottom: 0.4rem; }
.blog-article strong { color: var(--blue-deep); font-weight: 600; }
.blog-article blockquote { border-left: 4px solid var(--blue-bright); padding: 0.75rem 1.25rem; background: var(--blue-light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; color: var(--grey-dark); font-style: italic; }

/* ── Shared Nav ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-nav.scrolled {
  background: rgba(10,22,40,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.site-nav .nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 72px;
}
.site-nav .nav-logo {
  font-family: var(--font-display); font-size: 1.35rem;
  color: var(--white); letter-spacing: -0.02em; white-space: nowrap;
}
.site-nav .nav-logo span { color: var(--green-accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em; transition: color var(--transition); }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* Mobile overlay nav */
.mobile-nav-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: var(--blue-deep);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; opacity: 0; transition: opacity 0.3s;
}
.mobile-nav-overlay.open { display: flex; opacity: 1; }
.mobile-nav-overlay a {
  color: var(--white); font-size: 1.5rem; font-family: var(--font-display);
  padding: 0.75rem 2rem; min-height: 52px; display: flex; align-items: center;
}
.mobile-nav-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; }

/* ── Shared Footer ── */
.site-footer {
  background: var(--blue-deep); color: rgba(255,255,255,0.7);
  padding: 4rem 2rem 2rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .footer-logo { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: 1rem; }
.footer-brand .footer-logo span { color: var(--green-accent); }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); }

/* ── Sticky CTA ── */
.sticky-cta {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 998;
  background: var(--green-accent); color: var(--white);
  padding: 0.85rem 1.75rem; border-radius: 50px;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.05em;
  box-shadow: 0 8px 30px rgba(45,158,95,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 52px; display: flex; align-items: center;
}
.sticky-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(45,158,95,0.55); text-decoration: none; color: var(--white); }

/* ── Blog Archive Card ── */
.blog-card {
  background: var(--white); border-radius: var(--radius-md);
  border: 1px solid var(--grey-light);
  padding: 1.5rem; transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card .card-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--blue-deep); margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card .card-date { font-size: 0.8rem; color: var(--grey-mid); margin-bottom: 0.75rem; }
.blog-card .card-excerpt { font-size: 0.9rem; color: var(--grey-dark); line-height: 1.55; }
.blog-card a { color: inherit; display: block; }
.blog-card a:hover { text-decoration: none; }
.blog-card .read-more { display: inline-block; margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--blue-bright); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .blog-article { padding: 1.25rem 1rem 3rem; }
  .blog-article h2 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
