/* ============================================================
   R & D EVENTS — main-new.css
   Mobile-first, Bootstrap 5, editorial/refined aesthetic
   ============================================================ */

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
    --ivory:        #f7f4ef;
    --ivory-dark:   #ede9e1;
    --forest:       #2e4d35;
    --forest-mid:   #3d6645;
    --forest-light: #5a8c63;
    --gold:         #b8934a;
    --gold-light:   #d4aa6a;
    --charcoal:     #1e2820;
    --text:         #3a3a36;
    --text-muted:   #7a7a72;
    --white:        #ffffff;
    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    20px;
    --shadow-sm:    0 2px 12px rgba(46, 77, 53, 0.10);
    --shadow-md:    0 6px 32px rgba(46, 77, 53, 0.15);
    --shadow-lg:    0 16px 56px rgba(46, 77, 53, 0.20);
    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Jost', sans-serif;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--ivory);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--forest); transition: color var(--transition); }
a:hover { color: var(--gold); }

/* ── SHARED SECTION ELEMENTS ──────────────────────────────── */
.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-label.light { color: var(--gold-light); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 20px;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: brightness(0.72);
}

@media (min-width: 768px) {
    .hero-section .carousel-item img { height: 680px; }
}

@media (min-width: 1200px) {
    .hero-section .carousel-item img { height: 780px; }
}

/* Fade transition instead of slide */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 1s ease;
    position: absolute;
    width: 100%;
}
.carousel-fade .carousel-item.active {
    opacity: 1;
    position: relative;
}

/* Hero overlay text */
.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 5vw;
    z-index: 10;
    pointer-events: none;
}

.hero-text {
    max-width: 560px;
    pointer-events: all;
    animation: heroFadeUp 1.1s ease both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 14px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-sub {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.80);
    margin-bottom: 32px;
    text-transform: uppercase;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary-custom {
    background: var(--forest);
    color: var(--white);
    border: 2px solid var(--forest);
    padding: 13px 30px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--forest-mid);
    border-color: var(--forest-mid);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.55);
    padding: 13px 30px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
}

.btn-outline-custom:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.12);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── ABOUT SECTION ────────────────────────────────────────── */
.about-section {
    background: var(--white);
    padding: 80px 0;
}

.about-img-wrap {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-img-wrap:hover .about-img {
    transform: scale(1.03);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 14px;
    font-size: 1rem;
}

.about-text p strong {
    color: var(--text);
    font-weight: 600;
}

.link-arrow {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--forest);
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 2px;
    margin-bottom: 24px;
    transition: all var(--transition);
}

.link-arrow:hover {
    color: var(--gold);
    border-color: var(--gold);
}

.contact-badge {
    background: var(--ivory);
    border-left: 4px solid var(--forest);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.contact-badge a {
    color: var(--forest);
    text-decoration: none;
    font-weight: 600;
}

.contact-badge a:hover { color: var(--gold); }

/* ── PRESS SECTION ────────────────────────────────────────── */
.press-section {
    background: var(--ivory-dark);
    padding: 64px 0;
    border-top: 1px solid rgba(46,77,53,0.10);
    border-bottom: 1px solid rgba(46,77,53,0.10);
}

.press-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    text-align: center;
    max-width: 200px;
    transition: transform var(--transition);
}

.press-card:hover { transform: translateY(-4px); }

.press-card img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.press-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* ── SERVICES SECTION ─────────────────────────────────────── */
.services-section {
    background: var(--white);
    padding: 80px 0;
}

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    padding: 24px 12px 20px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    background: var(--ivory);
    transition: all var(--transition);
    height: 100%;
}

.service-card:hover {
    border-color: var(--forest-light);
    background: var(--white);
    color: var(--forest);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
    border: 3px solid var(--ivory-dark);
    transition: border-color var(--transition);
}

.service-card:hover .service-icon {
    border-color: var(--forest-light);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card span {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── GALLERY STRIP ────────────────────────────────────────── */
.gallery-strip {
    display: flex;
    height: 220px;
    overflow: hidden;
}

@media (min-width: 768px) { .gallery-strip { height: 300px; } }

.strip-img {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.strip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    filter: brightness(0.88);
}

.strip-img:hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
    background: var(--forest);
    padding: 96px 24px;
    position: relative;
    overflow: hidden;
}

/* Subtle texture overlay */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-sub {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ── CAROUSEL CONTROLS ────────────────────────────────────── */
.carousel-control-prev,
.carousel-control-next {
    width: 48px;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover { opacity: 1; }

/* ── UTILITY ──────────────────────────────────────────────── */
.mt-auto { margin-top: auto; }

/* ── RESPONSIVE TWEAKS ────────────────────────────────────── */
@media (max-width: 767px) {
    .about-section { padding: 56px 0; }
    .services-section { padding: 56px 0; }
    .cta-section { padding: 64px 20px; }
    .hero-overlay { align-items: flex-end; padding-bottom: 60px; }
    .hero-text { max-width: 100%; }
    .gallery-strip { height: 140px; }
    .strip-img:nth-child(n+4) { display: none; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .btn-primary-custom,
    .btn-outline-custom { width: 100%; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
}


/* ============================================================
   CENTERPIECES / INTERIOR PAGE STYLES
   ============================================================ */

/* Shorter hero for interior pages */
.hero-short .carousel-item img {
    height: 420px !important;
}

@media (min-width: 768px) {
    .hero-short .carousel-item img { height: 520px !important; }
}

@media (min-width: 1200px) {
    .hero-short .carousel-item img { height: 580px !important; }
}

/* Page intro section */
.page-intro-section {
    background: var(--white);
    padding: 64px 24px 48px;
    border-bottom: 1px solid var(--ivory-dark);
}

.intro-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto;
}

.intro-text strong { color: var(--text); font-weight: 600; }

.intro-text a {
    color: var(--forest);
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 1px;
    transition: color var(--transition);
}

.intro-text a:hover { color: var(--gold); }

/* Product section */
.product-section {
    background: var(--ivory);
    padding: 72px 0 80px;
}

/* Brochure card */
.brochure-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: box-shadow var(--transition), transform var(--transition);
    position: sticky;
    top: 24px;
}

.brochure-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.brochure-img {
    width: 100%;
    max-width: 150px;
    margin: 0 auto 14px;
    border-radius: var(--radius-sm);
}

.brochure-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--forest);
    line-height: 1.4;
    text-decoration: none;
}

.brochure-card a {
    text-decoration: none;
    color: var(--forest);
}

.brochure-card a:hover .brochure-label { color: var(--gold); }

/* Product carousel */
.product-inner {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--charcoal);
    box-shadow: var(--shadow-lg);
}

.product-img {
    width: 100%;
    height: 560px;
    object-fit: contain;
    background: var(--charcoal);
    display: block;
    margin: 0 auto;
}

@media (max-width: 767px) {
    .product-img { height: 280px; }
    .brochure-card { position: static; margin-bottom: 24px; }
}

/* Product carousel controls */
.product-prev,
.product-next {
    background: rgba(46, 77, 53, 0.6);
    width: 44px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.product-prev:hover,
.product-next:hover {
    background: var(--forest);
}

/* Product indicators — smaller dots */
.product-indicators {
    bottom: -32px;
}

.product-indicators [data-bs-slide-to] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.5;
    border: none;
}

.product-indicators .active {
    background: var(--forest);
    opacity: 1;
}