/* =======================
   Fonts (plug in your OTFs)
   ======================= */

/* Example – adjust paths to where you put your fonts */
@font-face {
    font-family: 'Grobek';
    src: url('../fonts/Grobek-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Grobek';
    src: url('../fonts/Grobek-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* =======================
   Color tokens
   ======================= */

:root {
    
    --kahvar-red: #460f15;   /* primary brand color */
    --kahvar-green: #3a5850;
    --kahvar-beige: #ffeecc;
    --kahvar-dark: #1b0205;
    --kahvar-text-light: #fdf4ea;

    --kahvar-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.14);

    /* Motion */
    --motion-duration-short: 160ms;
    --motion-duration-medium: 260ms;
    --motion-ease-standard: cubic-bezier(0.33, 0, 0.2, 1);
    --kahvar-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.14);
}

/* =======================
   Base
   ======================= */

html,
body {
    height: 100%;
}

body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--kahvar-beige); /* main background now BEIGE */
    color: var(--kahvar-red);
    margin: 0;
}

.kahvar-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--kahvar-beige);
}

/* Headings in Grobek for brand feel */
h1,
h2,
h3,
h4,
.brand-name {
    font-family: "Grobek", "Poppins", serif;
}

/* =======================
   Header & navigation
   ======================= */

.kahvar-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(70, 15, 21, 0.98); /* deep red */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 238, 204, 0.14);
}

.logo-mark {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: var(--kahvar-beige);
    color: var(--kahvar-red);
    font-weight: 800;
    font-size: 1.3rem;
}

.logo-mark-initial {
    transform: translateY(-1px);
}

.logo-text .brand-name {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--kahvar-beige);
}

.logo-text .brand-tagline {
    font-size: 0.75rem;
    opacity: 0.85;
    color: rgba(255, 238, 204, 0.9);
}

.kahvar-nav .nav-link,
.kahvar-nav-mobile .nav-link {
    color: var(--kahvar-beige);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.75rem 0.75rem;
    position: relative;
    text-decoration: none;
}

.kahvar-nav .nav-link::after,
.kahvar-nav-mobile .nav-link::after {
    content: "";
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.35rem;
    height: 2px;
    background: linear-gradient(90deg, var(--kahvar-green), var(--kahvar-beige));
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.kahvar-nav .nav-link:hover::after,
.kahvar-nav .nav-link.active::after,
.kahvar-nav-mobile .nav-link.active::after {
    transform: scaleX(1);
}

.nav-toggle {
    background: transparent;
    border: 1px solid rgba(255, 238, 204, 0.4);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    color: var(--kahvar-beige);
    font-size: 1.1rem;
}

.nav-toggle:focus {
    outline: none;
}

.kahvar-nav-mobile {
    display: none;
    background-color: var(--kahvar-dark);
    border-bottom: 1px solid rgba(255, 238, 204, 0.14);
}

.kahvar-nav-mobile.open {
    display: block;
}

/* =======================
   Main layout
   ======================= */

.kahvar-main {
    flex: 1;
}

/* Eyebrow + headings */

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--kahvar-green);
    margin-bottom: 0.6rem;
}

.hero-title {
    font-size: clamp(2.3rem, 3vw + 1rem, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-text,
.lead-text {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 36rem;
}

/* =======================
   Buttons (with green accents)
   ======================= */

.kahvar-btn-primary {
    background: linear-gradient(135deg, var(--kahvar-green), #25423a);
    border: none;
    color: var(--kahvar-beige);
    font-weight: 600;
    border-radius: 999px;
    padding-inline: 1.4rem;
    box-shadow: var(--kahvar-shadow-soft);
    transition:
        transform var(--motion-duration-short) var(--motion-ease-standard),
        box-shadow var(--motion-duration-short) var(--motion-ease-standard),
        filter var(--motion-duration-short) var(--motion-ease-standard);
}

.kahvar-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
    filter: brightness(1.03);
}

.kahvar-btn-ghost {
    border-radius: 999px;
    border-width: 1px;
    border-color: rgba(70, 15, 21, 0.4);
    color: var(--kahvar-red);
    background-color: transparent;
    transition:
        background-color var(--motion-duration-short) var(--motion-ease-standard),
        transform var(--motion-duration-short) var(--motion-ease-standard);
}

.kahvar-btn-ghost:hover {
    background-color: rgba(70, 15, 21, 0.06);
    transform: translateY(-1px);
}


/* =======================
   HERO SECTION (Home)
   ======================= */

.hero-section {
    padding: 4rem 0 3rem;
    background-color: var(--kahvar-red); /* deep red hero block */
    color: var(--kahvar-text-light);
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 238, 204, 0.16), transparent 60%),
                radial-gradient(circle at bottom right, rgba(58, 88, 80, 0.35), transparent 70%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-actions {
    margin-top: 1.5rem;
}

.hero-meta .meta-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.8;
}

.hero-meta .meta-value {
    font-size: 0.9rem;
}

/* hero visual with image */

.hero-visual {
    position: relative;
    min-height: 280px;
    border-radius: 1.5rem;
    background-position: center;
    background-size: cover;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(27, 2, 5, 0.4), rgba(27, 2, 5, 0.9));
}

