/* ==========================================================
   Skia Shading Solutions
   Idea: the page sits "in the shade" (cool teal tones).
   Sun gold is sunlight, so it is used sparingly: the sun dot,
   main buttons and step numbers.
   ========================================================== */

:root {
  /* Brand colours (from the logo) */
  --teal: #0E4F5C;        /* deep sea teal: headings, dark sections */
  --teal-deep: #093842;   /* body text, footer */
  --slate: #4F7A82;       /* secondary text */
  --sun: #F2A52E;         /* sun gold: accents only */
  --sun-press: #E0921A;
  --linen: #F5EFE6;       /* logo off-white: text on teal */

  /* Surfaces */
  --shade: #EEF3F2;       /* page background, a cool shaded white */
  --white: #FFFFFF;
  --line: #CCDAD9;

  /* Type */
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  /* Spacing + shape */
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 18px;

  /* Motion: one easing curve + a few durations, reused everywhere */
  --ease: cubic-bezier(.2, .7, .2, 1);   /* fast start, soft landing */
  --t-quick: .18s;                       /* hover / press feedback */
  --t-reveal: .6s;                       /* things appearing on scroll */
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--teal-deep);
  background: var(--shade);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, h4 { margin: 0; color: var(--teal); line-height: 1.1; }
p { margin: 0; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--teal); color: var(--linen); padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font: 600 1.05rem/1.2 var(--font);
  text-decoration: none;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease,
              transform var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease);
}
.btn-sun   { background: var(--sun); color: var(--teal-deep); }
.btn-sun:hover { background: var(--sun-press); }
.btn-sun:focus-visible { outline-color: var(--teal); }
.btn-ghost { border-color: var(--teal); color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: var(--linen); }
.btn-teal  { background: var(--teal); color: var(--linen); }
.btn-teal:hover { background: var(--teal-deep); }
.btn-small { padding: .6rem 1.15rem; font-size: .98rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--shade) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
/* Once you scroll, a hairline + soft shadow lift the header off the page */
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -12px color-mix(in srgb, var(--teal-deep) 35%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: block; border-radius: 8px; }
.brand img { width: 92px; height: auto; }

/* Language switch + hamburger sit together on the right */
.header-tools { display: flex; align-items: center; gap: .5rem; order: 3; margin-left: 1.25rem; }
.lang-switch {
  display: flex; padding: 3px; gap: 2px;
  border: 1.5px solid var(--teal); border-radius: 999px;
}
.lang-switch button {
  min-width: 44px; height: 38px; padding: 0 .6rem;
  font: 600 .9rem/1 var(--font); letter-spacing: .04em;
  color: var(--teal); background: transparent;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang-switch button:hover { background: color-mix(in srgb, var(--teal) 8%, transparent); }
.lang-switch button[aria-pressed="true"] { background: var(--teal); color: var(--linen); }

/* Greek words are longer: give the big headline a little more room */
html[lang="el"] .hero h1 { max-width: 14ch; font-size: clamp(2.4rem, 4.8vw, 4rem); }

.site-nav { display: flex; align-items: center; gap: 2rem; order: 2; margin-left: auto; }
.site-nav ul { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  position: relative; display: block;
  font-weight: 500; text-decoration: none; color: var(--teal);
  padding: .55rem .85rem;           /* bigger click area than the text alone */
  border-radius: 8px;
  transition: background-color .15s ease;
}
/* The underline is a pseudo-element that grows from the left on hover */
.site-nav ul a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
  height: 2px; border-radius: 2px; background: var(--sun);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.site-nav ul a:hover { background: color-mix(in srgb, var(--teal) 6%, transparent); }
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }
.site-nav ul a[aria-current="true"] { font-weight: 600; }

/* Call button: icon + number */
.btn-call svg { width: 1.1em; height: 1.1em; flex: none; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) var(--section); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.75rem, 5.6vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  max-width: 11ch;
}
.lede {
  margin-top: 1.75rem;
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  color: var(--slate);
  max-width: 34rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

/* The canopy: a teal arc (like the logo) over an arch-shaped photo */
.hero-canopy {
  position: relative;
  margin: 0;
  padding: 26px 26px 0;          /* gap between canopy stroke and photo */
}
.hero-canopy::before {           /* the canopy stroke */
  content: "";
  position: absolute; inset: 0 0 38% 0;
  border: 16px solid var(--teal);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
.canopy-frame {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--teal);
}
.canopy-frame picture { height: 100%; }
.canopy-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}
.sun {                            /* the sun dot from the logo */
  position: absolute;
  left: 50%; top: 58px;
  width: clamp(46px, 7vw, 72px); aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--sun) 25%, transparent);
}

