/* ============================================
   East Adriatic Consulting d.o.o.
   Stylesheet
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Color palette: Adriatic navy + warm gold on cream */
    --color-bg: #f5f0e6;
    --color-bg-alt: #ebe4d4;
    --color-surface: #fbf8f1;
    --color-primary: #1c3d5a;       /* Deep Adriatic navy */
    --color-primary-dark: #122a40;
    --color-accent: #b8893a;        /* Warm gold */
    --color-accent-dark: #9a7028;
    --color-text: #1a1a1a;
    --color-text-muted: #5e5e5e;
    --color-border: #d9d1bf;
    --color-white: #ffffff;

    /* Typography */
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container-max: 1240px;
    --header-height: 80px;

    /* Transitions */
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.35rem; }

em, .italic {
    font-style: italic;
    color: var(--color-primary);
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    display: inline-block;
}

p {
    color: var(--color-text-muted);
    max-width: 60ch;
}

p.lead {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Header / Navigation ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(245, 240, 230, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background-color: rgba(245, 240, 230, 0.96);
    border-bottom-color: var(--color-border);
    box-shadow: 0 1px 20px rgba(28, 61, 90, 0.06);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.nav-brand-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.nav-brand-sub {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
}

.nav-menu a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 0.25rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 2px;
    background-color: var(--color-accent);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    right: 0;
}

.nav-menu a.active {
    color: var(--color-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 4px;
    background-color: var(--color-surface);
}

.lang-btn {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--color-text-muted);
    transition: all var(--transition);
    text-transform: uppercase;
}

.lang-btn:hover {
    color: var(--color-primary);
}

.lang-btn.active {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border: 1px solid var(--color-primary);
    box-shadow: 0 4px 14px rgba(28, 61, 90, 0.18);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(28, 61, 90, 0.26);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
}

.btn-outline:hover {
    background-color: var(--color-text);
    color: var(--color-bg);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
}

.btn-accent:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.btn .arrow {
    transition: transform var(--transition);
}

.btn:hover .arrow {
    transform: translateX(3px);
}

/* ---- Hero Section ---- */
.hero {
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero h1 {
    margin-bottom: 1.75rem;
}

.hero h1 em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-primary);
}

.hero-text p {
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 2.25rem;
    max-width: 50ch;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-visual::before,
.hero-visual::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.hero-visual::before {
    width: 480px;
    height: 480px;
    opacity: 0.45;
    animation: ringPulseOuter 6s ease-in-out infinite;
}

.hero-visual::after {
    width: 360px;
    height: 360px;
    opacity: 0.7;
    animation: ringPulseInner 6s ease-in-out infinite;
    animation-delay: 1.5s;
}

.hero-visual .compass-illustration {
    width: 260px;
    height: 260px;
    position: relative;
    z-index: 1;
    animation: compassFloat 5s ease-in-out infinite;
    transition: transform 0.6s ease;
}

.hero-visual .compass-illustration:hover {
    animation-play-state: paused;
}

@keyframes compassFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes ringPulseOuter {
    0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.55; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes ringPulseInner {
    0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(0.97); }
}

/* Section: simple */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--color-bg-alt);
}

.section-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--color-white);
}

.section-dark p {
    color: rgba(255, 255, 255, 0.78);
}

.section-dark em {
    color: var(--color-accent);
}

.section-header {
    margin-bottom: 3.5rem;
    max-width: 720px;
}

.section-header h2 {
    margin-bottom: 1.25rem;
}

/* ---- Feature grid ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--color-border);
}

.feature {
    padding: 2.5rem 2rem 2rem 0;
    border-right: 1px solid var(--color-border);
}

.feature:last-child {
    border-right: none;
    padding-right: 0;
}

.feature:not(:first-child) {
    padding-left: 2rem;
}

.feature-icon {
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.feature h3 {
    margin-bottom: 0.85rem;
    font-size: 1.3rem;
}

.feature p {
    font-size: 0.96rem;
    line-height: 1.6;
}

/* ---- Service cards (grid) ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background-color: var(--color-border);
    border: 1px solid var(--color-border);
}

.service-card {
    padding: 2.5rem 2rem;
    background-color: var(--color-bg);
    transition: background-color 0.4s ease, transform 0.4s ease;
    position: relative;
}

.service-card:hover {
    background-color: var(--color-surface);
    transform: translateY(-4px);
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(-3deg);
    color: var(--color-accent-dark);
}

.service-icon {
    color: var(--color-accent);
    margin-bottom: 1.75rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    display: inline-flex;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
}

/* ---- Quote section ---- */
.quote-section {
    padding: 6rem 0;
    text-align: center;
}

