/* ==========================================================================
   Γιάννης Ζερβός — Πολιτικός Μηχανικός | Stylesheet
   Rebuilt as a clean, editable static site from the original Hostinger Horizons app.
   All colours, fonts and spacing are controlled by the CSS variables below.
   ========================================================================== */

:root {
  /* Brand colours — change these to re-theme the whole site */
  --gold:        #c2a14a;   /* primary accent (buttons, icons, underlines) */
  --gold-dark:   #a8862f;   /* hover / darker accent */
  --gold-soft:   #faf4e4;   /* light cream card / badge background */
  --navy:        #243750;   /* headings & dark text */
  --navy-deep:   #2f4259;   /* footer background */
  --ink:         #4f5b66;   /* body text */
  --ink-soft:    #7a838d;   /* muted text */
  --bg:          #ffffff;   /* page background */
  --bg-alt:      #f7f5f1;   /* alternate section background */
  --border:      #e8e6e0;   /* hairline borders */
  --white:       #ffffff;

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --maxw: 1200px;
  --header-h: 84px;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(36, 55, 80, .06);
  --shadow-md: 0 18px 50px rgba(36, 55, 80, .12);
}

/* ----------  Reset / base  ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--navy); line-height: 1.15; font-weight: 700; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.text-gold { color: var(--gold); }

/* ----------  Buttons  ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold      { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn-navy      { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #1a2a3d; transform: translateY(-2px); }
.btn-ghost     { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ----------  Header / nav  ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand .brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 22px; color: var(--navy); }
.brand .brand-sub  { font-size: 12px; color: var(--ink-soft); letter-spacing: .2px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--navy); position: relative; padding: 6px 0;
  transition: color .2s ease;
}
.nav a:hover { color: var(--gold-dark); }
.nav a.active { color: var(--navy); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold); border-radius: 2px;
}

/* transparent over hero, solid after scroll or on inner pages */
.site-header.transparent { background: transparent; }
.site-header.transparent .brand-name,
.site-header.transparent .nav a { color: #fff; }
.site-header.transparent .brand-sub { color: rgba(255,255,255,.8); }
.site-header.solid { background: #fff; box-shadow: var(--shadow-sm); }

/* mobile menu toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 30px; }
.nav-toggle span { display: block; height: 2px; width: 26px; background: var(--navy); margin: 6px 0; transition: .3s; }
.site-header.transparent .nav-toggle span { background: #fff; }

/* ----------  Hero (home)  ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(110deg, rgba(28,46,72,.92) 0%, rgba(33,57,88,.78) 45%, rgba(33,57,88,.45) 100%),
                    var(--hero-img);
  background-size: cover; background-position: center; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(40px, 6vw, 72px); margin-bottom: 22px; max-width: 760px; }
.hero p  { font-size: clamp(18px, 2vw, 22px); max-width: 540px; color: rgba(255,255,255,.92); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ----------  Page hero (inner pages)  ---------- */
.page-hero {
  background: var(--bg-alt); text-align: center;
  padding: calc(var(--header-h) + 70px) 0 70px;
}
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); margin-bottom: 18px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: var(--ink-soft); font-size: 19px; }

/* ----------  Sections  ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 18px; }

/* ----------  Stats  ---------- */
.stats { background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.stat-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 16px;
  background: var(--gold-soft); display: flex; align-items: center; justify-content: center;
}
.stat-icon svg { width: 30px; height: 30px; color: var(--gold); }
.stat-num { font-family: var(--font-serif); font-size: 46px; font-weight: 700; color: var(--navy); }
.stat-label { color: var(--ink-soft); font-size: 16px; }

