/* styles.css — Γκούβελης Τεχνικό Γραφείο — Light Professional Theme */

:root {
    --ink:    #1c1b19;
    --ink2:   #343230;
    --gold:   #1d3a5c;     /* deep navy — overridden by site-init.js via config */
    --gold2:  #2e5f8a;     /* steel blue — overridden by site-init.js via config */
    --cream:  #f5f4ef;     /* warm off-white — main background */
    --cream2: #eceae2;     /* slightly darker warm — alternate sections */
    --stone:  #7c7a72;
    --warm:   #c9a86c;   /* real warm gold — premium accent */
    --warm2:  #e8c97a;   /* brighter warm gold — hover/highlight */
    --white:  #ffffff;
    --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--ink);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--cream2); }
::-webkit-scrollbar-thumb { background: var(--warm); }

/* ===== ACCESSIBILITY ===== */

/* Skip to main content — visible only on keyboard focus */
.skip-link {
    position: absolute; top: -100%; left: 16px;
    background: var(--gold); color: var(--white);
    padding: 10px 20px; font-size: 13px; font-weight: 600;
    border-radius: 0 0 4px 4px; z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Global keyboard focus ring — only for keyboard users (not mouse) */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}
/* Remove default outline for mouse users */
:focus:not(:focus-visible) { outline: none; }

/* ===== PROGRESS BAR ===== */
#progress {
    position: fixed; top: 0; left: 0; height: 2px;
    background: linear-gradient(90deg, var(--warm), var(--warm2));
    width: 0%; z-index: 9999; transition: width 0.1s linear;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 0 5%; height: 88px;
    display: flex; align-items: center; justify-content: space-between;
    transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease),
                border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
nav.scrolled {
    height: 72px;
    background: rgba(245, 244, 239, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(29, 58, 92, 0.1);
    box-shadow: 0 1px 24px rgba(0,0,0,0.06);
}

.nav-logo { display: flex; align-items: center; gap: 16px; z-index: 1001; }
.logo-circle {
    width: 45px; height: 45px; border-radius: 50%;
    overflow: hidden; border: none; flex-shrink: 0;
    background: transparent;
    transition: box-shadow 0.4s;
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); }
.nav-logo:hover .logo-circle { box-shadow: none; }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text .name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700; font-size: 17px;
    color: var(--ink); letter-spacing: 0.5px;
}
.logo-text .title {
    font-size: 8.5px; font-weight: 500;
    color: var(--warm); letter-spacing: 2.5px;
    text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a {
    color: var(--ink2); font-size: 10.5px; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}
.nav-links a:not(.nav-cta)::after {
    content: ''; position: absolute;
    bottom: -3px; left: 50%; right: 50%; height: 1px;
    background: currentColor; opacity: 0.7;
    transition: left 0.35s var(--ease), right 0.35s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a.nav-spy-active:not(.nav-cta)::after { left: 0; right: 0; }
.nav-links a:hover { color: var(--gold); }
.nav-cta {
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    padding: 13px 36px; border-radius: 8px;
    transition: background 0.3s, color 0.3s !important;
}
.nav-cta:hover {
    background: var(--gold) !important;
    color: var(--white) !important;
}

.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; z-index: 1001;
    width: 32px; height: 32px; justify-content: center; align-items: center;
    background: none; border: none; appearance: none; -webkit-appearance: none;
    padding: 0; flex-shrink: 0;
}
.hamburger span { width: 20px; height: 1px; background: var(--ink); transition: transform 0.32s var(--ease), opacity 0.22s, background 0.3s; }
/* Hamburger → X when menu open */
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
    min-height: calc(100vh - 2cm);
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gold);
    padding: 120px 7% 0;
    gap: 60px 80px;
}

/* Blueprint grid on dark bg */
.hero-blueprint {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
    background-size: 54px 54px;
    animation: blueprintDrift 28s ease-in-out infinite, blueprintPulse 8s ease-in-out infinite;
}
@keyframes blueprintDrift {
    0%, 100% { background-position: 0 0; }
    50%       { background-position: 27px 27px; }
}
@keyframes blueprintPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.45; }
}

/* Nav text white on dark hero */
/* Scroll-spy: active section link */
.nav-links a.nav-spy-active { color: var(--warm) !important; font-weight: 500; }
nav:not(.scrolled) .nav-links a.nav-spy-active { color: var(--warm2) !important; opacity: 1; }

nav:not(.scrolled) .nav-links a             { color: rgba(255,255,255,0.82); }
nav:not(.scrolled) .nav-links a:hover       { color: var(--white); }
nav:not(.scrolled) .nav-cta                 { border-color: rgba(255,255,255,0.5) !important; color: rgba(255,255,255,0.9) !important; }
nav:not(.scrolled) .nav-cta:hover           { background: rgba(255,255,255,0.12) !important; color: var(--white) !important; }
nav:not(.scrolled) .logo-text .name         { color: var(--white); }
nav:not(.scrolled) .logo-text .title        { color: rgba(255,255,255,0.65); }
nav:not(.scrolled) .logo-circle             { border-color: rgba(255,255,255,0.35); }
nav:not(.scrolled) .hamburger span          { background: var(--white); }
nav:not(.scrolled) .lang-toggle            { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); }
nav:not(.scrolled) .lang-toggle:hover      { border-color: rgba(255,255,255,0.4); }
nav:not(.scrolled) .lang-btn .lcode        { color: rgba(255,255,255,0.75); }
nav:not(.scrolled) .lang-btn.active        { background: rgba(255,255,255,0.12); }
nav:not(.scrolled) .lang-btn.active .lcode { color: rgba(201,168,108,0.95); }
nav:not(.scrolled) .lang-sep              { background: rgba(255,255,255,0.18); }

/* Hero warm accent bar — top-left signature mark */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 80px;
    background: linear-gradient(to bottom, var(--warm), transparent);
    z-index: 4; pointer-events: none;
}

