/* =================================================================
   flowers-stories.com.ua — host theme (Bootstrap 4.5.3 override)
   Концепт: «вишуканий мінімалізм». Monochrome editorial,
   kraft-paper, типографіка як герой. Чорний = бренд.
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ----- Локальні токени теми ----- */
:where(body) {
    --fs-ink:           #000000;            /* чистий чорний — бренд */
    --fs-ink-rgb:       0, 0, 0;
    --fs-soft-black:    #1A1A1A;
    --fs-charcoal:      #2C2C2C;

    --fs-paper:         #F7F4EE;            /* теплий папір — основний фон */
    --fs-paper-deep:    #EDE7DC;            /* deeper kraft */
    --fs-snow:          #FFFFFF;

    --fs-sand:          #B5A084;            /* kraft-twine акцент */
    --fs-sand-rgb:      181, 160, 132;
    --fs-sand-deep:     #8C7657;

    --fs-text:          #1A1A1A;
    --fs-muted:         #6E6660;
    --fs-line:          rgba(0, 0, 0, 0.12);
    --fs-line-strong:   rgba(0, 0, 0, 0.4);

    --fs-shadow-xs:     0 1px 0 rgba(0, 0, 0, 0.04);
    --fs-shadow-sm:     0 8px 24px rgba(0, 0, 0, 0.06);

    --fs-ease:          cubic-bezier(0.65, 0, 0.35, 1);
    --fs-ease-snappy:   cubic-bezier(0.2, 0.9, 0.3, 1);
}

/* ============================ ОСНОВА ============================ */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--fs-text) !important;
    background: var(--fs-paper) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    line-height: 1.6;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Fraunces', 'Times New Roman', Georgia, serif !important;
    font-variation-settings: 'opsz' 90, 'SOFT' 50;
    color: var(--fs-ink) !important;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

a {
    color: var(--fs-ink);
    text-decoration: none;
    transition: opacity .2s var(--fs-ease), color .2s var(--fs-ease);
    position: relative;
}
a:hover { color: var(--fs-ink); opacity: 0.55; text-decoration: none; }

::selection {
    background: var(--fs-ink);
    color: var(--fs-paper);
}

hr {
    border: 0;
    height: 1px;
    background: var(--fs-line);
    margin: 4rem 0;
    max-width: none;
}

p { margin-bottom: 1.1rem; }

/* ============================ NAVBAR ============================ */

body header .navbar.bg-dark {
    background: rgba(247, 244, 238, 0.92) !important;
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    box-shadow: none !important;
    border-bottom: 1px solid var(--fs-line);
    padding: 1.1rem 0;
}

body header .navbar .navbar-brand {
    color: var(--fs-ink) !important;
    font-family: 'Fraunces', Georgia, serif;
    font-variation-settings: 'opsz' 144, 'SOFT' 30;
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: opacity .25s var(--fs-ease);
}
body header .navbar .navbar-brand:hover { opacity: 0.55; }
body header .navbar .navbar-brand strong { font-weight: 400; }

body header .navbar .navbar-toggler {
    background: transparent;
    border: 1px solid var(--fs-ink);
    border-radius: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fs-ink);
    transition: all .25s var(--fs-ease);
}
body header .navbar .navbar-toggler:hover {
    background: var(--fs-ink);
    color: var(--fs-paper);
}
body header .navbar .navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23F7F4EE' stroke-linecap='square' stroke-miterlimit='10' stroke-width='1.4' d='M5 9h20M5 15h20M5 21h20'/%3E%3C/svg%3E") !important;
}
body header .navbar .navbar-toggler:focus { outline: 0; box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12); }

body header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23000000' stroke-linecap='square' stroke-miterlimit='10' stroke-width='1.4' d='M5 9h20M5 15h20M5 21h20'/%3E%3C/svg%3E") !important;
    width: 18px;
    height: 18px;
}

body header .navbar svg path,
body header .navbar svg circle { stroke: var(--fs-ink); }
body header .navbar a.text-white { color: var(--fs-ink) !important; }

/* ====================== COLLAPSE MENU (#navbarHeader) ====================== */