.hero-visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1.4rem;
}

.hero-stat {
    background: rgba(20, 3, 5, 0.95);
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    color: var(--kahvar-text-light);
}

/* =======================
   HIGHLIGHTS (Home)
   ======================= */

.highlights-section {
    padding: 3rem 0;
    background-color: var(--kahvar-beige);
}

.section-heading h2 {
    font-size: 1.8rem;
    color: var(--kahvar-red);
}

.section-heading p {
    color: var(--kahvar-green);
}

.highlight-card {
    background: #f9ebd4; /* lighter beige card */
    border-radius: 1.2rem;
    padding: 1.6rem 1.4rem;
    border: 1px solid rgba(70, 15, 21, 0.18);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    color: var(--kahvar-red);
}

.highlight-card h3 {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 0.6rem;
}

.highlight-card p {
    font-size: 0.92rem;
    color: rgba(70, 15, 21, 0.8);
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(58, 88, 80, 0.12);
    border: 1px solid rgba(58, 88, 80, 0.3);
    color: var(--kahvar-green);
}

/* =======================
   EXPERIENCE (Home)
   ======================= */

.experience-section {
    padding: 3rem 0 4rem;
    background: radial-gradient(circle at center, rgba(58, 88, 80, 0.12), transparent 70%);
}

.experience-image-grid {
    display: grid;
    grid-template-columns: 2fr 1.3fr;
    gap: 0.9rem;
}

.experience-main,
.experience-secondary {
    background-size: cover;
    background-position: center;
    border-radius: 1.3rem;
    min-height: 190px;
}

.experience-secondary {
    opacity: 0.95;
}

.fancy-list li {
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    color: rgba(70, 15, 21, 0.88);
}

/* =======================
   PAGE HERO (Our Story / Farm)
   ======================= */

.page-hero-section {
    padding: 4rem 0 3rem;
    background-color: var(--kahvar-beige);
}

.page-hero-section h1 {
    color: var(--kahvar-red);
}

.page-hero-section .lead-text {
    color: rgba(70, 15, 21, 0.9);
}

.story-hero-image,
.journey-hero-image {
    border-radius: 1.5rem;
    min-height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
}

