/* Master Design System for InstaFlowers NJ */

:root {
  /* Elegant, high-converting florist theme */
  --primary-green: #2B4C3B; /* Deep foliage green */
  --secondary-green: #3A6351;
  --bg-cream: #FCFAF8; /* Soft petal cream */
  --bg-blush: #FDF4F5; /* Soft petal pink */
  --cta-vibrant: #F29C38; /* Vibrant gold/orange */
  --cta-hover: #E08522;
  --text-dark: #1A1A1A;
  --text-light: #5A5A5A;
  --white: #FFFFFF;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-cream);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-green);
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-green);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--secondary-green);
}

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

/* Global Layout & Utility */
main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.text-center {
  text-align: center;
}

/* Header / Navbar */
#global-header {
  background-color: var(--white);
  box-shadow: var(--shadow-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.logo img {
  height: 50px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.main-nav a {
  font-weight: 500;
}

/* Footer */
#global-footer {
  background-color: var(--primary-green);
  color: var(--white);
  padding: 3rem 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--bg-cream);
}

.footer-section a:hover {
  color: var(--cta-vibrant);
}

.disclaimer {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 1rem;
}

/* CTA Buttons */
.cta-affiliate {
  display: inline-block;
  background-color: var(--cta-vibrant);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(242, 156, 56, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.cta-affiliate:hover {
  background-color: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(224, 133, 34, 0.5);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background-color: var(--bg-blush);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-subtle);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Product Cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}

.product-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-content p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Sections */
.location-content {
  margin-top: 3rem;
}

.location-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.location-content p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

/* Other Locations Links */
.related-locations {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.related-locations h2 {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.locations-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
}

.locations-list a {
  background: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-subtle);
  font-weight: 600;
}

.locations-list a:hover {
  background: var(--bg-blush);
  box-shadow: var(--shadow-hover);
}


/* Occasions List (pill tags) */
.occasions-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.occasions-list li {
  background: var(--bg-blush);
  border: 1px solid #f0d8da;
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-green);
}

/* FAQ Section */
.faq-section {
  margin: 3rem 0;
  border-top: 1px solid #eee;
  padding-top: 2rem;
}

.faq-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.faq-section details {
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  background: var(--white);
}

.faq-section summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-green);
  font-size: 1rem;
  padding: 0.25rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-section summary::-webkit-details-marker { display: none; }

.faq-section summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--cta-vibrant);
  font-weight: 300;
  flex-shrink: 0;
}

.faq-section details[open] summary::after {
  content: '−';
}