body header .collapse.bg-dark,
body header .collapsing.bg-dark {
    background: var(--fs-ink) !important;
    color: var(--fs-paper);
    box-shadow: none;
}

body header .collapse h4 {
    color: var(--fs-paper) !important;
    font-family: 'Fraunces', Georgia, serif;
    font-variation-settings: 'opsz' 90, 'SOFT' 30;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
body header .collapse .text-white,
body header .collapse .text-muted { color: var(--fs-paper) !important; opacity: 0.85; }
body header .collapse .text-muted { opacity: 0.5; }

body header .collapse a {
    color: var(--fs-paper) !important;
    opacity: 0.7;
    transition: opacity .2s var(--fs-ease);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}
body header .collapse a:hover { opacity: 1; }

body header .collapse a.text-success { color: var(--fs-sand) !important; opacity: 1; }
body header .collapse a.text-primary { color: var(--fs-paper) !important; opacity: 1; font-weight: 600; }
body header .collapse a.text-danger  { color: var(--fs-sand) !important; opacity: 1; }
body header .collapse a.text-warning { color: var(--fs-sand) !important; }

body header .collapse svg path,
body header .collapse svg circle { stroke: var(--fs-paper); }

body header .collapse .container .contacts li {
    margin-bottom: .85rem;
    display: flex;
    align-items: center;
    gap: .65rem;
}
body header .collapse .container .contacts svg {
    width: 22px; height: 22px; flex-shrink: 0;
}
body header .collapse .container ul li { padding: .15rem 0; }

/* ============================ HERO / JUMBOTRON ============================ */

#index section.jumbotron {
    background: var(--fs-paper) !important;
    padding: 8rem 1.5rem 5rem !important;
    margin-bottom: 0 !important;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

/* «Stories — chapter №01» eyebrow */
#index section.jumbotron::before {
    content: "— FLOWER STORIES";
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: 0.42em;
    color: var(--fs-muted);
    text-transform: uppercase;
    pointer-events: none;
}

#index section.jumbotron > .container-fluid { position: relative; z-index: 1; }

#index .jumbotron-heading {
    font-family: 'Fraunces', Georgia, serif !important;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 400;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.025em;
    margin-bottom: .5rem;
    color: var(--fs-ink) !important;
}

#index .jumbotron-heading + .jumbotron-heading {
    font-style: italic;
    font-variation-settings: 'opsz' 144, 'SOFT' 100, 'wght' 300;
    font-size: clamp(1.6rem, 4.5vw, 3rem);
    color: var(--fs-muted) !important;
    margin-top: -.35rem;
    letter-spacing: -0.015em;
}

#index .lead {
    font-size: 1.05rem;
    color: var(--fs-muted) !important;
    max-width: 540px;
    margin: 2rem auto 3rem !important;
    line-height: 1.7;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

#index h1 {
    font-family: 'Fraunces', Georgia, serif !important;
    font-variation-settings: 'opsz' 90, 'SOFT' 50;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    margin: 4rem 0 3rem;
    text-transform: lowercase;
    letter-spacing: -0.01em;
    color: var(--fs-ink) !important;
}

/* ============================ CARDS (магазини) ============================ */

#index .row {
    margin: 0 auto;
    justify-content: center;
}

#index .card {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
    overflow: hidden;
    transition: transform .45s var(--fs-ease);
    width: 100% !important;
    max-width: 320px;
    margin-left: auto !important;
    margin-right: auto !important;
}

#index .card-img-top {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 0;
    filter: contrast(1.02);
    transition: transform .9s var(--fs-ease);
}
#index .card:hover .card-img-top { transform: scale(1.04); }

#index .card-body {
    padding: 1.4rem 0 .5rem !important;
    text-align: left;
    position: relative;
}

#index .card-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 32px;
    height: 1px;
    background: var(--fs-ink);
}

#index .card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-variation-settings: 'opsz' 90, 'SOFT' 30;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: .35rem;
    color: var(--fs-ink);
    letter-spacing: -0.015em;
}

