/*
Theme Name: Juste des Bulles
Theme URI: https://justedesbulles.com
Author: JDB Theme Developer
Author URI: https://justedesbulles.com
Description: Custom theme recreating the Juste des Bulles champagne agency website
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: juste-des-bulles
*/

/* Google Fonts - matching original site */
@import url('https://fonts.googleapis.com/css2?family=Muli:wght@300;400;600&family=Ubuntu:wght@400;500&family=Open+Sans:wght@300;400;600&display=swap');

/* BlackJack-style script font - fallback to cursive */
@font-face {
    font-family: 'BlackJack';
    src: url('https://cdn2.editmysite.com/fonts/BlackJack/font.woff2') format('woff2'),
         url('https://cdn2.editmysite.com/fonts/BlackJack/font.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Muli', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background:
        radial-gradient(1050px 460px at 8% -8%, rgba(201, 162, 39, 0.08), transparent 64%),
        radial-gradient(720px 340px at 92% 9%, rgba(166, 141, 78, 0.06), transparent 60%),
        radial-gradient(760px 420px at 48% 115%, rgba(255, 255, 255, 0.7), transparent 68%),
        linear-gradient(135deg, #fcfcfb 0%, #f8f9f8 46%, #f7f7f5 100%);
    background-color: #fafaf9;
    background-attachment: fixed;
}

a {
    color: #c9a227;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #a68520;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.3;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h2 {
    font-size: 30px;
    color: #333;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 24px;
}

p {
    margin: 0 0 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    --jdb-header-surface: rgba(255, 250, 242, 0.72);
    --jdb-header-border: rgba(121, 93, 27, 0.18);
    --jdb-header-shadow: 0 24px 54px rgba(66, 48, 20, 0.08);
    --jdb-header-ink: #2f2922;
    --jdb-header-muted: #6c6457;
    --jdb-header-accent: #7b5b18;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(255, 248, 239, 0.2)),
        var(--jdb-header-surface);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--jdb-header-shadow);
    border-bottom: 1px solid var(--jdb-header-border);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 20px;
}

.site-branding {
    margin: 0;
    color: var(--jdb-header-ink);
}

.site-branding--header {
    display: none;
}

.site-branding--header a {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.site-branding__logo {
    display: block;
    width: auto;
    height: 28px;
}

.site-branding__title {
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.55rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.site-branding a {
    color: inherit;
    text-decoration: none;
}

.main-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(18px, 2.8vw, 34px);
    align-items: center;
    justify-content: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 10px 0;
    color: var(--jdb-header-muted);
    font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

/* Underline effect */
.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #caa347 0%, #b48528 100%);
    transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after,
.nav-menu > li.current-menu-item > a::after,
.nav-menu > li.current_page_item > a::after {
    width: 100%;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
    color: var(--jdb-header-accent);
}

/* Dropdown submenu */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 251, 245, 0.98);
    border: 1px solid rgba(121, 93, 27, 0.14);
    border-radius: 0;
    min-width: 188px;
    box-shadow: 0 6px 16px rgba(66, 48, 20, 0.06);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    -webkit-backdrop-filter: blur(16px) saturate(155%);
    backdrop-filter: blur(16px) saturate(155%);
}

.nav-menu li:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--jdb-header-muted);
    font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.74rem;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
}

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu a:focus {
    color: var(--jdb-header-accent);
}

/* Mobile menu toggle — animated hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--jdb-header-ink);
    margin: 5px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open .menu-toggle span {
    background: #c9a227;
}

body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay — transparent wrapper on desktop */
.mobile-menu-overlay {
    display: contents;
}

.mobile-menu-brand {
    display: none;
}

/* Mobile-only sub-menu item — hidden on desktop */
.mobile-submenu-parent-link {
    display: none;
}

/* Main content area */
main {
    margin-top: 88px; /* Account for fixed header */
}

/* Sections */
.section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.74);
}

.section-alt {
    background:
        linear-gradient(160deg, rgba(247, 247, 245, 0.86), rgba(240, 241, 239, 0.82));
}

