/* Santorinaios — single-page responsive styles */

:root {
  --bg:           #f5f5f4;
  --surface:      #ffffff;
  --surface-alt:  #e7e5e4;
  --ink:          #1c1917;
  --ink-soft:     #44403c;
  --muted:        #78716c;
  --line:         #d6d3d1;
  --accent:       #c8181e;
  --accent-dark:  #9e1217;
  --accent-soft:  #fde8e8;
  --dark-bg:      #1a1516;
  --dark-surface: #261a1b;
  --shadow-sm:  0 1px 2px rgba(28,25,23,.06), 0 1px 3px rgba(28,25,23,.04);
  --shadow-md:  0 4px 6px -1px rgba(28,25,23,.08), 0 2px 4px -2px rgba(28,25,23,.05);
  --shadow-lg:  0 10px 25px -5px rgba(28,25,23,.12), 0 8px 10px -6px rgba(28,25,23,.06);
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --container:  1200px;
  --header-h:   68px;
  --font:       'Inter','Segoe UI',system-ui,-apple-system,'Helvetica Neue',Arial,sans-serif;
  --transition: 200ms ease;
}

*  { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem,.92rem + .35vw,1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }
h1,h2,h3,h4 { font-family: var(--font); color: var(--ink); margin: 0 0 .5em; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem,1.3rem + 2.8vw,3.4rem); }
h2 { font-size: clamp(1.5rem,1.1rem + 1.6vw,2.35rem); }
h3 { font-size: clamp(1.1rem,.95rem + .6vw,1.35rem); }
p  { margin: 0 0 1em; color: var(--ink-soft); }
.muted { color: var(--muted); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,32px);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: .97rem; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), border-color var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn-outline-light:hover { background: rgba(255,255,255,.15); color: #fff; transform: translateY(-1px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: var(--header-h);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: ''; display: block;
  height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after  { transform: translateY(-9px) rotate(-45deg); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav-list {
  display: flex; list-style: none; margin: 0; padding: 0;
  align-items: center; gap: 2px;
}
.nav-link {
  display: block; padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--ink-soft); font-weight: 500; font-size: .93rem;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--accent); background: var(--accent-soft); }

.lang-toggle {
  display: flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px;
  overflow: hidden; margin-left: 12px;
}
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  padding: 5px 12px; font-size: .82rem; font-weight: 600;
  color: var(--muted); transition: background var(--transition), color var(--transition);
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--accent); color: #fff;
}

/* ===== Sections ===== */
.section { padding: clamp(56px,8vw,100px) 0; }
.section-alt { background: var(--surface-alt); }
.section-dark {
  background: var(--dark-bg); color: #fff;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.75); }

.section-head { text-align: center; margin-bottom: clamp(32px,5vw,56px); }
.section-head p { max-width: 620px; margin: .5em auto 0; }

/* ===== Hero ===== */
.hero {
  position: relative; height: 100svh; min-height: 520px;
  display: flex; align-items: center; overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,.62) 0%,
    rgba(10,10,10,.45) 50%,
    rgba(10,10,10,.7) 100%
  );
}
.hero-content {
  position: relative; z-index: 2; color: #fff;
  max-width: 760px;
}
.hero-content h1 { color: #fff; margin-bottom: .4em; }
.hero-content p   { color: rgba(255,255,255,.88); font-size: clamp(1rem,.9rem + .4vw,1.2rem); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none; padding: 0;
}
.hero-dot.active { background: #fff; transform: scale(1.25); }

/* ===== About ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px,5vw,72px); align-items: center;
}
.about-grid > div:first-child h2 { margin-bottom: .6em; }
.about-img {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: flex; gap: clamp(16px,3vw,40px); margin-top: 2em; flex-wrap: wrap; }
.stat  { display: flex; flex-direction: column; }
.stat-value { font-size: clamp(1.6rem,1.2rem + 1.4vw,2.4rem); font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* ===== Services tile gallery ===== */
.services-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .services-tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .services-tile-grid { grid-template-columns: 1fr; } }

.service-tile {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3;
}
.service-tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.service-tile:hover img { transform: scale(1.06); }
.service-tile-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,.92) 0%,
    rgba(10,10,10,.45) 55%,
    transparent 100%
  );
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px;
  transition: background .3s;
}
.service-tile:hover .service-tile-overlay {
  background: linear-gradient(
    to top,
    rgba(10,10,10,.97) 0%,
    rgba(10,10,10,.6) 60%,
    rgba(10,10,10,.1) 100%
  );
}
.service-tile-title {
  color: #fff; font-size: clamp(1rem,.9rem + .3vw,1.15rem);
  font-weight: 700; margin: 0 0 6px; line-height: 1.2;
}
.service-tile-body {
  color: rgba(255,255,255,.82); font-size: .87rem; line-height: 1.5;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s ease, opacity .3s ease;
  margin: 0;
}
.service-tile:hover .service-tile-body { max-height: 100px; opacity: 1; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.gallery-item {
  cursor: pointer; border-radius: var(--radius-sm); overflow: hidden;
  position: relative; aspect-ratio: 1;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(15,10,10,0); transition: background .3s;
  pointer-events: none;
}
.gallery-item:hover img    { transform: scale(1.06); }
.gallery-item:hover::after { background: rgba(15,10,10,.22); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 86vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close {
  position: absolute; top: 16px; right: 20px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 999px; padding: 8px 18px;
  cursor: pointer; font-size: .9rem; font-weight: 600;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }
.lightbox-prev,
.lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: 50%; width: 48px; height: 48px;
  cursor: pointer; font-size: 1.3rem; display: flex;
  align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== Recycling dark section ===== */
.recycling-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px,6vw,80px); align-items: start;
}
.recycling-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,24,30,.25); border: 1px solid rgba(200,24,30,.4);
  color: rgba(255,255,255,.9); border-radius: 999px; padding: 6px 16px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  margin-bottom: 1.2em;
}
.recycling-list {
  list-style: none; margin: 1.5em 0; padding: 0; display: flex; flex-direction: column; gap: 12px;
}
.recycling-list li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,.85); font-size: .97rem;
}
.recycling-list li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}
.recycling-tagline {
  font-size: clamp(1.3rem,1rem + 1.2vw,2rem);
  font-weight: 700; color: #fff; line-height: 1.3;
  margin-bottom: .6em;
}
.recycling-tagline em { font-style: normal; color: #f87171; }
.recycle-icon-wrap {
  display: flex; justify-content: center; align-items: center;
  height: 100%; min-height: 200px;
}
.recycle-icon-wrap svg { opacity: .15; }

/* ===== Contact ===== */
.contact-unified {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px,5vw,72px);
  align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 24px; margin-top: 1.5em; }