/* Left: Photo column */
.hero-photo-col {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    align-self: center;
}
.hero-photo {
    width: clamp(260px, 28vw, 445px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(8%);
    border: 4px solid rgba(255,255,255,0.22);
    box-shadow: 0 0 0 8px rgba(255,255,255,0.04), 0 24px 60px rgba(0,0,0,0.22);
    display: block;
}

/* Right: Text content */
.hero-inner {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: flex-start; gap: 0;
}
.hero-eyebrow {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 32px;
}
.hero-eyebrow::before {
    content: ''; display: block; width: 36px; height: 1.5px;
    background: rgba(255,255,255,0.4);
}
.hero-eyebrow span {
    font-size: 9.5px; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}
.hero-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300; line-height: 0.9;
}
.hero-name .line1 {
    font-size: clamp(29px, 3.6vw, 55px);
    color: rgba(255,255,255,0.7); display: block;
    letter-spacing: 4px; text-transform: uppercase;
    font-weight: 400; margin-bottom: 12px;
    font-style: italic;
}
.hero-name .line2 {
    font-size: clamp(57px, 8.5vw, 125px);
    display: block; letter-spacing: -2px;
    color: var(--white);
    font-weight: 300; line-height: 0.88;
}
.hero-name {
    position: relative;
    padding-bottom: clamp(32px, 3.5vw, 55px); /* reserve space for line3 */
}
.hero-name .line3 {
    font-size: clamp(23px, 2.6vw, 39px);
    display: block; letter-spacing: 5px;
    color: rgba(201,168,108,0.85);
    font-weight: 400; text-transform: uppercase;
    text-align: right;
    font-style: italic;
    position: absolute;
    bottom: 0; right: 0; left: 0;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.4s ease;
}
.hero-name .line3.typing-started {
    transform: translateY(0);
    opacity: 1;
}

/* ── Crane sketch animation (shared) ── */
.crane-path {
    stroke-dasharray: var(--len, 1000);
    stroke-dashoffset: var(--len, 1000);
    transition: stroke-dashoffset 3.6s cubic-bezier(0.4,0,0.2,1);
}
.crane-draw .crane-path { stroke-dashoffset: 0; }
.crane-dim-line {
    opacity: 0;
    transition: opacity 0.8s ease 3.2s;
}
.crane-draw .crane-dim-line { opacity: 1; }
/* on erase, dim lines fade out immediately */
:not(.crane-draw) .crane-dim-line { transition-delay: 0s; }

/* Bottom strip — full width, single flex row, centered */
.hero-bottom {
    grid-column: 1 / -1;
    position: relative; z-index: 2;
    display: flex; flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 32px 0 6px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: -30px;
}
.hero-bottom-contact {
    display: flex; align-items: center; gap: 0;
    flex-wrap: nowrap; flex: 0 1 auto;
}
.hbc-item {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.75); text-decoration: none;
    padding: 0 20px 0 0;
    border-right: 1px solid rgba(255,255,255,0.15);
    margin-right: 20px;
    transition: color 0.25s;
    flex-shrink: 0;
}
.hbc-item:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hbc-item:hover { color: var(--white); }
.hbc-item:hover .hbc-icon { background: rgba(255,255,255,0.18); }

/* Icon circle */
.hbc-icon {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.25s;
}
.hbc-icon i { font-size: 14px; color: rgba(255,255,255,0.85); }

/* Text stack */
.hbc-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.hbc-label {
    font-size: 7.5px; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: rgba(255,255,255,0.45);
}
.hbc-val { font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.88); white-space: nowrap; }
.hbc-address { cursor: default; }   /* address is not a link */
.hbc-address .hbc-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 22ch; }

