/* =========================================================================
   Blómabúðin — romantic soft-UI theme (soft pink + gold)
   ========================================================================= */

:root {
    --blush:      #f6ecef;   /* page background            */
    --blush-2:    #f1e3e7;
    --cream:      #fbf7f4;   /* card / raised surfaces     */
    --pink:       #e7a9bd;
    --pink-deep:  #d3819b;
    --pink-soft:  #f4d6df;
    --gold:       #c2a15a;
    --gold-deep:  #a9873f;
    --gold-soft:  #e6d3a3;
    --ink:        #4b4340;   /* primary text (warm charcoal)*/
    --ink-soft:   #6a615c;
    --muted:      #9a8f89;
    --line:       rgba(120, 90, 70, 0.12);

    /* soft-UI (neumorphic) shadows tuned for the blush background */
    --sh-out: 8px 8px 20px rgba(190, 160, 150, 0.35),
              -8px -8px 20px rgba(255, 255, 255, 0.85);
    --sh-out-sm: 5px 5px 12px rgba(190, 160, 150, 0.30),
                 -5px -5px 12px rgba(255, 255, 255, 0.80);
    --sh-in: inset 5px 5px 12px rgba(190, 160, 150, 0.30),
             inset -5px -5px 12px rgba(255, 255, 255, 0.85);
    --sh-lift: 14px 16px 34px rgba(170, 130, 120, 0.35),
               -10px -10px 24px rgba(255, 255, 255, 0.80);

    --radius: 22px;
    --radius-sm: 14px;
    --maxw: 1200px;

    --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --script:'Petit Formal Script', 'Cormorant Garamond', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--blush);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--ink); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 96px 0; position: relative; }

/* ---- shared section header ------------------------------------------- */
.kicker {
    font-family: var(--script);
    font-size: 1.6rem;
    color: var(--pink-deep);
    display: block;
    margin-bottom: 6px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: .3px;
    margin-bottom: 14px;
}
.section-head { max-width: 620px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { color: var(--ink-soft); font-size: 1.08rem; }

.gold-rule {
    width: 64px; height: 2px; margin: 18px 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    border-radius: 2px;
}
.since-line {
    font-family: var(--serif); font-style: italic; font-size: 1.2rem;
    color: var(--gold-deep); margin-bottom: 8px; letter-spacing: .3px;
}
.center .gold-rule { margin-left: auto; margin-right: auto; }

/* ---- buttons --------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--sans); font-weight: 500; font-size: .82rem;
    letter-spacing: 2px; text-transform: uppercase;
    padding: 16px 34px; border: none; cursor: pointer;
    border-radius: 40px; color: var(--ink); background: var(--cream);
    box-shadow: var(--sh-out-sm);
    transition: transform .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-out); color: var(--pink-deep); }
.btn:active { box-shadow: var(--sh-in); transform: translateY(0); }
.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--pink-deep));
    color: #fff;
    box-shadow: 8px 8px 18px rgba(211, 129, 155, .35), -6px -6px 16px rgba(255,255,255,.7);
}
.btn-primary:hover { color: #fff; }
.btn-gold {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    color: #fff;
}
.btn-gold:hover { color: #fff; }

/* =========================================================================
   Page loader (logo splash on entry)
   ========================================================================= */
.page-loader {
    position: fixed; inset: 0; z-index: 200;
    display: grid; place-items: center;
    background: var(--blush);
    transition: opacity .7s ease, visibility .7s ease;
}
.page-loader img {
    width: min(240px, 55vw); height: auto;
    animation: loaderIn 1s ease both;
}
@keyframes loaderIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
body.loaded .page-loader { opacity: 0; visibility: hidden; }
/* If JS never runs, don't trap the page behind the splash. */
html:not(.js) .page-loader { display: none; }
@media (prefers-reduced-motion: reduce) { .page-loader img { animation: none; } }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(246, 236, 239, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
    width: 52px; height: 52px; object-fit: contain; flex: none;
    transition: transform .4s ease;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-name { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; letter-spacing: .4px; line-height: 1.05; }
.brand-name small { display: block; font-family: var(--script); font-size: .82rem; color: var(--gold-deep); letter-spacing: 0; margin-top: 0; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
    font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-soft);
    position: relative; padding: 6px 0; transition: color .2s;
}
.nav a::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
    background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width .28s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 18px; }