.section-dark {
    background: #333;
    color: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

/* Hero Section with background image */
.hero {
    min-height: 575px;
    background-image: url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: 50% 80%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 40px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

/* Page Hero - Featured Image */
.page-hero {
    min-height: 575px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 800px;
}

.page-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-hero-content p {
    font-size: 20px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-logo {
    max-width: 350px;
    margin-right: 50px;
}

/* Agence Section - Two column layout with background */
.agence-section {
    min-height: 500px;
    background-image: url('assets/images/agence-bg.png');
    background-size: cover;
    background-position: 0% 31%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding: 60px 0;
}

.agence-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.agence-text h2 {
    text-align: left;
    font-size: 42px;
    margin-bottom: 30px;
}

.agence-text p {
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.agence-image {
    text-align: right;
}

.agence-image img {
    max-width: 100%;
    height: auto;
}

/* Yolaine Section - Float layout */
.yolaine-section {
    background: #edecec;
    padding: 60px 0;
}

.yolaine-content {
    overflow: hidden; /* Clear float */
}

.yolaine-image {
    float: left;
    max-width: 378px;
    margin: 0 20px 15px 0;
    border: 1px solid #ddd;
    padding: 3px;
}

.yolaine-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.yolaine-text p {
    line-height: 1.7;
}

/* Content blocks (for other pages) */
.content-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.content-block.reverse {
    flex-direction: row-reverse;
}

.content-block-text {
    flex: 1;
}

.content-block-image {
    flex: 1;
}

.content-block-image img {
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Two column layout */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

/* Horizontal rule */
hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 40px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #c9a227;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #a68520;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid #c9a227;
    color: #c9a227;
}

.btn-outline:hover {
    background: #c9a227;
    color: #fff;
}

/* Image gallery / grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.image-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Logo grid for partners/brands */
.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
}

.logo-grid img {
    max-height: 60px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c9a227;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.required {
    color: #c00;
}

/* Social links */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #c9a227;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    gap: 30px;
}

.footer-nav a {
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav a:hover {
    color: #c9a227;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.85rem;
    color: #999;
}

/* Catalogue specific styles */
.catalogue-section {
    padding: 40px 0;
}

.catalogue-region {
    margin-bottom: 60px;
}

.catalogue-region h3 {
    font-size: 1.5rem;
    color: #c9a227;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c9a227;
}

.wine-list {
    margin-bottom: 30px;
}

.wine-item {
    margin-bottom: 15px;
}

.wine-item a {
    color: #333;
}

.wine-item a:hover {
    color: #c9a227;
}

.wine-producer {
    font-weight: 600;
    color: #333;
}

.wine-name {
    color: #666;
}

.fiche-link {
    font-size: 0.85rem;
    color: #c9a227;
    margin-left: 10px;
}

/* Order instructions box */
.order-instructions {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    margin: 40px 0;
}

.order-instructions h3 {
    margin-top: 0;
    color: #333;
}

.order-instructions ol {
    padding-left: 20px;
}

.order-instructions li {
    margin-bottom: 10px;
}

/* Events page */
.event-section {
    text-align: center;
    padding: 40px 0;
}

.event-section h3 {
    color: #c9a227;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.event-list {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.event-item {
    margin-bottom: 0;
    padding: 16px 0;
    padding-left: 20px;
    position: relative;
    border-left: 2px solid #edecec;
    transition: border-color 0.2s ease;
}

.event-item:hover {
    border-left-color: #c9a227;
}

/* Remove old bullet style */
.event-item::before {
    display: none;
}

/* Voyages/Travel page */
.itinerary {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 5px;
    margin: 40px 0;
}

.itinerary-day {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.itinerary-day:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.itinerary-day h4 {
    color: #c9a227;
    margin-bottom: 10px;
}

/* Team building page */
.team-building-info {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.team-building-details {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.team-building-images {
    display: grid;
    gap: 15px;
}

.team-building-images img {
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* Contact page specifics */
.contact-info {
    text-align: center;
    margin-bottom: 40px;
}

.contact-phone {
    font-size: 2rem;
    color: #c9a227;
    font-weight: 600;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact-phone a {
    color: #c9a227;
    text-decoration: none;
}

.contact-form-column .form-group input,
.contact-form-column .form-group textarea,
.contact-form-column .form-group select {
    box-sizing: border-box;
    max-width: 100%;
}

/* Google Map container */
.map-container {
    margin: 40px 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}

/* Messages */
.message {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* =============================================
   Gutenberg Block Overrides
   ============================================= */

/* Reset Gutenberg default spacing */
.wp-block-group {
    margin-top: 0;
    margin-bottom: 0;
}

.wp-block-columns {
    margin-bottom: 0;
}

.wp-block-column {
    margin-bottom: 0;
}

/* Section containers from blocks */
.wp-block-group.section {
    padding: 60px 20px;
    background-color: rgba(255, 255, 255, 0.74);
}

.wp-block-group.section-alt {
    background:
        linear-gradient(160deg, rgba(247, 247, 245, 0.86), rgba(240, 241, 239, 0.82));
    padding: 60px 20px;
}

.wp-block-group.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Two columns layout for blocks */
.wp-block-columns.two-columns {
    gap: 40px;
}

/* Catalogue page - Wine lists base */
.wp-block-group.wine-list {
    margin-bottom: 16px;
    padding: 0;
    border: none;
}

.wp-block-group.wine-list p {
    margin: 0 0 1px 0;
}

.wp-block-group.wine-list .wine-item {
    font-size: 13px;
    margin: 0 0 1px 0;
}

/* Catalogue region headings */
.wp-block-column.catalogue-region h3 {
    font-size: 1.5rem;
    color: #c9a227;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c9a227;
    margin-top: 30px;
}

.wp-block-column.catalogue-region h3:first-child,
.wp-block-column.catalogue-region > .wp-block-image + h3 {
    margin-top: 0;
}

/* Order instructions block */
.wp-block-group.order-instructions {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
    margin: 40px 0;
}

.wp-block-group.order-instructions h3 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
}

.wp-block-group.order-instructions ol {
    padding-left: 20px;
    margin-bottom: 0;
}

.wp-block-group.order-instructions li {
    margin-bottom: 10px;
}

/* Logo grid - Gallery block */
.wp-block-gallery.logo-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px !important;
    padding: 30px 0;
}

.wp-block-gallery.logo-grid .wp-block-image {
    width: auto !important;
    flex-grow: 0 !important;
    margin: 0 !important;
}

.wp-block-gallery.logo-grid .wp-block-image img {
    max-height: 60px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.wp-block-gallery.logo-grid .wp-block-image img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.wp-block-gallery.logo-grid figure {
    margin: 0 !important;
}

/* Events page - Event sections */
.wp-block-column.event-section {
    text-align: center;
}

.wp-block-column.event-section h3 {
    color: #c9a227;
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-align: center;
}

.wp-block-column.event-section > p {
    margin-bottom: 20px;
}

/* Event list styling */
.wp-block-group.event-list {
    text-align: left;
}

.wp-block-group.event-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid #c9a227;
    border-radius: 0 5px 5px 0;
}

.wp-block-group.event-item p {
    margin-bottom: 0;
}

/* Image grid - Gallery block for events (exclude logo-grid) */
.wp-block-gallery.image-grid {
    gap: 4px !important;
}

.wp-block-gallery.image-grid .wp-block-image {
    margin: 0 !important;
}

.wp-block-gallery.image-grid .wp-block-image img {
    border-radius: 0;
}

/* Team building page */
.wp-block-column.team-building-details {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 5px;
}

.wp-block-column.team-building-images .wp-block-image {
    margin-bottom: 15px;
}

.wp-block-column.team-building-images .wp-block-image img {
    border-radius: 5px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

/* Buttons block styling */
.wp-block-buttons {
    margin-top: 20px;
    margin-bottom: 20px;
}

.wp-block-button__link {
    font-family: 'Ubuntu', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 30px;
}

/* Separator/HR styling */
.wp-block-separator {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0;
    opacity: 1;
}

/* Headings in blocks */
.wp-block-heading {
    margin-top: 0;
}

/* Paragraphs in blocks */
.wp-block-group p:last-child {
    margin-bottom: 0;
}

/* Contact page blocks */
.wp-block-group.contact-info {
    text-align: center;
    margin-bottom: 20px;
}

/* Social links block */
.wp-block-social-links {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

/* Map container */
.wp-block-group.map-container {
    margin-top: 20px;
}

.wp-block-group.map-container iframe {
    border-radius: 5px;
}

/* ==========================================================================
   CATALOGUE PAGE IMPROVEMENTS
   ========================================================================== */

/* Page title section */
.page-template-catalogue h2,
.catalogue-page h2 {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edecec;
}

/* Two-column layout improvements */
.wp-block-columns.two-columns.catalogue-columns {
    gap: 60px;
}

.wp-block-column.catalogue-region {
    padding-right: 20px;
}

/* Region separator between columns */
.wp-block-columns.two-columns .wp-block-column.catalogue-region:first-child {
    border-right: 1px solid #edecec;
    padding-right: 40px;
}

.wp-block-columns.two-columns .wp-block-column.catalogue-region:last-child {
    padding-left: 20px;
}

/* Wine list clean styling - very compact */
.wp-block-group.wine-list {
    margin-bottom: 16px;
    padding: 0;
    border: none;
}

.wp-block-group.wine-list:last-child {
    margin-bottom: 0;
}

/* Producer heading - aligned flush left */
.wp-block-group.wine-list h4,
.wp-block-group.wine-list .producer-name,
.wine-list h4 {
    font-size: 13px;
    font-weight: 600;
    color: #c9a227;
    margin: 0 0 2px 0;
    padding: 0;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Wine items - flush left, minimal spacing */
.wp-block-group.wine-list p,
.wine-list .wine-item {
    font-size: 13px;
    color: #333;
    padding: 0;
    margin: 0 0 1px 0;
    border: none;
    line-height: 1.3;
}

/* No hover effect on wine descriptions */

/* FICHE links - aligned with text */
.wp-block-group.wine-list a,
.wine-item a,
.fiche-link {
    display: block;
    color: #c9a227;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin: 0;
}

.wp-block-group.wine-list a:hover,
.wine-item a:hover,
.fiche-link:hover {
    color: #a68520;
}

/* Logo grid alignment - centered */
.wp-block-gallery.logo-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px 40px !important;
    padding: 40px 20px;
}

.wp-block-gallery.logo-grid .wp-block-image {
    width: auto !important;
    flex-grow: 0 !important;
    margin: 0 !important;
}

.wp-block-gallery.logo-grid .wp-block-image img {
    max-height: 50px !important;
    width: auto !important;
    height: auto !important;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.wp-block-gallery.logo-grid .wp-block-image:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.wp-block-gallery.logo-grid figure {
    margin: 0 !important;
}

/* Order instructions polish */
.wp-block-group.order-instructions {
    background: #fafafa;
    border-left: 3px solid #c9a227;
    border-radius: 0;
    padding: 30px 40px;
    margin: 40px 0;
}

.wp-block-group.order-instructions h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
    border-bottom: none;
    padding-bottom: 0;
}

.wp-block-group.order-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.wp-block-group.order-instructions li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #333;
}

.wp-block-group.order-instructions li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   EVENEMENTS PAGE IMPROVEMENTS
   ========================================================================== */

/* Event section headers */
.wp-block-column.event-section h3,
.event-section h3 {
    font-size: 20px;
    color: #c9a227;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Price info styling */
.wp-block-column.event-section > p:first-of-type,
.event-section .price-info {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    font-style: italic;
}

/* Event items clean list style */
.wp-block-group.event-item {
    padding: 16px 0;
    padding-left: 20px;
    border-left: 2px solid #edecec;
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    transition: border-color 0.2s ease;
}

.wp-block-group.event-item:hover {
    border-left-color: #c9a227;
}

.wp-block-group.event-item + .wp-block-group.event-item {
    margin-top: 0;
}

/* Event item title */
.wp-block-group.event-item strong,
.wp-block-group.event-item p strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

/* Event item description */
.wp-block-group.event-item p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Two-column event layout */
.wp-block-columns.event-columns {
    gap: 80px;
}

.wp-block-columns.event-columns > .wp-block-column:first-child {
    border-right: 1px solid #edecec;
    padding-right: 40px;
}

.wp-block-columns.event-columns > .wp-block-column:last-child {
    padding-left: 20px;
}

/* Gallery grid - collage effect */
.wp-block-gallery.image-grid {
    gap: 4px !important;
}

.wp-block-gallery.image-grid .wp-block-image {
    margin: 0 !important;
}

.wp-block-gallery.image-grid .wp-block-image img {
    border-radius: 0;
}

/* Section spacing improvements */
.wp-block-group.section {
    padding: 60px 20px;
}

.wp-block-group.section + .wp-block-group.section-alt,
.wp-block-group.section-alt + .wp-block-group.section {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .two-columns,
    .team-building-info,
    .agence-content,
    .wp-block-columns.two-columns {
        flex-direction: column;
    }

    .wp-block-columns.two-columns .wp-block-column {
        flex-basis: 100% !important;
    }

    .content-block,
    .content-block.reverse {
        flex-direction: column;
    }

    .three-columns {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .hero {
        min-height: 400px;
        justify-content: center;
    }

    .hero-logo {
        margin-right: 0;
    }

    /* Catalogue responsive - remove column separators */
    .wp-block-columns.two-columns .wp-block-column.catalogue-region:first-child {
        border-right: none;
        padding-right: 0;
    }

    .wp-block-columns.two-columns .wp-block-column.catalogue-region:last-child {
        padding-left: 0;
        margin-top: 40px;
    }

    /* Events responsive - remove column separators */
    .wp-block-columns.event-columns > .wp-block-column:first-child {
        border-right: none;
        padding-right: 0;
    }

    .wp-block-columns.event-columns > .wp-block-column:last-child {
        padding-left: 0;
        margin-top: 40px;
    }

    .wp-block-columns.event-columns {
        gap: 0;
    }

    .page-hero {
        min-height: 400px;
    }

    /* Contact page: stack sidebar below form */
    .contact-sidebar {
        margin-top: 40px;
    }

    .contact-form-column {
        flex-basis: 100% !important;
    }
}

@media (max-width: 768px) {
    /* Mobile header: row layout with brand left, hamburger right */
    .site-header {
        padding: 0;
    }

    .header-inner {
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        padding: 10px 16px;
        max-width: none;
    }

    .site-branding {
        margin-bottom: 0;
    }

    .site-branding--header {
        display: none;
    }

    .site-branding__title {
        font-size: 1.02rem;
    }

    .site-branding__logo {
        height: 24px;
    }

    .main-navigation {
        width: 100%;
        display: flex;
        justify-content: flex-end;
        flex: 1 1 auto;
    }

    .menu-toggle {
        display: block;
    }

    /* Disable hover-based sub-menu inside overlay — only accordion controls visibility */
    .mobile-menu-overlay .nav-menu li:hover > .sub-menu {
        max-height: 0;
        opacity: 0;
        padding: 0;
    }

    .mobile-menu-overlay .nav-menu li:hover > .sub-menu.sub-menu-open,
    .mobile-menu-overlay .nav-menu li > .sub-menu.sub-menu-open {
        max-height: 200px;
        opacity: 1;
        padding: 0 0 12px;
    }

    /* Full-screen overlay */
    .mobile-menu-overlay {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        min-height: 100vh;
        height: 100dvh;
        background: rgba(26, 26, 26, 0.97);
        z-index: 10000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        padding: 80px 20px 40px;
        overflow-y: auto;
    }

    body.menu-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Brand name at top of overlay */
    .mobile-menu-brand {
        font-family: 'BlackJack', 'Brush Script MT', cursive;
        font-size: 42px;
        color: #c9a227;
        margin-bottom: 40px;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    }

    body.menu-open .mobile-menu-brand {
        opacity: 1;
        transform: translateY(0);
    }

    /* Nav menu inside overlay */
    .mobile-menu-overlay .nav-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 0;
        width: 100%;
        max-width: 320px;
    }

    .mobile-menu-overlay .nav-menu > li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(201, 162, 39, 0.15);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .mobile-menu-overlay .nav-menu > li:last-child {
        border-bottom: none;
    }

    /* Staggered entrance */
    body.menu-open .mobile-menu-overlay .nav-menu > li {
        opacity: 1;
        transform: translateY(0);
    }

    body.menu-open .mobile-menu-overlay .nav-menu > li:nth-child(1) { transition-delay: 0.15s; }
    body.menu-open .mobile-menu-overlay .nav-menu > li:nth-child(2) { transition-delay: 0.2s; }
    body.menu-open .mobile-menu-overlay .nav-menu > li:nth-child(3) { transition-delay: 0.25s; }
    body.menu-open .mobile-menu-overlay .nav-menu > li:nth-child(4) { transition-delay: 0.3s; }
    body.menu-open .mobile-menu-overlay .nav-menu > li:nth-child(5) { transition-delay: 0.35s; }
    body.menu-open .mobile-menu-overlay .nav-menu > li:nth-child(6) { transition-delay: 0.4s; }
    body.menu-open .mobile-menu-overlay .nav-menu > li:nth-child(7) { transition-delay: 0.45s; }
    body.menu-open .mobile-menu-overlay .nav-menu > li:nth-child(8) { transition-delay: 0.5s; }

    .mobile-menu-overlay .nav-menu > li > a {
        display: block;
        padding: 16px 0;
        color: #fff;
        font-family: 'Open Sans', sans-serif;
        font-size: 15px;
        text-transform: uppercase;
        letter-spacing: 3px;
        font-weight: 400;
        transition: color 0.3s ease;
    }

    .mobile-menu-overlay .nav-menu > li > a::after {
        display: none;
    }

    .mobile-menu-overlay .nav-menu > li > a:hover,
    .mobile-menu-overlay .nav-menu > li.current-menu-item > a,
    .mobile-menu-overlay .nav-menu > li.current_page_item > a {
        color: #c9a227;
    }

    /* Sub-menu accordion with animation */
    .mobile-menu-overlay .nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        margin: 0;
        list-style: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    }

    .mobile-menu-overlay .nav-menu .sub-menu.sub-menu-open {
        max-height: 200px;
        opacity: 1;
        padding: 0 0 12px;
    }

    .mobile-menu-overlay .nav-menu .sub-menu li {
        text-align: center;
    }

    .mobile-menu-overlay .nav-menu .sub-menu .mobile-submenu-parent-link {
        display: list-item;
    }

    .mobile-menu-overlay .nav-menu .sub-menu a {
        display: inline-block;
        padding: 8px 0;
        color: rgba(255, 255, 255, 0.7);
        font-family: 'Open Sans', sans-serif;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .mobile-menu-overlay .nav-menu .sub-menu a::before {
        display: none;
    }

    .mobile-menu-overlay .nav-menu .sub-menu a:hover {
        color: #c9a227;
    }

    .three-columns {
        grid-template-columns: 1fr;
    }

    main {
        margin-top: 64px;
    }

    .image-grid,
    .wp-block-gallery.image-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .wp-block-gallery.logo-grid {
        gap: 15px !important;
    }

    .wp-block-gallery.logo-grid .wp-block-image img {
        max-height: 50px !important;
    }

    .wp-block-group.section {
        padding: 40px 15px;
    }

    .wp-block-column.event-section h3,
    .event-section h3 {
        font-size: 18px;
    }

    /* Wine list mobile adjustments */
    .wp-block-group.wine-list p,
    .wine-list .wine-item {
        padding: 0;
    }

    /* Event items mobile adjustments */
    .wp-block-group.event-item {
        padding-left: 16px;
    }

    h2 {
        font-size: 24px;
    }
    
    .site-branding {
        font-size: 36px;
    }
    
    .hero {
        min-height: 300px;
        padding: 20px;
    }

    .page-hero {
        min-height: 300px;
        padding: 20px;
    }

    .page-hero-content h1 {
        font-size: 32px;
    }

    .page-hero-content p {
        font-size: 16px;
    }

    /* Contact page mobile */
    .contact-phone {
        font-size: 1.4rem;
    }

    .contact-form-column,
    .contact-sidebar {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .map-container iframe {
        height: 200px;
    }

    .hero-logo {
        max-width: 200px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .yolaine-image {
        float: none;
        display: block;
        max-width: 100%;
        margin: 0 auto 20px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .image-grid,
    .wp-block-gallery.image-grid {
        grid-template-columns: 1fr !important;
    }

    .logo-grid img,
    .wp-block-gallery.logo-grid .wp-block-image img {
        max-height: 40px !important;
    }

    .site-branding {
        font-size: 28px;
    }

    .wp-block-group.order-instructions {
        padding: 20px 24px;
    }

    .wp-block-group.order-instructions h3 {
        font-size: 16px;
    }

    .wp-block-column.team-building-details {
        padding: 20px;
    }

    .wp-block-group.event-item {
        padding: 12px 0;
        padding-left: 12px;
    }

    /* Wine list small mobile */
    .wp-block-group.wine-list h4 {
        font-size: 12px;
    }

    .wp-block-group.wine-list p {
        font-size: 12px;
        padding: 0;
    }

    .contact-phone {
        font-size: 1.2rem;
    }
}

/* Wine product sheet (single jdb_wine) */
.wine-sheet {
    position: relative;
    isolation: isolate;
    padding: 50px 0 80px;
}

.wine-sheet::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(780px 340px at 6% 8%, rgba(201, 162, 39, 0.11), transparent 68%),
        radial-gradient(620px 280px at 92% 14%, rgba(166, 141, 78, 0.08), transparent 62%),
        radial-gradient(720px 320px at 50% 100%, rgba(255, 255, 255, 0.7), transparent 70%);
}

.wine-sheet .container {
    max-width: 1080px;
}

.wine-sheet__header {
    margin-bottom: 36px;
}

.wine-sheet__back {
    margin: 0 0 16px;
}

.wine-sheet__back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6e6a5f;
    font-size: 0.92rem;
    text-decoration: none;
}

.wine-sheet__back a:hover,
.wine-sheet__back a:focus {
    color: #8f7330;
    text-decoration: none;
}

.wine-sheet__back a::before {
    content: '←';
    font-size: 0.95rem;
    line-height: 1;
}

.wine-sheet__header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
}

.wine-sheet__header-copy {
    min-width: 0;
}

.wine-sheet__kicker {
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2.4px;
    font-size: 0.72rem;
    color: #6e6a5f;
}

.wine-sheet__title {
    margin-bottom: 6px;
    color: #1f1e1a;
}

.wine-sheet__producer {
    margin-bottom: 4px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #352f22;
}

.wine-sheet__origin {
    margin: 0;
    font-size: 0.95rem;
    color: #6e6a5f;
}

.wine-sheet__header-action {
    display: flex;
    justify-content: flex-end;
}

.wine-sheet__download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #d8d3c5;
    border-radius: 999px;
    background: #faf7f0;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wine-sheet__download:hover,
.wine-sheet__download:focus {
    border-color: #bca96e;
    background: #f4eee0;
    text-decoration: none;
}

.wine-sheet__download-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 7px;
    border-radius: 999px;
    background: #ece4d2;
    color: #7a6736;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.wine-sheet__download-label {
    color: #3a3428;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
}

.wine-sheet__top {
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 26px;
    margin-bottom: 26px;
}

.wine-sheet__image-wrap {
    min-height: 420px;
    background: #fff;
    border: 1px solid #ebe7de;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wine-sheet__image {
    max-height: 480px;
    width: auto;
    object-fit: contain;
}

.wine-sheet__placeholder {
    color: #8a8578;
}

.wine-sheet__logo-fallback {
    width: min(200px, 58%);
    height: auto;
    opacity: 0.9;
    transform: translateX(30px);
    display: block;
}

.wine-sheet__facts,
.wine-sheet__card {
    background: #fff;
    border: 1px solid #ebe7de;
    border-radius: 16px;
    padding: 20px 22px;
}

.wine-sheet__facts h2,
.wine-sheet__card h2 {
    margin: 0 0 14px;
    text-align: left;
    font-size: 1rem;
    letter-spacing: 1.8px;
    color: #8f7330;
}

.wine-sheet__facts dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
}

.wine-sheet__facts dl div {
    border-top: 1px solid #f1ede3;
    padding-top: 10px;
}

.wine-sheet__facts dt {
    margin-bottom: 4px;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #7b7568;
}

.wine-sheet__facts dd {
    margin: 0;
    color: #2a2925;
}

.wine-sheet__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.wine-sheet__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wine-sheet__price-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wine-sheet__price-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    border-top: 1px solid #f1ede3;
    padding: 10px 0;
}

.wine-sheet__price-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.wine-sheet__price-list strong {
    color: #1f1e1a;
}

.wine-sheet__empty-note {
    margin: 10px 0 0;
    color: #6e6a5f;
    font-style: italic;
}

.wine-sheet__tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wine-sheet__tag-list li {
    border-radius: 999px;
    border: 1px solid #dbc078;
    background: #fff9e8;
    padding: 6px 12px;
    color: #4f4320;
    font-size: 0.9rem;
}

.wine-sheet__tag-list li span {
    margin-left: 6px;
    color: #7b6732;
    font-size: 0.8rem;
}

.wine-sheet__tag-list--light li {
    border-color: #d8d3c5;
    background: #f7f4ec;
    color: #443f33;
}

.wine-sheet__card--full {
    margin-bottom: 20px;
    width: 100%;
    clear: both;
}

.wine-sheet__domain-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 14px;
    color: #555040;
}

.wine-sheet__domain-head strong {
    color: #1f1e1a;
}

.wine-sheet__richtext > *:last-child {
    margin-bottom: 0;
}

.wine-sheet__richtext {
    display: flow-root;
}

.wine-sheet__website {
    margin-top: 14px;
}

@media (max-width: 992px) {
    .wine-sheet__header-main {
        grid-template-columns: 1fr;
    }

    .wine-sheet__header-action {
        justify-content: flex-start;
    }

    .wine-sheet__top {
        grid-template-columns: 1fr;
    }

    .wine-sheet__image-wrap {
        min-height: 320px;
    }

    .wine-sheet__facts dl {
        grid-template-columns: 1fr;
    }

    .wine-sheet__grid {
        grid-template-columns: 1fr;
    }
}

/* Agence homepage */
.jdb-homepage {
    --jdb-home-bg: #f7f3eb;
    --jdb-home-surface: rgba(255, 251, 245, 0.9);
    --jdb-home-surface-strong: #fffaf0;
    --jdb-home-border: rgba(121, 93, 27, 0.14);
    --jdb-home-ink: #2f2922;
    --jdb-home-muted: #6c6457;
    --jdb-home-accent: #b38a2f;
    --jdb-home-accent-deep: #7b5b18;
    --jdb-home-shadow: 0 28px 80px rgba(66, 48, 20, 0.12);
    position: relative;
    overflow: clip;
    color: var(--jdb-home-ink);
}

.jdb-homepage::before,
.jdb-homepage::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.jdb-homepage::before {
    top: 32px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.18) 0%, rgba(201, 162, 39, 0) 72%);
}

.jdb-homepage::after {
    left: -180px;
    bottom: 140px;
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(159, 126, 47, 0.12) 0%, rgba(159, 126, 47, 0) 72%);
}

.jdb-homepage > .wp-block-group {
    position: relative;
    z-index: 1;
}

.jdb-homepage .container,
.jdb-homepage .wp-block-group.container {
    width: min(1480px, calc(100vw - 88px));
    max-width: none;
    margin-inline: auto;
}

.jdb-homepage__hero {
    padding: 48px 0 52px;
}

.jdb-homepage__hero-inner,
.jdb-homepage__story-grid,
.jdb-homepage__founder-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.jdb-homepage__hero-inner,
.jdb-homepage__story-grid,
.jdb-homepage__services-heading,
.jdb-homepage__service-grid,
.jdb-homepage__founder-grid {
    width: 100%;
    max-width: none;
}

.jdb-homepage__hero-inner {
    grid-template-columns: minmax(620px, 1.22fr) minmax(360px, 0.78fr);
    gap: clamp(36px, 4vw, 76px);
    position: relative;
}

.jdb-homepage__eyebrow,
.jdb-homepage__section-label {
    margin: 0 0 18px;
    color: var(--jdb-home-accent-deep);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3.4px;
    text-transform: uppercase;
}

.jdb-homepage__hero-copy {
    padding-top: 8px;
}

.jdb-homepage__hero-copy h1,
.jdb-homepage__story-intro h2,
.jdb-homepage__services-heading h2,
.jdb-homepage__founder-copy h2 {
    margin: 0;
    color: var(--jdb-home-ink);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: none;
    text-align: left;
}

.jdb-homepage__hero-copy h1 {
    max-width: 10ch;
    font-size: clamp(3.8rem, 5.2vw, 5.4rem);
    line-height: 1.05;
}

.jdb-homepage__lead {
    max-width: 38rem;
    margin: 24px 0 0;
    color: var(--jdb-home-muted);
    font-size: 1.1rem;
    line-height: 1.78;
}

.jdb-homepage__hero-actions,
.jdb-homepage__founder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.jdb-homepage__hero-actions {
    margin-top: 28px;
}

.jdb-homepage__button .wp-block-button__link,
a.jdb-homepage__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #caa347 0%, #b48528 100%);
    border: 1px solid transparent;
    color: #fff;
    font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 16px 40px rgba(179, 138, 47, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    text-decoration: none;
}

.jdb-homepage__button .wp-block-button__link:hover,
.jdb-homepage__button .wp-block-button__link:focus,
a.jdb-homepage__button:hover,
a.jdb-homepage__button:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 22px 44px rgba(179, 138, 47, 0.26);
}

.jdb-homepage__button--ghost .wp-block-button__link,
a.jdb-homepage__button--ghost {
    background: rgba(255, 252, 247, 0.55);
    border-color: rgba(121, 93, 27, 0.18);
    color: var(--jdb-home-ink);
    box-shadow: none;
}

.jdb-homepage__button--ghost .wp-block-button__link:hover,
.jdb-homepage__button--ghost .wp-block-button__link:focus,
a.jdb-homepage__button--ghost:hover,
a.jdb-homepage__button--ghost:focus {
    color: var(--jdb-home-ink);
    background: rgba(255, 252, 247, 0.88);
}

.jdb-homepage__hero-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    font-size: 0.92rem;
}

@media (min-width: 981px) {
    .jdb-homepage__hero-points {
        margin-top: 28px;
    }
}

.jdb-homepage__hero-points li {
    position: relative;
    padding-left: 20px;
    color: var(--jdb-home-muted);
}

.jdb-homepage__hero-points li::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ccb46d, #b4872f);
    box-shadow: 0 0 0 6px rgba(201, 162, 39, 0.08);
}