/* ----------  Two-column feature (why us / story)  ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 22px; }
.feature p { margin-bottom: 18px; color: var(--ink); }
.feature .feature-img img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 100%; object-fit: cover; }
.feature.reverse .feature-text { order: 2; }

/* ----------  Cards (values / services)  ---------- */
.card-grid { display: grid; gap: 26px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.value-card {
  background: var(--gold-soft); border: 1px solid #f0e6c9; border-radius: var(--radius);
  padding: 32px 26px; text-align: center; transition: transform .25s ease, box-shadow .25s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.value-card .icon { width: 56px; height: 56px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.value-card .icon svg { width: 34px; height: 34px; color: var(--gold); }
.value-card h3 { font-size: 22px; margin-bottom: 12px; }
.value-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }

.service-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 38px 34px; transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card .icon {
  width: 60px; height: 60px; border-radius: 14px; background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.service-card .icon svg { width: 30px; height: 30px; color: var(--gold); }
.service-card h3 { font-size: 24px; margin-bottom: 14px; }
.service-card p { color: var(--ink-soft); }

/* ----------  Milestones / timeline  ---------- */
.timeline { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.milestone { display: flex; gap: 28px; align-items: flex-start; }
.milestone .year {
  flex: 0 0 96px; height: 70px; border-radius: 12px; background: var(--gold-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 24px; color: var(--gold-dark);
}
.milestone .m-body { padding-top: 6px; }
.milestone h3 { font-size: 21px; margin-bottom: 6px; }
.milestone p { color: var(--ink-soft); }

/* ----------  Projects  ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.project-card:hover .thumb img { transform: scale(1.05); }
.project-card .p-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-card h3 { font-size: 22px; margin-bottom: 8px; }
.project-card .location { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-dark); font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.project-card .location svg { width: 15px; height: 15px; }
.project-card .excerpt { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.project-card .p-link { color: var(--gold-dark); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }

/* ----------  Project detail  ---------- */
.back-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; margin-bottom: 30px; }
.back-link:hover { color: var(--gold-dark); }
.project-detail h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 16px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 26px; color: var(--ink-soft); font-size: 15px; margin-bottom: 8px; }
.project-meta span { display: inline-flex; align-items: center; gap: 8px; }
.project-meta svg { width: 16px; height: 16px; color: var(--gold); }
.prose h2 { font-size: 28px; margin: 40px 0 16px; }
.prose p { color: var(--ink); }
.gallery-empty { background: var(--bg-alt); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--ink-soft); margin-top: 28px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.gallery-grid img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; }

/* ----------  Call to action band  ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 30px; font-size: 18px; }

/* ----------  Contact  ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.contact-grid h2 { font-size: 30px; margin-bottom: 26px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--font-sans); font-size: 15px; color: var(--ink); background: #fff; transition: border .2s ease;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.form-row textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; }
.form-success { display: none; background: var(--gold-soft); border: 1px solid #f0e6c9; color: var(--navy); padding: 14px 16px; border-radius: 10px; margin-top: 16px; }

.info-card { background: var(--bg-alt); border-radius: var(--radius); padding: 34px; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item:last-child { margin-bottom: 0; }
.info-item .info-icon { flex: 0 0 44px; height: 44px; border-radius: 11px; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; }
.info-item .info-icon svg { width: 22px; height: 22px; color: var(--gold); }
.info-item h4 { font-family: var(--font-sans); font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.info-item p { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.areas { margin-top: 56px; }
.areas h2 { text-align: center; font-size: 30px; margin-bottom: 10px; }
.areas .lead { text-align: center; color: var(--ink-soft); margin-bottom: 30px; }
.area-tags { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 820px; margin: 0 auto; }
.area-tags span { background: var(--gold-soft); color: var(--gold-dark); border: 1px solid #f0e6c9; padding: 8px 18px; border-radius: 30px; font-size: 14px; font-weight: 600; }

/* ----------  Footer  ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-brand .brand-name { font-family: var(--font-serif); font-size: 24px; color: #fff; }
.footer-brand .brand-sub { color: var(--gold); font-size: 14px; margin: 4px 0 16px; }
.footer-brand p { font-size: 15px; line-height: 1.7; }
.site-footer h4 { font-family: var(--font-serif); color: var(--gold); font-size: 19px; margin-bottom: 20px; font-weight: 700; }
.footer-contact li { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; font-size: 15px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex: 0 0 auto; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 15px; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 24px; text-align: center; font-size: 13.5px; color: rgba(255,255,255,.6); }

/* ----------  Reveal-on-scroll animation  ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ----------  Responsive  ---------- */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 0 0 0 auto; width: min(300px, 80vw); background: #fff; flex-direction: column;
    align-items: flex-start; justify-content: flex-start; gap: 6px; padding: 100px 30px; box-shadow: var(--shadow-md);
    transform: translateX(100%); transition: transform .3s ease; }
  .nav.open { transform: none; }
  .nav a { color: var(--navy) !important; font-size: 18px; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav a.active::after { display: none; }
  .nav-toggle { display: block; z-index: 110; }
  .feature, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature.reverse .feature-text { order: 0; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .cols-3, .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr; gap: 34px; }
  .cols-2, .cols-3, .cols-4, .project-grid, .gallery-grid { grid-template-columns: 1fr; }
  .milestone .year { flex-basis: 80px; font-size: 20px; }
  section { padding: 60px 0; }
  .brand .brand-sub { display: none; }
}

/* ----------  Project additions (cards, detail, lightbox)  ---------- */
.project-card .thumb { position: relative; }
.project-card .badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(36,55,80,.85); color: #fff; font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 30px; backdrop-filter: blur(4px);
}
.project-card .badge.hotel { background: rgba(194,161,74,.92); }
.project-card .meta-line { color: var(--ink-soft); font-size: 13.5px; margin: -4px 0 12px; }

/* detail hero image */
.detail-hero-img { width: 100%; max-height: 540px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); margin-bottom: 8px; }
.detail-tags { display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.detail-tags span { background: var(--gold-soft); color: var(--gold-dark); border:1px solid #f0e6c9; padding:6px 14px; border-radius:30px; font-size:13px; font-weight:600; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 30px; }
.gallery-grid img { width:100%; border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.gallery-grid img:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,22,33,.93); z-index: 1000; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .lb-btn { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; display:flex; align-items:center; justify-content:center; transition: background .2s; }
.lightbox .lb-btn:hover { background: rgba(255,255,255,.25); }
.lightbox .lb-prev { left: 3vw; } .lightbox .lb-next { right: 3vw; }
.lightbox .lb-close { top: 3vh; right: 3vw; width: 46px; height: 46px; font-size: 22px; }
.lightbox .lb-counter { position:absolute; bottom: 3vh; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.8); font-size: 14px; }
@media (max-width: 600px){ .gallery-grid { grid-template-columns: repeat(2,1fr); } .lightbox .lb-btn{ width:42px;height:42px;font-size:22px;} }

/* Constrain inline arrow icons that have no explicit size */
.project-card .p-link svg { width: 16px; height: 16px; flex: 0 0 auto; }
.back-link svg { width: 18px; height: 18px; }

@media (max-width: 900px){ .feature .feature-img img { height: auto; } }