.phone { font-size: .82rem; color: var(--ink-soft); letter-spacing: .5px; white-space: nowrap; }
.phone b { color: var(--ink); font-weight: 600; }

.lang-toggle { display: flex; gap: 4px; padding: 4px; border-radius: 30px; background: var(--cream); box-shadow: var(--sh-in); }
.lang-toggle a {
    font-size: .72rem; letter-spacing: 1px; text-transform: uppercase;
    padding: 5px 11px; border-radius: 20px; color: var(--muted); font-weight: 600;
}
.lang-toggle a.active { color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-deep)); box-shadow: var(--sh-out-sm); }

/* Language toggle that lives inside the mobile menu — hidden on desktop. */
.nav-lang { display: none; }

.nav-toggle { display: none; background: var(--cream); border: none; border-radius: 12px; width: 46px; height: 46px; box-shadow: var(--sh-out-sm); cursor: pointer; color: var(--ink); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.hero-kicker { font-family: var(--script); font-size: 2rem; color: var(--muted); }
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    margin: 14px 0 22px; letter-spacing: .5px;
}
.hero p { font-size: 1.25rem; color: var(--ink-soft); font-style: italic; font-family: var(--serif); margin-bottom: 36px; }

.hero-media { position: relative; display: grid; place-items: center; }
.hero-oval {
    position: relative; width: 100%; max-width: 480px; aspect-ratio: 4 / 5;
    border-radius: 50% 50% 48% 48% / 46% 46% 52% 52%;
    overflow: hidden; box-shadow: var(--sh-lift);
    border: 10px solid var(--cream);
}
.hero-oval img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::before {
    content: ''; position: absolute; inset: -24px;
    border: 1px solid var(--gold-soft); border-radius: 50%;
    opacity: .6; z-index: -1;
}
.hero-badge {
    position: absolute; bottom: 18px; left: -6px;
    background: var(--cream); box-shadow: var(--sh-out);
    border-radius: 18px; padding: 14px 20px; text-align: center;
}
.hero-badge b { font-family: var(--serif); font-size: 1.7rem; color: var(--pink-deep); display: block; line-height: 1; }
.hero-badge span { font-size: .68rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); display: block; margin-bottom: 3px; }

.hero-emblem {
    position: absolute; top: -34px; right: -30px; width: 150px; height: auto;
    opacity: .5; z-index: 2; pointer-events: none;
    filter: drop-shadow(0 6px 14px rgba(170, 130, 120, .25));
    animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .hero-emblem { animation: none; } }

/* =========================================================================
   About
   ========================================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--sh-lift); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-media .float {
    position: absolute; right: -20px; bottom: -26px; width: 46%;
    border: 8px solid var(--cream); border-radius: var(--radius); box-shadow: var(--sh-out); aspect-ratio: 1; object-fit: cover;
}
.about-points { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.about-points li { display: flex; align-items: center; gap: 14px; font-size: 1.02rem; color: var(--ink-soft); }
.about-points .dot {
    width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
    background: var(--cream); box-shadow: var(--sh-out-sm); color: var(--pink-deep);
}

/* =========================================================================
   Services
   ========================================================================= */
.services { background: linear-gradient(180deg, var(--blush) 0%, var(--blush-2) 100%); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.service-card {
    background: var(--cream); border-radius: var(--radius); padding: 38px 26px; text-align: center;
    box-shadow: var(--sh-out); transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--sh-lift); }
.service-ico {
    width: 74px; height: 74px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--pink-soft), #fff); box-shadow: var(--sh-out-sm); color: var(--pink-deep);
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: .96rem; }