/* ===== HERO ENTRANCE ANIMATIONS ===== */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes heroSlideFromLeft {
    from { opacity: 0; transform: translateX(-36px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes photoReveal {
    from { opacity: 0; transform: scale(0.91); filter: grayscale(40%); }
    to   { opacity: 1; transform: scale(1);    filter: grayscale(8%); }
}
@keyframes photoSlideFromLeft {
    from { opacity: 0; transform: translateX(-70px) scale(0.95); filter: grayscale(40%); }
    to   { opacity: 1; transform: translateX(0)     scale(1);    filter: grayscale(8%); }
}
@keyframes heroSlideFromRight {
    from { opacity: 0; transform: translateX(70px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes photoPulse {
    0%, 100% { box-shadow: 0 0 0 16px rgba(255,255,255,0.06), 0 32px 80px rgba(0,0,0,0.28); }
    50%       { box-shadow: 0 0 0 28px rgba(255,255,255,0.03), 0 32px 80px rgba(0,0,0,0.22); }
}

/* Mobile defaults — simple fade */
.hero-photo       { animation: photoReveal 1.3s var(--ease) 0.15s both; }
.hero-eyebrow     { animation: heroFadeUp 0.7s var(--ease) 0.45s both; }
.hero-name .line1 { animation: heroFadeIn 1.1s ease 0.55s both; }
.hero-name .line2 { animation: heroFadeIn 1.3s ease 0.75s both; }
/* line3 animated by typewriter JS — no CSS animation needed */

/* Desktop — directional slide animations */
@media (min-width: 769px) {
    .hero-photo   { animation: photoSlideFromLeft 1.4s var(--ease) 0.15s both; }
    .hero-name .line1 { animation: heroSlideFromRight 1.2s var(--ease) 0.45s both; }
    .hero-name .line2 { animation: heroSlideFromRight 1.4s var(--ease) 0.65s both; }
    /* line3 animated by typewriter JS — no CSS animation needed */
}

/* CTA button slides in from left first */
.hero-bottom .btn-hero-cta { animation: heroSlideFromLeft 0.65s var(--ease) 1.0s both; }
/* Contact items slide in from left, staggered */
.hero-bottom-contact .hbc-item:nth-child(1) { animation: heroSlideFromLeft 0.65s var(--ease) 1.15s both; }
.hero-bottom-contact .hbc-item:nth-child(2) { animation: heroSlideFromLeft 0.65s var(--ease) 1.30s both; }
.hero-bottom-contact .hbc-item:nth-child(3) { animation: heroSlideFromLeft 0.65s var(--ease) 1.45s both; }
.hero-bottom-contact .hbc-item:nth-child(4) { animation: heroSlideFromLeft 0.65s var(--ease) 1.60s both; }
/* Keep border fade-in on the container */
.hero-bottom { animation: heroFadeUp 0.01s var(--ease) 1.0s both; }

/* CTA button for hero — warm gold border, high conversion pull */
.btn-hero-cta {
    background: transparent;
    color: var(--warm);
    border: 1.5px solid var(--warm);
    padding: 21px 57px; border-radius: 8px;
    font-size: 15px; font-weight: 600; letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: background 0.3s var(--ease), color 0.3s var(--ease),
                box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
    display: inline-block; white-space: nowrap; flex-shrink: 0;
}
.btn-hero-cta:hover {
    background: var(--warm);
    color: var(--gold);
    border-color: var(--warm);
    box-shadow: 0 8px 40px rgba(201,168,108,0.35);
    transform: translateY(-2px);
}

/* Standard gold button (used outside hero) */
.btn-gold {
    background: var(--gold); color: var(--white);
    padding: 15px 38px; border-radius: 8px;
    font-size: 10px; font-weight: 600; letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: all 0.3s var(--ease);
    display: inline-block;
    margin-top: 8px;
}
.btn-gold:hover {
    background: var(--gold2);
    box-shadow: 0 8px 32px rgba(29,58,92,0.22);
    transform: translateY(-2px);
}

/* Bold keyword highlight */
.kw {
    font-weight: 700;
    color: var(--warm);
    font-style: normal;
}

/* ===== MARQUEE ===== */
.marquee-wrap {
    background: var(--gold);
    overflow: hidden; padding: 0; white-space: nowrap;
}
.marquee-track {
    display: inline-flex; gap: 0;
    animation: marquee 30s linear infinite;
}
.marquee-item {
    display: inline-flex; align-items: center; gap: 20px;
    padding: 15px 40px;
    font-size: 10px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    transition: color 0.3s;
}
.marquee-item:hover { color: var(--warm2); }
.marquee-dot {
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--warm); opacity: 0.7; flex-shrink: 0;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ===== SECTION BASE ===== */
section { padding: 112px 7%; }

.eyebrow {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 24px;
}
.eyebrow::before {
    content: ''; display: block;
    width: 32px; height: 2px; background: var(--warm);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.55s var(--ease) 0.2s;
}
/* Trigger line when parent data-reveal fires */
[data-reveal].visible .eyebrow::before { transform: scaleX(1); }
/* Hero eyebrow has no data-reveal — show immediately */
.hero .eyebrow::before { transform: scaleX(1); transition: none; }
.eyebrow span {
    font-size: 10px; font-weight: 600;
    letter-spacing: 3.5px; text-transform: uppercase;
    color: var(--warm);
}

.section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(44px, 5.5vw, 80px);
    line-height: 1.0;
    color: var(--ink); letter-spacing: -1.5px;
}
.section-heading em { font-style: italic; color: var(--warm); }
.section-heading.light { color: var(--ink); }
.section-heading.light em { color: var(--warm); }

[data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }
[data-reveal-r] {
    opacity: 0; transform: translateX(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
[data-reveal-r].visible { opacity: 1; transform: translateX(0); }

/* ── Service card reveal — slide from left/right edge (desktop only) ── */
@media (min-width: 769px) {
    .service-card--odd[data-reveal] {
        opacity: 0;
        transform: translateX(-48px);
        transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
    }
    .service-card--even[data-reveal] {
        opacity: 0;
        transform: translateX(48px);
        transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
    }
    .service-card--odd[data-reveal].visible,
    .service-card--even[data-reveal].visible {
        opacity: 1;
        transform: translateX(0);
    }
}
/* Mobile: simple fade */
@media (max-width: 768px) {
    .service-card[data-reveal] {
        opacity: 0;
        transition: opacity 0.5s ease;
    }
    .service-card[data-reveal].visible {
        opacity: 1;
        transform: none;
    }
}

/* ===== ABOUT ===== */
.about-section { background: var(--cream2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-grid--single { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.about-grid--single .feature-row { justify-content: flex-start; }
/* Desktop two-column: text left, caliper right */
.about-grid--desktop-two {
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    max-width: 1100px; margin: 0 auto;
}
.about-grid--desktop-two .feature-row { justify-content: flex-start; }
.about-caliper-col {
    display: flex; align-items: center; justify-content: center;
    width: 156px; flex-shrink: 0;
}
/* Vertical caliper */
.caliper-wrap--vertical {
    margin: 0; display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.8s;
    width: 156px;
}
.caliper-wrap--vertical.vis { opacity: 0.85; }
.caliper-svg--vertical { width: 94px; height: min(624px, 72vh); color: var(--gold); overflow: visible; }

.about-content { padding-top: 8px; }
.about-content .section-heading { margin-bottom: 28px; }
.about-lead {
    font-size: 15.5px; color: var(--ink2);
    line-height: 1.9; margin-bottom: 44px; font-weight: 300;
}
.about-lead::first-letter {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.2em; font-weight: 600;
    color: var(--warm); line-height: 0.72;
    float: left; margin-right: 6px; margin-top: 6px;
}

.about-features { display: flex; flex-direction: column; gap: 0; margin-bottom: 48px; }
.feature-row {
    display: flex; align-items: center; gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(29,58,92,0.1);
    font-size: 14px; color: var(--ink2); font-weight: 300;
}
.feature-row:first-child { border-top: 1px solid rgba(29,58,92,0.1); }
.feature-row i { color: var(--warm); width: 16px; text-align: center; flex-shrink: 0; }
.feature-row strong { color: var(--ink); font-weight: 600; width: 220px; flex-shrink: 0; }
.feature-row-header { display: contents; } /* transparent on desktop — children flow into feature-row directly */

/* Dimension line */
.dim-row {
    display: flex; align-items: center; gap: 0;
    margin: -4px 0 40px; opacity: 0; transition: opacity 0.3s;
}
.dim-row.ready { opacity: 1; }
.dim-tick {
    width: 2px; height: 22px; flex-shrink: 0;
    background: rgba(29,58,92,0.5);
    transform: skewX(-12deg) scaleY(0);
    transition: transform 0.3s ease 1s;
}
.dim-row.ready .dim-tick { transform: skewX(-12deg) scaleY(1); }
.dim-bar {
    flex: 1; height: 1px; background: rgba(29,58,92,0.25);
    transform: scaleX(0); transition: transform 1.1s var(--ease);
}
.dim-bar.dim-l { transform-origin: right; transition-delay: 0.15s; }
.dim-bar.dim-r { transform-origin: left;  transition-delay: 0.15s; }
.dim-row.ready .dim-bar { transform: scaleX(1); }
.dim-value {
    font-family: 'Cormorant Garamond', serif; font-size: 10px;
    color: #c9a86c; font-weight: 700; letter-spacing: 3px;
    text-transform: uppercase; padding: 0 18px; white-space: nowrap;
    opacity: 0; transform: scale(0.6);
    transition: opacity 0.5s 0.9s, transform 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.9s;
    text-shadow: 0 0 18px rgba(201,168,108,0.35);
}
.dim-row.ready .dim-value { opacity: 1; transform: scale(1); }

/* Caliper */
.caliper-wrap {
    margin: 32px -100px 0; display: flex; justify-content: center;
    opacity: 0; transition: opacity 0.8s;
}
.caliper-wrap.vis { opacity: 0.85; }
.caliper-svg { width: min(960px, 94vw); color: var(--gold); overflow: visible; }
.caliper-mobile { display: none; } /* shown only on mobile via media query */

/* ===== SERVICES — LIST LAYOUT ===== */
.services-section { background: var(--white); }
.services-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 80px; flex-wrap: wrap; gap: 24px;
}

/* Section measurement line */
.sec-meas {
    display: flex; align-items: center; gap: 0;
    margin: 0 0 52px; opacity: 0; transition: opacity 0.4s;
}
.sec-meas.ready { opacity: 1; }
.sec-meas-tick {
    width: 3px; height: 36px; flex-shrink: 0;
    background: var(--warm);
    transform: skewX(-14deg) scaleY(0);
    transition: transform 0.4s ease 0.8s;
}
.sec-meas.ready .sec-meas-tick { transform: skewX(-14deg) scaleY(1); }
.sec-meas-bar {
    flex: 1; height: 2px;
    background: linear-gradient(90deg, var(--warm), rgba(201,168,108,0.3));
    transform: scaleX(0); transition: transform 2.4s cubic-bezier(0.16,1,0.3,1);
}
.sec-meas-bar.bar-l {
    transform-origin: right;
    background: linear-gradient(270deg, var(--warm), rgba(201,168,108,0.3));
    transition-delay: 0.25s;
}
.sec-meas-bar.bar-r { transform-origin: left; transition-delay: 0.25s; }
.sec-meas.ready .sec-meas-bar { transform: scaleX(1); }
.sec-meas-label {
    font-family: 'Cormorant Garamond', serif; font-size: 13px;
    letter-spacing: 3px; padding: 0 20px; white-space: nowrap;
    text-transform: uppercase; flex-shrink: 0;
    color: var(--ink); font-weight: 600;
    opacity: 0; transition: opacity 0.7s 1.8s;
}
.sec-meas.ready .sec-meas-label { opacity: 1; }

/* Services rendered as a list */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
    max-width: 1100px; margin: 0 auto;
    border-top: 1px solid rgba(29,58,92,0.1);
}
.service-card:nth-child(even) {
    border-left: 1px solid rgba(29,58,92,0.1);
    padding-left: 32px;
}
.service-card {
    display: grid;
    grid-template-columns: 3rem 2rem 1fr;
    gap: 0 1.5rem;
    align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid rgba(29,58,92,0.1);
    position: relative;
    transition: background 0.3s, box-shadow 0.3s;
}
/* Clean hover: darker background + inset left accent — no layout shift */
.service-card:hover {
    background: rgba(29,58,92,0.055);
    box-shadow: inset 3px 0 0 var(--warm);
}
/* Remove the old ::before bar trick entirely */
.service-card::before { display: none; }

.service-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px; font-weight: 400;
    color: var(--warm); opacity: 0.6; letter-spacing: 1px;
    padding-top: 6px; line-height: 1;
    user-select: none;
    transition: opacity 0.3s;
}
.service-card:hover .service-num { opacity: 1; }
.service-icon {
    font-size: 22px; color: var(--warm);
    padding-top: 2px; display: block; flex-shrink: 0;
}
/* Body: title stacked above description */
.service-card-body { display: flex; flex-direction: column; gap: 10px; }
.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px; font-weight: 600;
    color: var(--ink); letter-spacing: 0.2px;
    line-height: 1.2;
    transition: color 0.3s;
}
.service-card:hover h3 { color: var(--warm); }
.service-card p {
    font-size: 14.5px; line-height: 1.85;
    color: var(--stone); font-weight: 300;
}


/* ===== FEATURED SERVICE CARD (O1/O2) ===== */
@keyframes borderTravel {
    0%   { background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%; }
    100% { background-position: 200% 0%, 100% 200%, -100% 100%, 0% -100%; }
}
/* Default: paused — JS adds .is-visible to start when scrolled into view */
.service-card--featured {
    position: relative;
}
.service-card--featured::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg,  transparent 40%, rgba(201,168,108,0.85) 50%, transparent 60%) top    / 200% 4px no-repeat,
        linear-gradient(180deg, transparent 40%, rgba(201,168,108,0.85) 50%, transparent 60%) right  / 4px 200% no-repeat,
        linear-gradient(90deg,  transparent 40%, rgba(201,168,108,0.85) 50%, transparent 60%) bottom / 200% 4px no-repeat,
        linear-gradient(180deg, transparent 40%, rgba(201,168,108,0.85) 50%, transparent 60%) left   / 4px 200% no-repeat;
    background-position: -100% 0%, 100% -100%, 200% 100%, 0% 200%;
    animation: borderTravel 4s linear infinite;
    animation-play-state: paused;
    opacity: 0;
}
.service-card--featured.is-visible::after {
    animation-play-state: running;
    opacity: 1;
}
.service-card--featured h3 { color: var(--warm); }
.service-badge {
    display: inline-block;
    background: var(--warm);
    color: var(--gold);
    font-size: 8px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    padding: 4px 10px; border-radius: 3px;
    margin-bottom: 4px;
}

/* ── Hero crane (mobile only) ── */
.hero-crane-mobile {
    display: none; /* desktop: hidden */
    width: 100%;
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.9s ease 0.8s, transform 0.9s ease 0.8s;
}
.hero-crane-mobile.crane-ready { opacity: 1; transform: translateY(0); }
.crane-svg--hero { width: 100%; height: auto; color: rgba(201,168,108,0.92); overflow: visible; }

/* ===== TRUST SECTION ===== */
.trust-section {
    background: var(--gold);
    color: var(--white);
    padding: 112px 7%;
}
/* Desktop: two-col layout — left content, right crane */
.trust-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: start;
    max-width: 1380px; margin: 0 auto;
}
.trust-left { min-width: 0; }
.trust-crane-col {
    display: flex; align-items: center; justify-content: center;
    width: 460px; flex-shrink: 0; align-self: center;
    position: sticky; top: 120px; margin-top: 118px;
}
.crane-svg {
    width: 100%; height: auto;
    color: rgba(201,168,108,0.92);
    overflow: visible;
}
.trust-section .eyebrow::before { background: var(--warm); }
.trust-section .eyebrow span { color: var(--warm); }
.trust-header { margin-bottom: 70px; }
.trust-header .section-heading { color: var(--white); }
.trust-header .section-heading em { color: rgba(255,255,255,0.55); font-style: italic; }

/* Stats row */
.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 70px;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.trust-stat {
    padding: 42px 24px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    border-right: 1px solid rgba(255,255,255,0.12);
    text-align: center;
}
.trust-stat:last-child { border-right: none; }
.trust-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(64px, 7vw, 110px);
    font-weight: 300; line-height: 1;
    color: var(--white); letter-spacing: -2px;
    text-shadow: 0 0 60px rgba(201,168,108,0.25);
}
.trust-stat-label {
    font-size: 10.5px; font-weight: 600;
    letter-spacing: 3px; text-transform: uppercase;
    color: rgba(201,168,108,0.75);
}

/* Pillars */
.trust-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}
.trust-pillar { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.trust-pillar p { text-align: justify; display: none; }
.trust-pillar-icon {
    width: 52px; height: 52px;
    border: 1px solid rgba(201,168,108,0.4);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s, background 0.3s;
}
.trust-pillar-icon:hover { border-color: var(--warm); background: rgba(201,168,108,0.08); }
.trust-pillar-icon i { font-size: 20px; color: var(--warm); }
.trust-pillar h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px; font-weight: 600;
    color: var(--white); line-height: 1.2;
}
.trust-pillar p {
    font-size: 14.5px; line-height: 1.9;
    color: rgba(255,255,255,0.72); font-weight: 300;
}

/* ===== ARTICLES TICKER ===== */
.articles-band {
    background: var(--cream2);
    overflow: hidden;   /* JS overrides to scroll when ready */
    padding: 0;
    border-top: 1px solid rgba(29,58,92,0.08);
    border-bottom: 1px solid rgba(29,58,92,0.08);
    cursor: grab;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* hide scrollbar — drag is the UX */
}
.articles-band::-webkit-scrollbar { display: none; }
/* Edge fade masks */
.articles-band::before,
.articles-band::after {
    content: ''; position: absolute; top: 0; bottom: 0;
    width: 100px; z-index: 2; pointer-events: none;
}
.articles-band::before {
    left: 0;
    background: linear-gradient(to right, var(--cream2) 10%, transparent);
}
.articles-band::after {
    right: 0;
    background: linear-gradient(to left, var(--cream2) 10%, transparent);
}
.articles-track {
    display: inline-flex;
    gap: 0;
    animation: articleScroll 78s linear infinite;
    /* pauses on hover for readability */
}
/* articleScroll CSS animation removed — JS RAF loop handles scrolling */
.article-card {
    display: flex; flex-direction: column; gap: 10px;
    padding: 52px 48px;
    width: 494px; flex-shrink: 0;
    border-right: 1px solid rgba(29,58,92,0.08);
    transition: background 0.3s;
    text-decoration: none; color: inherit; cursor: pointer;
}
.articles-band:hover .article-card:hover {
    background: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(29,58,92,0.1);
}
.article-card::after {
    content: 'Διαβάστε →';
    font-size: 9px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--warm);
    opacity: 0; margin-top: auto; padding-top: 16px;
    transition: opacity 0.25s;
}
.articles-band:hover .article-card:hover::after { opacity: 1; }
.articles-band:hover .article-card:hover .article-cat { color: var(--gold2); }
.articles-band:hover .article-card:hover h4 { color: var(--gold); }
.article-cat {
    font-size: 9px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--warm);
}
.article-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px; font-weight: 600;
    color: var(--ink); line-height: 1.3;
}
.article-card p {
    font-size: 13px; line-height: 1.75;
    color: var(--stone); font-weight: 300;
}