/* One orchestrated load moment: the photo opens upward, then the sun settles in */
@media (prefers-reduced-motion: no-preference) {
  .canopy-frame { animation: open-canopy 1.1s cubic-bezier(.2,.7,.2,1) both .1s; }
  .sun { animation: sun-in .9s cubic-bezier(.3,1.4,.5,1) both .8s; }
}
@keyframes open-canopy {
  from { clip-path: inset(100% 0 0 0 round 999px 999px 0 0); }
  to   { clip-path: inset(0 0 0 0 round 0); }
}
@keyframes sun-in {
  from { opacity: 0; transform: translateY(-40px) scale(.6); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Section heads ---------- */
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2, .area h2, .quote h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
.section-head p { margin-top: .9rem; color: var(--slate); font-size: 1.2rem; }

/* ---------- Products chooser ---------- */
.products { padding-block: 0 var(--section); }
.chooser {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.chooser-tabs { display: flex; flex-direction: column; gap: .35rem; }
.chooser-tabs button {
  display: grid; gap: .15rem;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-left: 4px solid var(--line);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.chooser-tabs button:hover { background: color-mix(in srgb, var(--white) 60%, transparent); }
.chooser-tabs button[aria-selected="true"] { background: var(--white); border-left-color: var(--sun); }
.tab-place { font-weight: 600; font-size: 1.15rem; color: var(--teal); line-height: 1.3; }
.tab-product { font-size: .98rem; color: var(--slate); }

.chooser-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
.chooser-panel[hidden] { display: none; }
.panel-media img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; }
.panel-media-pair { display: grid; grid-template-rows: 1fr 1fr; }
.panel-media-pair picture { overflow: hidden; height: 100%; }
.panel-body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; }
.panel-body h3 { font-size: 1.75rem; font-weight: 700; }
.panel-body p { margin-top: .85rem; }
.panel-body h4 { margin-top: 1.5rem; font-size: 1rem; font-weight: 600; color: var(--slate); }
.fit-list { list-style: none; padding: 0; margin: .6rem 0 1.75rem; display: grid; gap: .45rem; }
.fit-list li { position: relative; padding-left: 1.5rem; }
.fit-list li::before {             /* a tiny sun as the bullet */
  content: ""; position: absolute; left: 0; top: .62em;
  width: .55rem; height: .55rem; border-radius: 50%; background: var(--sun);
}
.panel-body .btn { margin-top: auto; align-self: flex-start; }

@media (prefers-reduced-motion: no-preference) {
  .chooser-panel:not([hidden]) { animation: panel-in .3s ease both; }
}
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Process (dark teal band) ---------- */
.process {
  background: var(--teal);
  color: var(--linen);
  padding-block: var(--section);
}
.process h2 { color: var(--linen); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  border-top: 2px solid color-mix(in srgb, var(--linen) 25%, transparent);
  padding-top: 1.25rem;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 3.25rem; font-weight: 800; line-height: 1;
  color: var(--sun);
  margin-bottom: 1rem;
}
.steps h3 { color: var(--linen); font-size: 1.35rem; font-weight: 600; }
.steps p { margin-top: .6rem; color: color-mix(in srgb, var(--linen) 82%, var(--teal)); }

/* ---------- Area ---------- */
.area { padding-block: var(--section); }
.area-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.area-media img { border-radius: var(--radius); width: 100%; }
.area-text p { margin-top: 1.1rem; max-width: 34rem; }
.meaning {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--teal);
  padding-top: 1.25rem;
  margin-top: 1.75rem !important;
  border-top: 2px solid var(--line);
}
.meaning [lang="el"] { font-weight: 700; }

/* ---------- Quote ---------- */
.quote { background: var(--white); padding-block: var(--section); }
.quote-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: start;
}
.quote-intro > p { margin-top: 1rem; max-width: 30rem; color: var(--slate); }

