/* ==========================================================================
   aggelakakis.gr — the site layer on top of the 360 design system (a360.css).

   a360.css is a verbatim copy and is never edited here. Everything below either
   gives core blocks the 360 look (buttons, headings, panels, details) or lays
   out the converted Avada sections (.agk-sec, .agk-hero, .agk-panel).
   ========================================================================== */

:root {
  --agk-line: #dce6ee;        /* the one hairline: card edges, dividers */
  --agk-line-strong: #c3d3df; /* hover / focus edge */
}

/* -------------------------------------------------------------- header ---- */

/* A parent item keeps its own link; the caret beside it opens the submenu. */
.nav-links .has-sub { display: flex; align-items: center; }
.nav-links .has-sub > a { padding-right: 6px; }
.nav-links .has-sub > .sub-toggle { min-width: 26px; justify-content: center; padding: 10px 9px 10px 8px; } /* 0.29.0: ≥24px target (WCAG 2.5.8). */
.nav-links .sub-menu { min-width: 260px; }
.nav-links .sub-menu a { white-space: normal; max-width: 22rem; line-height: 1.35; }
.nav-links .current-menu-item > a,
.nav-links .current-menu-ancestor > a { color: var(--navy); }

/* In the drawer the children are a flat, indented group — no second gesture. */
.nav-mobile__panel .sub-toggle { display: none; }
.nav-mobile__panel .sub-menu { list-style: none; margin: 0 0 6px; padding: 0 0 0 14px; border-left: 2px solid var(--tint); }
.nav-mobile__panel .sub-menu a { min-height: 48px; font-size: 15px; color: var(--ink-muted); }

/* ------------------------------------------------------------- canvas ---- */

.entry-content--canvas {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}
.entry-content--canvas > * + * { margin-top: 0; }
.entry-content--canvas > :last-child { margin-bottom: clamp(72px, 8.5vw, 128px); }

/* One converted Avada container. Plain sections share the page's rhythm;
   sections with a surface become rounded 360 panels inside the gutter. */
.agk-sec {
  box-sizing: border-box;
  width: min(100% - 2 * var(--gutter), var(--shell));
  margin: clamp(56px, 7vw, 112px) auto 0;
}
@media (min-width: 1000px) {
  .agk-sec { width: min(100% - 8rem, var(--shell)); }
}
.agk-sec--surface,
.agk-sec--brand,
.agk-sec--card {
  padding: var(--pad-panel);
  border-radius: var(--r-panel);
}
.agk-sec--surface { background: var(--surface); }
.agk-sec--card { background: var(--white); box-shadow: inset 0 0 0 1px var(--agk-line); }
/* Flat: every dark surface is one solid petrol, no gradient. */
.agk-sec--brand,
.agk-panel--brand,
.agk-hero {
  background: var(--brand);
  color: var(--on-dark-muted);
}

/* The hero: the 360 .hero__shell, built from a group. */
.agk-sec.agk-hero {
  width: min(100% - 2 * var(--gutter), var(--shell));
}
.agk-hero {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: clamp(64px, 9vw, 136px) var(--pad-panel) clamp(56px, 7vw, 96px);
  border-radius: var(--r-shell);
  isolation: isolate;
}
.agk-hero h1 {
  color: var(--on-dark);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 22ch;
}
.agk-hero > .wp-block-columns { align-items: flex-end; }
.agk-hero p:not(.agk-kicker) { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 46rem; }
.agk-hero .wp-block-image img { max-height: 120px; width: auto; }

/* Dark surfaces: every heading and link reads light. The canvas prefix
   outranks the canvas heading colour below and a360's `:root h1`. */
.entry-content--canvas :is(.agk-hero, .agk-sec--brand, .agk-panel--brand) :is(h1, h2, h3, h4, h5, h6),
.editor-styles-wrapper :is(.agk-hero, .agk-sec--brand, .agk-panel--brand) :is(h1, h2, h3, h4, h5, h6) { color: var(--on-dark); }
:is(.agk-hero, .agk-sec--brand, .agk-panel--brand) a:not(.wp-block-button__link) { color: var(--on-dark); text-decoration: underline; text-underline-offset: 0.15em; }
:is(.agk-hero, .agk-sec--brand, .agk-panel--brand) .agk-kicker { color: var(--brick-light); }
/* …but a light card inside keeps its own ink. */
.entry-content--canvas :is(.agk-sec--brand, .agk-panel--brand) :is(.agk-panel--card, .agk-panel--surface) :is(h1, h2, h3, h4, h5, h6) { color: var(--navy); }
:is(.agk-sec--brand, .agk-panel--brand) :is(.agk-panel--card, .agk-panel--surface) { color: var(--ink-soft); }