/* ===== CONTACT ===== */
.contact-section { background: var(--cream); }
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.4fr;
    column-gap: 80px; row-gap: 48px;
    align-items: stretch;
}
.contact-info { grid-column: 1; grid-row: 1; }
.contact-info .section-heading { margin-bottom: 20px; }
.contact-lead {
    font-size: 15px; color: var(--ink2);
    line-height: 1.85; margin-bottom: 40px; font-weight: 300;
}

.person-card {
    display: flex; align-items: center; gap: 22px;
    border: 1px solid rgba(29,58,92,0.12);
    border-radius: 12px;
    padding: 28px 32px; margin-bottom: 36px;
    position: relative;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.person-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(29,58,92,0.1);
}
.person-card::before {
    content: ''; position: absolute;
    left: 0; top: 0; bottom: 0; width: 2px;
    background: var(--warm);
}
.person-photo {
    width: 94px; height: 94px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 1.5px solid rgba(29,58,92,0.2);
    filter: grayscale(15%);
}
.person-details h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px; color: var(--ink); font-weight: 600;
    margin-bottom: 4px;
}
.person-details p {
    color: var(--warm); font-size: 9px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
}

.contact-detail-list { display: flex; flex-direction: column; gap: 0; }
.contact-detail {
    display: flex; align-items: center; gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(29,58,92,0.07);
    text-decoration: none; color: inherit;
    transition: color 0.25s;
}
.contact-detail:first-child { border-top: 1px solid rgba(29,58,92,0.07); }
.contact-detail:hover { color: var(--warm); }
.contact-detail:hover .cd-icon { background: var(--warm); }
.contact-detail:hover .cd-icon i,
.contact-detail:hover .cd-icon .fa-brands { color: var(--white); }

