/* ==========================================================================
   PETROTEXNIKI ARTAS — MODERN ARCHITECTURAL DESIGN SYSTEM
   Zero-bloat, Hardware-Accelerated, Accessible & Mobile-First CSS
   ========================================================================== */

:root {
  /* --- Palette: Authentic Stone & Slate --- */
  --bg-base: #F8F6F1;
  --bg-surface: #FFFFFF;
  --bg-subtle: #EFEBE4;
  --bg-dark: #15181D;
  --bg-dark-surface: #1E232B;
  --bg-dark-card: #282E38;

  --text-main: #181C22;
  --text-muted: #57606F;
  --text-light: #F8F6F1;
  --text-light-muted: #A4B0BE;

  --border-light: #E3DDD4;
  --border-dark: #2F3642;

  --accent-primary: #B86B35;
  --accent-hover: #9E5928;
  --accent-subtle: #F6ECE2;
  --accent-dark: #D48B55;

  --success-color: #2E7D32;

  /* --- Typography (Fluid Clamp Scale) --- */
  --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.85rem, 0.82rem + 0.20vw, 0.9375rem);
  --text-base: clamp(1.00rem, 0.96rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.15rem, 1.08rem + 0.45vw, 1.25rem);
  --text-xl: clamp(1.35rem, 1.22rem + 0.70vw, 1.625rem);
  --text-2xl: clamp(1.75rem, 1.48rem + 1.20vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.85rem + 1.80vw, 3.125rem);
  --text-4xl: clamp(2.75rem, 2.15rem + 2.80vw, 3.875rem);

  /* --- Spacing Scale --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1.0rem;
  --space-6: 1.5rem;
  --space-8: 2.0rem;
  --space-12: 3.0rem;
  --space-16: 4.0rem;
  --space-24: 6.0rem;

  /* --- Radius & Shadows --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px rgba(21, 24, 29, 0.06);
  --shadow-card: 0 4px 16px rgba(21, 24, 29, 0.07);
  --shadow-hover: 0 12px 32px rgba(21, 24, 29, 0.12);

  /* --- Motion (emil-design-eng) --- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --duration-fast: 160ms;
  --duration-normal: 240ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

button, input, select, textarea {
  font: inherit;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
p { max-width: 68ch; margin-bottom: var(--space-4); }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-accent { color: var(--accent-primary); }
.font-mono { font-family: var(--font-mono); }

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

.section-padding {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (max-width: 767px) {
  .section-padding {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
}

/* ==========================================================================
   ICON SYSTEM (inline SVG, currentColor — see includes/icons.php)
   ========================================================================== */
.icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  vertical-align: -0.15em;
}