.contact-list { margin: 2.25rem 0 0; display: grid; gap: 1rem; }
.contact-list div { display: grid; grid-template-columns: 7rem 1fr; align-items: baseline; }
.contact-list dt { color: var(--slate); }
.contact-list dd { margin: 0; font-weight: 600; font-size: 1.2rem; }
.contact-list a { text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.quote-form {
  background: var(--shade);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid; gap: 1.25rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; color: var(--teal); }
.optional { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem;
  color: var(--teal-deep);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .8rem .95rem;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--teal);
}
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field-error { color: #B3261E; font-size: .98rem; }
.quote-form .btn { margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--teal-deep); color: var(--linen); padding-block: 3.5rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.footer-inner img { width: 110px; }
.footer-inner p { color: color-mix(in srgb, var(--linen) 80%, var(--teal-deep)); }

/* ==========================================================
   Motion
   Rules: only opacity + transform move (cheap for phones),
   and everything here is switched off for visitors who ask
   their device for "reduce motion".
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {

  /* 1. Buttons: lift on hover (mouse only), press down on click */
  @media (hover: hover) {
    .btn:hover { transform: translateY(-2px); }
    .btn-sun:hover   { box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--sun) 90%, var(--teal-deep)); }
    .btn-teal:hover  { box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--teal-deep) 80%, transparent); }
  }
  .btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }

  /* 2. Scroll reveal: main.js adds .reveal to things below the fold,
        then .is-in when they scroll into view. --delay staggers siblings. */
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .reveal.is-in { opacity: 1; transform: none; }

  /* 3. Product photo unrolls from the top, like an awning opening */
  .chooser-panel:not([hidden]) .panel-media {
    animation: unroll .6s var(--ease) both;
  }
}
@keyframes unroll {
  from { clip-path: inset(0 0 100% 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* ==========================================================
   Tablet and down
   ========================================================== */
@media (max-width: 960px) {
  .chooser { grid-template-columns: 1fr; }
  .chooser-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .chooser-tabs button {
    border-left: 0; border-top: 4px solid var(--line);
    border-radius: 0 0 12px 12px;
    padding: .85rem 1rem;
  }
  .chooser-tabs button[aria-selected="true"] { border-top-color: var(--sun); }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  /* Mobile menu */
  .header-tools { margin-left: auto; }
  .menu-toggle {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    background: transparent; border: 0; cursor: pointer; border-radius: 10px;
  }
  .menu-toggle-bars,
  .menu-toggle-bars::before,
  .menu-toggle-bars::after {
    display: block; width: 24px; height: 2.5px; border-radius: 2px;
    background: var(--teal); position: relative; transition: transform .2s ease, opacity .2s ease;
  }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -7px; }
  .menu-toggle-bars::after  { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--shade);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.5rem;
    box-shadow: 0 16px 24px -16px color-mix(in srgb, var(--teal-deep) 40%, transparent);
    /* Hidden state: fades and slides instead of popping in */
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
  }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    padding: .95rem 0; border-radius: 0;
    border-bottom: 1px solid var(--line); font-size: 1.15rem;
  }
  .site-nav ul a::after { display: none; }
  .site-nav ul a:hover { background: transparent; }
  .site-nav ul a[aria-current="true"] { color: var(--teal-deep); box-shadow: inset 3px 0 0 var(--sun); padding-left: .85rem; }
  .site-nav .btn { padding-block: .95rem; font-size: 1.05rem; }

  .hero-grid, .area-grid, .quote-grid { grid-template-columns: 1fr; }
  .hero-canopy { max-width: 440px; width: 100%; margin-inline: auto; padding: 18px 18px 0; }
  .hero-canopy::before { border-width: 12px; }
  .sun { top: 42px; }

  .chooser-panel { grid-template-columns: 1fr; }
  .panel-media img { aspect-ratio: 5 / 4; height: auto; }
  .panel-media-pair { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .panel-media-pair img { aspect-ratio: 1; }

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

@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .chooser-tabs { grid-template-columns: 1fr; }
  .contact-list div { grid-template-columns: 6rem 1fr; }
}