/* Circular icon badge */
.cd-icon {
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(29,58,92,0.07);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.25s, transform 0.25s var(--ease);
}
.contact-detail:hover .cd-icon { transform: scale(1.1); }
.cd-icon i, .cd-icon .fa-brands {
    font-size: 18px; color: var(--warm); transition: color 0.25s;
}

/* Text stack */
.contact-detail-text { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.cd-label {
    font-size: 8.5px; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--stone);
}
.cd-value { font-size: 14.5px; color: var(--ink2); font-weight: 300; }

/* Google Maps embed — full width, bottom row */
.contact-map {
    grid-column: 1 / -1; grid-row: 2;
    overflow: hidden;
    border: 1px solid rgba(29,58,92,0.12);
}
.contact-map iframe {  width: 100%; height: 340px; }

/* Form — row 1, right column, same height as contact info */
.contact-form-wrap {
    border: 1.5px solid rgba(29,58,92,0.2);
    border-radius: 12px;
    padding: 52px 48px;
    background: var(--white);
    grid-row: 1;
    grid-column: 2;
    align-self: stretch;
}
.contact-form-wrap h3 {
    font-family: 'Inter', sans-serif;
    font-size: 22px; color: var(--ink); font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
    font-family: 'Inter', sans-serif;
    font-size: 10px; font-weight: 600;
    color: var(--stone); letter-spacing: 2px; text-transform: uppercase;
}
.field input, .field textarea, .field select {
    background: var(--cream);
    border: 1.5px solid rgba(29,58,92,0.25);
    border-radius: 8px;
    color: var(--ink); padding: 11px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 14px; font-weight: 400; outline: none;
    transition: border-color 0.3s, background 0.3s;
    -webkit-appearance: none; appearance: none;
}
.field select option { background: var(--white); color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(28,27,25,0.32); }
.field input:focus, .field textarea:focus, .field select:focus {
    border-color: var(--gold);
    background: var(--white);
}
.field textarea { resize: none; min-height: 220px; }
.form-fields { display: flex; flex-direction: column; gap: 26px; }
.btn-submit {
    background: var(--gold); color: var(--white);
    padding: 17px 48px; border: none; border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 9.5px; font-weight: 600;
    letter-spacing: 2.5px; text-transform: uppercase;
    cursor: pointer; margin-top: 12px;
    transition: all 0.3s var(--ease);
}
.btn-submit:hover {
    background: var(--gold2);
    box-shadow: 0 8px 32px rgba(29,58,92,0.2);
    transform: translateY(-2px);
}
#formStatus {
    display: none; margin-top: 4px;
    padding: 12px 16px; border-radius: 3px;
    font-size: 13px; font-weight: 500; line-height: 1.4;
}
#formStatus.status-success {
    background: rgba(29,58,92,0.07);
    border: 1px solid rgba(29,58,92,0.25);
    color: var(--gold, #1d3a5c);
}
#formStatus.status-error {
    background: rgba(180,20,20,0.07);
    border: 1px solid rgba(180,20,20,0.3);
    color: #c04040;
}

