/*
Theme Name: Blessings Digital Photocopy and BookBinding Services Inc.
Theme URI: https://blessingscopy.com
Author: Blessings Digital Photocopy and BookBinding Services Inc.
Description: A minimalist, elegant WordPress theme for Blessings Digital Photocopy and BookBinding Services Inc. — featuring photocopying, book binding, and printing services with an integrated AI chatbot.
Version: 1.0.3
License: GNU General Public License v2 or later
Text Domain: blessings
*/

/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --green-50:  #EBF5EC;
  --green-100: #BDDFC3;
  --green-200: #7DBF8A;
  --green-400: #29923F;
  --green-600: #056920;
  --green-800: #034A16;
  --green-900: #01691e;

  --cream:     #F5FAF5;
  --ink:       #0B1E0F;
  --muted:     #3D6645;
  --accent:    #056920;
  --accent-lt: #BDDFC3;
  --border:    rgba(19,34,24,0.12);
  --border-md: rgba(19,34,24,0.22);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
}

/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; }
ul { list-style: none; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(42px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { font-weight: 300; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 300;
  margin-bottom: 48px;
  line-height: 1.2;
}

em { color: var(--accent); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: 0.04em;
  border: 0.5px solid transparent;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--green-800); border-color: var(--green-800); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-md);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--green-50); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ─── Layout Helpers ─────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-pad { padding: 88px 0; }
.section-pad-sm { padding: 64px 0; }

/* ─── Navigation ─────────────────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--cream);
  border-bottom: 0.5px solid var(--border);
  transition: box-shadow 0.3s;
}
#site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
}

.site-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.site-logo span { color: var(--accent); }
.site-logo .custom-logo-link img,
.site-logo .custom-logo { height: 52px; width: auto; display: block; }
.site-logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 400;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s;
}
.mobile-menu {
  display: none;
}
.mobile-menu.open {
  display: block;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  border-bottom: 0.5px solid var(--border);
}

.hero-text {
  padding: 80px 48px;
  display: flex;
  flex-direction:column;
  justify-content: center;
  gap: 0;
}
.hero-text h1 { margin-bottom: 24px; }
.hero-text p {
  font-size: 15px;
  color: var(--muted);
  max-width: 400px;
  margin-bottom: 36px;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 0.5px solid var(--border);
  min-height: 480px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-lt);
  color: var(--green-800);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ─── Services ───────────────────────────────────────────────────────────── */
#services { padding: 88px 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 0.5px solid var(--border);
}

.service-card {
  background: var(--cream);
  padding: 44px 36px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.35s ease;
}
.service-card:hover { background: var(--green-50); }
.service-card:hover::after { width: 100%; }

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--accent);
}
.service-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 300;
}
.service-price {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}
.service-features {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-features li {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.service-features li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── Pricing ────────────────────────────────────────────────────────────── */
#pricing {
  background: var(--green-900);
  color: #fff;
  padding: 88px 0;
}
#pricing .eyebrow { color: var(--green-200); }
#pricing .section-title { color: #fff; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 0.5px solid rgba(255,255,255,0.1);
}

.pricing-card {
  background: rgba(255,255,255,0.04);
  padding: 44px 36px;
  position: relative;
  transition: background 0.25s;
}
.pricing-card:hover { background: rgba(255,255,255,0.08); }
.pricing-card.featured {
  background: var(--accent);
}
.pricing-card.featured:hover { background: var(--green-400); }

.pricing-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--green-200);
  color: var(--green-900);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
  border-radius: 20px;
  margin-bottom: 16px;
}

.pricing-card h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
}
.pricing-desc {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
}
.pricing-amount {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-amount sup { font-size: 20px; vertical-align: super; }
.pricing-unit { font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 28px; }

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.pricing-features li {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li .check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
}
.pricing-card.featured .pricing-features li .check {
  background: rgba(255,255,255,0.35);
}

/* ─── Gallery ────────────────────────────────────────────────────────────── */
#gallery { padding: 88px 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 8px;
}
.gallery-item {
  background: var(--green-50);
  border: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  transition: background 0.25s;
  cursor: pointer;
}
.gallery-item:hover { background: var(--green-100); }
.gallery-item:first-child { grid-column: span 2; }