.icon-xs { width: 0.85em; height: 0.85em; }
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-accent { color: var(--accent-primary); }

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.top-bar {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  font-size: var(--text-xs);
  padding: var(--space-2) 0;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.top-bar-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.top-bar-group span {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.top-bar-group .icon { color: var(--accent-dark); }

.top-bar a:hover {
  color: var(--text-light);
}

@media (max-width: 640px) {
  .top-bar-inner {
    justify-content: center;
  }

  /* Address & founding-year are already on the Επικοινωνία/Εταιρεία pages and
     in the footer — drop them from the cramped mobile strip so the two
     tap-to-call/email actions get the space instead of wrapping mid-word. */
  .top-bar-group:first-child {
    display: none;
  }

  .top-bar-group:last-child {
    gap: var(--space-4);
  }

  .top-bar-group a {
    font-weight: 700;
    color: var(--text-light);
  }
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: none;
  transition: box-shadow var(--duration-normal) var(--ease-out),
              padding var(--duration-normal) var(--ease-out);
}

.main-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(10, 12, 15, 0.28);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
  transition: height var(--duration-normal) var(--ease-out);
}

.main-header.is-scrolled .header-inner {
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  transition: height var(--duration-normal) var(--ease-out);
}

.main-header.is-scrolled .brand-logo-img {
  height: 40px;
}

.main-nav {
  display: none;
}

@media (min-width: 1180px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 1vw + 1rem, var(--space-8));
    height: 100%;
  }

  .nav-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-light-muted);
    padding: var(--space-2) 0;
    position: relative;
    white-space: nowrap;
  }

  .nav-link:hover, .nav-link.active {
    color: #FFFFFF;
  }

  .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-dark);
  }

  .nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .nav-caret {
    transition: transform var(--duration-fast) var(--ease-out);
  }

  .nav-item-dropdown:hover .nav-caret,
  .nav-item-dropdown:focus-within .nav-caret {
    transform: rotate(180deg);
  }

  /* The dropdown's hit-box sits flush against the trigger (top: 100%, no
     vertical offset) with an invisible padding-top "bridge" instead of a
     margin/transform gap — a real gap here breaks hover the instant the
     mouse crosses it diagonally on the way down. The visible panel (with
     its own slide-in transform) lives inside, offset by that padding. */
  .nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 10px;
    min-width: 280px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-fast) var(--ease-out);
  }

  .nav-item-dropdown:hover .nav-dropdown,
  .nav-item-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-hover);
    padding: var(--space-2);
    display: flex;
    flex-direction: column;
    transform: translateY(-6px);
    transition: transform var(--duration-fast) var(--ease-out);
  }

  .nav-item-dropdown:hover .nav-dropdown-panel,
  .nav-item-dropdown:focus-within .nav-dropdown-panel {
    transform: translateY(0);
  }

  .nav-dropdown a {
    color: var(--text-main);
    font-size: var(--text-sm);
    font-weight: 500;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
  }

  .nav-dropdown a:hover {
    background-color: var(--accent-subtle);
    color: var(--accent-hover);
  }

  .nav-dropdown-all {
    margin-top: var(--space-1);
    padding-top: var(--space-3) !important;
    border-top: 1px solid var(--border-light);
    color: var(--accent-primary) !important;
    font-weight: 700 !important;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-phone {
  display: none;
}

@media (min-width: 1200px) {
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-light);
    font-size: var(--text-sm);
    font-weight: 700;
  }

  .header-phone .icon { color: var(--accent-dark); }
  .header-phone:hover { color: #FFFFFF; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
}

@media (min-width: 1180px) {
  .mobile-menu-btn { display: none; }
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-light);
  transition: transform var(--duration-fast) var(--ease-out);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(21, 24, 29, 0.6);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 380px;
  height: 100%;
  background-color: var(--bg-surface);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

/* logo.png is a light/white mark meant for dark surfaces; the drawer panel
   is a light surface, so render it as a dark silhouette here instead. */
.drawer-header .brand-logo-img {
  filter: brightness(0);
  opacity: 0.88;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-2);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.drawer-nav a {
  font-size: var(--text-lg);
  font-weight: 600;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   BUTTONS & TACTILE CONTROLS (emil-design-eng)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.375rem;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #FFFFFF;
  border-color: var(--accent-primary);
  box-shadow: 0 2px 8px rgba(184, 107, 53, 0.25);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(184, 107, 53, 0.35);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--text-main);
  border-color: var(--border-light);
  box-shadow: var(--shadow-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--border-dark);
}

.btn-dark:hover {
  background-color: var(--bg-dark-card);
  color: #FFFFFF;
}

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: #FFFFFF;
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: var(--text-xs);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: var(--text-base);
}

/* ==========================================================================
   HERO SECTION (Architectural Material Focus)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.62) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(21, 24, 29, 0.82) 0%,
    rgba(21, 24, 29, 0.45) 50%,
    rgba(21, 24, 29, 0.90) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  max-width: 860px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: rgba(184, 107, 53, 0.20);
  border: 1px solid var(--accent-primary);
  color: #F8D9C0;
  padding: 0.35rem 0.85rem;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

/* On white/cream sections (e.g. product pages) the pale hero text is
   unreadable — use the accent color itself as the text instead. */
.badge-tag--light {
  background-color: rgba(184, 107, 53, 0.10);
  color: #7A431F;
}