/* =========================================================================
   Gallery
   ========================================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 44px; }
.filter {
    font-family: var(--sans); font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 11px 24px; border-radius: 30px; border: none; cursor: pointer;
    background: var(--cream); color: var(--ink-soft); box-shadow: var(--sh-out-sm);
    transition: all .22s ease;
}
.filter:hover { color: var(--pink-deep); }
.filter.active { color: #fff; background: linear-gradient(135deg, var(--pink), var(--pink-deep)); }

.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.g-item {
    position: relative; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer;
    box-shadow: var(--sh-out-sm); aspect-ratio: 1; background: var(--cream);
}
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.g-item:hover img { transform: scale(1.08); }
.g-item figcaption {
    position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px;
    background: linear-gradient(180deg, transparent 45%, rgba(75,67,64,.72));
    color: #fff; font-family: var(--serif); font-size: 1.15rem;
    opacity: 0; transition: opacity .3s ease;
}
.g-item:hover figcaption { opacity: 1; }
.g-item.hide { display: none; }

/* lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 100; display: none;
    align-items: center; justify-content: center; padding: 30px;
    background: rgba(60, 45, 45, .82); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 86vh; border-radius: 14px; border: 8px solid var(--cream); box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.lightbox .lb-close, .lightbox .lb-nav {
    position: absolute; background: var(--cream); color: var(--ink); border: none; cursor: pointer;
    width: 52px; height: 52px; border-radius: 50%; font-size: 1.4rem; box-shadow: var(--sh-out-sm);
    display: grid; place-items: center;
}
.lightbox .lb-close { top: 26px; right: 26px; }
.lightbox .lb-nav.prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-nav.next { right: 26px; top: 50%; transform: translateY(-50%); }

/* =========================================================================
   Partners
   ========================================================================= */