/* ===== FOOTER ===== */
footer {
    background: var(--gold);
    padding: 56px 6% 36px;
}
.footer-top {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-logo-circle {
    width: 45px; height: 45px; border-radius: 50%;
    overflow: hidden; border: none;
    background: transparent;
}
.footer-logo-circle img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.36); }
.footer-brand-text .fname {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px; font-weight: 600; color: var(--white);
}
.footer-brand-text .ftitle {
    font-size: 8.5px; color: rgba(255,255,255,0.6); letter-spacing: 2px;
    text-transform: uppercase; margin-top: 3px;
}
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a {
    color: rgba(255,255,255,0.6); font-size: 9.5px; font-weight: 500;
    letter-spacing: 2px; text-transform: uppercase; transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}
.footer-socials { display: flex; gap: 10px; }
.social-link {
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.55); font-size: 13px;
    transition: all 0.25s var(--ease);
}
.social-link:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255,255,255,0.12);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}

/* ===== ENGINEERING ANIMATIONS ===== */

/* Scroll Elevation Meter */
.scroll-elev {
    position: fixed; right: 16px; top: 50%;
    transform: translateY(-50%);
    z-index: 400; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; gap: 0;
    opacity: 0; transition: opacity 0.6s;
}
.scroll-elev.show { opacity: 1; }
.elev-track {
    position: relative; width: 2px; height: 180px;
    background: rgba(29,58,92,0.12);
}
.elev-fill {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(29,58,92,0.4);
    transition: height 0.12s linear;
}
.elev-dot {
    position: absolute; left: 50%; width: 8px; height: 8px;
    background: var(--gold); border-radius: 50%;
    transform: translate(-50%, 50%); bottom: 0%;
    box-shadow: 0 0 10px rgba(29,58,92,0.5);
    transition: bottom 0.12s linear;
}
.elev-ticks {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; justify-content: space-between;
}
.elev-tick { width: 7px; height: 1px; background: rgba(29,58,92,0.25); margin-left: 2px; }
.elev-tick.major { width: 12px; background: rgba(29,58,92,0.5); position: relative; }
.elev-tick.major span {
    position: absolute; right: calc(100% + 6px); top: 50%;
    transform: translateY(-50%);
    font-family: 'Cormorant Garamond', serif; font-size: 8px;
    color: rgba(29,58,92,0.5); letter-spacing: 0.5px; white-space: nowrap;
}
.elev-label {
    font-family: 'Cormorant Garamond', serif; font-size: 8px;
    color: rgba(29,58,92,0.4); letter-spacing: 1.5px;
    text-transform: uppercase; writing-mode: vertical-rl; margin-top: 10px;
}

/* Scroll Ruler (fixed bottom) */
.scroll-ruler {
    position: fixed; bottom: 16px; left: 50%;
    transform: translateX(-50%);
    z-index: 400; pointer-events: none;
    display: flex; align-items: center; gap: 0;
    width: min(520px, 80vw);
    opacity: 0; transition: opacity 0.5s;
}
.scroll-ruler.show { opacity: 1; }
.sr-tick {
    width: 2px; height: 22px; flex-shrink: 0;
    background: rgba(29,58,92,0.5); transform: skewX(-12deg);
}
.sr-track {
    flex: 1; position: relative; height: 1px;
    background: rgba(29,58,92,0.1);
}
.sr-fill {
    position: absolute; left: 0; top: 0; height: 100%;
    background: rgba(29,58,92,0.45); transition: width 0.1s linear;
}
.sr-ticks {
    position: absolute; top: -10px; left: 0; right: 0;
    display: flex; justify-content: space-between; pointer-events: none;
}
.sr-sub { width: 1px; height: 8px; background: rgba(29,58,92,0.15); }
.sr-sub.maj { height: 13px; background: rgba(29,58,92,0.35); }
.sr-value {
    font-family: 'Cormorant Garamond', serif; font-size: 10.5px;
    letter-spacing: 2.5px; color: rgba(29,58,92,0.6);
    padding: 0 13px; flex-shrink: 0; white-space: nowrap;
}

/* Language toggle */
.lang-toggle {
    display: flex; align-items: center; gap: 2px;
    background: rgba(29,58,92,0.05);
    border: 1px solid rgba(29,58,92,0.18);
    border-radius: 6px; padding: 5px 7px;
    z-index: 1001; flex-shrink: 0; transition: border-color 0.3s;
}
.lang-toggle:hover { border-color: rgba(29,58,92,0.4); }
.lang-btn {
    background: none; border: none;
    padding: 5px 10px; border-radius: 4px;
    cursor: pointer; opacity: 0.55;
    transition: opacity 0.25s, background 0.25s;
    display: flex; align-items: center; gap: 8px;
}
.lflag {
    width: 22px; height: auto; border-radius: 2px;
    display: block; flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.lang-btn .lcode {
    font-family: 'Inter', sans-serif;
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--ink);
}
.lang-btn.active { opacity: 1; background: rgba(29,58,92,0.1); }
.lang-btn.active .lcode { color: var(--gold); }
.lang-sep { width: 1px; height: 16px; background: rgba(29,58,92,0.15); flex-shrink: 0; }

/* ===== EXPERTEASE CREDIT ===== */
.footer-design { font-size: 13px; letter-spacing: 0.5px; color: rgba(255,255,255,0.6); }
.footer-design a { text-decoration: none; }
.footer-design .design-brand {
    color: var(--white); font-style: italic; font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: border-color 0.3s;
}
.footer-design a:hover .design-brand { border-color: var(--white); }