#index .card-text {
    color: var(--fs-muted);
    font-size: .85rem;
    line-height: 1.55;
    min-height: 2.5em;
    margin-bottom: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.005em;
}

/* ============================ BUTTONS ============================ */

body .btn {
    border-radius: 0 !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.14em;
    padding: .9rem 1.8rem;
    font-size: .78rem;
    text-transform: uppercase;
    transition: background .25s var(--fs-ease), color .25s var(--fs-ease), border-color .25s var(--fs-ease), transform .15s var(--fs-ease);
    border-width: 1px;
    border-style: solid;
}
body .btn:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12) !important; }
body .btn:active { transform: translateY(1px); }

body .btn-lg {
    padding: 1.05rem 2.2rem;
    font-size: .8rem;
    letter-spacing: 0.22em;
}

body .btn-primary {
    background: var(--fs-ink) !important;
    border-color: var(--fs-ink) !important;
    color: var(--fs-paper) !important;
}
body .btn-primary:hover { background: transparent !important; color: var(--fs-ink) !important; }

body .btn-outline-primary {
    color: var(--fs-ink) !important;
    border-color: var(--fs-ink) !important;
    background: transparent !important;
}
body .btn-outline-primary:hover {
    background: var(--fs-ink) !important;
    color: var(--fs-paper) !important;
}

body .btn-outline-success {
    color: var(--fs-ink) !important;
    border-color: var(--fs-ink) !important;
    background: transparent !important;
}
body .btn-outline-success:hover {
    background: var(--fs-ink) !important;
    color: var(--fs-paper) !important;
}

body .btn-outline-info {
    color: var(--fs-ink) !important;
    border-color: var(--fs-line-strong) !important;
    background: transparent !important;
}
body .btn-outline-info:hover {
    background: var(--fs-ink) !important;
    color: var(--fs-paper) !important;
    border-color: var(--fs-ink) !important;
}

body .btn-outline-secondary {
    color: var(--fs-muted) !important;
    border-color: var(--fs-line) !important;
}
body .btn-outline-secondary:hover {
    background: var(--fs-paper-deep) !important;
    color: var(--fs-ink) !important;
    border-color: var(--fs-line-strong) !important;
}

body .btn-secondary {
    background: var(--fs-paper-deep) !important;
    border-color: var(--fs-paper-deep) !important;
    color: var(--fs-ink) !important;
}
body .btn-secondary:hover { background: var(--fs-ink) !important; border-color: var(--fs-ink) !important; color: var(--fs-paper) !important; }

body .btn-danger {
    background: var(--fs-ink) !important;
    border-color: var(--fs-ink) !important;
    color: var(--fs-paper) !important;
}
body .btn-danger:hover { background: transparent !important; color: var(--fs-ink) !important; }

/* ============================ FORMS ============================ */

body .form-control {
    border-radius: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--fs-line-strong) !important;
    padding: .75rem 0;
    background: transparent !important;
    color: var(--fs-text);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color .25s var(--fs-ease);
}
body .form-control:focus {
    border-bottom-color: var(--fs-ink) !important;
    box-shadow: none !important;
    outline: 0;
    background: transparent !important;
}
body .form-control-lg { padding: 1rem 0; font-size: 1.05rem; }
body .form-control::placeholder {
    color: var(--fs-muted);
    opacity: 0.7;
    letter-spacing: 0.02em;
}

