/* NIKOLTSIOS LAW — λιτό ασπρόμαυρο στυλ.
   Για να αλλάξετε γραμματοσειρά σε όλο το site, αλλάξτε μόνο το --font. */
:root {
  --font: "Ubuntu", "Helvetica Neue", Arial, sans-serif;
  --ink: #111;
  --muted: #6b6b6b;
  --line: #d9d9d9;
  --paper: #fff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Header */
.top {
  display: flex;
  align-items: flex-end; /* menu + EL/EN sit on the tagline baseline */
  gap: 40px;
  padding: 48px 48px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  transition: box-shadow .2s;
}
.top.scrolled { box-shadow: 0 1px 0 var(--line); }

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: .65em;
  font-weight: 400;
  font-size: 27px;
  letter-spacing: .22em;
  white-space: nowrap;
}
.logo-mark { display: flex; align-items: center; gap: .45em; } /* visible gap incl. trailing letter-spacing: 1.12em -> .67em */
.logo-tag {
  font-size: .32em;
  font-weight: 400;
  letter-spacing: .3em;
  color: var(--muted);
  text-align: center;
  padding-left: .3em; /* balance trailing letter-spacing so it centres */
  line-height: 1;
}
.logo-box {
  border: 1px solid var(--ink);
  padding: .15em .25em .15em .5em; /* compensate trailing letter-spacing */
  line-height: 1.3;
}
.menu {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.menu a, .lang button {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.menu a:hover, .menu a.active, .lang button:hover, .lang button.active { color: var(--ink); }
.menu a.active { font-weight: inherit; } /* active = black, others faded, like EL / EN (no bold) */
/* Reserve the bold width so neighbouring items don't shift */
.menu a { display: inline-flex; flex-direction: column; align-items: center; }
.menu a::after {
  content: attr(data-text);
  font-weight: 500;
  height: 0;
  visibility: hidden;
  overflow: hidden;
  user-select: none;
  pointer-events: none;
}
.lang { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--line); line-height: 1; }
.menu, .menu a, .lang button { line-height: 1; }

/* Panels */
main { flex: 1; padding: 64px 48px 96px; }
.panel { max-width: 1080px; margin: 0 auto; scroll-margin-top: var(--head, 120px); }
.panel + .panel { margin-top: 96px; padding-top: 96px; border-top: 1px solid var(--line); }

h1 {
  font-weight: 400;
  font-size: 26px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
h2 {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 48px 0 16px;
}
p { font-size: 16px; margin-bottom: 18px; }
.sub {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.photo {
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; filter: grayscale(100%); }
.photo.empty::after {
  content: "PHOTO";
  display: flex; align-items: center; justify-content: center;
  height: 100%; font-size: 11px; letter-spacing: .3em; color: #aaa;
}

.narrow { max-width: 680px; }
.narrow h1 { margin-bottom: 36px; }

.areas { list-style: none; }
.areas li { padding: 6px 0; font-size: 15px; }

.contact-wrap { max-width: none; }
/* Address (left edge) and phone/email/web (right edge), rows on the same lines */
.contact-grid {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 48px;
  align-items: start;
}
address { font-style: normal; }
address p { margin-bottom: 4px; line-height: 28px; }
.strong { font-weight: 400; }
.contact-list {
  display: grid;
  grid-template-columns: 90px 1fr;
}
.contact-list dt, .contact-list dd {
  padding: 0;
  margin-bottom: 4px;
  line-height: 28px;
}
.contact-list dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-list dd a, .map-link { transition: color .2s; }
.contact-list dd a:hover, .map-link:hover { color: var(--muted); }

/* Athens Bar Association + LinkedIn */
.affil { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px; margin-top: 88px; }
.bar-logo { display: inline-block; }
.li-logo { display: block; color: #7a7a7a; opacity: .75; transition: opacity .2s; line-height: 0; }
.li-logo:hover { opacity: 1; }
.bar-logo img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  filter: grayscale(100%) contrast(1.05);
  opacity: .75;
  transition: opacity .2s;
}
.bar-logo:hover img { opacity: 1; }

/* Back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s, background .2s, color .2s;
}
.to-top.show { opacity: .85; visibility: visible; transform: none; }
.to-top:hover { opacity: 1; background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; } }

/* Footer */
.foot {
  padding: 32px 96px; /* clear the fixed accessibility and back-to-top buttons */
  background: #3a3a3a; /* dark grey, from the photo's tones */
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: .06em;
  color: #c4c4c4;
}
.foot p { font-size: 11px; margin: 0; }
.legal a { transition: color .2s; }
.legal a:hover { color: #fff; }
.legal span { margin: 0 8px; }

/* Medium screens: menu stays top right, stacked, before EL/EN */
@media (min-width: 641px) and (max-width: 1000px) {
  .top { gap: 28px; padding: 40px 32px; align-items: flex-end; }
  .logo { font-size: 22px; }
  .menu { flex-direction: column; align-items: flex-end; gap: 10px; }
}

/* Phone: menu moves under the logo */
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 18px 24px; padding: 32px 16px 24px; }
  .logo { font-size: 21px; }
  .lang { margin-left: auto; }
  .menu { order: 3; width: 100%; margin-left: 0; gap: 20px; flex-wrap: wrap; }
}

/* Mobile content */
@media (max-width: 820px) {
  main { padding: 32px 16px 64px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .photo { max-width: 360px; }
  h1 { font-size: 21px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .contact-list { grid-template-columns: 1fr; }
  .contact-list dt { margin-bottom: 0; line-height: 2; }
  .contact-list dd { margin-bottom: 10px; overflow-wrap: anywhere; }
  .foot { padding: 24px 16px 80px; flex-direction: column; } /* buttons sit below the text */
}

/* Accessibility button (bottom left) and panel */
.a11y-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 20;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  opacity: .85;
  transition: opacity .2s, background .2s, color .2s;
}
.a11y-btn:hover, .a11y-btn[aria-expanded="true"] { opacity: 1; background: var(--ink); color: var(--paper); }
.a11y-panel {
  position: fixed;
  left: 24px;
  bottom: 72px;
  z-index: 21;
  width: 240px;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.a11y-panel[hidden] { display: none; }
.a11y-title { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 6px; }
.a11y-label { font-size: 12px; color: var(--muted); margin: 0; }
.a11y-sizes { display: flex; gap: 6px; margin-bottom: 6px; }
.a11y-size { flex: 1; border: 1px solid var(--line); padding: 6px 0; font-size: 13px; }
.a11y-size[data-size="1"] { font-size: 15px; }
.a11y-size[data-size="2"] { font-size: 17px; }
.a11y-toggle, .a11y-reset { text-align: left; border: 1px solid var(--line); padding: 9px 12px; font-size: 13px; }
.a11y-size[aria-pressed="true"], .a11y-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.a11y-reset { border-style: dashed; color: var(--muted); }
.a11y-panel button:focus-visible, .a11y-btn:focus-visible, .to-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 640px) {
  .a11y-btn { left: 16px; bottom: 16px; }
  .a11y-panel { left: 16px; bottom: 64px; }
}

/* Keyboard focus visible everywhere */
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Larger text */
html.a11y-text-1 main, html.a11y-text-1 .foot, html.a11y-text-1 .menu, html.a11y-text-1 .lang { zoom: 1.15; }
html.a11y-text-2 main, html.a11y-text-2 .foot, html.a11y-text-2 .menu, html.a11y-text-2 .lang { zoom: 1.3; }

/* High contrast */
html.a11y-contrast { --muted: #000; --line: #000; --ink: #000; }
html.a11y-contrast body { font-weight: 400; }
html.a11y-contrast .menu a, html.a11y-contrast .lang button, html.a11y-contrast .lang { color: #000; }
html.a11y-contrast .logo-tag { color: #000; }
html.a11y-contrast .foot { background: #000; color: #fff; }
html.a11y-contrast .bar-logo img, html.a11y-contrast .li-logo { opacity: 1; }
html.a11y-contrast .li-logo { color: #000; }
html.a11y-contrast .a11y-btn, html.a11y-contrast .to-top.show { opacity: 1; }

/* Underlined links */
html.a11y-links main a, html.a11y-links .foot a, html.a11y-links .menu a { text-decoration: underline; text-underline-offset: 3px; }
html.a11y-links .bar-logo, html.a11y-links .li-logo { outline: 1px solid currentColor; outline-offset: 4px; }
@media (max-width: 640px) {
  html.a11y-text-1 .menu, html.a11y-text-1 .lang, html.a11y-text-2 .menu, html.a11y-text-2 .lang { zoom: 1; }
}

/* Phone: header shrinks smoothly once the visitor scrolls */
@media (max-width: 640px) {
  .top { transition: padding .3s ease, row-gap .3s ease, box-shadow .2s; }
  .logo { transition: font-size .3s ease, gap .3s ease; }
  .logo-tag { transition: opacity .2s ease, max-height .3s ease; max-height: 2em; overflow: hidden; }
  .menu { transition: row-gap .3s ease; }
  .top.scrolled { padding-top: 14px; padding-bottom: 12px; row-gap: 10px; }
  .top.scrolled .logo { font-size: 16px; gap: 0; }
  .top.scrolled .logo-tag { opacity: 0; max-height: 0; }
  .top.scrolled .menu { row-gap: 10px; }
}
/* used only while measuring the compact header height */
.top.measuring, .top.measuring * { transition: none !important; }

/* Phone: menu on one line, EL/EN on the logo row next to the LAW box */
@media (max-width: 640px) {
  .menu { flex-wrap: nowrap; justify-content: space-between; column-gap: 8px; }
  .menu a { letter-spacing: .1em; white-space: nowrap; }
  .lang { align-self: flex-start; height: var(--mark-h, 36px); transition: height .3s ease; }
}

/* Phone: footer legal links centred */
@media (max-width: 640px) {
  .foot p { align-self: center; text-align: center; }
}

/* Photo turns to colour when the cursor passes over it (devices with a mouse) */
.photo img { transition: filter .6s ease; }
@media (hover: hover) {
  .photo:hover img { filter: none; }
}

/* Header lines up with the content column below it (same left and right edges) */
.top { padding-left: max(48px, calc((100% - 1080px) / 2)); padding-right: max(48px, calc((100% - 1080px) / 2)); }
@media (max-width: 820px) { .top { padding-left: 16px; padding-right: 16px; } }

/* Desktop: phone, email and web end exactly under the right edge of EL/EN */
@media (min-width: 821px) {
  .contact-list dd { text-align: right; }
}
/* the letter-spacing after the final N would leave EN 2px short of the right edge */
.lang button[data-lang="en"] { margin-right: -.18em; }

/* Logos row inside the contact grid: Athens Bar under the address (left), LinkedIn under the contact details (right) */
.contact-grid { row-gap: 88px; }
.contact-grid .bar-logo { justify-self: start; align-self: center; }
.contact-grid .bar-logo img { width: 210px; }
.contact-grid .li-logo { justify-self: end; align-self: center; }
@media (max-width: 820px) {
  .contact-grid { row-gap: 28px; }
  .contact-grid .bar-logo { margin-top: 12px; }
  .contact-grid .li-logo { justify-self: start; }
}

/* Button (Book an appointment / Send) */
.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 12px 22px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Contact title with the appointment button on the same line, button flush right */
.contact-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.narrow .contact-head h1 { margin-bottom: 0; }

/* Appointment form page */
.appt-intro { color: var(--muted); margin-bottom: 40px; }
.appt-form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label, .field legend { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field legend { margin-bottom: 8px; }
.appt-form input[type="text"], .appt-form input[type="email"], .appt-form input[type="tel"], .appt-form select, .appt-form textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0; width: 100%;
  transition: border-color .2s;
}
.appt-form textarea { border: 1px solid var(--line); padding: 12px; resize: vertical; line-height: 1.6; }
.appt-form select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.appt-form input:focus, .appt-form select:focus, .appt-form textarea:focus { outline: none; border-color: var(--ink); }
.appt-form [aria-invalid="true"] { border-color: #b00020; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.choices input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.counter { font-size: 12px; color: var(--muted); text-align: right; margin: 0; }
.counter.over { color: #b00020; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b00020; font-size: 14px; margin: 0; }
.appt-form .btn { align-self: flex-start; padding: 14px 28px; }
.consent { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-done h2 { margin-top: 0; }
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .appt-form .btn { align-self: stretch; text-align: center; }
}
.sal-other { margin-top: 10px; max-width: 320px; }
/* consent checkbox above the send button */
label.consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--ink); }
label.consent input { accent-color: var(--ink); width: 16px; height: 16px; margin: 3px 0 0; flex: none; }
label.consent[aria-invalid="true"], label.consent input[aria-invalid="true"] { outline: 1px solid #b00020; outline-offset: 2px; }
/* make sure hidden really hides (the form uses display:flex) */
.appt-form[hidden], .form-done[hidden], .appt-intro[hidden] { display: none; }
.form-done { padding: 8px 0 40px; }
.form-done p { margin-bottom: 32px; }

/* Footer: small negative (light-on-grey) logo above the copyright */
.foot { align-items: flex-end; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.foot .foot-logo { font-size: 15px; color: #f2f2f2; }
.foot .foot-logo .logo-box { border-color: #f2f2f2; }
.foot .foot-logo .logo-tag { color: #a8a8a8; }
@media (max-width: 640px) {
  .foot .foot-brand { align-self: center; align-items: center; }
  .foot .foot-logo { font-size: 15px; }
}
.foot .foot-logo .logo-tag { font-size: 7.5px; } /* keep the tagline legible at the small footer size */
/* Footer lines up with the header logo and the content column (but always clears the corner buttons) */
.foot { padding-left: max(96px, calc((100% - 1080px) / 2)); padding-right: max(96px, calc((100% - 1080px) / 2)); }
@media (max-width: 640px) { .foot { padding-left: 16px; padding-right: 16px; } }
/* space between the footer logo and the copyright = space above the logo */
.foot-brand { gap: var(--foot-gap, 32px); }
/* measured: visible space under the logo = space above it (32px desktop, 24px phone) */
:root { --foot-gap: 25.5px; }
@media (max-width: 640px) { :root { --foot-gap: 14.1px; } }

/* "Back to the home page" link at the top of every subpage */
.back-home {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.back-home:hover { color: var(--ink); }
/* no bold any more, so the hidden bold-width spacer is not needed */
.menu a::after { content: none; display: none; }
/* Menu and EL/EN: darker tones (active pure black, others a darker grey) */
.menu a, .lang button { color: #555; }
.menu a:hover, .menu a.active, .lang button:hover, .lang button.active { color: #000; }
/* Active menu item: subtle bold again (Regular 400 instead of the Light 300 used for the others) */
.menu a.active { font-weight: 400; }
/* reserve that width so neighbouring items don't shift when the active item changes */
.menu a::after { content: attr(data-text); display: block; font-weight: 400; height: 0; visibility: hidden; overflow: hidden; }

/* Practice areas: list on the left, chosen area's text unfolds on the right */
.areas-wrap {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);  /* same columns as the photo / text above */
  gap: 72px;
  align-items: start;
}
.areas li { padding: 0; }
.area-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 7px 0; text-align: left;
  font-size: 15px; font-weight: 300; color: var(--ink); line-height: 1.5;
  transition: color .2s;
}
.area-btn::after { content: "→"; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s; }
.area-btn:hover::after { opacity: .6; transform: none; }
.area-btn.active { font-weight: 400; }
.area-btn.active::after { opacity: 1; transform: none; color: var(--ink); }
.areas:has(.area-btn.active) .area-btn:not(.active) { color: var(--muted); }

.area-panel {
  border-left: 1px solid var(--line);
  padding: 6px 0 6px 32px;
  min-height: 100%;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.area-panel.show { opacity: 1; transform: none; }
.area-panel-title { font-size: 13px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; }
.area-panel-text { font-size: 16px; margin: 0; max-width: 520px; }
.area-panel.empty .area-panel-text { color: var(--muted); font-size: 14px; }
.area-text { display: none; }

@media (max-width: 820px) {
  .areas-wrap { grid-template-columns: 1fr; gap: 0; }
  .area-panel { display: none; }
  .area-btn::after { content: "+"; opacity: .6; transform: none; }
  .area-btn.active::after { content: "−"; }
  .area-text:not([hidden]) { display: block; animation: area-unfold .35s ease; }
  .area-text p { font-size: 15px; color: var(--muted); margin: 2px 0 14px; }
}
@keyframes area-unfold { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
/* no arrow next to the practice areas on wide screens (phones keep + / −) */
@media (min-width: 821px) { .area-btn::after { content: none; display: none; } }
/* Before an area is chosen: the line and the hint appear only while the cursor is over the list */
.area-panel { transition: opacity .35s ease, transform .35s ease, border-color .35s ease; }
.area-panel.empty { opacity: 0; border-left-color: transparent; transform: none; }
.areas-wrap.hovering .area-panel.empty { opacity: 1; border-left-color: var(--line); }
