/* ============================================================
   BLOG-SHARED.CSS
   Shared stylesheet for all /work/ pages — flowerpatch.garden
   Linked by each blog post; not used by the main 13 pages.
============================================================ */

/* VARIABLES */
:root {
  --cream:      #EDEADB;
  --olive:      #424A30;
  --sage:       #7D8B6A;
  --coral:      #E85228;
  --amber:      #F09030;
  --near-black: #252318;
  --off-white:  #F5F0E2;
  --white:      #FFFFFF;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Lato', sans-serif;
  --radius:     6px;
  --transition: 0.2s ease;
  --max-width:  1160px;
}

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--near-black); background: var(--cream); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; margin-bottom: 0.6em; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }

.container  { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-label { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sage); margin-bottom: 0.5em; display: block; }

.btn { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 0.95rem; padding: 13px 26px; border-radius: var(--radius); cursor: pointer; transition: background var(--transition), transform var(--transition); }
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: var(--white); box-shadow: 0 4px 14px rgba(232,82,40,0.3); }
.btn-coral:hover { background: #c94420; }
.btn-outline-cream { border: 2px solid var(--cream); color: var(--cream); background: transparent; }
.btn-outline-cream:hover { background: rgba(237,234,219,0.15); }

/* ── NAV ──────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 1px solid rgba(66,74,48,0.15); box-shadow: 0 2px 8px rgba(37,35,24,0.06); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button.nav-btn { font-family: var(--font-body); font-size: 0.9rem; color: var(--near-black); padding: 8px 12px; border-radius: var(--radius); border: none; background: none; cursor: pointer; display: flex; align-items: center; gap: 4px; transition: background var(--transition); }
.nav-links a:hover, .nav-links button.nav-btn:hover { background: var(--off-white); }
.nav-links .nav-cta { background: var(--coral); color: var(--white); font-weight: 700; padding: 8px 18px; margin-left: 8px; }
.nav-links .nav-cta:hover { background: #c94420; color: var(--white); }
.nav-dropdown { position: absolute; top: 100%; left: 0; padding-top: 8px; min-width: 220px; background: var(--white); border: 1px solid rgba(66,74,48,0.12); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(37,35,24,0.12); list-style: none; opacity: 0; pointer-events: none; transform: translateY(-6px); transition: opacity var(--transition), transform var(--transition); z-index: 200; }
.nav-links > li:hover .nav-dropdown, .nav-links > li:focus-within .nav-dropdown { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav-dropdown li a { display: block; padding: 10px 16px; font-size: 0.88rem; border-radius: 0; }
.nav-dropdown li a:hover { background: var(--off-white); }
.chevron { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); display: inline-block; transition: transform var(--transition); }
.nav-links > li:hover .chevron { transform: rotate(225deg) translateY(-2px); }
.nav-phone .phone-link { font-size: 0.95rem; color: var(--olive); font-weight: 700; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; border: none; background: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--near-black); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; background: var(--cream); border-top: 1px solid rgba(66,74,48,0.12); padding: 16px 24px 24px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 10px 0; font-size: 1rem; border-bottom: 1px solid rgba(66,74,48,0.08); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-sub { padding-left: 16px; font-size: 0.9rem; color: var(--sage); }
.mobile-cta { display: inline-block; margin-top: 16px; background: var(--coral); color: var(--white) !important; padding: 12px 24px; border-radius: var(--radius); font-weight: 700; border-bottom: none !important; }
@media (max-width: 860px) { .nav-links { display: none; } .hamburger { display: flex; } }

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb { background: var(--off-white); padding: 12px 24px; font-size: 0.82rem; color: var(--sage); }
.breadcrumb a { color: var(--sage); }
.breadcrumb a:hover { color: var(--olive); }
.breadcrumb span.sep { margin: 0 8px; }

/* ── BLOG HERO ────────────────────────────────────────────── */
.blog-hero { background: var(--olive); padding: 80px 24px; position: relative; overflow: hidden; }
.blog-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #2a3020 0%, #424A30 50%, #5a6840 100%); }
.blog-hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.blog-hero .section-label { color: var(--amber); margin-bottom: 12px; }
.blog-hero h1 { color: var(--cream); margin-bottom: 0.4em; }
.blog-date { font-family: var(--font-body); font-size: 0.9rem; color: rgba(237,234,219,0.6); margin-bottom: 1.8em !important; }

/* ── POST INTRO ───────────────────────────────────────────── */
.post-intro { padding: 64px 24px 48px; background: var(--cream); }
.post-intro .container { max-width: 760px; }
.post-intro p { font-size: 1.08rem; line-height: 1.75; }

/* ── JOB DETAILS ──────────────────────────────────────────── */
.job-details { background: var(--off-white); padding: 56px 24px; }
.job-details-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
@media (max-width: 640px) { .job-details-grid { grid-template-columns: 1fr; gap: 32px; } }
.job-meta { background: var(--cream); border-radius: 10px; padding: 24px; }
.job-meta dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: baseline; }
.job-meta dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sage); white-space: nowrap; padding-top: 2px; }
.job-meta dd { font-size: 0.95rem; }
.job-meta dd a { color: var(--coral); }
.job-meta dd a:hover { text-decoration: underline; }
.job-tasks { }
.job-tasks h2 { color: var(--olive); margin-bottom: 0.75em; }
.task-list { list-style: none; }
.task-list li { padding: 10px 0; border-bottom: 1px solid rgba(66,74,48,0.1); display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
.task-list li:last-child { border-bottom: none; }
.task-list li::before { content: '✓'; color: var(--coral); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ── POST IMAGES (shared wrapper) ─────────────────────────── */
.post-images { padding: 56px 24px; background: var(--cream); }
.img-label { display: inline-block; font-family: var(--font-body); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.before-label { background: #5a4a3a; color: var(--white); }
.after-label  { background: var(--olive); color: var(--white); }

/* IMAGE TYPE: before-after-landscape (stacked full width) */
.img-ba-landscape { display: flex; flex-direction: column; gap: 8px; max-width: 920px; margin: 0 auto; }
.img-ba-landscape figure { position: relative; }
.img-ba-landscape figcaption { position: absolute; top: 12px; left: 12px; }
.img-ba-landscape img { width: 100%; border-radius: var(--radius); }

/* IMAGE TYPE: before-after-portrait (side by side) */
.img-ba-portrait { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 760px; margin: 0 auto; }
.img-ba-portrait figure { position: relative; }
.img-ba-portrait figcaption { position: absolute; top: 12px; left: 12px; }
.img-ba-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 480px) { .img-ba-portrait { grid-template-columns: 1fr; } }

/* IMAGE TYPE: sequence (alternating timeline) */
.img-sequence { display: flex; flex-direction: column; gap: 56px; max-width: 920px; margin: 0 auto; }
.seq-item { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.seq-item-flip .seq-img  { order: 2; }
.seq-item-flip .seq-text { order: 1; }
.seq-item.portrait { grid-template-columns: 2fr 3fr; }
.seq-item.portrait.seq-item-flip { grid-template-columns: 3fr 2fr; }
.seq-item.portrait .seq-img img { max-height: 380px; object-fit: cover; }
@media (max-width: 640px) {
  .seq-item { grid-template-columns: 1fr; gap: 20px; }
  .seq-item-flip .seq-img  { order: 0; }
  .seq-item-flip .seq-text { order: 0; }
  .seq-item.portrait, .seq-item.portrait.seq-item-flip { grid-template-columns: 1fr; }
  .seq-item.portrait .seq-img img { max-height: none; }
}
.seq-img img { width: 100%; border-radius: var(--radius); }
.seq-text { font-size: 1.02rem; line-height: 1.75; }
.seq-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: var(--coral); color: var(--white); border-radius: 50%; font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; margin-bottom: 12px; }

/* IMAGE TYPE: extras ribbon (additional photos) */
.post-extras { padding: 0 24px 56px; background: var(--cream); }
.post-extras-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; display: block; }
.img-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; max-width: var(--max-width); margin: 0 auto; }
.img-extras figure { overflow: hidden; border-radius: var(--radius); }
.img-extras img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
@media (max-width: 480px) { .img-extras { grid-template-columns: 1fr 1fr; } }

/* ── CTA BAR ──────────────────────────────────────────────── */
.cta-bar { background: var(--olive); padding: 40px 24px; }
.cta-bar-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-bar p { font-family: var(--font-head); font-size: clamp(1.1rem, 2.5vw, 1.5rem); color: var(--cream); margin: 0; max-width: 600px; }
.cta-phone { text-align: right; flex-shrink: 0; }
.cta-phone-label { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber); margin-bottom: 4px; }
.cta-phone-number .phone-link { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--cream); }