.jdb-homepage__hero-visual {
    position: relative;
    height: 650px;
    align-self: start;
}

.jdb-homepage__hero-visual::before,
.jdb-homepage__hero-visual::after {
    content: '';
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.92;
    pointer-events: none;
    z-index: 0;
}

.jdb-homepage__hero-visual::before {
    top: 52px;
    right: 58px;
    width: 130px;
    height: 130px;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 42%),
        radial-gradient(circle, rgba(236, 129, 167, 0.48) 0%, rgba(236, 129, 167, 0.08) 58%, rgba(236, 129, 167, 0) 75%);
}

.jdb-homepage__hero-visual::after {
    left: 92px;
    bottom: 12px;
    width: 180px;
    height: 180px;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 40%),
        radial-gradient(circle, rgba(214, 182, 92, 0.34) 0%, rgba(214, 182, 92, 0.09) 60%, rgba(214, 182, 92, 0) 78%);
}

.jdb-homepage__hero-card,
.jdb-homepage__service-card,
.jdb-homepage__founder-copy {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(252, 247, 238, 0.78));
    border: 1px solid var(--jdb-home-border);
    border-radius: 32px;
    box-shadow: var(--jdb-home-shadow);
    backdrop-filter: blur(10px);
}

.jdb-homepage__hero-card {
    position: absolute;
    top: 80px;
    left: 18px;
    z-index: 2;
    will-change: transform;
    width: min(548px, calc(100% - 70px));
    padding: 32px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    bottom: auto;
}