/* A column with a surface. */
.agk-panel {
  padding: var(--pad-card);
  border-radius: var(--r-card);
}
/* Flat: a light panel is white with a hairline, on white and on the grey surface alike. */
.agk-panel--card,
.agk-panel--surface { background: var(--white); box-shadow: inset 0 0 0 1px var(--agk-line); }
.agk-panel--brand { padding: var(--pad-surface); }
.wp-block-column > .agk-panel { height: 100%; }

/* ------------------------------------------------------------ typography -- */

.entry-content--canvas h1 { color: var(--navy); font-size: clamp(38px, 5vw, 56px); font-weight: 500; line-height: 1.14; }
.entry-content--canvas h2 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
.entry-content--canvas h3 { font-size: clamp(22px, 2.1vw, 28px); font-weight: 500; line-height: 1.3; }
.entry-content--canvas h4 { font-size: 20px; font-weight: 500; line-height: 1.35; }
.entry-content--canvas h5 { font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: 0.01em; }
.entry-content--canvas :is(h1, h2, h3, h4, h5, h6) { margin: 0; color: var(--navy); }
.entry-content--canvas :is(h1, h2, h3, h4, h5, h6) + * { margin-top: 0.75em; }
.entry-content--canvas a { text-decoration-thickness: 1px; }

.agk-kicker {
  color: var(--brick-ink);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.agk-lede { color: var(--ink-muted); font-size: clamp(18px, 1.6vw, 20px); line-height: 1.6; }
:is(.agk-hero, .agk-sec--brand, .agk-panel--brand) .agk-lede { color: var(--on-dark-muted); }

/* Flow spacing inside sections and columns (the block-gap does the rest). */
:is(.agk-sec, .agk-panel, .wp-block-column) > * + * { margin-block-start: 1.1em; }
:is(.agk-sec, .agk-panel, .wp-block-column) > :is(h2, h3, h4) + * { margin-block-start: 0.75em; }
:is(.agk-sec, .agk-panel, .wp-block-column) > :is(p, ul, ol, .wp-block-html, .wp-block-image, .agk-faq) + :is(h2, h3, h4) { margin-block-start: 1.8em; }

/* An article built in Avada reads in the 360 reading column, like every other post. */
.single .agk-sec:not(.agk-hero) { width: min(100% - 2 * var(--gutter), 62rem); }
:is(.agk-sec, .agk-panel, .wp-block-column) > .wp-block-columns { margin-block-start: var(--gap-grid); }
:is(.agk-sec, .agk-panel, .wp-block-column) > .wp-block-buttons { margin-block-start: 1.75em; }

/* ------------------------------------------------------------- columns ---- */

.entry-content--canvas .wp-block-columns { gap: var(--gap-grid); margin-bottom: 0; }

/* ------------------------------------------------------------- buttons ---- */

/* Core buttons take the .btn object. Primary: filled petrol. Outline: navy
   line. On a dark surface: brick primary, black secondary — as on /360. */
.wp-block-buttons { gap: 12px 16px; }
.wp-block-button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 29px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  background: var(--brand);
  color: var(--on-dark);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: background 250ms var(--ease), color 250ms var(--ease), border-color 250ms var(--ease);
}
.wp-block-button .wp-block-button__link:hover { background: var(--brand-hover-sky); color: var(--on-dark); }
.wp-block-button .wp-block-button__link:active { transform: scale(0.97); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--navy); color: var(--navy); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wash); color: var(--navy); box-shadow: none; }

/* 0.33.0: a360.css (≤430px) reserves 82px under .page and lifts the cookie banner 72px for the /360 sticky CTA bar,
   which this site never prints. WordPress also puts "page" on <body>, so phones got 164px of empty space under the
   footer. No bar, no reserve. */
@media (max-width: 430px) {
  body:not(:has(.sticky-cta)).page,
  body:not(:has(.sticky-cta)) .page { padding-bottom: 0; }
  body:not(:has(.sticky-cta)) .cookie-banner { bottom: 0; }
}

/* 0.32.0 (owner request): on phones the hero's buttons stack at the same full width. */
@media (max-width: 767px) {
  .agk-hero .wp-block-buttons > .wp-block-button { flex: 1 1 100%; }
  .agk-hero .wp-block-buttons > .wp-block-button > .wp-block-button__link { width: 100%; }
}