/* ── TRUST BAR ────────────────────────────────────────────── */
.trust-bar { background: var(--off-white); padding: 48px 24px; }
.trust-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 720px) { .trust-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .trust-inner { grid-template-columns: 1fr; } }
.trust-item { text-align: center; }
.trust-icon { margin-bottom: 10px; }
.trust-icon svg { width: 3rem; height: 3rem; }
.trust-item h4 { font-family: var(--font-head); color: var(--olive); font-size: 1rem; line-height: 1.3; }

/* ── CONTACT ──────────────────────────────────────────────── */
.contact { background: var(--olive); padding: 80px 24px; }
.contact-inner { text-align: center; }
.contact .section-label { color: var(--amber); }
.contact h2 { color: var(--cream); margin-bottom: 0.4em; }
.contact-subhead { color: rgba(237,234,219,0.75); font-size: 1rem; max-width: 480px; margin: 0 auto 40px; }
.contact-phone-block { margin-bottom: 8px; }
.contact-phone .phone-link { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); color: var(--cream); display: block; margin-bottom: 8px; }
.contact-hours { color: rgba(237,234,219,0.65); font-size: 0.9rem; margin: 0; }

/* ── BACK LINK ────────────────────────────────────────────── */
.back-to-work { background: var(--cream); padding: 20px 24px; text-align: center; font-size: 0.9rem; border-top: 1px solid rgba(66,74,48,0.1); }
.back-to-work a { color: var(--coral); font-weight: 700; }
.back-to-work a:hover { text-decoration: underline; }