.hero-title {
  color: #FFFFFF;
  font-size: var(--text-4xl);
  line-height: 1.12;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-subtitle {
  color: #E2DDD5;
  font-size: var(--text-lg);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ==========================================================================
   5-PILLAR PROOF STRIP
   ========================================================================== */
.proof-strip {
  background-color: var(--bg-dark-surface);
  color: var(--text-light);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: var(--space-6) 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-4);
}

.proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
}

.proof-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: rgba(184, 107, 53, 0.15);
  border: 1px solid rgba(184, 107, 53, 0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.6rem;
}

.proof-label {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
}

.proof-sub {
  font-size: var(--text-xs);
  color: var(--text-light-muted);
}

/* ==========================================================================
   SECTION HEADINGS & GRIDS
   ========================================================================== */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center p {
  margin-left: auto;
  margin-right: auto;
}

.section-pretitle {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--accent-primary);
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 65ch;
}

/* Stone Products Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.stone-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
}

.stone-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-primary);
}

.stone-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--bg-subtle);
}

.stone-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) var(--ease-out);
}

.stone-card:hover .stone-card-image img {
  transform: scale(1.04);
}

.stone-card-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background-color: rgba(21, 24, 29, 0.85);
  color: #FFFFFF;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.60rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}

.stone-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.stone-card-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.stone-card-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.stone-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
}

.spec-chip {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--bg-subtle);
  color: var(--text-main);
  padding: 0.25rem 0.50rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   PROCESS SECTION: QUARRY -> FACTORY -> SITE
   ========================================================================== */
.process-section {
  background-color: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.process-card {
  background-color: var(--bg-surface);
  padding: var(--space-8);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  position: relative;
}

.process-number {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  margin-bottom: var(--space-3);
  opacity: 0.85;
}

.process-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background-color: var(--accent-subtle);
  color: var(--accent-primary);
  margin-bottom: var(--space-4);
}

.process-icon .icon {
  width: 1.4em;
  height: 1.4em;
}

.process-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

/* ==========================================================================
   APPLICATIONS & GALLERY GRID
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-dark);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) var(--ease-out),
              filter var(--duration-normal) var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.75);
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--space-4);
  background: linear-gradient(0deg, rgba(21, 24, 29, 0.90) 0%, transparent 100%);
  color: #FFFFFF;
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ==========================================================================
   TECHNICAL CERTIFICATIONS (EN Standards)
   ========================================================================== */
.cert-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cert-table th, .cert-table td {
  padding: var(--space-4) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.cert-table th {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cert-table tr:last-child td {
  border-bottom: none;
}

.cert-table tr:hover td {
  background-color: var(--bg-subtle);
}

/* ==========================================================================
   B2B & CTA LEAD BLOCK
   ========================================================================== */
.cta-banner {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-dark);
}

.cta-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.cta-banner-inner > div:first-child {
  max-width: 640px;
}

@media (min-width: 768px) {
  .cta-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   CONTACT FORM & SPECIFIC INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(184, 107, 53, 0.15);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  padding-top: var(--space-16);
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer-logo-img {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-nap {
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-nap > div {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.footer-nap .icon {
  color: var(--accent-dark);
  margin-top: 0.2em;
}

.footer-notice-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: rgba(184, 107, 53, 0.15);
  border: 1px solid rgba(184, 107, 53, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 1.1rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: var(--text-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-2);
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--accent-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--text-light-muted);
}

.footer-links a:hover {
  color: #FFFFFF;
  padding-left: 4px;
}

.footer-bottom {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-dark);
  font-size: var(--text-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Developer/SEO credit pill — sits centered below the footer bottom bar */
.seo-credit-wrap {
  margin-top: 0;
  padding-bottom: var(--space-6);
  max-width: none;
  display: flex;
  justify-content: center;
}

.seo-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid rgba(248,246,241,0.08);
  border-radius: 999px;
  color: rgba(248,246,241,0.46);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow: hidden;
  isolation: isolate;
}

.seo-credit::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 50%, rgba(184,107,53,0.28), transparent 42%),
    linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transform: translateX(26%);
}

.seo-credit-label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.seo-credit-name {
  position: relative;
  z-index: 1;
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  opacity: 0;
  color: rgba(248,246,241,0.92);
  white-space: nowrap;
  transform: translateX(12px);
  text-shadow: 0 0 14px rgba(184,107,53,0.45);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .seo-credit,
  .seo-credit::before,
  .seo-credit-name {
    transition:
      color 180ms var(--ease-out),
      border-color 180ms var(--ease-out),
      opacity 220ms var(--ease-out),
      transform 220ms var(--ease-out),
      max-width 260ms var(--ease-out),
      margin-left 220ms var(--ease-out);
  }
}

@media (hover: hover) and (pointer: fine) {
  .seo-credit:hover,
  .seo-credit:focus-visible {
    color: rgba(248,246,241,0.88);
    border-color: rgba(184,107,53,0.38);
  }
  .seo-credit:hover::before,
  .seo-credit:focus-visible::before {
    opacity: 1;
    transform: translateX(0);
  }
  .seo-credit:hover .seo-credit-name,
  .seo-credit:focus-visible .seo-credit-name {
    max-width: 110px;
    margin-left: 8px;
    opacity: 1;
    transform: translateX(0);
  }
}

/* Sticky Mobile Quick Action Bar */
.mobile-action-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    z-index: 90;
    padding: var(--space-2) var(--space-4);
    gap: var(--space-2);
  }
}