.partners { background: linear-gradient(180deg, var(--blush-2), var(--blush)); }
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.partner-card {
    background: var(--cream); border-radius: var(--radius); padding: 30px 24px; text-align: center;
    box-shadow: var(--sh-out); transition: transform .3s ease, box-shadow .3s ease;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.partner-card:hover { transform: translateY(-6px); box-shadow: var(--sh-lift); }
.partner-logo {
    width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 4px;
    background: linear-gradient(135deg, var(--gold-soft), #fff); box-shadow: var(--sh-out-sm);
    font-family: var(--serif); font-size: 2rem; color: var(--gold-deep);
}
.partner-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.partner-card h3 { font-size: 1.35rem; }
.partner-card p { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.partner-link { font-size: .72rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pink-deep); font-weight: 600; }
.partner-link:hover { color: var(--gold-deep); }

/* =========================================================================
   Testimonials
   ========================================================================= */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testi-card {
    background: var(--cream); border-radius: var(--radius); padding: 36px 30px;
    box-shadow: var(--sh-out); position: relative;
}
.testi-card .quote-mark { font-family: var(--serif); font-size: 4rem; line-height: .6; color: var(--pink-soft); }
.testi-card p { font-family: var(--serif); font-style: italic; font-size: 1.18rem; color: var(--ink-soft); margin: 8px 0 22px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-author .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--pink), var(--gold)); color:#fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.2rem; }
.testi-author b { font-family: var(--sans); font-weight: 600; font-size: .95rem; }
.testi-author span { display: block; font-size: .78rem; color: var(--muted); }

/* =========================================================================
   Contact
   ========================================================================= */
.contact { background: linear-gradient(180deg, var(--blush), var(--blush-2)); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; }
.contact-form {
    background: var(--cream); border-radius: var(--radius); padding: 40px; box-shadow: var(--sh-out);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .74rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
    width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink);
    background: var(--blush); border: none; border-radius: var(--radius-sm); padding: 15px 18px;
    box-shadow: var(--sh-in); outline: none; transition: box-shadow .2s;
}
.field input:focus, .field textarea:focus { box-shadow: var(--sh-in), 0 0 0 2px var(--pink-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-human label b { text-transform: none; letter-spacing: 0; color: var(--pink-deep); font-size: 1rem; margin-left: 4px; }
.field-human input { max-width: 140px; }

.submit-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.submit-row .field-human { margin-bottom: 0; }
.submit-row .btn { flex: none; }
@media (max-width: 460px) {
    .submit-row { align-items: stretch; }
    .submit-row .field-human, .submit-row .field-human input { max-width: none; width: 100%; }
    .submit-row .btn { width: 100%; justify-content: center; }
}

.alert { border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 22px; font-size: .95rem; }
.alert-ok  { background: #e7f3ea; color: #2f6b45; box-shadow: var(--sh-out-sm); }
.alert-err { background: #fbe6ea; color: #a23b56; box-shadow: var(--sh-out-sm); }

.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card {
    background: var(--cream); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--sh-out-sm);
    display: flex; align-items: center; gap: 18px;
}
.info-card .ico { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink-soft), #fff); color: var(--pink-deep); box-shadow: var(--sh-out-sm); }
.info-card b { display: block; font-family: var(--serif); font-size: 1.15rem; }
.info-card span { color: var(--ink-soft); font-size: .95rem; }

.contact-map {
    position: relative; margin-top: 44px; line-height: 0;
    border-radius: var(--radius); overflow: hidden;
    border: 8px solid var(--cream); box-shadow: var(--sh-out);
}
.contact-map iframe {
    display: block; width: 100%; height: 420px;
    filter: grayscale(.35) contrast(.96); transition: filter .5s ease;
}
.contact-map:hover iframe { filter: none; }
.map-directions {
    position: absolute; bottom: 18px; right: 18px; z-index: 2;
    display: inline-flex; align-items: center; gap: 8px; line-height: 1;
    background: var(--cream); color: var(--ink);
    padding: 13px 22px; border-radius: 30px; box-shadow: var(--sh-out-sm);
    font-size: .76rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500;
    transition: transform .2s ease, color .2s ease, box-shadow .2s ease;
}
.map-directions:hover { transform: translateY(-2px); color: var(--pink-deep); box-shadow: var(--sh-out); }
@media (max-width: 720px) {
    .contact-map iframe { height: 320px; }
    .map-directions { bottom: 12px; right: 12px; padding: 11px 16px; font-size: .7rem; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { background: #efe1e5; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 1.2rem; margin-bottom: 16px; }
.footer-logo { width: 200px; max-width: 70%; height: auto; margin-bottom: 14px; }
.footer-grid p, .footer-grid li { color: var(--ink-soft); font-size: .95rem; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a:hover { color: var(--pink-deep); }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); box-shadow: var(--sh-out-sm); color: var(--pink-deep); transition: transform .2s; }
.footer-social a:hover { transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; text-align: center; color: var(--muted); font-size: .85rem; }

/* =========================================================================
   Reveal-on-scroll
   ========================================================================= */
/* Only hide when JS is available (graceful degradation if scripts fail). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
    .services-grid, .gallery-grid, .partners-grid { grid-template-columns: repeat(2, 1fr); }
    .testi-grid { grid-template-columns: 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { order: -1; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-media { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 720px) {
    section { padding: 66px 0; }
    .nav, .phone { display: none; }
    .nav-toggle { display: grid; place-items: center; }
    .nav.open {
        display: flex; flex-direction: column; position: absolute; top: 84px; left: 0; right: 0;
        background: var(--cream); padding: 20px 24px; gap: 16px; box-shadow: var(--sh-out);
    }
    /* Move the language toggle into the hamburger menu on small screens. */
    .header-right .lang-toggle { display: none; }
    .nav.open .nav-lang { display: inline-flex; align-self: flex-start; margin-top: 6px; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 460px) {
    .services-grid, .partners-grid { grid-template-columns: 1fr; }
}