.story-badge,
.journey-tag {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    background: rgba(70, 15, 21, 0.96);
    color: var(--kahvar-text-light);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* =======================
   Split / values sections
   ======================= */

.split-section {
    padding: 2.5rem 0;
    background-color: var(--kahvar-beige);
}

.split-section p {
    color: rgba(70, 15, 21, 0.9);
}

.info-card {
    background: #f5e1c0;
    border-radius: 1.3rem;
    padding: 1.6rem 1.4rem;
    border: 1px solid rgba(70, 15, 21, 0.2);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.values-section {
    padding: 2.5rem 0 3rem;
    background: radial-gradient(circle at center, rgba(58, 88, 80, 0.15), var(--kahvar-beige) 70%);
}

.value-pill {
    background: #f9ebd4;
    padding: 1.4rem 1.3rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(70, 15, 21, 0.16);
    font-size: 0.92rem;
    color: rgba(70, 15, 21, 0.9);
}

/* =======================
   Journey (Farm to cup)
   ======================= */

.journey-section {
    padding: 2.5rem 0 3.5rem;
    background-color: var(--kahvar-beige);
}

.journey-step {
    background: #f9ebd4;
    border-radius: 1.3rem;
    padding: 1.6rem 1.4rem 1.4rem;
    border: 1px solid rgba(70, 15, 21, 0.18);
    position: relative;
    overflow: hidden;
    font-size: 0.92rem;
    color: rgba(70, 15, 21, 0.92);
}

.journey-step::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(58, 88, 80, 0.14),
        rgba(255, 238, 204, 0.14)
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.journey-step:hover::before {
    opacity: 1;
}

.journey-step h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(58, 88, 80, 0.12);
    border: 1px solid rgba(58, 88, 80, 0.35);
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
    color: var(--kahvar-green);
}

/* =======================
   CTA strip
   ======================= */

.cta-strip-section {
    padding: 2.4rem 0 3rem;
    background: linear-gradient(135deg, var(--kahvar-green), #22352f);
    color: var(--kahvar-text-light);
}

.cta-strip-section h2 {
    font-family: "Grobek", "Poppins", serif;
}

.cta-strip-section p {
    color: rgba(253, 244, 234, 0.9);
}

/* =======================
   Footer
   ======================= */

.kahvar-footer {
    padding: 1.6rem 0;
    background-color: var(--kahvar-dark);
    border-top: 1px solid rgba(255, 238, 204, 0.16);
    font-size: 0.85rem;
    color: var(--kahvar-text-light);
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 238, 204, 0.4);
    color: var(--kahvar-text-light);
    margin-left: 0.4rem;
    font-size: 0.8rem;
}

/* =======================
   Scroll animations
   ======================= */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity var(--motion-duration-medium) var(--motion-ease-standard),
        transform var(--motion-duration-medium) var(--motion-ease-standard);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =======================
   Responsive tweaks
   ======================= */

@media (max-width: 767.98px) {
    .hero-section,
    .page-hero-section {
        padding-top: 3rem;
    }

    .kahvar-header {
        padding-block: 0.4rem;
    }

    .hero-visual,
    .story-hero-image,
    .journey-hero-image {
        min-height: 220px;
        margin-top: 0.8rem;
    }

    .experience-image-grid {
        grid-template-columns: 1fr;
    }

    .cta-strip-section .cta-actions {
        margin-top: 1rem;
        width: 100%;
    }

    .cta-strip-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .highlight-card,
    .value-pill,
    .journey-step,
    .info-card {
        padding: 1.3rem 1.2rem;
    }
}

/* Larger screen layout improvements */
@media (min-width: 992px) {
    .hero-section {
        min-height: 80vh;
        display: flex;
        align-items: center;
        padding: 5rem 0;
    }

    .page-hero-section {
        min-height: 60vh;
        display: flex;
        align-items: center;
        padding: 4.5rem 0;
    }

    .highlight-card,
    .value-pill,
    .journey-step {
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .highlight-card:hover,
    .value-pill:hover,
    .journey-step:hover {
        transform: translateY(-6px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
        border-color: rgba(58, 88, 80, 0.4); /* a bit of green on hover */
    }
}

/* =======================
   Parallax sections
   ======================= */

.parallax-section {
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* The JS will adjust background-position-y
   using data-parallax-speed on scroll */

.hero-overlay {
    position: relative;
    z-index: 1;
    background: linear-gradient(
        120deg,
        rgba(70, 15, 21, 0.92),
        rgba(70, 15, 21, 0.8)
    );
}

/* Parallax strip used on Farm-to-Cup */
.parallax-strip {
    padding: 4rem 0;
}

.parallax-strip-overlay {
    background: linear-gradient(
        135deg,
        rgba(70, 15, 21, 0.82),
        rgba(58, 88, 80, 0.75)
    );
    color: var(--kahvar-text-light);
}

.parallax-strip-overlay h2 {
    margin-bottom: 0.75rem;
    font-family: "Grobek", "Poppins", serif;
}

.parallax-strip-overlay p {
    color: rgba(253, 244, 234, 0.92);
}

/* Disable heavy parallax on small screens for smoother scrolling */
@media (max-width: 991.98px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

/* Hero feels too “floaty” – tighten it on all screens */
.hero-section {
    padding: 3.5rem 0 3rem;
}

/* Desktop hero: proper split layout, full height */
@media (min-width: 992px) {
    .hero-section {
        min-height: 80vh;
        display: flex;
        align-items: center;
    }

    .hero-copy {
        max-width: 520px;
    }
}

.highlights-section {
    padding: 4rem 0;
    background: radial-gradient(circle at top, rgba(58, 88, 80, 0.08), transparent 60%), var(--kahvar-beige);
}

.highlight-card {
    background: #f9ebd4;
    border-radius: 1.4rem;
    padding: 1.7rem 1.6rem;
    border: 1px solid rgba(70, 15, 21, 0.16);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}

.highlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right,
        rgba(58, 88, 80, 0.18),
        transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

/* nicer hover on desktop */
@media (min-width: 992px) {
    .highlight-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }
    .highlight-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
        border-color: rgba(58, 88, 80, 0.4);
    }
    .highlight-card:hover::after {
        opacity: 1;
    }
}

.featured-section {
    padding: 3rem 0 4rem;
    background-color: var(--kahvar-beige);
}

.featured-section .section-heading p {
    color: rgba(70, 15, 21, 0.8);
}

.blend-card {
    background: #fdf3e2;
    border-radius: 1.4rem;
    overflow: hidden;
    border: 1px solid rgba(70, 15, 21, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blend-image {
    background-size: cover;
    background-position: center;
    height: 180px;
}

.blend-body {
    padding: 1.4rem 1.3rem 1.3rem;
    flex: 1;
}

.blend-body h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.blend-body p {
    font-size: 0.9rem;
    color: rgba(70, 15, 21, 0.85);
}

.blend-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.8rem;
}

.roast-badge {
    background-color: rgba(70, 15, 21, 0.09);
    color: var(--kahvar-red);
}

.origin-badge {
    background-color: rgba(58, 88, 80, 0.14);
    color: var(--kahvar-green);
}

.highlight-card,
.value-pill,
.journey-step,
.blend-card {
    box-shadow: var(--kahvar-shadow-soft);
}

/* Only hover on larger screens to avoid jumpiness on mobile */
@media (min-width: 992px) {
    .highlight-card,
    .value-pill,
    .journey-step,
    .blend-card {
        transition:
            transform var(--motion-duration-short) var(--motion-ease-standard),
            box-shadow var(--motion-duration-short) var(--motion-ease-standard),
            border-color var(--motion-duration-short) var(--motion-ease-standard);
    }

    .highlight-card:hover,
    .value-pill:hover,
    .journey-step:hover,
    .blend-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
        border-color: rgba(58, 88, 80, 0.45); /* green hint on hover */
    }
}

.kahvar-header {
    transition:
        padding var(--motion-duration-medium) var(--motion-ease-standard),
        box-shadow var(--motion-duration-medium) var(--motion-ease-standard),
        background-color var(--motion-duration-medium) var(--motion-ease-standard);
}

/* When scrolled */
.kahvar-header.header-compact {
    padding-block: 0.2rem;
    background-color: rgba(70, 15, 21, 0.98);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.kahvar-header .container {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

.hero-visual {
    border: 1px solid rgba(58, 88, 80, 0.25); /* greenish outline */
    backdrop-filter: blur(4px);
}

.hero-visual-overlay .hero-stat {
    background: rgba(27, 2, 5, 0.75); /* slightly more transparent */
    backdrop-filter: blur(2px);
}

.headline-with-line {
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.headline-with-line::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--kahvar-green);
    transition: width 0.6s var(--motion-ease-standard);
}

.headline-with-line.is-visible::after {
    width: 70%;
}

.section {
    background: var(--kahvar-beige);
}

.section-alt {
    background: linear-gradient(180deg, #fff3dd, #ffeecc);
}

h1 { line-height: 1.18; }
h2 { letter-spacing: 0.5px; }
p { font-size: 0.95rem; }

.logo-mark {
    transition: transform 180ms var(--motion-ease-standard);
}

.logo-mark:hover {
    transform: rotate(-3deg) scale(1.06);
}

.kahvar-btn-primary {
    border-radius: 1000px;
    background: linear-gradient(135deg, #2f5b4e, #1f3e36);
    box-shadow: none;
}

/* =======================
   Contact page
   ======================= */

.contact-hero {
    background-color: var(--kahvar-beige);
    padding-top: 4rem;
    padding-bottom: 2.5rem;
}

.contact-hero h1 {
    color: var(--kahvar-red);
}

.contact-hero .lead-text {
    color: rgba(70, 15, 21, 0.9);
}

.contact-highlights {
    margin-top: 1.6rem;
    font-size: 0.9rem;
    color: rgba(70, 15, 21, 0.9);
}

.contact-highlights li {
    display: flex;
    align-items: center;
    margin-bottom: 0.4rem;
}

.contact-highlights i {
    color: var(--kahvar-green);
}

/* Info card on the right */

.contact-info-card {
    background: #f9ebd4;
    border-radius: 1.4rem;
    padding: 1.8rem 1.6rem;
    border: 1px solid rgba(70, 15, 21, 0.18);
    box-shadow: var(--kahvar-shadow-soft);
    color: rgba(70, 15, 21, 0.95);
}

.contact-info-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.contact-info-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    align-items: flex-start;
}

.contact-info-row i {
    color: var(--kahvar-green);
    margin-top: 0.15rem;
}

.contact-info-row .label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(70, 15, 21, 0.7);
}

.contact-info-row a {
    color: var(--kahvar-red);
    text-decoration: none;
    font-size: 0.9rem;
}

.contact-info-row a:hover {
    text-decoration: underline;
}

.contact-info-card .contact-social {
    margin-top: 1rem;
}

/* Main contact section */

.contact-section {
    padding: 2.5rem 0 4rem;
    background: radial-gradient(circle at top, rgba(58, 88, 80, 0.08), transparent 60%), var(--kahvar-beige);
}

.contact-form-card {
    background: #fdf3e2;
    border-radius: 1.4rem;
    padding: 1.8rem 1.7rem;
    border: 1px solid rgba(70, 15, 21, 0.18);
    box-shadow: var(--kahvar-shadow-soft);
}

.contact-form-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.contact-form-card .subtitle {
    font-size: 0.9rem;
    color: rgba(70, 15, 21, 0.8);
    margin-bottom: 1.4rem;
}

/* Floating labels */

.floating-field {
    position: relative;
}

.floating-field input.form-control,
.floating-field textarea.form-control,
.floating-field select.form-select {
    border-radius: 0.9rem;
    border: 1px solid rgba(70, 15, 21, 0.25);
    padding: 0.9rem 0.9rem;
    font-size: 0.9rem;
    background-color: #fffaf2;
    box-shadow: none;
}

.floating-field textarea.form-control {
    resize: vertical;
}

.floating-field label {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    color: rgba(70, 15, 21, 0.6);
    pointer-events: none;
    transition:
        top var(--motion-duration-short) var(--motion-ease-standard),
        font-size var(--motion-duration-short) var(--motion-ease-standard),
        color var(--motion-duration-short) var(--motion-ease-standard);
    background-color: transparent;
}

/* When input has value or focus */
.floating-field input:focus + label,
.floating-field textarea:focus + label,
.floating-field select:focus + label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:not(:placeholder-shown) + label,
.floating-field select:not([value=""]):not([value=""]) + label {
    top: 0.3rem;
    font-size: 0.68rem;
    color: var(--kahvar-green);
}

/* Checkbox / consent */

.contact-consent {
    font-size: 0.8rem;
    color: rgba(70, 15, 21, 0.85);
}

.contact-consent input[type="checkbox"] {
    margin-right: 0.3rem;
}

/* Map / meta card */

.contact-map-card {
    background: #f9ebd4;
    border-radius: 1.4rem;
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(70, 15, 21, 0.18);
    box-shadow: var(--kahvar-shadow-soft);
}

.map-placeholder {
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #26373a, #460f15);
    color: var(--kahvar-text-light);
    padding: 1.7rem 1.4rem;
    text-align: left;
}

.map-placeholder .map-icon {
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
}

.map-placeholder p {
    margin-bottom: 0.1rem;
    font-weight: 500;
}

.map-placeholder span {
    font-size: 0.85rem;
    color: rgba(253, 244, 234, 0.86);
}

.contact-meta-list {
    font-size: 0.85rem;
    color: rgba(70, 15, 21, 0.9);
}

.contact-meta-list .label {
    font-weight: 500;
    margin-right: 0.3rem;
}

/* Responsive tweaks */

@media (max-width: 767.98px) {
    .contact-hero {
        padding-top: 3.2rem;
    }

    .contact-form-card,
    .contact-info-card,
    .contact-map-card {
        padding: 1.5rem 1.4rem;
    }
}

/* =======================
   Contact alerts / errors
   ======================= */

.alert-kahvar {
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.9rem;
}

.alert-kahvar-success {
    background: rgba(58, 88, 80, 0.12);
    color: var(--kahvar-green);
    border: 1px solid rgba(58, 88, 80, 0.5);
}

.alert-kahvar-error {
    background: rgba(182, 47, 47, 0.1);
    color: #b62f2f;
    border: 1px solid rgba(182, 47, 47, 0.5);
}

.field-error {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: #b62f2f;
}

.alert-kahvar-success {
    transition:
        opacity var(--motion-duration-medium) var(--motion-ease-standard),
        transform var(--motion-duration-medium) var(--motion-ease-standard);
}