:is(.agk-hero, .agk-sec--brand, .agk-panel--brand) .wp-block-button .wp-block-button__link { background: var(--brick); color: var(--on-dark); text-decoration: none; }
:is(.agk-hero, .agk-sec--brand, .agk-panel--brand) .wp-block-button .wp-block-button__link:hover { background: #9e2e20; }
:is(.agk-hero, .agk-sec--brand, .agk-panel--brand) .wp-block-button.is-style-outline .wp-block-button__link { background: var(--btn-secondary-dark); border-color: var(--btn-secondary-dark); color: var(--on-dark); }
:is(.agk-hero, .agk-sec--brand, .agk-panel--brand) .wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--btn-secondary-dark-hover); }

/* ------------------------------------------------------- media & embeds ---- */

.entry-content--canvas .wp-block-image { margin: 0; }
.entry-content--canvas .wp-block-image img { border-radius: var(--r-inner); height: auto; }
.agk-embed iframe { display: block; width: 100%; min-height: 320px; border: 0; border-radius: var(--r-inner); }
.agk-table { overflow-x: auto; }
.agk-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.agk-table :is(th, td) { padding: 12px 16px; border-bottom: 1px solid var(--tint); text-align: left; vertical-align: top; }
.agk-table th { color: var(--navy); font-weight: 500; background: var(--surface); }

/* The client-logo strip that replaced Avada's carousel. */
.agk-logos { gap: 28px 40px; align-items: center; }
.agk-logos .wp-block-image img { max-height: 72px; width: auto; border-radius: 0; }

.agk-social { padding-left: 0; }
/* 0.19.1: the LinkedIn item looks exactly like the footer's (.agk-creds__social): square frame, navy glyph. */
.wp-block-social-links .wp-social-link-linkedin { padding: 0; border-radius: 0; background: none; color: var(--navy); }
.wp-block-social-links .wp-social-link-linkedin a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--agk-line);
  color: var(--navy);
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.wp-block-social-links .wp-social-link-linkedin svg { width: 18px; height: 18px; fill: currentColor; }
@media (hover: hover) {
  .wp-block-social-links .wp-social-link-linkedin a:hover { background: var(--brand); color: var(--on-dark); }
}
.agk-social .wp-social-link:not(.wp-social-link-linkedin) { background: var(--brand); color: var(--on-dark); }

/* ------------------------------------------------------------- FAQ ---- */

.agk-faq { display: grid; gap: 10px; }
.agk-faq > * + * { margin-block-start: 0 !important; }
.wp-block-details {
  border-radius: var(--r-card);
  background: var(--tint);
  box-shadow: var(--sh-1);
  padding: 4px 22px;
}
.wp-block-details > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  cursor: pointer;
  font-weight: 500;
  color: var(--navy);
  list-style: none;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: none;
  border-right: 2px solid var(--brick);
  border-bottom: 2px solid var(--brick);
  transform: rotate(-45deg);
  transition: transform 200ms var(--ease);
}
.wp-block-details[open] > summary::before { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin: 0 0 16px 21px; color: var(--ink-soft); }

/* --------------------------------------------------------- post cards ---- */