/* ── WORK INDEX (work/index.html) ─────────────────────────── */
.work-hero { background: var(--olive); padding: 80px 24px; text-align: center; position: relative; overflow: hidden; }
.work-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #2a3020 0%, #424A30 50%, #5a6840 100%); }
.work-hero-inner { position: relative; max-width: 640px; margin: 0 auto; }
.work-hero .section-label { color: var(--amber); }
.work-hero h1 { color: var(--cream); margin-bottom: 0.4em; }
.work-hero p { color: rgba(237,234,219,0.85); font-size: 1.1rem; }
.work-index-section { padding: 64px 24px; background: var(--cream); }
.work-grid { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 860px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { background: var(--off-white); border-radius: 10px; overflow: hidden; display: block; transition: transform var(--transition), box-shadow var(--transition); }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(37,35,24,0.12); }
.work-card-img { width: 100%; height: 220px; overflow: hidden; }
.work-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.work-card:hover .work-card-img img { transform: scale(1.03); }
.work-card-body { padding: 20px; }
.work-card-meta { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sage); margin-bottom: 8px; }
.work-card-title { font-family: var(--font-head); font-size: 1.05rem; color: var(--olive); font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.work-card-loc { font-size: 0.88rem; color: var(--sage); margin: 0; }

/* ── PHONE LINKS ──────────────────────────────────────────── */
.phone-link { text-decoration: none; font-family: var(--font-body); font-weight: 700; letter-spacing: 0.03em; transition: opacity var(--transition); }
.phone-link:hover { opacity: 0.75; }
.footer-phone .phone-link { font-size: 0.95rem; color: rgba(237,234,219,0.85); display: block; margin-top: 12px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer { background: var(--near-black); color: var(--cream); padding: 56px 24px 0; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(237,234,219,0.12); }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand p { color: rgba(237,234,219,0.65); font-size: 0.9rem; max-width: 280px; line-height: 1.6; }
.footer-nav h4, .footer-contact h4 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--amber); margin-bottom: 16px; }
.footer-nav ul, .footer-contact ul { list-style: none; }
.footer-nav li, .footer-contact li { margin-bottom: 10px; }
.footer-nav a, .footer-contact a { color: rgba(237,234,219,0.7); font-size: 0.9rem; transition: color var(--transition); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--cream); }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link { width: 36px; height: 36px; background: rgba(237,234,219,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 0.8rem; font-weight: 700; transition: background var(--transition); }
.social-link:hover { background: var(--coral); }
.footer-bottom { max-width: var(--max-width); margin: 0 auto; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { color: rgba(237,234,219,0.4); font-size: 0.8rem; margin: 0; }
