/*
 * Base styles for pages built in the visual editor. Loaded both inside the
 * editor canvas and on the public page, so what you design is what you get.
 * Everything is scoped under .vp. Block classes (.vp-*) are used by the
 * editor's block palette (resources/js/page-designer.js).
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');

.vp { font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; color: #374151; line-height: 1.7; font-size: 1rem; }
.vp *, .vp *::before, .vp *::after { box-sizing: border-box; }
.vp h1, .vp h2, .vp h3, .vp h4 { color: #111827; font-weight: 800; line-height: 1.2; margin: 0 0 .6em; }
.vp h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; letter-spacing: -.01em; }
.vp h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.vp h3 { font-size: 1.25rem; }
.vp p { margin: 0 0 1em; }
.vp a { color: #4d7c0f; }
.vp img { max-width: 100%; height: auto; display: block; }
.vp ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.vp ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1em; }
.vp iframe, .vp video { max-width: 100%; border: 0; }

/* Layout */
.vp-section { padding: 56px 20px; }
.vp-container { max-width: 1100px; margin: 0 auto; }
.vp-narrow { max-width: 720px; margin: 0 auto; }
.vp-center { text-align: center; }
.vp-row { display: flex; flex-wrap: wrap; gap: 24px; }
.vp-cell { flex: 1 1 260px; min-height: 60px; }
.vp-bg-soft { background: #f4faee; }
.vp-bg-dark { background: #1a2e05; color: #e5f3d3; }
.vp-bg-dark h1, .vp-bg-dark h2, .vp-bg-dark h3 { color: #fff; }
.vp-bg-paper { background: #fbf8f1; color: #24211c; }

/* Hero */
.vp-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; padding: 64px 20px; color: #fff; background: #3f6212 center / cover no-repeat; }
.vp-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.15)); }
.vp-hero > * { position: relative; }
.vp-hero h1, .vp-hero h2 { color: #fff; }
.vp-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #65a30d; margin-bottom: .75em; }
.vp-hero .vp-eyebrow { color: #d9f99d; }
.vp-lead { font-size: 1.2rem; line-height: 1.6; color: inherit; opacity: .9; }

/* Buttons */
.vp-btn { display: inline-block; background: #84cc16; color: #1a2e05 !important; font-weight: 700; font-size: .95rem; padding: 14px 30px; border-radius: 12px; text-decoration: none; }
.vp-btn:hover { background: #a3e635; }
.vp-btn-outline { background: transparent; border: 2px solid currentColor; color: inherit !important; }

/* Newspaper */
.vp-np { font-family: 'Source Serif 4', Georgia, serif; }
.vp-np-masthead { border-top: 3px double #1c1a17; border-bottom: 3px double #1c1a17; padding: 8px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #4a463d; }
.vp-np-masthead strong { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; color: #1c1a17; letter-spacing: .08em; }
.vp-np-headline { font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.05; color: #1c1a17; text-align: center; margin: 28px auto 12px; max-width: 24ch; }
.vp-np-byline { text-align: center; font-style: italic; color: #4a463d; font-size: .92rem; }
.vp-columns { column-count: 1; column-gap: 40px; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.06rem; line-height: 1.7; color: #24211c; }
@media (min-width: 900px) { .vp-columns { column-count: 2; column-rule: 1px solid #d9d2c1; } }
.vp-columns p { text-align: justify; }
.vp-dropcap::first-letter { float: left; font-family: 'Playfair Display', Georgia, serif; font-weight: 900; font-size: 4.2em; line-height: .8; padding: .05em .1em 0 0; color: #1c1a17; }

/* Quote */
.vp-quote { font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.35; text-align: center; color: #1c1a17; border-top: 3px double #1c1a17; border-bottom: 3px double #1c1a17; padding: 22px 16px; margin: 32px auto; max-width: 760px; }
.vp-quote cite { display: block; margin-top: 10px; font-family: 'Inter', sans-serif; font-style: normal; font-weight: 600; font-size: .85rem; color: #4d7c0f; }

/* Media */
.vp-figure { margin: 0; }
.vp-figure img { width: 100%; border-radius: 14px; }
.vp-figure figcaption { font-size: .85rem; font-style: italic; color: #6b7280; margin-top: 8px; }
.vp-grid { --g: 12px; --cols: 3; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--g); }
.vp-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin: 0; }

/* Photo gallery settings (page designer): columns, photo shape, spacing, corners, layout */
.vp-grid.vp-cols-2 { --cols: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vp-grid.vp-cols-3 { --cols: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vp-grid.vp-cols-4 { --cols: 4; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vp-grid.vp-shape-square img { aspect-ratio: 1 / 1; }
.vp-grid.vp-shape-portrait img { aspect-ratio: 3 / 4; }
.vp-grid.vp-shape-natural img { aspect-ratio: auto; }
.vp-grid.vp-ggap-sm { --g: 4px; }
.vp-grid.vp-ggap-lg { --g: 24px; }
.vp-grid.vp-gal-sharp img { border-radius: 0; }

/* Masonry: photos keep their own shape and stack in columns */
.vp-grid.vp-gal-masonry { display: block; columns: var(--cols) 180px; column-gap: var(--g); }
.vp-grid.vp-gal-masonry img { aspect-ratio: auto; margin-bottom: var(--g); break-inside: avoid; }

/* Featured: first photo large, the rest as tiles */
.vp-grid.vp-gal-featured { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.vp-grid.vp-gal-featured img:first-child { grid-column: span 2; grid-row: span 2; height: 100%; aspect-ratio: auto; }

/* Carousel: swipe sideways; the public page adds arrows */
.vp-grid.vp-gal-carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.vp-grid.vp-gal-carousel::-webkit-scrollbar { display: none; }
.vp-grid.vp-gal-carousel img { flex: 0 0 85%; min-width: 0; scroll-snap-align: start; }
.vp-grid.vp-gal-carousel.vp-cols-2 img { flex-basis: calc((100% - var(--g)) / 2); }
.vp-grid.vp-gal-carousel.vp-cols-3 img { flex-basis: calc((100% - 2 * var(--g)) / 3); }
.vp-grid.vp-gal-carousel.vp-cols-4 img { flex-basis: calc((100% - 3 * var(--g)) / 4); }
.vp-carousel-wrap { position: relative; }
.vp-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); color: #1f2937; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vp-carousel-btn:hover { background: #fff; }
.vp-carousel-btn[data-slide="prev"] { left: 8px; }
.vp-carousel-btn[data-slide="next"] { right: 8px; }
.vp [data-lightbox-src] { cursor: zoom-in; }
.vp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #111; }
.vp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Stats */
.vp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.vp-stat { background: #fff; border: 1px solid #ecfccb; border-radius: 16px; padding: 24px; text-align: center; }
.vp-stat-value { font-size: 2.4rem; font-weight: 900; color: #3f6212; line-height: 1; }
.vp-stat-label { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b7280; margin-top: 8px; }

/* Misc */
.vp-divider { border: 0; border-top: 1px solid #e5e7eb; margin: 32px auto; max-width: 1100px; }
.vp-spacer { height: 48px; }
.vp-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 28px; }

/* ---- Options picked in the editor's Settings panel ---- */

/* Position (text and inline things like buttons) */
.vp .vp-align-left { text-align: left; }
.vp .vp-align-center { text-align: center; }
.vp .vp-align-right { text-align: right; }
.vp-hero.vp-align-center .vp-container, .vp-hero.vp-align-center { text-align: center; }
.vp-hero.vp-align-right .vp-container { text-align: right; }

/* Position (boxes: images, pictures) */
.vp .vp-place-left { margin-left: 0; margin-right: auto; }
.vp .vp-place-center { margin-left: auto; margin-right: auto; }
.vp .vp-place-right { margin-left: auto; margin-right: 0; }

/* Buttons: colour + size live on the wrapper */
.vp-btn-wrap { margin: 16px 0; }
.vp-btn--green .vp-btn { background: #84cc16; color: #1a2e05 !important; border: 2px solid #84cc16; }
.vp-btn--green .vp-btn:hover { background: #a3e635; border-color: #a3e635; }
.vp-btn--dark .vp-btn { background: #1a2e05; color: #fff !important; border: 2px solid #1a2e05; }
.vp-btn--dark .vp-btn:hover { background: #365314; border-color: #365314; }
.vp-btn--white .vp-btn { background: #fff; color: #1a2e05 !important; border: 2px solid #fff; }
.vp-btn--white .vp-btn:hover { background: #f4faee; }
.vp-btn--outline .vp-btn { background: transparent; color: inherit !important; border: 2px solid currentColor; }
.vp-btn--outline .vp-btn:hover { background: rgba(132, 204, 22, .12); }
.vp-btn--sm .vp-btn { padding: 9px 18px; font-size: .85rem; border-radius: 10px; }
.vp-btn--md .vp-btn { padding: 13px 28px; font-size: .95rem; }
.vp-btn--lg .vp-btn { padding: 17px 40px; font-size: 1.1rem; border-radius: 14px; }

/* Text */
.vp .vp-text-sm { font-size: .875rem; }
.vp .vp-text-lg { font-size: 1.25rem; }
.vp .vp-text-xl { font-size: clamp(1.6rem, 3.5vw, 2.4rem); line-height: 1.25; }
.vp .vp-color-green { color: #4d7c0f; }
.vp .vp-color-grey { color: #6b7280; }
.vp .vp-color-white { color: #fff; }

/* Images */
.vp .vp-img-sm { max-width: 320px; width: 100%; }
.vp .vp-img-md { max-width: 560px; width: 100%; }
.vp .vp-img-lg { max-width: 820px; width: 100%; }
.vp .vp-rounded, .vp .vp-rounded img { border-radius: 16px; }
.vp .vp-circle { border-radius: 9999px; aspect-ratio: 1; object-fit: cover; }

/* Sections */
.vp .vp-pad-sm { padding-top: 24px; padding-bottom: 24px; }
.vp .vp-pad-lg { padding-top: 96px; padding-bottom: 96px; }

/* Hero */
.vp-hero.vp-shade-light::before { background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0)); }
.vp-hero.vp-shade-strong::before { background: rgba(0,0,0,.65); }
.vp-hero.vp-focus-top { background-position: center top; }
.vp-hero.vp-focus-bottom { background-position: center bottom; }
.vp-hero.vp-h-sm { min-height: 300px; }
.vp-hero.vp-h-lg { min-height: 640px; }

/* Spacer */
.vp .vp-gap-sm { height: 24px; }
.vp .vp-gap-lg { height: 96px; }
.vp .vp-gap-xl { height: 160px; }

@media (max-width: 640px) {
    .vp-section { padding: 40px 16px; }
    .vp-hero { min-height: 360px; padding: 40px 16px; }
    .vp-grid.vp-cols-3, .vp-grid.vp-cols-4, .vp-grid.vp-gal-featured { --cols: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vp-grid.vp-gal-masonry { columns: 2; }
    .vp-grid.vp-gal-carousel img, .vp-grid.vp-gal-carousel.vp-cols-3 img, .vp-grid.vp-gal-carousel.vp-cols-4 img { flex-basis: 85%; }
    .vp-grid.vp-gal-carousel.vp-cols-2 img { flex-basis: calc((100% - var(--g)) / 2); }
}