.wp-block-latest-posts.agk-post-cards { padding: 0; gap: var(--gap-grid); }
.wp-block-latest-posts.agk-post-cards.is-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wp-block-latest-posts.agk-post-cards.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wp-block-latest-posts.agk-post-cards.is-grid li { width: auto; margin: 0; }
.wp-block-latest-posts.agk-post-cards li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 28px;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: var(--sh-1);
  transition: box-shadow 300ms var(--ease), transform 300ms var(--ease);
}
.wp-block-latest-posts.agk-post-cards li:hover { box-shadow: var(--sh-hover); transform: translateY(-2px); }
.wp-block-latest-posts.agk-post-cards .wp-block-latest-posts__featured-image { margin: 0 0 8px; aspect-ratio: 16 / 9; overflow: hidden; }
.wp-block-latest-posts.agk-post-cards .wp-block-latest-posts__featured-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.wp-block-latest-posts.agk-post-cards :is(.wp-block-latest-posts__post-title, time, .wp-block-latest-posts__post-excerpt) { padding: 0 28px; }
.wp-block-latest-posts.agk-post-cards .wp-block-latest-posts__post-title { order: 2; color: var(--navy); font-size: 20px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.wp-block-latest-posts.agk-post-cards .wp-block-latest-posts__post-title:hover { color: var(--brick-ink); }
.wp-block-latest-posts.agk-post-cards time { order: 1; color: var(--ink-faint); font-size: 14px; }
.wp-block-latest-posts.agk-post-cards .wp-block-latest-posts__featured-image { order: 0; }
.wp-block-latest-posts.agk-post-cards .wp-block-latest-posts__post-excerpt { order: 3; margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 1.6; }
@media (max-width: 1000px) {
  .wp-block-latest-posts.agk-post-cards.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wp-block-latest-posts.agk-post-cards.is-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- form ---- */

.agk-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin: 0; }
.agk-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.agk-field--wide { grid-column: 1 / -1; }
.agk-field label { color: var(--navy); font-size: 14px; font-weight: 500; }
.agk-field :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-inner);
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 16px;
}
.agk-field :is(input, textarea):focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: transparent; }
.agk-field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-soft); }
.agk-field--check input { margin-top: 2px; width: 20px; height: 20px; flex: none; }
.agk-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agk-form__notice { padding: 14px 18px; border-radius: var(--r-inner); margin: 0 0 20px; font-weight: 500; }
.agk-form__notice--ok { background: var(--tint); color: var(--navy); }
.agk-form__notice--error { background: #fbe9e6; color: var(--brick-ink); }
:is(.agk-sec--brand, .agk-panel--brand) .agk-field label,
:is(.agk-sec--brand, .agk-panel--brand) .agk-field--check label { color: var(--on-dark); }
@media (max-width: 640px) { .agk-form__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- footer ---- */

.site-footer__sitemap .nav-links__list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__sitemap .sub-menu { display: none; }
.site-footer__sitemap a { color: var(--ink-muted); font-size: 13px; font-weight: 500; }
.site-footer__sitemap a:hover { color: var(--navy); }
.site-footer__legal .legal-links .nav-links__list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__legal .legal-links a { color: var(--ink-faint); font-size: 13px; font-weight: 500; }
.site-footer__legal .legal-links a:hover { color: var(--navy); }

/* ------------------------------------------------------------ narrow ---- */

@media (max-width: 781px) {
  .agk-hero h1 { max-width: none; }
  .entry-content--canvas .wp-block-columns { gap: 20px; }
}

/* A panel that only frames a photo: the photo fills it edge to edge. */
.agk-panel:has(> .wp-block-image:only-child) { padding: 0; overflow: hidden; }
.agk-panel:has(> .wp-block-image:only-child) > .wp-block-image,
.agk-panel:has(> .wp-block-image:only-child) > .wp-block-image :is(a, img) { display: block; width: 100%; height: 100%; }
.agk-panel:has(> .wp-block-image:only-child) > .wp-block-image img { object-fit: cover; border-radius: 0; }

/* The brick accent panel (Avada palette slot 4). 0.15.0, owner-approved 2026-11-18: brick is for actions only
   (buttons, the check), so a brick-filled panel or band renders petrol, and its primary button turns brick. */
.agk-sec--brick,
.agk-panel--brick { background: var(--brand); }
.entry-content--canvas :is(.agk-sec--brick, .agk-panel--brick) .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--brick); color: var(--on-dark); }
.entry-content--canvas :is(.agk-sec--brick, .agk-panel--brick) .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background: #9e2e20; color: var(--on-dark); }

/* ------------------------------------------------------------ consent ---- */

.agk-consent { position: relative; display: block; }
.agk-consent.is-loaded .agk-consent__box { display: none; }
.agk-consent__box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: var(--pad-tight);
  border-radius: var(--r-inner);
  background: var(--tint);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
}
.agk-embed .agk-consent__box { min-height: 320px; }
:is(.agk-sec--brand, .agk-panel--brand) .agk-consent__box { background: rgba(255, 255, 255, 0.1); color: var(--on-dark-muted); }

.site-footer__legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.site-footer__cookies {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: var(--ink-faint);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.site-footer__cookies:hover { color: var(--navy); }
.cookie-banner .link-inline { color: var(--on-dark); text-decoration: underline; }
.agk-consent iframe[hidden] { display: none !important; }

/* Avada's global palette, still referenced by inline styles in converted content (table headers on the
   360 page, one news post). Without Avada the variables were undefined: white text on white. Values are
   the live palette read on v2 (2026-11-17); slots 4 and 5 follow the theme's brick and petrol. */
:root {
  --awb-color1: #ffffff;
  --awb-color2: #f8f9fa;
  --awb-color3: #d0cfcd;
  --awb-color4: var(--brick);
  --awb-color5: var(--brand);
  --awb-color6: #0067c8;
  --awb-color7: #00617f;
  --awb-color8: #000000;
}
