/* ============================================================
   Sultana Blommor - Main stylesheet
   Palette: primary #0F414A  |  hover #5C9BA6  |  text #334155
   ============================================================ */

:root {
    --primary: #0F414A;
    --primary-dark: #0B3238;
    --accent: #5C9BA6;
    --body: #334155;
    --heading: #0F414A;
    --light: #F0F5FA;
    --footer-bg: #EEEEEE;
    --border: #D1D5DB;
    --white: #FFFFFF;
    --gradient: linear-gradient(90deg, #0F414A 0%, #2C6A75 49%, #0F414A 100%);
    --radius: 30px;
    --shadow: 0 10px 30px rgba(15, 65, 74, 0.12);
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--body);
    font-size: 16px;
    line-height: 1.65;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-kerning: normal;
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease, background 0.2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 600; line-height: 1.3; }

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

section { padding: 70px 0; }

.section-head { text-align: center; max-width: 800px; margin: 0 auto 50px; }
.section-head .kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--body); font-size: 17px; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.85);
}
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn-outline-dark {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-dark:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   Header
   ============================================================ */

.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.topbar {
    background: #06292f;
    text-align: center;
    font-size: 13px;
    padding: 8px 0;
}
.topbar a { color: rgba(255,255,255,0.92); letter-spacing: 0.5px; }
.topbar a:hover { color: #fff; }

.above-header {
    background: var(--gradient);
}
.above-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
    padding-bottom: 12px;
    position: relative;
}

.social-icons { display: flex; gap: 14px; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,0.14);
    transition: background 0.25s ease, color 0.25s ease;
}
.social-icon:hover { background: #fff; color: var(--primary); }

.above-phone a { color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; }
.above-phone a:hover { color: var(--accent); }

.main-header {
    background: #fff;
    border-bottom: 1px solid var(--light);
}
.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 0;
    padding-bottom: 0;
}
.main-header-inner .social-icons { flex: 1; }
.main-header-inner .main-nav { flex: 0 0 auto; }
.main-header-inner .header-actions { flex: 1; display: flex; justify-content: flex-end; }
.main-header .social-icon {
    color: var(--primary);
    background: var(--light);
    border: 1px solid rgba(15, 65, 74, 0.12);
}
.main-header .social-icon:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.site-logo { flex-shrink: 0; }
.site-logo img { height: 60px; width: auto; }
.logo-dark { display: none; }

/* Desktop navigation (matching original site: uppercase teal links,
   solid teal hover block, white dropdown with teal top border) */
@media (min-width: 861px) {
.main-nav .nav-list { list-style: none; display: flex; align-items: stretch; gap: 2px; }
.main-nav .nav-list > li { position: relative; }
.main-nav .nav-list > li > .nav-item-row { display: flex; align-items: center; }
.main-nav .nav-list > li > .nav-item-row > a {
    display: block;
    padding: 0 18px;
    line-height: 52px;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.main-nav .nav-list > li:hover > .nav-item-row > a {
    color: #fff;
    background: var(--primary);
}

.caret {
    display: inline-block;
    width: 6px; height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 7px;
    margin-bottom: 2px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border-top: 2px solid var(--primary);
    box-shadow: 0 14px 34px rgba(15, 65, 74, 0.16);
    list-style: none;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 20;
}
.has-sub:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid var(--light);
}
.submenu li:last-child a { border-bottom: 0; }
.submenu li a:hover { color: var(--primary); background: var(--light); }
} /* /desktop nav */

.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-phone {
    padding: 10px 24px;
    background: var(--primary);
    border-color: var(--primary);
}
.btn-phone:hover { background: var(--accent); border-color: var(--accent); }