.jdb-homepage__hero-card > .wp-block-group,
.jdb-homepage__hero-card .jdb-homepage__hero-card-top,
.jdb-homepage__hero-card .jdb-homepage__hero-metrics,
.jdb-homepage__hero-card .jdb-homepage__hero-metric {
    width: 100%;
    max-width: none;
}

.jdb-homepage__hero-card-top p {
    max-width: 28ch;
    margin: 0;
    color: var(--jdb-home-muted);
    font-size: 1.1rem;
    line-height: 1.5;
}

.jdb-homepage__hero-card-top {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
    padding: 10px 20px 22px;
}

/* Override WordPress constrained layout inside jdb-homepage blocks */
.jdb-homepage .is-layout-constrained > * {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Remove WordPress block padding from all jdb-homepage inner blocks */
.jdb-homepage__hero-card-top.is-layout-constrained,
.jdb-homepage__hero-metrics.is-layout-constrained,
.jdb-homepage__hero-metrics > .wp-block-group.is-layout-constrained,
.jdb-homepage__services-heading.is-layout-constrained,
.jdb-homepage__service-grid.is-layout-constrained,
.jdb-homepage__service-card.is-layout-constrained,
.jdb-homepage__founder-actions.is-layout-constrained,
.jdb-homepage__founder-copy .wp-block-quote.is-layout-flow {
    padding: 0;
}

.jdb-homepage__hero-logo {
    margin: 0 auto;
}

.jdb-homepage__hero-logo img {
    width: min(272px, 92%);
    height: auto;
    display: block;
    margin: 0 auto;
}

.jdb-homepage__hero-metrics {
    margin: 6px 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
    padding: 0;
}

.jdb-homepage__hero-metrics > .wp-block-group,
.jdb-homepage__hero-metrics > div,
.jdb-homepage__hero-metrics > .wp-block-group.is-layout-constrained {
    padding: 20px 0 !important;
    border-top: 1px solid rgba(121, 93, 27, 0.12);
}

.jdb-homepage__hero-metrics > .wp-block-group:last-child,
.jdb-homepage__hero-metrics > div:last-child {
    padding-bottom: 6px !important;
}

.jdb-homepage__hero-metric-label,
.jdb-homepage__hero-metrics dt {
    margin: 0 0 6px;
    color: var(--jdb-home-accent-deep);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.3;
}

.jdb-homepage__hero-metric-value,
.jdb-homepage__hero-metrics dd {
    margin: 0;
    color: var(--jdb-home-ink);
    line-height: 1.5;
    font-size: 0.95rem;
}

.jdb-homepage__image-stack {
    display: contents;
}

.jdb-homepage__image {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 28px 70px rgba(63, 45, 20, 0.12);
}

.jdb-homepage__image::after {
    display: none;
}

.jdb-homepage__image img,
.jdb-homepage__founder-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jdb-homepage__image--back {
    top: 52px;
    right: 0;
    width: min(420px, 78%);
    height: 500px;
    z-index: 1;
    will-change: transform;
}

.jdb-homepage__story {
    padding: 56px 0 44px;
}

.jdb-homepage__story-grid {
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(44px, 6vw, 92px);
    align-items: start;
}

.jdb-homepage__story-intro h2,
.jdb-homepage__services-heading h2,
.jdb-homepage__founder-copy h2 {
    font-size: clamp(2.4rem, 3.8vw, 4.25rem);
    line-height: 1.05;
    margin-bottom: 36px;
}

.jdb-homepage__story-body {
    display: grid;
    gap: 20px;
    padding: 38px 40px;
    background: rgba(255, 252, 247, 0.66);
    border: 1px solid rgba(121, 93, 27, 0.12);
    border-radius: 28px;
}

.jdb-homepage__story-body p,
.jdb-homepage__service-card p,
.jdb-homepage__founder-copy p {
    margin: 0;
    color: var(--jdb-home-muted);
    font-family: 'Muli', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
}

.jdb-homepage__founder-copy p + p {
    margin-top: 16px;
}

.jdb-homepage__services {
    padding: 74px 0 66px;
}

.jdb-homepage__services-heading {
    display: block;
    max-width: none;
    margin: 0 0 38px;
    text-align: right;
}

.jdb-homepage__services-heading .jdb-homepage__section-label {
    margin: 0 0 14px;
    padding-bottom: 0;
}

.jdb-homepage__services-heading h2 {
    max-width: min(620px, 100%);
    font-size: clamp(2.2rem, 2.9vw, 3.3rem);
    line-height: 1.05;
    margin: 0 0 0 auto;
    text-align: right;
}

.jdb-homepage__service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.jdb-homepage__service-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 28px 26px 24px;
    text-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.jdb-homepage__service-card.is-layout-constrained {
    padding: 28px 26px 24px;
}

.jdb-homepage__service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(179, 138, 47, 0.26);
    box-shadow: 0 34px 74px rgba(66, 48, 20, 0.16);
}