.contact-item   { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px; height: 44px; background: var(--accent-soft);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; color: var(--accent); flex-shrink: 0;
}
.contact-label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-value { font-size: 1rem; font-weight: 600; color: var(--ink); margin-top: 2px; }
.contact-value a { color: var(--ink); }
.contact-value a:hover { color: var(--accent); }

.map-wrap {
  margin-top: 28px;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.dir-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px; font-size: .9rem; font-weight: 600; color: var(--accent);
}
.dir-link:hover { color: var(--accent-dark); }

/* ── Contact form ── */
.contact-form-col h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.form-intro { color: var(--muted); margin: 0 0 28px; }

.form-fieldset { border: none; padding: 0; margin: 0 0 20px; }
.form-legend { font-weight: 600; font-size: .875rem; margin-bottom: 10px; color: var(--ink); }

.type-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.type-card {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .875rem; font-weight: 500;
  transition: border-color .2s, background .2s;
}
.type-card input[type="radio"] { accent-color: var(--accent); }
.type-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field label { font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .95rem;
  background: var(--surface); color: var(--ink);
  transition: border-color .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 120px; }

.form-actions {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px;
}
.form-note { font-size: .8rem; color: var(--muted); margin: 0; }
.form-status { margin-top: 12px; font-size: .9rem; min-height: 1.4em; }
.form-status[data-kind="ok"]  { color: var(--accent); }
.form-status[data-kind="err"] { color: #dc2626; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.65);
  padding: clamp(32px,5vw,56px) 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(24px,4vw,48px); margin-bottom: 32px;
}
.footer-logo {
  height: 44px; width: auto; display: block;
  margin-bottom: .9em;
  filter: brightness(0) invert(1);
}
.footer-tagline { font-size: .82rem; color: rgba(255,255,255,.5); margin-bottom: 1em; }
.footer-card-details {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.footer-card-details li {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; color: rgba(255,255,255,.65);
}
.footer-card-details svg { flex-shrink: 0; opacity: .6; }
.footer-card-details a { color: rgba(255,255,255,.65); }
.footer-card-details a:hover { color: #fff; }
.site-footer h4 {
  color: #fff; font-size: .9rem; font-weight: 700;
  margin-bottom: .8em; letter-spacing: .04em; text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer ul li,
.site-footer ul li a { color: rgba(255,255,255,.6); font-size: .9rem; }
.site-footer ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: .83rem; color: rgba(255,255,255,.4);
}

/* ===== Skip link ===== */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid,
  .recycling-inner,
  .contact-unified { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .recycling-inner > .recycle-icon-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; gap: 2px; }
  .lang-toggle { margin: 12px 0 0; align-self: flex-start; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: clamp(1.75rem,1.2rem + 3vw,2.5rem); }
}
