/* ==========================================================================
   GardenResearch.com — Bootstrap 5 custom styles
   ========================================================================== */

/* -- CSS Custom Properties (Design Tokens) -- */
:root {
  --gr-primary: #2d6a4f;
  --gr-primary-dark: #1b4332;
  --gr-primary-light: #74c69d;
  --gr-accent: #d4a843;
  --gr-accent-hover: #c49a35;
  --gr-neutral-dark: #212529;
  --gr-neutral-light: #f8f9fa;
  --gr-data-teal: #2a9d8f;
  --gr-data-gold: #e9c46a;
  --gr-body-font: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gr-heading-font: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* -- Base -- */
body {
  padding-top: 72px;
  font-family: var(--gr-body-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gr-neutral-dark);
}

/* -- Typography -- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--gr-heading-font);
  font-weight: 600;
  color: var(--gr-primary-dark);
}

h1 { font-size: 2.25rem; }  /* 36px */
h2 { font-size: 1.75rem; }  /* 28px */
h3 { font-size: 1.375rem; } /* 22px */

a {
  color: var(--gr-primary);
  text-decoration: none;
}
a:hover {
  color: var(--gr-primary-dark);
  text-decoration: underline;
}

/* -- Navbar -- */
.navbar-gr {
  background-color: var(--gr-primary-dark);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.navbar-gr .navbar-brand {
  font-family: var(--gr-heading-font);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.navbar-gr .nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.15s;
}
.navbar-gr .nav-link:hover,
.navbar-gr .nav-link:focus {
  color: #fff;
}
.navbar-gr .dropdown-menu {
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  border-radius: 0.5rem;
}
.navbar-gr .dropdown-item:hover {
  background-color: var(--gr-neutral-light);
  color: var(--gr-primary);
}

/* -- Header Banner -- */
.gr-header-banner {
  background-color: #fff;
  padding: 1.5rem 0;
  border-bottom: 3px solid var(--gr-primary-light);
}

/* -- Hero Section (Homepage) -- */
.gr-hero {
  background: linear-gradient(135deg, var(--gr-primary-dark) 0%, var(--gr-primary) 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.gr-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}
.gr-hero .lead {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2rem;
}
@media (max-width: 767.98px) {
  .gr-hero h1 { font-size: 1.75rem; }
  .gr-hero .lead { font-size: 1.05rem; }
  .gr-hero { padding: 2.5rem 0 2rem; }
}

/* -- Credibility Bar -- */
.gr-credibility {
  background-color: var(--gr-neutral-light);
  border-bottom: 1px solid #e9ecef;
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #6c757d;
  letter-spacing: 0.02em;
}
.gr-credibility strong {
  color: var(--gr-neutral-dark);
}

/* -- Announcement Strip (Coming Soon) -- */
.gr-announce {
  background: linear-gradient(90deg, var(--gr-accent) 0%, #e0b85a 100%);
  color: var(--gr-neutral-dark);
  padding: 0.65rem 0;
  text-align: center;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gr-announce-badge {
  display: inline-block;
  background-color: var(--gr-primary-dark);
  color: #fff;
  font-family: var(--gr-heading-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 0.25rem;
  margin-right: 0.65rem;
  vertical-align: middle;
}
.gr-announce-text {
  vertical-align: middle;
}
.gr-announce-link {
  display: inline-block;
  margin-left: 0.75rem;
  font-weight: 600;
  color: var(--gr-primary-dark);
  text-decoration: none;
  vertical-align: middle;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.gr-announce-link:hover {
  color: var(--gr-primary-dark);
  text-decoration: none;
  border-bottom-color: var(--gr-primary-dark);
}
@media (max-width: 575.98px) {
  .gr-announce { font-size: 0.875rem; padding: 0.6rem 0.75rem; }
  .gr-announce-badge { display: block; margin: 0 auto 0.35rem; }
  .gr-announce-link { display: block; margin: 0.25rem 0 0; }
}

/* -- Coming Soon Preview -- */
#coming-soon { scroll-margin-top: 96px; }
.gr-coming-badge {
  display: inline-block;
  background-color: var(--gr-accent);
  color: var(--gr-primary-dark);
  font-family: var(--gr-heading-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 1rem;
  margin-bottom: 0.85rem;
}
.gr-preview-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-top: 4px solid var(--gr-accent);
  border-radius: 0.75rem;
  padding: 2rem 1.75rem;
  height: 100%;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gr-preview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.gr-preview-tag {
  font-family: var(--gr-heading-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gr-data-teal);
  margin-bottom: 0.5rem;
}
.gr-preview-card h3 {
  margin-bottom: 0.75rem;
}
.gr-preview-card ul {
  padding-left: 1.1rem;
  color: #495057;
}
.gr-preview-card ul li {
  margin-bottom: 0.35rem;
}

/* -- Stat Cards -- */
.gr-stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid #e9ecef;
  transition: transform 0.15s, box-shadow 0.15s;
}
.gr-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.gr-stat-number {
  font-family: var(--gr-heading-font);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gr-primary);
  line-height: 1.1;
}
.gr-stat-label {
  font-size: 0.95rem;
  color: #6c757d;
  margin-top: 0.5rem;
}
.gr-stat-trend {
  font-size: 0.85rem;
  color: var(--gr-data-teal);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* -- Section Styling -- */
.gr-section {
  padding: 3.5rem 0;
}
.gr-section-alt {
  background-color: var(--gr-neutral-light);
}
.gr-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.gr-section-title h2 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.gr-section-title p {
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
}

/* -- Report Cards -- */
.gr-report-card {
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #fff;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.gr-report-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
.gr-report-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.gr-report-card .card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.gr-report-card .card-body h5 {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.gr-report-card .card-body p {
  font-size: 0.9rem;
  color: #6c757d;
  flex: 1;
}

/* Featured report card — wider/taller treatment */
.gr-report-featured {
  border: 2px solid var(--gr-primary-light);
}
.gr-report-featured .badge-featured {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--gr-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* -- CTA Sections -- */
.gr-cta {
  background: linear-gradient(135deg, var(--gr-primary) 0%, var(--gr-primary-dark) 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.gr-cta h2 {
  color: #fff;
  font-weight: 700;
}
.gr-cta p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* -- Buttons -- */
.btn-primary {
  background-color: var(--gr-primary);
  border-color: var(--gr-primary);
}
.btn-primary:hover {
  background-color: var(--gr-primary-dark);
  border-color: var(--gr-primary-dark);
}
.btn-accent {
  background-color: var(--gr-accent);
  border-color: var(--gr-accent);
  color: #fff;
  font-weight: 600;
}
.btn-accent:hover {
  background-color: var(--gr-accent-hover);
  border-color: var(--gr-accent-hover);
  color: #fff;
}
.btn-outline-light:hover {
  color: var(--gr-primary-dark);
}

/* -- Product Pages -- */
.product-carousel-img {
  max-height: 550px;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
}
.product-thumbs img.product-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: border-color 0.15s;
}
.product-thumbs img.product-thumb.active,
.product-thumbs img.product-thumb:hover {
  border-color: var(--gr-primary);
}
.product-description {
  font-size: 0.95rem;
  line-height: 1.7;
}
.product-description img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

/* -- About Page -- */
.gr-staff-card {
  text-align: center;
  padding: 1.5rem;
}
.gr-staff-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--gr-primary-light);
  margin-bottom: 1rem;
}
.gr-staff-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.gr-staff-card .role {
  color: var(--gr-primary);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.gr-timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--gr-primary-light);
}
.gr-timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.gr-timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--gr-primary);
  border-radius: 50%;
  border: 2px solid #fff;
}
.gr-timeline-item h5 {
  font-weight: 700;
  color: var(--gr-primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.gr-timeline-item p {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

.gr-memorial {
  background-color: var(--gr-neutral-light);
  border-left: 4px solid var(--gr-primary-light);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

/* -- Contact Form -- */
.gr-contact-form .form-label {
  font-weight: 500;
}
.gr-contact-form .form-control:focus {
  border-color: var(--gr-primary-light);
  box-shadow: 0 0 0 0.2rem rgba(45, 106, 79, 0.15);
}

/* -- Custom Services -- */
.gr-service-item {
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #e9ecef;
  height: 100%;
  transition: box-shadow 0.15s;
}
.gr-service-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.gr-service-icon {
  width: 48px;
  height: 48px;
  background-color: var(--gr-primary);
  color: #fff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* -- Report Archive Table -- */
.gr-archive-table td,
.gr-archive-table th {
  vertical-align: middle;
}
.gr-archive-table a {
  font-weight: 500;
}

/* -- Footer -- */
.gr-footer {
  background-color: var(--gr-primary-dark);
  color: rgba(255, 255, 255, 0.8);
}
.gr-footer h6 {
  color: #fff;
}
.gr-footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s;
}
.gr-footer a:hover {
  color: #fff;
  text-decoration: none;
}
.gr-footer .border-top {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* -- Utilities -- */
.text-primary { color: var(--gr-primary) !important; }
.text-accent { color: var(--gr-accent) !important; }
.bg-primary-gradient {
  background: linear-gradient(135deg, var(--gr-primary) 0%, var(--gr-primary-dark) 100%);
}

/* -- Card overrides for Bootstrap 5 -- */
.card {
  border-radius: 0.75rem;
}
.card.border-primary {
  border-color: var(--gr-primary) !important;
}

/* -- Page content containers -- */
.gr-page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* -- Responsive -- */
@media (max-width: 991.98px) {
  body { padding-top: 62px; }
  .gr-hero { padding: 2.5rem 0 2rem; }
  .gr-stat-number { font-size: 2rem; }
}
@media (max-width: 575.98px) {
  .gr-stat-card { padding: 1.25rem 1rem; }
  .gr-stat-number { font-size: 1.75rem; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
}