.faq-section details p {
  margin-top: 1rem;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .cta-affiliate {
    width: 100%;
    padding: 1rem;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   v2 additions — guide layout, cards, breadcrumbs, sticky CTA, hospital pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* Accessibility */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary-green); color: #fff; padding: .5rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header polish */
.logo a { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; color: var(--primary-green); display: flex; align-items: center; gap: .4rem; }
.logo-mark { color: var(--cta-vibrant); }
.logo-nj { font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; background: var(--primary-green); color: #fff; padding: .15rem .45rem; border-radius: 4px; }
.nav-cta.cta-affiliate { padding: .6rem 1.2rem; font-size: .9rem; margin: 0; }

/* Breadcrumbs */
.breadcrumbs { font-size: .9rem; color: var(--text-light); margin: 0 0 1rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: #b5b5b5; }
.breadcrumbs a { color: var(--text-light); text-decoration: underline; text-decoration-color: #ddd; }
.breadcrumbs a:hover { color: var(--primary-green); }

/* Hero variants */
.hero-compact { padding: 2.5rem 1rem; margin-bottom: 2rem; }
.hero-compact h1 { font-size: 2.4rem; }
.hero-home h1 { font-size: 3.2rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.hero .cta-affiliate { font-size: 1.2rem; padding: 1.1rem 2.4rem; }
.disclosure { font-size: .82rem; color: var(--text-light); max-width: 720px; margin: .25rem auto 0; }
.disclosure a { text-decoration: underline; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin: 1.75rem 0 0; padding: 0; font-size: .9rem; color: var(--primary-green); font-weight: 600; }
.trust-row li::before { content: "✓"; color: var(--cta-vibrant); margin-right: .4rem; }

/* Two-column guide layout */
.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 3rem; align-items: start; }
.content-grid .location-content { margin-top: 0; }
.content-grid .location-content h2 { text-align: left; font-size: 1.7rem; margin-top: 2.25rem; }
.content-grid .location-content h2:first-child { margin-top: 0; }
.location-content.narrow { max-width: 820px; margin: 0 auto; }
.location-content.narrow h2 { text-align: left; font-size: 1.6rem; margin-top: 2rem; }
.location-content ol, .location-content ul.tips, .location-content ul.picks { margin: 0 0 1.25rem 1.25rem; font-size: 1.05rem; }
.location-content li { margin-bottom: .6rem; }
.sidebar { position: sticky; top: 90px; display: grid; gap: 1.5rem; }
.quick-facts { background: var(--white); border: 1px solid #eee; border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-subtle); }
.quick-facts h3 { font-size: 1.15rem; margin-bottom: .75rem; }
.quick-facts dl { display: grid; grid-template-columns: auto 1fr; gap: .45rem .9rem; font-size: .95rem; }
.quick-facts dt { color: var(--text-light); font-weight: 600; }
.quick-facts dd { margin: 0; }
.quick-facts .disclaimer { color: var(--text-light); font-size: .78rem; margin-top: 1rem; }
.sidebar-cta { background: var(--bg-blush); border-radius: var(--radius); padding: 1.25rem 1.5rem; text-align: center; }
.sidebar-cta p { margin-bottom: .25rem; font-size: .95rem; color: var(--primary-green); font-weight: 600; }
.sidebar-cta .cta-affiliate { width: 100%; padding: .9rem 1rem; font-size: 1rem; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { margin-bottom: .45rem; font-size: .95rem; }
.plain-list.two-col { columns: 2; column-gap: 2rem; }
.plain-list.two-col li { break-inside: avoid; }
.muted { color: var(--text-light); font-size: .85rem; }

/* Figures */
.figure { margin: 1.5rem 0; }
.figure-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-subtle); }
.sidebar-figure { margin: 0; }
.sidebar-figure .figure-img { aspect-ratio: 1 / 1; }

/* CTA block inside articles */
.cta-block { background: var(--bg-blush); border-radius: var(--radius); padding: 1.5rem; text-align: center; margin: 2rem 0; }
.cta-block p { font-size: 1.1rem; color: var(--primary-green); font-weight: 600; margin-bottom: .25rem; }

/* Cards */
.cards-section { margin: 3rem 0; }
.cards-section h2, .steps-section h2, .split h2 { text-align: center; font-size: 2rem; }
.cards-section.compact { margin: 1.5rem 0 2rem; }
.section-lead { text-align: center; color: var(--text-light); max-width: 720px; margin: -0.5rem auto 1.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
.card-grid.narrow { max-width: 900px; margin: 0 auto; }
.cards-section.compact .card-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .9rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.1rem; box-shadow: var(--shadow-subtle); border: 1px solid #f0ece8; display: flex; flex-direction: column; gap: .35rem; transition: transform .2s ease, box-shadow .2s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); color: inherit; }
.card h3 { font-size: 1.1rem; margin: 0; }
.card p { color: var(--text-light); font-size: .9rem; margin: 0; flex-grow: 1; }
.card-icon { font-size: 1.6rem; line-height: 1; }
.card-more { color: var(--cta-hover); font-weight: 600; font-size: .9rem; margin-top: .35rem; }
.cards-section.compact .card { padding: 1rem; }
.cards-section.compact .card p { display: none; }

/* Neighborhood grid on city pages */
.hood-grid { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .5rem; }
.hood-grid a { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; background: var(--white); border: 1px solid #eee; border-radius: 6px; padding: .55rem .8rem; font-weight: 600; font-size: .95rem; }
.hood-grid a:hover { background: var(--bg-blush); border-color: #f0d8da; }
.hood-grid .zip { color: var(--text-light); font-weight: 400; font-size: .8rem; }
.locations-list a.more { background: var(--primary-green); color: #fff; }
.locations-list a.more:hover { background: var(--secondary-green); }

/* Steps */
.steps { counter-reset: step; list-style: none; margin: 1rem 0 1.5rem; padding: 0; }
.steps li { position: relative; padding-left: 3rem; margin-bottom: 1rem; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--cta-vibrant); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps-section { margin: 1rem 0 3rem; }
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 1.5rem auto 0; }
.steps-row li { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.5rem 4rem; box-shadow: var(--shadow-subtle); margin: 0; }
.steps-row li::before { left: 1.1rem; top: 1.4rem; }

/* Picks list on occasion pages */
.picks { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .6rem; }
.picks li { background: var(--white); border-left: 4px solid var(--cta-vibrant); padding: .75rem 1rem; border-radius: 0 6px 6px 0; box-shadow: var(--shadow-subtle); }
.picks li span { color: var(--text-light); display: block; font-size: .95rem; }

/* Home split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin: 3rem 0; }
.split h2 { text-align: left; font-size: 1.8rem; }
.split p { margin-bottom: 1rem; }

/* FAQ heading as h2 (was h3) */
.faq-section h2 { font-size: 1.6rem; margin-bottom: 1.25rem; text-align: center; }

/* Footer: five columns */
.footer-container { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2.5rem; }
.footer-section ul li { font-size: .92rem; }
.footer-about p { font-size: .95rem; color: #e6e6e6; }

/* Legal pages */
.legal h2 { font-size: 1.35rem; margin-top: 1.75rem; text-align: left; }
.legal p, .legal li { font-size: 1rem; }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(6px); box-shadow: 0 -4px 16px rgba(0,0,0,.08); z-index: 900; transform: translateY(110%); transition: transform .25s ease; display: none; }
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .cta-affiliate { width: 100%; margin: 0; padding: .9rem 1rem; font-size: 1rem; }

/* Responsive */
@media (max-width: 960px) {
  .content-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sidebar { position: static; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .footer-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-home h1 { font-size: 2.3rem; }
  .hero-compact h1 { font-size: 1.9rem; }
  .hero .cta-affiliate { width: 100%; }
  .sticky-cta { display: block; }
  body { padding-bottom: 4.5rem; }
  .plain-list.two-col { columns: 1; }
  .footer-container { grid-template-columns: 1fr; gap: 1.75rem; }
  /* Compact, non-sticky header on phones: the bottom bar carries the CTA. */
  #global-header { position: static; }
  .navbar-container { flex-direction: row; flex-wrap: wrap; justify-content: space-between; padding: .6rem 1rem .5rem; gap: .35rem; }
  .logo a { font-size: 1.35rem; }
  .main-nav { width: 100%; }
  .main-nav ul { gap: .35rem 1rem; font-size: .9rem; justify-content: flex-start; }
  .main-nav li:last-child { display: none; }
}