/* ===== BACK TO TOP ===== */
#backToTop {
    position: fixed; bottom: 32px; right: 32px; z-index: 900;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--warm); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 4px 20px rgba(201,168,108,0.35);
    opacity: 0; pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
}
#backToTop.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#backToTop:hover { background: var(--warm2); box-shadow: 0 6px 28px rgba(201,168,108,0.5); }
#backToTop i { color: var(--white); font-size: 15px; }
@media (max-width: 768px) { #backToTop { bottom: 20px; right: 16px; } }

/* ===== RESPONSIVE ===== */

/* ── Small desktop / 14" laptops (≤1380px) ── */
@media (max-width: 1380px) {
    .hero {
        padding: 100px 6% 0;
        gap: 32px 48px;
        grid-template-columns: 0.75fr 1.25fr;
    }
}


/* ── Tablet (≤1100px) ── */
@media (max-width: 1100px) {
    .hero {
        min-height: 100vh;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 110px 6% 0;
        text-align: center; gap: 36px;
    }
    .hero-photo-col { justify-content: center; }
    .hero-photo { width: min(338px, 58%); }
    .hero-inner { align-items: center; }
    .hero-eyebrow { justify-content: center; }
    .hero-eyebrow::before { display: none; }
    .hero-bottom {
        display: flex; flex-direction: column;
        justify-content: center; align-items: center;
        gap: 24px; padding: 28px 0 36px;
    }
    .hero-bottom-contact { justify-content: center; flex-wrap: wrap; gap: 20px; flex: unset; }

    .about-grid { grid-template-columns: 1fr; gap: 56px; }
    .about-grid--single { max-width: 100%; }
    .about-grid--desktop-two { grid-template-columns: 1fr auto; }
    .trust-layout { grid-template-columns: 1fr; }
    .trust-crane-col { display: none; }
    .trust-stats { grid-template-columns: repeat(3, 1fr); }

    .contact-grid { grid-template-columns: 1fr; row-gap: 32px; }
    .contact-info { grid-column: 1; grid-row: auto; }
    .contact-map  { grid-column: 1; grid-row: auto; }
    .contact-form-wrap { grid-column: 1; grid-row: auto; align-self: start; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    section { padding: 45px 5%; }

    /* ── Navigation ── */
    nav { height: 60px; padding: 0 5%; }
    nav.scrolled { height: 52px; }
    .logo-text { display: none; }
    .lang-toggle { padding: 4px 5px; }
    .lang-btn { padding: 4px 7px; gap: 6px; }
    .lang-btn .lcode { font-size: 10px; }    /* keep visible, just slightly smaller */
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: fixed; inset: 0;
        background: rgba(18, 28, 42, 0.97);
        justify-content: center; align-items: center;
        gap: 20px; z-index: 999;
        backdrop-filter: blur(12px);
    }
    .nav-links.open a { font-size: 12px; letter-spacing: 3px; color: rgba(255,255,255,0.85); padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
    .nav-links.open a:hover { color: var(--warm); }
    .nav-links.open .nav-cta {
        border: 1px solid var(--warm) !important;
        color: var(--warm) !important;
        padding: 10px 32px; margin-top: 4px;
    }
    .hamburger { display: flex; }

    /* ── Hero ── */
    .hero { min-height: 100svh; gap: 20px; padding: 84px 5% 0; }
    .hero-photo-col { transform: translateY(0); }
    .hero-photo { width: min(208px, 52%); }
    .hero-eyebrow { display: none; }        /* hide subtitle label on mobile */
    .hero-name .line1 { font-size: clamp(13px, 3.8vw, 20px); letter-spacing: 3px; }
    .hero-name .line2 { font-size: clamp(30px, 9vw, 52px); letter-spacing: -1px; }
    .hero-name .line3 { font-size: clamp(12px, 3.2vw, 18px); letter-spacing: 3px; margin-top: 10px; text-align: center; }
    .hero-crane-mobile { display: block; padding: 4px 0 0; }
    .hero-bottom { padding: 6px 0 28px; gap: 20px; }
    .hero-bottom-contact { display: none; }
    .hbc-item { padding-right: 0; border-right: none; margin-right: 0; justify-content: flex-start; }
    .hbc-address { display: flex; }
    .hbc-val { font-size: 13px; }
    .btn-hero-cta { padding: 13px 32px; font-size: 10px; width: 100%; text-align: center; max-width: 260px; }

    /* ── Marquee ── */
    .marquee-item { padding: 12px 28px; font-size: 9px; gap: 14px; }

    /* ── Section headings — all 25% smaller on mobile ── */
    .section-heading { font-size: clamp(33px, 4.1vw, 60px); }

    /* ── About ── */
    .about-content .section-heading { text-align: center; }
    .about-content .about-lead      { text-align: justify; }
    .about-lead { font-size: 14.5px; }
    .feature-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .feature-row-header { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: center; }
    .feature-row i      { display: inline-block; color: var(--warm); font-size: 18px; width: auto; margin-bottom: 0; flex-shrink: 0; }
    .feature-row strong { width: auto; min-width: unset; font-size: 13px; text-align: center; background: none; color: var(--warm); padding: 0; border-radius: 0; }
    .feature-row span   { font-size: 13px; text-align: left; width: 100%; padding-left: 2px; }
    .feature-row::before { content: none; }
    .caliper-wrap { margin: 20px 0 0; width: 100%; }
    .caliper-mobile { display: flex; margin: 20px 0 0; width: 100%; }
    .caliper-svg--horizontal { width: 100%; color: var(--gold); overflow: visible; }
    .about-caliper-col { display: none; }
    .about-grid--desktop-two { grid-template-columns: 1fr; max-width: 100%; padding-right: 4%; }
    .dim-row { display: flex; margin: 24px 0 8px; }
    .about-features { margin-bottom: 0; }

    /* ── Services ── */
    .services-header { margin-bottom: 48px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card:nth-child(even) { border-left: none; padding-left: 0; }
    .service-num { display: none; }    /* hide "01" counter on small screens */
    .service-card {
        grid-template-columns: 2rem 1fr;
        gap: 0 1rem;
        padding: 22px 0;
        transition: background 0.3s;
    }
    .service-card h3 { font-size: 20px; }
    /* Shorter text on mobile: clamp to 3 lines */
    .service-card p {
        font-size: 13.5px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .service-card:hover { background: rgba(29,58,92,0.055); box-shadow: inset 3px 0 0 var(--warm); }
    .sec-meas { margin: 0 0 36px; }
    .sec-meas-label { font-size: 11px; letter-spacing: 2px; padding: 0 12px; }

    /* ── Trust ── */
    .trust-section { padding: 31px 5%; }
    .trust-header { margin-bottom: 32px; }
    .trust-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }
    .trust-stat {
        padding: 16px 8px;
        border-right: 1px solid rgba(255,255,255,0.12);
        border-bottom: none;
    }
    .trust-stat:last-child { border-right: none; }
    .trust-stat-num { font-size: clamp(26px, 8vw, 40px); letter-spacing: -1px; }
    .trust-stat-label { font-size: 8px; letter-spacing: 1.5px; }
    .trust-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .trust-pillar { gap: 10px; }
    .trust-pillar-icon { width: 36px; height: 36px; }
    .trust-pillar-icon i { font-size: 14px; }
    .trust-pillar h3 { font-size: 13px; }

    /* ── Articles ── */
    .articles-band { border-top: none; border-bottom: none; }
    .articles-band::before, .articles-band::after { display: none; }
    .article-card { width: 338px; padding: 32px 28px; gap: 8px; }
    .article-card h4 { font-size: 17px; }
    .article-card p  { font-size: 12px; }

    /* ── Contact ── */
    .contact-section { padding: 45px 5%; }
    .contact-detail { padding: 14px 0; gap: 16px; min-height: 44px; }
    .cd-icon { width: 44px; height: 44px; }
    .cd-icon i, .cd-icon .fa-brands { font-size: 16px; }
    .cd-value { font-size: 13.5px; }
    .contact-map iframe { height: 220px; }
    /* Person card: scale down 15% to prevent overflow */
    .person-card { transform: scale(0.85); transform-origin: left center; margin-left: 0; margin-bottom: 10px; }
    .contact-form-wrap { padding: 32px 22px; width: 93%; margin-right: 3px; box-sizing: border-box; grid-column: 1; justify-self: stretch; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form-wrap h3 { font-size: 20px; margin-bottom: 28px; text-align: center; }
    .form-fields input, .form-fields select, .form-fields textarea { font-size: 16px; } /* prevent iOS auto-zoom */
    .btn-submit { width: 100%; padding: 16px; }

    /* ── Footer ── */
    .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
    .footer-links { flex-wrap: nowrap; gap: 20px; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
    .footer-socials { justify-content: center; width: 100%; }
    .footer-social-link { width: 44px; height: 44px; }
    .footer-brand { min-width: 0; }
    .footer-brand-text { min-width: 0; flex: 1; overflow: hidden; }
    .footer-brand-text .fname { white-space: nowrap; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
    footer .expertease-credit { padding-top: 32px; }

    /* ── Decorative (hide on mobile) ── */
    .scroll-elev { display: none; }
    .scroll-ruler { display: none; }


    /* ── Warm gold: hero CTA full-width on mobile ── */
    .btn-hero-cta { color: var(--warm); border-color: var(--warm); }
    .btn-hero-cta:hover { background: var(--warm); color: var(--gold); }

    /* ── About: drop-cap disabled on centered mobile layout ── */
    .about-lead::first-letter {
        float: none;
        font-size: inherit;
        font-family: inherit;
        font-weight: 300;
        color: inherit;
        line-height: inherit;
        margin: 0;
    }

    /* ── Trust: stat label warm gold on mobile ── */
    .trust-stat-label { color: rgba(201,168,108,0.7); }

    /* ── Trust: pillar icon warm gold border on mobile ── */
    .trust-pillar-icon { border-color: rgba(201,168,108,0.35); }
    .trust-pillar-icon i { color: var(--warm); }

    /* ── Ghost section numbers: smaller on mobile ── */
    .about-section::before,
    .services-section::before,
    .trust-section::before,
    .contact-section::before { font-size: clamp(100px, 28vw, 160px); }

    /* ── Service card: warm gold icon visible on mobile ── */
    .service-icon { color: var(--warm); }

    /* ── Articles: warm gold category tags readable on mobile ── */
    .article-cat { color: var(--warm); }

    /* ── Contact: cd-icon warm gold on mobile ── */
    .cd-icon i, .cd-icon .fa-brands { color: var(--warm); }

    /* ── Section heading em — warm gold on mobile ── */
    .section-heading em { color: var(--warm); }
}

/* ── Small phones (≤420px) ── */
@media (max-width: 420px) {
    section { padding: 36px 4%; }

    .hero { padding: 76px 4% 0; gap: 16px; }
    .hero-photo { width: min(182px, 50%); }
    .hero-name .line1 { font-size: 12px; letter-spacing: 2.5px; }
    .hero-name .line2 { font-size: clamp(26px, 8.5vw, 42px); }
    .hero-name .line3 { font-size: 12px; letter-spacing: 2.5px; text-align: center; }

    .trust-section { padding: 36px 4%; }
    .contact-section { padding: 36px 4%; }
    .contact-form-wrap { padding: 28px 18px; justify-self: stretch; }
    .service-icon { font-size: 20px; }
    .article-card { width: 310px; padding: 28px 22px; }
}

/* ===== WOW — HERO GRAIN & SPOTLIGHT ===== */
.hero-grain {
    position: absolute; inset: 0; z-index: 2;
    pointer-events: none;
    opacity: 0.038;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    animation: grainShift 0.9s steps(1) infinite;
}
@keyframes grainShift {
    0%   { background-position:   0px   0px; }
    11%  { background-position: -52px -28px; }
    22%  { background-position:  28px  54px; }
    33%  { background-position: -14px  20px; }
    44%  { background-position:  60px -42px; }
    55%  { background-position: -38px  72px; }
    66%  { background-position:  18px -60px; }
    77%  { background-position: -70px  10px; }
    88%  { background-position:  44px  36px; }
}

.hero-spotlight {
    position: absolute; inset: 0; z-index: 3;
    pointer-events: none;
    background: radial-gradient(
        circle 420px at var(--cx, -100%) var(--cy, -100%),
        rgba(201,168,108,0.09) 0%,
        rgba(201,168,108,0.03) 35%,
        transparent 65%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}
.hero:hover .hero-spotlight { opacity: 1; }

/* ===== WOW — GHOST SECTION NUMBERS ===== */
.about-section,
.services-section,
.trust-section,
.contact-section {
    position: relative;
    overflow: hidden;
}
.about-section::before    { content: '01'; }
.services-section::before { content: '02'; }
.trust-section::before    { content: '03'; }
.contact-section::before  { content: '04'; }

.about-section::before,
.services-section::before,
.trust-section::before,
.contact-section::before {
    position: absolute;
    top: -0.12em; right: -0.04em;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(160px, 22vw, 300px);
    font-weight: 700;
    line-height: 1;
    color: var(--ink);
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    letter-spacing: -0.05em;
    user-select: none;
}

/* 3D tilt removed */

/* ===== WOW — MAGNETIC CTA GLOW ===== */
.nav-cta, .btn-submit {
    position: relative;
    overflow: hidden;
}
.nav-cta::after, .btn-submit::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle 60px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border-radius: inherit;
}
.nav-cta:hover::after, .btn-submit:hover::after { opacity: 1; }

/* ===== HERO NAME — GREY GRADIENT ===== */
.hero-name .line2 {
    background: linear-gradient(
        170deg,
        #ffffff 0%,
        #c8c8c8 60%,
        #a0a0a0 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroFadeUp 0.7s var(--ease) 0.70s both;
}

/* ===== WOW — SECTION HEADING ACCENT ===== */
.section-heading {
    position: relative;
}

/* ===== ACCESSIBILITY: REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}