.quote-icon {
    color: var(--color-accent);
    margin: 0 auto 2rem;
}

.quote-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.4;
    color: var(--color-text);
    max-width: 920px;
    margin: 0 auto 2.5rem;
}

.quote-attribution {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ---- Clients / Reference wall ---- */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.client-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2.5rem 2rem;
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(28, 61, 90, 0.1);
    border-color: var(--color-accent);
}

.client-logo {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.85;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-card:hover .client-logo {
    filter: grayscale(0%);
    opacity: 1;
}

.client-name {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.35;
}

/* ---- CTA Strip ---- */
.cta-strip {
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-strip h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
    max-width: 600px;
}

/* ---- Stats ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stats-grid.stats-grid--2col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
}

.stat {
    padding: 2rem 1.5rem 0 0;
    border-top: 1px solid var(--color-border);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
    margin-bottom: 0.85rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ---- About / mission columns ---- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
}

.values-list {
    list-style: none;
}

.values-list li {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border);
}

.values-list li:first-child {
    border-top: 1px solid var(--color-border);
}

.value-title {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
    display: block;
}

.value-desc {
    color: var(--color-text);
    font-size: 1rem;
}

/* ---- References / Projects ---- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.project-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 2.5rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(28, 61, 90, 0.12);
    border-color: var(--color-accent);
}

.project-card:hover .project-tag {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.project-tag {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    border-radius: 2px;
}

.project-year {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.08em;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}

.project-card p {
    margin-bottom: 1.5rem;
}

.project-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.project-stat-num {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: block;
}

.project-stat-lbl {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ---- Sectors ---- */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.sector-card {
    padding: 3rem;
    background-color: var(--color-primary); /* fallback if image fails */
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: 360px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

/* Photo backgrounds — turizam on left, gradiliste on right */
.sectors-grid > .sector-card:nth-child(1) {
    background-image: url('../assets/turizam.png');
}

.sectors-grid > .sector-card:nth-child(2) {
    background-image: url('../assets/gradiliste.png');
    background-color: var(--color-accent); /* warmer fallback */
}

/* Dark gradient overlay so white text stays readable on top of the photo */
.sector-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 23, 48, 0.45) 0%,
        rgba(18, 42, 64, 0.7) 55%,
        rgba(28, 61, 90, 0.88) 100%
    );
    transition: background 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.sector-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(28, 61, 90, 0.3);
}

/* Slightly lift the overlay on hover so the photo becomes more visible */
.sector-card:hover::before {
    background: linear-gradient(
        135deg,
        rgba(10, 23, 48, 0.3) 0%,
        rgba(18, 42, 64, 0.55) 55%,
        rgba(28, 61, 90, 0.75) 100%
    );
}

.sector-card:hover .sector-icon {
    transform: scale(1.1) rotate(-4deg);
}

.sectors-grid > .sector-card:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(184, 137, 58, 0.3);
}