/* Sticky header state (after scroll) */
.site-header.is-scrolled {
    position: fixed;
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.site-header.is-scrolled .topbar,
.site-header.is-scrolled .above-header { display: none; }
.site-header.is-scrolled .main-header-inner { padding-top: 0; padding-bottom: 0; }
.site-header.is-scrolled .main-nav .nav-list > li > .nav-item-row > a { color: var(--primary); }
.site-header.is-scrolled .main-nav .nav-list > li:hover > .nav-item-row > a { color: #fff; background: var(--primary); }
.site-header.is-scrolled .logo-light { display: none; }
.site-header.is-scrolled .logo-dark { display: block; }
.site-header.is-scrolled .btn-phone { background: var(--primary); border-color: var(--primary); }

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-header.is-scrolled .nav-toggle span { background: var(--primary); }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 41, 47, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* Drawer-only elements (hidden on desktop) */
.mobile-nav-head,
.mobile-nav-foot,
.submenu-toggle { display: none; }
.drawer-logo { display: none; }

/* ============================================================
   Hero (home) & page banner (inner pages)
   ============================================================ */

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,41,47,0.72) 0%, rgba(6,41,47,0.45) 60%, rgba(6,41,47,0.78) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 820px; padding: 200px 20px 80px; }
.hero h1 { color: #fff; font-size: clamp(30px, 5vw, 54px); font-weight: 700; margin-bottom: 14px; }
.hero .hero-sub { color: #fff; font-size: clamp(18px, 2.6vw, 26px); font-weight: 400; margin-bottom: 12px; opacity: 0.95; }
.hero p { color: rgba(255,255,255,0.9); font-size: 17px; margin-bottom: 34px; }
.hero .hero-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Inner page banner */
.page-banner {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 240px 20px 90px;
    background-size: cover;
    background-position: center;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,41,47,0.82) 0%, rgba(6,41,47,0.55) 100%);
}
.page-banner .page-banner-inner { position: relative; z-index: 2; max-width: 800px; margin: 0 auto; }
.page-banner h1 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 14px; }
.page-banner p { color: rgba(255,255,255,0.92); font-size: 17px; }

/* ============================================================
   Home: About intro
   ============================================================ */

.about-intro { background: #fff; }
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
}
.about-intro-grid .about-img { border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.about-intro-grid .about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text .kicker {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 10px;
}
.about-text h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 18px; }
.about-text p { margin-bottom: 16px; }
.about-text .btn { margin-top: 8px; }

/* About photo row (3 small images) */
.about-photo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 46px;
}
.about-photo-row figure { border-radius: 14px; overflow: hidden; }
.about-photo-row img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.4s ease; }
.about-photo-row figure:hover img { transform: scale(1.05); }

/* ============================================================
   Services cards
   ============================================================ */

.services-section { background: var(--light); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(15, 65, 74, 0.06), 0 0 0 1px rgba(15, 65, 74, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(15,65,74,0.12); }
.service-card .card-img { height: 240px; overflow: hidden; }
.service-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .card-img img { transform: scale(1.06); }
.service-card .card-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { font-size: 15px; margin-bottom: 18px; flex: 1; }
.service-card .btn { align-self: flex-start; padding: 10px 22px; font-size: 14px; }

/* ============================================================
   Story section
   ============================================================ */

.story-section { background: #fff; }
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.story-media { border-radius: 22px; overflow: hidden; box-shadow: 0 2px 16px rgba(15, 65, 74, 0.06), 0 0 0 1px rgba(15, 65, 74, 0.04); }
.story-media img { width: 100%; height: 420px; object-fit: cover; }
.story-text .kicker { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--accent); margin-bottom: 10px; }
.story-text h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 18px; }
.story-text p { margin-bottom: 16px; }

.story-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 26px 0;
}
.story-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--light);
    border-radius: 16px;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
    box-shadow: 0 1px 4px rgba(15, 65, 74, 0.05);
}
.story-icon svg { flex-shrink: 0; }

/* ============================================================
   Features (Why choose us)
   ============================================================ */

.features-section { background: var(--light); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.feature-item {
    background: #fff;
    border-radius: 22px;
    padding: 30px 26px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(15, 65, 74, 0.06), 0 0 0 1px rgba(15, 65, 74, 0.04);
    transition: transform 0.3s ease;
}
.feature-item:hover { transform: translateY(-4px); }
.feature-icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-item h3 { font-size: 18px; margin-bottom: 10px; }
.feature-item p { font-size: 15px; }

/* ============================================================
   CTA section
   ============================================================ */

.cta-section {
    position: relative;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}
.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11,50,56,0.94) 0%, rgba(15,65,74,0.88) 100%);
}
.cta-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.cta-inner h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,0.92); font-size: 17px; margin-bottom: 32px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   Tjanster page (tabs)
   ============================================================ */