/* ==========================================================================
   SCROLL-REVEAL MOTION (see assets/js/main.js — IntersectionObserver)
   ========================================================================== */
/* Only hide .reveal content once JS has confirmed it can run (html.js,
   set synchronously in <head>) and will actually reveal it again — this
   guarantees content is never stuck invisible if JS fails to load or run. */
html.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero entrance (page-load, not scroll-triggered) */
.hero-content > * {
  animation: heroRise 800ms var(--ease-out) both;
}

.hero-content .badge-tag { animation-delay: 0ms; }
.hero-content .hero-title { animation-delay: 80ms; }
.hero-content .hero-subtitle { animation-delay: 160ms; }
.hero-content .hero-actions { animation-delay: 240ms; }

@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > * {
    animation: none;
  }
}

/* ==========================================================================
   IMAGE MOTION — hero drift, scroll reveal-with-scale, scroll parallax
   Deliberately slow and small (2-8% of the composition): these are real
   photographs of machinery/buildings, and heavy motion reads as fake.
   ========================================================================== */

/* 1. Hero "drone drift" — a slow, one-shot ease-out zoom/pan so a static
   aerial photo reads as a held drone shot rather than a still image. */
.hero-background-drone img {
  transform: scale(1.08) translateX(-1.5%);
  animation: droneDrift 14s var(--ease-out) forwards;
}

@keyframes droneDrift {
  to { transform: scale(1.02) translateX(1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background-drone img {
    animation: none;
    transform: scale(1.02);
  }
}

/* 2. Architectural reveal — scale + fade in once, on scroll into view.
   Same trigger mechanism as .reveal (main.js observes both), different
   motion: a slow settle-into-frame rather than a slide. */
html.js .reveal-scale {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1000ms var(--ease-out), transform 1400ms var(--ease-out);
}

html.js .reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* 3. Scroll parallax frame — the image moves a little slower than the
   page, giving the mountain backdrop a sense of depth. JS (main.js) sets
   the transform on scroll via a `data-parallax` hook; CSS just reserves
   the extra height the movement needs. */
.parallax-frame {
  position: relative;
  height: clamp(360px, 52vw, 640px);
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.parallax-frame img {
  position: absolute;
  top: -8%;
  left: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}

.parallax-frame-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(0deg, rgba(21, 24, 29, 0.85) 0%, rgba(21, 24, 29, 0.05) 50%, transparent 100%);
  padding: var(--space-8);
}

.parallax-frame-caption span {
  color: #FFFFFF;
  font-size: var(--text-lg);
  font-weight: 600;
  max-width: 42ch;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-frame img {
    transform: none !important;
  }
}

/* ==========================================================================
   QUARRY DOCUMENTATION PAIR (real photography, latomeio-ergostasio.php)
   ========================================================================== */
.photo-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.photo-pair figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 3;
}

.photo-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-normal) var(--ease-out);
}

.photo-pair figure:hover img {
  transform: scale(1.04);
}