.sector-icon {
    margin-bottom: 1.75rem;
    opacity: 0.9;
    display: inline-flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.sector-card h3 {
    color: var(--color-white);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.sector-card p {
    color: rgba(255, 255, 255, 0.85);
    position: relative;
    z-index: 1;
}

/* ---- Contact ---- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
}

.contact-info-list {
    list-style: none;
    margin-top: 2.5rem;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.contact-info-icon {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.contact-info-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.2rem;
    display: block;
}

.contact-info-value {
    color: var(--color-text);
    font-size: 1rem;
}

/* Contact people block */
.contact-people {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.contact-people-title {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 2rem;
}

.contact-person {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-person:last-child {
    border-bottom: none;
}

.contact-person-head {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.contact-person-name {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.contact-person-langs {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.contact-person-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.4rem 0;
    color: var(--color-text);
    font-size: 0.98rem;
    transition: color 0.25s ease, transform 0.25s ease;
}

.contact-person-line svg {
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.contact-person-line:hover {
    color: var(--color-primary);
}

.contact-person-line:hover svg {
    transform: scale(1.1);
}

.contact-lead,
.mission-lead {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Form */
.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
}

.form-input,
.form-textarea {
    border: none;
    border-bottom: 1px solid var(--color-text);
    padding: 0.6rem 0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: border-color var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
    border-bottom-color: #b33a3a;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    align-self: flex-start;
}

.form-status {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    min-height: 1.4em;
}

.form-status.is-success {
    color: #1f5f3d;
}

.form-status.is-error {
    color: #8d2f2f;
}

.contact-form button[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ---- Footer ---- */
.site-footer {
    background-color: var(--color-bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.65rem;
}

.footer-col a,
.footer-col span {
    font-size: 0.92rem;
    color: var(--color-text-muted);
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-office {
    font-style: normal;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-office::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ---- Page title sections ---- */
.page-hero {
    padding: 5rem 0 4rem;
}

.page-hero h1 {
    margin-bottom: 1.5rem;
    max-width: 18ch;
}

.page-hero p {
    font-size: 1.1rem;
    max-width: 56ch;
}

.about-cta {
    margin-top: 3.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature:nth-child(2) {
        border-right: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .two-col,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--color-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .nav-menu.is-open {
        transform: translateY(0);
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    .nav-brand-name {
        font-size: 1.05rem;
    }

    .nav-brand-sub {
        font-size: 0.58rem;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        min-height: 300px;
        order: -1;
    }

    .hero-visual::before {
        width: 320px;
        height: 320px;
    }

    .hero-visual::after {
        width: 240px;
        height: 240px;
    }

    .hero-visual .compass-illustration {
        width: 180px;
        height: 180px;
    }

    .section {
        padding: 3.5rem 0;
    }

    .features-grid,
    .services-grid,
    .projects-grid,
    .sectors-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        padding: 2rem 0;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .feature:not(:first-child) {
        padding-left: 0;
    }

    .feature:last-child {
        border-bottom: none;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .cta-strip-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    .lang-switch {
        padding: 3px;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 0.68rem;
    }

    .sector-card,
    .project-card {
        padding: 2rem;
    }

    .project-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 420px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .nav-brand-text {
        display: none;
    }
}

/* ---- Accessibility ---- */
*:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Prevent body scroll when mobile menu open */
body.nav-open {
    overflow: hidden;
}

/* Hidden utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ============================================
   ANIMATIONS — Reveal on scroll & page polish
   ============================================ */

/* Smooth page entrance */
body {
    animation: pageFadeIn 0.5s ease-out;
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Reveal-on-scroll base */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Brand logo subtle entrance */
.nav-brand-logo {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-brand:hover .nav-brand-logo {
    transform: rotate(-8deg) scale(1.05);
}

/* Eyebrow accent line that grows under page-hero */
.page-hero {
    position: relative;
}

.page-hero::after {
    content: '';
    position: absolute;
    left: 2rem;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--color-accent), transparent);
    animation: lineGrow 1.4s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lineGrow {
    to { width: 220px; }
}

/* Hero text staggered word-up entrance (initial, before reveal observer) */
.hero h1,
.hero-text p,
.hero-actions {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 { animation-delay: 0.1s; }
.hero-text p { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.5s; }

.hero .eyebrow {
    opacity: 0;
    animation: heroFadeUp 0.7s 0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Feature card icon subtle pulse on hover of feature */
.feature {
    transition: transform 0.4s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
    color: var(--color-accent-dark);
}

.feature-icon {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
    display: inline-flex;
}

/* Form input gentle slide */
.form-input,
.form-textarea {
    position: relative;
}

.form-group {
    position: relative;
}

.form-group::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.form-group:focus-within::after {
    width: 100%;
}

/* Lang button micro-interaction */
.lang-btn {
    position: relative;
    overflow: hidden;
}

.lang-btn:hover:not(.active) {
    background-color: rgba(28, 61, 90, 0.06);
}

/* Quote icon subtle bob */
.quote-icon {
    animation: quoteBob 4s ease-in-out infinite;
}

@keyframes quoteBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Stat number on hover */
.stat:hover .stat-number {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.stat-number {
    transition: color 0.3s ease;
}

/* CTA strip subtle gradient line on hover */
.cta-strip {
    position: relative;
    overflow: hidden;
}

.cta-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    animation: sweepLine 4s ease-in-out infinite;
}

@keyframes sweepLine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Sector card image-area background subtle gradient */
.sectors-grid {
    perspective: 1000px;
}

/* ============================================
   CITYSCAPE HERO VARIANT (home page only)
   ============================================ */

.hero.hero-cityscape {
    position: relative;
    isolation: isolate;
    padding: 7rem 0 8rem;
    overflow: hidden;
    color: var(--color-white);
}

/* Blurred photo backdrop */
.hero.hero-cityscape::before {
    content: '';
    position: absolute;
    inset: -24px;
    background-image: url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center 40%;
    background-color: var(--color-primary-dark); /* fallback */
    filter: blur(5px) saturate(1.05);
    transform: scale(1.05);
    z-index: -2;
}

/* Color overlay — navy → gold gradient for readability */
.hero.hero-cityscape::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(18, 42, 64, 0.92) 0%,
        rgba(28, 61, 90, 0.78) 45%,
        rgba(28, 61, 90, 0.35) 100%
    );
    z-index: -1;
}

/* Optional subtle vignette */
.hero.hero-cityscape > .container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, transparent 30%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
    z-index: -1;
}

.hero.hero-cityscape .container {
    position: relative;
}

/* Hide the compass visual on the cityscape variant — the photo IS the visual */
.hero.hero-cityscape .hero-visual {
    display: none;
}

.hero.hero-cityscape .hero-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    gap: 0;
}

/* Light text colors over the dark backdrop */
.hero.hero-cityscape h1,
.hero.hero-cityscape h1 > span {
    color: var(--color-white);
}

.hero.hero-cityscape h1 em {
    color: var(--color-accent);
}

.hero.hero-cityscape .eyebrow {
    color: var(--color-accent);
}

.hero.hero-cityscape .hero-text p {
    color: rgba(255, 255, 255, 0.88);
}

.hero.hero-cityscape .btn-outline {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.65);
}

.hero.hero-cityscape .btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.hero.hero-cityscape .btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 4px 18px rgba(184, 137, 58, 0.4);
}

.hero.hero-cityscape .btn-primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    box-shadow: 0 8px 26px rgba(184, 137, 58, 0.5);
}

@media (max-width: 768px) {
    .hero.hero-cityscape {
        padding: 4rem 0 5rem;
    }

    .hero.hero-cityscape::before {
        background-position: center;
    }
}

/* ============================================
   INTRO SPLASH (home page entrance)
   ============================================ */

.intro-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: introOverlayFade 0.7s 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.intro-splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
    transform-origin: center center;
    animation: introContentFly 1s 1.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.intro-splash-welcome {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--color-accent);
    opacity: 0;
    transform: translateY(15px);
    animation: introFadeUp 0.7s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-splash-logo {
    width: clamp(120px, 18vw, 170px);
    height: clamp(120px, 18vw, 170px);
    opacity: 0;
    transform: scale(0.7) rotate(-12deg);
    animation: introLogoIn 0.9s 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-splash-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(15px);
    animation: introFadeUp 0.7s 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.intro-splash-name {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.intro-splash-sub {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
}

@keyframes introFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes introLogoIn {
    to { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Slide whole splash content to upper-left (toward header) and shrink */
@keyframes introContentFly {
    to {
        transform: translate(calc(-50vw + 130px), calc(-50vh + 55px)) scale(0.2);
        opacity: 0;
    }
}

@keyframes introOverlayFade {
    to { opacity: 0; visibility: hidden; }
}

/* ============================================
   O NAMA hero — photo as full backdrop (cityscape-style)
   ============================================ */

.hero.hero-about-bg {
    position: relative;
    isolation: isolate;
    padding: 7rem 0 8rem;
    overflow: hidden;
    color: var(--color-white);
}

/* Blurred photo backdrop */
.hero.hero-about-bg::before {
    content: '';
    position: absolute;
    inset: -24px;
    background-image: url('../assets/o-nama.png');
    background-size: cover;
    background-position: center 40%;
    background-color: var(--color-primary-dark); /* fallback */
    filter: blur(5px) saturate(1.05);
    transform: scale(1.05);
    z-index: -2;
}

/* Dark navy → fade gradient — text readable on the left, photo bleeds on the right */
.hero.hero-about-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        rgba(18, 42, 64, 0.92) 0%,
        rgba(28, 61, 90, 0.78) 45%,
        rgba(28, 61, 90, 0.35) 100%
    );
    z-index: -1;
}

.hero.hero-about-bg .container {
    position: relative;
}

/* Single column — text doesn't share width with a visual */
.hero.hero-about-bg .hero-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    gap: 0;
}

/* Light text on the dark backdrop */
.hero.hero-about-bg h1,
.hero.hero-about-bg h1 > span {
    color: var(--color-white);
}

.hero.hero-about-bg h1 em {
    color: var(--color-accent);
}

.hero.hero-about-bg .eyebrow {
    color: var(--color-accent);
}

.hero.hero-about-bg .hero-text p {
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 768px) {
    .hero.hero-about-bg {
        padding: 4rem 0 5rem;
    }

    .hero.hero-about-bg::before {
        background-position: center;
    }
}

/* ============================================
   KONTAKT photo banner
   ============================================ */

.photo-banner {
    width: 100%;
    height: 360px;
    overflow: hidden;
    position: relative;
    background-color: var(--color-bg-alt);
}

.photo-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    animation: bannerFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

/* Soft fade at the bottom so the photo blends into the page below */
.photo-banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;
    background: linear-gradient(180deg, rgba(245, 240, 230, 0) 0%, var(--color-bg) 100%);
    pointer-events: none;
}

@keyframes bannerFadeIn {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .photo-banner {
        height: 220px;
    }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