.jdb-homepage__service-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.12);
    color: var(--jdb-home-accent-deep);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.jdb-homepage__service-card h3 {
    margin: 0 0 16px;
    color: var(--jdb-home-ink);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none;
    line-height: 1.1;
    text-align: center;
}

.jdb-homepage__service-link {
    margin: auto 0 0;
    padding-top: 18px;
}

.jdb-homepage__service-link a {
    color: var(--jdb-home-accent-deep);
    font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.jdb-homepage__service-link a::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.22s ease;
}

.jdb-homepage__service-link a:hover::after,
.jdb-homepage__service-link a:focus::after {
    transform: translateX(3px);
}

.jdb-homepage__founder {
    padding: 80px 0 64px;
}

.jdb-homepage__founder-grid {
    grid-template-columns: minmax(380px, 0.88fr) minmax(0, 1.12fr);
    gap: clamp(36px, 5vw, 76px);
    align-items: start;
}

.jdb-homepage__founder-photo-wrap {
    position: relative;
    display: flex;
    padding: 28px 0 0 30px;
}

.jdb-homepage__founder-photo-wrap::before {
    content: '';
    position: absolute;
    inset: 0 30px 28px 0;
    border-radius: 40px;
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.16), rgba(201, 162, 39, 0.03));
}

.jdb-homepage__founder-photo {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    margin: 0;
    max-height: 640px;
    overflow: hidden;
    border-radius: 36px;
    box-shadow: 0 34px 82px rgba(66, 48, 20, 0.18);
    will-change: transform;
}