body .input-group {
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--fs-line-strong);
    transition: border-color .25s var(--fs-ease);
}
body .input-group:focus-within { border-bottom-color: var(--fs-ink); }
body .input-group .form-control {
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
body .input-group .input-group-text {
    background: transparent;
    border: 0;
    color: var(--fs-muted);
    font-weight: 500;
    padding: 0 .75rem 0 0;
    font-size: .85rem;
    letter-spacing: 0.05em;
}
body .input-group .btn {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid var(--fs-ink) !important;
    margin-left: 1rem;
}

body textarea.form-control {
    border-radius: 0 !important;
    border: 1px solid var(--fs-line-strong) !important;
    padding: 1rem;
}
body textarea.form-control:focus { border-color: var(--fs-ink) !important; }

/* ============================ DROPDOWN ============================ */

body .dropdown-menu {
    border: 1px solid var(--fs-line-strong) !important;
    border-radius: 0 !important;
    box-shadow: var(--fs-shadow-sm);
    padding: .35rem;
    background: var(--fs-snow);
    margin-top: .5rem;
}
body .dropdown-item {
    border-radius: 0;
    padding: .65rem .85rem;
    color: var(--fs-text);
    font-size: .9rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
    transition: background .15s var(--fs-ease), color .15s var(--fs-ease);
}
body .dropdown-item:hover { background: var(--fs-paper); color: var(--fs-ink); }
body .dropdown-item.active,
body .dropdown-item:active {
    background: var(--fs-ink) !important;
    color: var(--fs-paper) !important;
}

/* ============================ ALERTS / BADGES ============================ */

body .alert {
    border: 1px solid var(--fs-line-strong);
    border-radius: 0;
    padding: 1rem 1.25rem;
    box-shadow: none;
    background: var(--fs-snow);
    color: var(--fs-ink);
    font-size: .9rem;
}
body .alert-warning {
    background: var(--fs-snow);
    border-color: var(--fs-sand);
    color: var(--fs-sand-deep);
}
body .alert-info {
    background: var(--fs-snow);
    border-color: var(--fs-ink);
    color: var(--fs-ink);
}
body .alert h4 {
    font-size: 1rem;
    letter-spacing: 0.02em;
    margin-bottom: .5rem;
}

body .badge {
    border-radius: 0;
    padding: .3em .6em;
    font-weight: 500;
    letter-spacing: 0.06em;
    font-family: 'Inter', sans-serif;
    font-size: .65rem;
    text-transform: uppercase;
}
body .badge-warning {
    background: var(--fs-ink);
    color: var(--fs-paper);
}

/* ============================ FOOTER ============================ */

body footer {
    background: var(--fs-ink) !important;
    color: var(--fs-paper) !important;
    padding: 5rem 1.5rem 3rem !important;
    margin-top: 6rem;
    position: relative;
}

body footer::before {
    content: "";
    display: block;
    width: 32px;
    height: 1px;
    background: var(--fs-paper);
    margin: 0 auto 2rem;
    opacity: 0.5;
}

body footer.text-muted,
body footer .text-muted { color: rgba(247, 244, 238, 0.55) !important; }

body footer a {
    color: var(--fs-paper) !important;
    opacity: 0.8;
    transition: opacity .2s var(--fs-ease);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
}
body footer a:hover {
    opacity: 1;
    border-bottom-color: var(--fs-paper);
}
body footer .container { text-align: center; }
body footer .container > * + * { margin-top: 1rem; }

/* ============================ SHARED LAYOUT ============================ */

html, body {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

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

main { min-height: 60vh; }

/* мікро-анімація появи */
@keyframes fs-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fs-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#index section.jumbotron::before { animation: fs-fade-in 1.4s var(--fs-ease) both; animation-delay: .2s; }
#index section.jumbotron > .container-fluid > * { animation: fs-fade-up 1s var(--fs-ease) both; }
#index .card { animation: fs-fade-up .9s var(--fs-ease) both; }
#index .col-md-4:nth-child(1) .card { animation-delay: .15s; }
#index .col-md-4:nth-child(2) .card { animation-delay: .3s; }
#index .col-md-4:nth-child(3) .card { animation-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}

/* ============================ RESPONSIVE ============================ */

@media (max-width: 767.98px) {
    #index section.jumbotron { padding: 6rem 1.25rem 3.5rem !important; }
    #index section.jumbotron::before { font-size: .65rem; letter-spacing: 0.36em; top: 1.5rem; }
    #index .lead { font-size: 1rem; margin: 1.5rem auto 2rem !important; }
    body .btn-lg { padding: .9rem 1.7rem; font-size: .72rem; letter-spacing: 0.18em; }
    body footer { padding: 3.5rem 1.25rem 2rem !important; }
    hr { margin: 3rem 0; }
}

@media (min-width: 992px) {
    #index .row { max-width: 1100px; gap: 0; }
}