/* Photo gallery items */
.gallery-item--photo {
  padding: 0;
  align-items: stretch;
  justify-content: flex-start;
  overflow: hidden;
}

.gallery-collage {
  width: 100%;
  display: grid;
  gap: 2px;
  height: 220px;
  flex-shrink: 0;
  overflow: hidden;
}
.gallery-collage--2x2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gallery-collage--1x2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}
.gallery-collage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item--photo:hover .gallery-collage > img { transform: scale(1.04); }

.gallery-caption {
  padding: 16px 20px 20px;
  text-align: center;
  background: var(--cream);
  flex-shrink: 0;
}
.gallery-caption--link {
  display: block;
  text-decoration: none;
  transition: background 0.2s;
}
.gallery-caption--link:hover { background: var(--green-100); }
.gallery-more {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-top: 6px;
  opacity: 0.8;
}
.gallery-caption--link:hover .gallery-more { opacity: 1; }

.gallery-label {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.gallery-item--photo .gallery-label { margin-top: 0; }

.gallery-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 4px;
}

/* ─── Testimonials ───────────────────────────────────────────────────────── */
#testimonials {
  background: var(--green-50);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 88px 0;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: #fff;
  padding: 36px 32px;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.25s;
}
.testi-card:hover { box-shadow: var(--shadow-md); }
.testi-stars { color: var(--accent); font-size: 13px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-quote {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 20px;
}
.testi-name {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

/* ─── CTA Banner ─────────────────────────────────────────────────────────── */
#cta-banner {
  background: var(--accent);
  padding: 72px 0;
  text-align: center;
}
#cta-banner h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 36px);
}
#cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin-bottom: 32px;
  font-weight: 300;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
#site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .site-logo { color: #fff; }
.footer-brand .site-logo span { color: var(--green-200); }
.footer-brand p {
  font-size: 13px;
  margin-top: 16px;
  line-height: 1.7;
  font-weight: 300;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  font-weight: 300;
}
.footer-col ul a:hover { color: var(--green-200); }

.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

}

/* ─── Mobile menu styles ──────────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  background: var(--cream);
  border-top: 0.5px solid var(--border);
  padding: 20px 24px 24px;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu ul {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu ul li a {
  display: block;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  border-bottom: 0.5px solid var(--border);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.mobile-menu ul li a:hover { color: var(--accent); }

/* Hamburger open state — animate to X */
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Responsive breakpoints ──────────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .nav-inner { padding: 16px 32px; }
  .nav-links { gap: 24px; }
  #hero { grid-template-columns: 1fr 1fr; min-height: 480px; }
  .hero-text { padding: 60px 32px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid  { grid-template-columns: repeat(3, 1fr); }
  .testi-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* Mobile */
@media (max-width: 768px) {
  /* Nav — hide links, show hamburger */
  .nav-links           { display: none; }
  .nav-right .btn      { display: none; }
  .hamburger           { display: flex; }
  .nav-inner           { padding: 14px 20px; }

  /* Hero — stack vertically */
  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-text  { padding: 48px 24px 32px; }
  .hero-visual { display: none; }
  h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Pricing */
  .pricing-grid  { grid-template-columns: 1fr; }

  /* Gallery */
  .gallery-grid  { grid-template-columns: repeat(2, 1fr); }
  .gallery-collage { height: 180px; }

  /* Testimonials */
  .testi-grid    { grid-template-columns: 1fr; }

  /* Contact section two-col → single col */
  #contact .container > div[style*="grid-template-columns"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
  }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Section padding */
  .section-pad { padding: 48px 0; }
  .container   { padding: 0 20px; }

  /* Pricing hero page */
  .branches-grid { grid-template-columns: 1fr; }

  /* Pricing tables */
  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
  }
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
  }

  /* CTA banner */
  #cta-banner .container div { flex-direction: column; align-items: center; }
}

/* Small mobile */
@media (max-width: 480px) {
  .nav-inner  { padding: 12px 16px; }
  .hero-text  { padding: 36px 16px 28px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; }
  .gallery-collage { height: 200px; }
  h1 { font-size: 2rem; }
  .section-pad { padding: 36px 0; }
}