.jdb-homepage__founder-copy {
    position: relative;
    padding: 46px 44px;
    align-self: start;
}

.jdb-homepage__quote,
.jdb-homepage__quote.is-layout-flow {
    margin: 44px 0 0;
    padding: 32px 0 0;
    border-top: 1px solid rgba(121, 93, 27, 0.18);
    border-left: none;
    color: var(--jdb-home-accent-deep);
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.jdb-homepage__quote p,
.jdb-homepage__quote.is-layout-flow p {
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
}

.jdb-homepage__founder-actions {
    margin-top: 36px;
}

.jdb-homepage__text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.jdb-homepage__text-link a,
a.jdb-homepage__text-link {
    color: var(--jdb-home-accent-deep);
    text-decoration: none;
}

.jdb-homepage__text-link::after {
    content: '→';
    transition: transform 0.22s ease;
}

.jdb-homepage__text-link:hover::after,
.jdb-homepage__text-link:focus::after {
    transform: translateX(3px);
}

@media (prefers-reduced-motion: no-preference) {
    .jdb-homepage__hero-copy,
    .jdb-homepage__hero-visual,
    .jdb-homepage__story-grid,
    .jdb-homepage__service-card,
    .jdb-homepage__founder-grid {
        animation: jdb-home-fade-up 0.8s ease both;
    }

    .jdb-homepage__hero-visual {
        animation-delay: 0.08s;
    }

    .jdb-homepage__story-grid {
        animation-delay: 0.14s;
    }

    .jdb-homepage__service-card:nth-child(2) {
        animation-delay: 0.12s;
    }

    .jdb-homepage__service-card:nth-child(3) {
        animation-delay: 0.2s;
    }
}

@keyframes jdb-home-fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .jdb-homepage .container,
    .jdb-homepage .wp-block-group.container {
        width: min(100vw - 56px, 1320px);
    }

    .jdb-homepage__hero-inner {
        grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
        gap: 44px;
    }

    .jdb-homepage__hero-copy h1 {
        font-size: clamp(3.35rem, 4.6vw, 4.7rem);
    }

    .jdb-homepage__hero-card {
        width: min(500px, calc(100% - 52px));
        left: 8px;
        padding: 22px 22px 18px;
    }

    .jdb-homepage__image--back {
        width: min(430px, 80%);
        height: 520px;
    }

    .jdb-homepage__services-heading {
        max-width: 560px;
    }

    .jdb-homepage__service-card {
        padding-inline: 26px;
    }

    .jdb-homepage__founder-grid {
        grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.15fr);
    }

    .jdb-homepage__founder-photo {
        max-height: 600px;
    }
}