.tabs-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.tab-btn {
    padding: 12px 26px;
    border-radius: var(--radius);
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.tab-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab-btn.active { background: var(--primary); color: #fff; }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.tab-intro { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.tab-intro h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.tab-intro p { font-size: 16px; }

.tab-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.tab-gallery figure { border-radius: 18px; overflow: hidden; cursor: pointer; }
.tab-gallery img { width: 100%; height: 260px; object-fit: cover; transition: transform 0.4s ease; }
.tab-gallery figure:hover img { transform: scale(1.07); }

/* ============================================================
   Galleri page
   ============================================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-grid figure { border-radius: 18px; overflow: hidden; cursor: zoom-in; position: relative; }
.gallery-grid img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid figure:hover img { transform: scale(1.07); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(6,41,47,0.94);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 18px; }
.lightbox .lb-close {
    position: absolute;
    top: 24px; right: 30px;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

/* ============================================================
   Om Oss page
   ============================================================ */

.about-tabs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 40px;
}
.about-tab-btn {
    border: 2px solid var(--primary);
    border-radius: 18px;
    background: #fff;
    color: var(--primary);
    padding: 16px 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.about-tab-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.about-tab-btn.active { background: var(--primary); color: #fff; }

.about-tab-panel { display: none; }
.about-tab-panel.active { display: block; animation: fadeIn 0.4s ease; }
.about-tab-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-tab-layout img { border-radius: 22px; box-shadow: 0 2px 16px rgba(15, 65, 74, 0.06), 0 0 0 1px rgba(15, 65, 74, 0.04); width: 100%; }
.about-tab-layout p { font-size: 16px; margin-bottom: 14px; }

/* ============================================================
   Kontakta Oss page
   ============================================================ */

.contact-intro { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.contact-intro h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.contact-intro p { font-size: 16px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-card {
    background: var(--light);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 2px 16px rgba(15, 65, 74, 0.06), 0 0 0 1px rgba(15, 65, 74, 0.04);
}
.contact-card h3 { font-size: 19px; margin-bottom: 14px; }
.contact-card ul { list-style: none; }
.contact-card li { padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
.contact-card li:last-child { border-bottom: none; }
.contact-card li a { font-weight: 500; }
.contact-card .social-list { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-card .social-list li { border: none; padding: 0; }
.contact-card .social-list a {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 14px;
}
.contact-card .social-list a:hover { background: var(--accent); }

.contact-form-card { background: #fff; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--body);
    transition: border-color 0.25s ease;
    background: #fff;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-group textarea { min-height: 150px; resize: vertical; }

.form-note { font-size: 14px; color: var(--accent); margin-top: 14px; font-weight: 600; }

.map-wrap { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); margin-top: 50px; }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

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

.site-footer { background: var(--footer-bg); margin-top: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding: 60px 0 40px;
}
.footer-logo img { height: 50px; width: auto; margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; margin-bottom: 18px; }
.footer-social .social-icon { background: var(--primary); color: #fff; }
.footer-social .social-icon:hover { background: var(--accent); }
.footer-title { font-size: 16px; margin-bottom: 16px; }
.footer-links, .footer-contact { list-style: none; }
.footer-links li, .footer-contact li { margin-bottom: 10px; }
.footer-links a, .footer-contact a { color: var(--primary); font-size: 14.5px; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact li { font-size: 14.5px; color: var(--body); }

.footer-bottom {
    border-top: 1px solid var(--border);
    background: #fff;
    padding: 18px 0;
    text-align: center;
}
.footer-bottom p { font-size: 14px; color: var(--body); }
.footer-bottom .footer-legal { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.footer-bottom .credit { font-size: 13px; color: var(--body); }
.footer-bottom .credit a { color: var(--primary); text-decoration: none; font-weight: 600; }
.footer-bottom .credit a:hover { text-decoration: underline; }

/* Scroll to top */
.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 90;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--accent); }

/* Small admin link (subtle) */
.admin-float-link { position: fixed; left: 24px; bottom: 24px; z-index: 90; opacity: 0.45; }
.admin-float-link a { font-size: 13px; color: var(--body); background: #fff; padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border); }
.admin-float-link a:hover { opacity: 1; color: var(--primary); }

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

@media (max-width: 1024px) {
    .services-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid, .tab-gallery { grid-template-columns: repeat(3, 1fr); }
    .about-tabs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .nav-toggle { display: flex; }

    /* Mobile header: logo left + toggle right, main bar collapses */
    .above-header-inner { justify-content: space-between; }
    .main-header .social-icons,
    .main-header .header-actions { display: none; }
    .main-header-inner { padding-top: 0; padding-bottom: 0; }
    .main-header { border-bottom: 0; }
    .site-header.is-scrolled { background: transparent; box-shadow: none; }
    .site-header.is-scrolled .above-header { display: block; }
    .site-header.is-scrolled .nav-toggle span { background: #fff; }

    /* Hamburger -> X animation */
    .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Slide-in drawer */
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: min(340px, 88vw);
        height: 100vh;
        height: 100dvh;
        background: #fff;
        z-index: 99;
        transform: translateX(105%);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        box-shadow: -12px 0 40px rgba(6, 41, 47, 0.18);
    }
    .main-nav.open { transform: translateX(0); }

    /* Drawer header */
    .mobile-nav-head {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 18px;
        background: #fff;
        border-bottom: 1px solid var(--light);
    }
    .mobile-nav-head .drawer-logo { display: block; height: 46px; }
    .mobile-nav-head-actions { display: flex; align-items: center; gap: 10px; }
    .mobile-nav-phone {
        font-size: 13px;
        font-weight: 700;
        color: var(--primary);
        white-space: nowrap;
    }
    .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px; height: 38px;
        border: none;
        border-radius: 50%;
        background: var(--light);
        color: var(--primary);
        cursor: pointer;
        transition: background 0.25s ease;
    }
    .mobile-nav-close:hover { background: rgba(22, 163, 74, 0.15); }
    .mobile-nav-close svg { width: 16px; height: 16px; }

    /* Link list */
    .nav-list { flex-direction: column; align-items: stretch !important; gap: 0 !important; padding: 6px 0; }
    .nav-item-row { display: flex; align-items: center; justify-content: space-between; }
    .main-nav .nav-list > li > .nav-item-row > a {
        color: var(--primary) !important;
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        border-radius: 0;
        border-bottom: 1px solid var(--light);
        padding: 15px 18px;
    }

    /* Accordion submenu toggle */
    .submenu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px; height: 48px;
        flex-shrink: 0;
        background: transparent;
        border: none;
        cursor: pointer;
        color: var(--primary);
    }
    .submenu-toggle svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
    .nav-list > li.sub-open > .nav-item-row .submenu-toggle svg { transform: rotate(180deg); }
    .caret { display: none; }

    /* Collapsible submenu */
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.35s ease, padding 0.3s ease;
    }
    .nav-list > li.sub-open > .submenu {
        max-height: 60vh;
        padding: 4px 0 10px 18px;
        border-bottom: 1px solid var(--light);
    }
    .submenu li a { color: var(--body); border-radius: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.3px; }
    .submenu li a:hover { color: var(--primary); background: var(--light); }

    /* Drawer footer */
    .mobile-nav-foot {
        display: block;
        margin-top: auto;
        padding: 20px 18px 28px;
        background: #f7faf9;
        border-top: 1px solid var(--light);
        text-align: center;
    }
    .mobile-nav-foot .btn { width: 100%; }
    .mobile-nav-foot .social-icons { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
    .mobile-nav-foot .social-icons .social-icon {
        width: 40px; height: 40px;
        background: #fff;
        color: var(--primary);
        border: 1px solid var(--light);
    }

    /* Staggered link entrance */
    .main-nav .nav-list > li {
        opacity: 0;
        transform: translateX(28px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .main-nav.open .nav-list > li { opacity: 1; transform: translateX(0); }
    .main-nav.open .nav-list > li:nth-child(1) { transition-delay: 0.04s; }
    .main-nav.open .nav-list > li:nth-child(2) { transition-delay: 0.08s; }
    .main-nav.open .nav-list > li:nth-child(3) { transition-delay: 0.12s; }
    .main-nav.open .nav-list > li:nth-child(4) { transition-delay: 0.16s; }
    .main-nav.open .nav-list > li:nth-child(5) { transition-delay: 0.2s; }
    .main-nav.open .nav-list > li:nth-child(6) { transition-delay: 0.24s; }
    .main-nav.open .nav-list > li:nth-child(7) { transition-delay: 0.28s; }

    .about-intro-grid, .story-grid, .about-tab-layout, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-photo-row { grid-template-columns: repeat(3, 1fr); }
    .about-photo-row img { height: 140px; }
}

@media (max-width: 600px) {
    section { padding: 50px 0; }
    .services-grid, .features-grid, .gallery-grid, .tab-gallery { grid-template-columns: 1fr; }
    .gallery-grid img, .tab-gallery img { height: 280px; }
    .about-tabs-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero { min-height: 80vh; }
    .hero-inner { padding-top: 150px; }
    .page-banner { padding-top: 170px; }
    .logo-dark { display: none !important; }
    .logo-light { display: block !important; }
    .site-header.is-scrolled .logo-light { display: block !important; }
    .site-header.is-scrolled .logo-dark { display: none !important; }
    .site-header.is-scrolled .nav-toggle span { background: #fff !important; }
    .header-actions .btn-phone { display: none; }
}

/* ============================================================
   Page builder - content blocks (iOS / iPhone card style)
   ============================================================ */
.block-heading { padding: 60px 0 14px; }
.block-heading h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; color: var(--primary); }
.block-heading .kicker { margin-bottom: 10px; }
.block-heading .block-subtitle { color: var(--body); font-size: 17px; max-width: 800px; margin: 0 auto; }

.block-text {
    padding: 24px 0;
}
.block-text .container {
    max-width: 800px;
    background: #fff;
    border-radius: 22px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(15, 65, 74, 0.06), 0 0 0 1px rgba(15, 65, 74, 0.04);
}
.block-text p { font-size: 17px; line-height: 1.8; color: var(--body); margin-bottom: 16px; }

.block-image { padding: 24px 0; }
.block-image .container {
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 2px 16px rgba(15, 65, 74, 0.06), 0 0 0 1px rgba(15, 65, 74, 0.04);
    max-width: 900px;
}
.block-image-figure { margin: 0; }
.block-image img { border-radius: 14px; max-width: 100%; height: auto; }
.block-image figcaption { color: #777; font-size: 14px; margin-top: 10px; }

.block-video { padding: 24px 0; }
.block-video .container { max-width: 900px; }
.video-wrap { border-radius: 22px; overflow: hidden; box-shadow: 0 2px 16px rgba(15, 65, 74, 0.06), 0 0 0 1px rgba(15, 65, 74, 0.04); }
.video-wrap iframe { width: 100%; height: 480px; border: 0; display: block; }

.block-button { padding: 30px 0; }
.block-button-inner { text-align: center; }

.block-map { padding: 24px 0; }
.block-map .map-wrap { margin-top: 0; }
.block-map .container {
    max-width: 900px;
    background: #fff;
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 2px 16px rgba(15, 65, 74, 0.06), 0 0 0 1px rgba(15, 65, 74, 0.04);
    overflow: hidden;
}
.block-map iframe { border-radius: 14px; }

.block-html { padding: 24px 0; }
.block-html .container {
    max-width: 800px;
    background: #fff;
    border-radius: 22px;
    padding: 36px 40px;
    box-shadow: 0 2px 16px rgba(15, 65, 74, 0.06), 0 0 0 1px rgba(15, 65, 74, 0.04);
}
.block-html img { max-width: 100%; height: auto; border-radius: 12px; }
.block-html iframe { max-width: 100%; }

.block-divider { padding: 10px 0; }
.block-divider hr { border: 0; border-top: 1px solid var(--light); margin: 0; }

@media (max-width: 600px) {
    .video-wrap iframe { height: 240px; }
}

/* ----------------------------------------------------------
 * Site-wide popup banner
 * ---------------------------------------------------------- */
.site-popup {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.site-popup.show { display: flex; }
.site-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 41, 47, 0.62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.site-popup-card {
    position: relative;
    max-width: 520px;
    width: 100%;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(6, 41, 47, 0.4);
    animation: popup-in 0.35s ease;
}
.site-popup-card > a { display: block; }
.site-popup-img { display: block; width: 100%; height: auto; }
.site-popup-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}
.site-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    transition: background 0.2s ease, color 0.2s ease;
}
.site-popup-close:hover { background: var(--primary); color: #fff; }
.site-popup-close svg { width: 18px; height: 18px; }
@keyframes popup-in {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to   { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------
 * Contact form success popup
 * ---------------------------------------------------------- */
.form-success-card { text-align: center; }
.form-success-body { padding: 44px 34px 36px; }
.form-success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2ECC71, #1E8449);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 10px 24px rgba(30, 132, 73, 0.35);
}
.form-success-body h3 { margin: 0 0 10px; color: var(--heading); }
.form-success-body p { margin: 0 0 24px; color: var(--body); }