@media (max-width: 980px) {
    .jdb-homepage__hero {
        padding-top: 50px;
    }

    .jdb-homepage__hero-inner,
    .jdb-homepage__story-grid,
    .jdb-homepage__founder-grid,
    .jdb-homepage__service-grid {
        grid-template-columns: 1fr;
    }

    .jdb-homepage__hero-copy h1 {
        max-width: none;
    }

    .jdb-homepage__hero-visual {
        min-height: auto;
        display: flex;
        justify-content: center;
    }

    .jdb-homepage__hero-card {
        position: relative;
        top: 0;
        left: 0;
        width: min(500px, 100%);
        padding: 24px 22px 20px;
    }

    .jdb-homepage__hero-metrics {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .jdb-homepage__hero-visual::before,
    .jdb-homepage__hero-visual::after {
        display: none;
    }

    .jdb-homepage__image--back {
        display: none;
    }

    .jdb-homepage__services-heading {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .jdb-homepage__founder-photo {
        min-height: 420px;
        max-height: none;
        will-change: auto;
        transform: none !important;
    }

    .jdb-homepage__hero-card,
    .jdb-homepage__image--back {
        will-change: auto;
        transform: none !important;
    }

    .jdb-homepage__founder-photo-wrap {
        padding: 18px 0 0 18px;
    }

    .jdb-homepage__founder-photo-wrap::before {
        inset: 0 18px 18px 0;
    }
}

@media (max-width: 760px) {
    .jdb-homepage__hero {
        padding: 58px 0 22px;
    }

    .jdb-homepage__hero-actions,
    .jdb-homepage__founder-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .jdb-homepage__button .wp-block-button__link,
    .jdb-homepage__text-link {
        justify-content: center;
    }

    .jdb-homepage__hero-visual {
        min-height: auto;
    }

    .jdb-homepage__hero-card {
        width: 100%;
        margin-bottom: 14px;
        padding: 20px 18px 18px;
    }

    .jdb-homepage__story-body,
    .jdb-homepage__founder-copy {
        padding: 28px 22px;
    }

    .jdb-homepage .container,
    .jdb-homepage .wp-block-group.container {
        width: calc(100vw - 34px);
    }

    .jdb-homepage__quote {
        font-size: 1.2rem;
    }
}

@media (max-width: 560px) {
    .jdb-homepage__eyebrow,
    .jdb-homepage__section-label {
        letter-spacing: 2.2px;
    }

    .jdb-homepage__lead,
    .jdb-homepage__story-body p,
    .jdb-homepage__service-card p,
    .jdb-homepage__founder-copy p,
    .jdb-homepage__hero-points li {
        font-size: 0.98rem;
    }

    .jdb-homepage__hero-visual {
        min-height: auto;
    }

    .jdb-homepage__hero-card {
        padding: 18px 16px 16px;
    }

    .jdb-homepage__hero-card-top {
        gap: 8px;
    }

    .jdb-homepage__hero-logo img {
        width: min(232px, 90%);
    }

    .jdb-homepage__hero-card-top p {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .jdb-homepage__hero-metric-value,
    .jdb-homepage__hero-metrics dd {
        font-size: 0.92rem;
    }

    .jdb-homepage__service-card {
        padding: 24px 20px;
    }

    .jdb-homepage__founder-photo {
        min-height: 420px;
    }
}
