/* =============================================
   haraboulou.gr — Global Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Open+Sans:wght@300;400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #6b7a3e;
  --green-dark: #4a5a28;
  --green-bg:   #e8edd8;
  --green-mid:  #d4dbbe;
  --text:       #4a4a4a;
  --text-light: #6a6a6a;
  --gold:       #b8860b;
}

html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; font-size: 14px; color: var(--text); background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
#header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 74px;
  padding: 0 16px;
}

/* Logo — image only, large */
.site-logo {
  display: flex;
  align-items: center;
  padding-right: 20px;
  flex-shrink: 0;
}

.site-logo a {
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 58px;
  width: auto;
}

/* Nav */
nav#primary-nav { flex: 1; }

nav#primary-nav > ul {
  display: flex;
  align-items: stretch;
  height: 100%;
  list-style: none;
}

nav#primary-nav > ul > li { position: relative; }

nav#primary-nav > ul > li > a {
  display: flex;
  align-items: center;
  padding: 0 22px;
  height: 100%;
  font-size: 14px;
  color: var(--text);
  transition: background 0.18s;
  white-space: nowrap;
}

nav#primary-nav > ul > li > a:hover,
nav#primary-nav > ul > li.active > a {
  background: var(--green-bg);
  color: var(--green-dark);
}

/* Dropdown arrow — desktop only */
@media (min-width: 769px) {
  nav#primary-nav > ul > li.has-dropdown > a::after {
    content: ' ▾';
    font-size: 10px;
    margin-left: 4px;
  }
}

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 270px;
  border-top: 2px solid var(--green);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  z-index: 999;
  list-style: none;
}

/* Desktop: hover to open */
@media (min-width: 769px) {
  nav#primary-nav > ul > li:hover > .dropdown { display: block; }
}

.dropdown li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #f3f3f3;
  transition: background 0.15s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { background: var(--green-bg); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  margin-left: auto;
  align-self: center;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #555; border-radius: 2px; transition: all 0.3s; }

/* ══════════════════════════════════════════
   PAGE HERO BANNER (inner pages)
══════════════════════════════════════════ */
.page-hero {
  background: var(--green-bg);
  border-bottom: 1px solid var(--green-mid);
  padding: 30px 0 26px;
}

.page-hero-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

.page-hero h1 {
  font-family: 'Lato', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--green-dark);
}

.page-hero-img img { max-height: 110px; }

/* ══════════════════════════════════════════
   PAGE WRAP (inner pages)
══════════════════════════════════════════ */
.page-wrap {
  max-width: 1020px;
  margin: 0 auto;
  padding: 36px 20px 60px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-content { flex: 1; min-width: 0; }
.page-sidebar { width: 240px; flex-shrink: 0; }

.page-content h2 { font-family: 'Lato', sans-serif; font-size: 22px; color: var(--green-dark); margin-bottom: 14px; }
.page-content h3 { font-family: 'Lato', sans-serif; font-size: 17px; color: var(--green-dark); margin: 20px 0 10px; }
.page-content h4 { font-size: 14px; font-weight: 700; color: var(--text); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.page-content p { line-height: 1.85; margin-bottom: 14px; color: var(--text); }
.page-content strong { color: var(--green-dark); }
.page-content a { color: var(--green); }
.page-content a:hover { text-decoration: underline; }

.content-hr { border: none; border-top: 1px solid var(--green-mid); margin: 24px 0; }

.btn-cta {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 10px 22px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--green-dark); color: #fff; }

/* Services numbered */
.service-cat { margin-bottom: 26px; }
.service-cat-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.service-num {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--green); color: #fff;
  font-size: 13px; font-weight: 700; border-radius: 50%; flex-shrink: 0;
}
.service-cat-title h3 { margin: 0; font-size: 16px; }
.service-cat ul li { padding: 3px 0; font-size: 14px; }
.service-cat ul li::before { content: '• '; color: var(--green); }
.service-cat ul li a { color: var(--text); }
.service-cat ul li a:hover { color: var(--green); text-decoration: underline; }

/* ══════════════════════════════════════════
   SIDEBAR WIDGETS
══════════════════════════════════════════ */
.sw { background: #fff; border: 1px solid var(--green-mid); padding: 16px 18px; margin-bottom: 20px; }
.sw h4 { font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--green); }
.sw p { font-size: 13px; color: var(--text-light); line-height: 1.75; margin-bottom: 4px; }
.sw ul li { border-bottom: 1px solid #f0f0f0; }
.sw ul li:last-child { border-bottom: none; }
.sw ul li a { display: block; padding: 6px 0; font-size: 13px; color: var(--text-light); transition: color .18s, padding-left .18s; }
.sw ul li a:hover { color: var(--green); padding-left: 5px; }

/* ══════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════ */
.contact-wrap { max-width: 1020px; margin: 0 auto; padding: 36px 20px 60px; display: flex; gap: 40px; align-items: flex-start; }
.contact-main { flex: 1; min-width: 0; }
.contact-main h2 { font-family: 'Lato', sans-serif; font-size: 26px; color: var(--green-dark); margin-bottom: 6px; }
.contact-main .subtitle { font-size: 13px; color: var(--green); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.contact-main p { line-height: 1.8; margin-bottom: 10px; }
.contact-main h6 { font-size: 14px; color: var(--text-light); margin-bottom: 12px; font-weight: 400; }
.contact-main h4 { font-size: 15px; color: var(--green-dark); font-weight: 700; margin: 16px 0 10px; }
.contact-form-section h3 { font-family: 'Lato', sans-serif; font-size: 17px; color: var(--green-dark); margin-bottom: 18px; padding-bottom: 8px; border-bottom: 2px solid var(--green); }

.form-row { display: flex; gap: 14px; }
.form-row .fg { flex: 1; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 12px; font-weight: 600; color: var(--text-light); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
.fg input, .fg textarea { width: 100%; padding: 9px 12px; border: 1px solid #cdd4b8; font-size: 14px; font-family: inherit; color: var(--text); border-radius: 3px; transition: border-color .2s; background: #fff; }
.fg input:focus, .fg textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 2px rgba(107,122,62,.12); }
.fg textarea { height: 130px; resize: vertical; }

.recaptcha-note { font-size: 11px; color: #999; margin-bottom: 14px; }
.recaptcha-note a { color: var(--green); }

.btn-submit { background: var(--gold); color: #fff; border: none; padding: 11px 30px; font-size: 14px; font-weight: 700; cursor: pointer; border-radius: 3px; transition: background .2s; }
.btn-submit:hover { background: #9a7009; }

.form-msg { margin-top: 14px; padding: 11px 16px; border-radius: 3px; font-size: 13px; display: none; }
.form-msg.success { background: #f0f7e6; border: 1px solid var(--green); color: var(--green-dark); display: block; }
.form-msg.error   { background: #fef0f0; border: 1px solid #c0392b; color: #c0392b; display: block; }

.map-wrap { margin-top: 32px; border: 1px solid var(--green-mid); border-radius: 3px; overflow: hidden; }
.map-wrap iframe { display: block; width: 100%; border: none; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#footer { background: var(--green-bg); border-top: 1px solid var(--green-mid); padding: 48px 0 0; }

.footer-inner {
  max-width: 1020px; margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr;
  gap: 40px;
}

.footer-widget h4 { font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.footer-widget p { font-size: 13px; color: var(--text-light); line-height: 1.8; margin-bottom: 4px; }
.footer-widget ul li a { display: block; font-size: 13px; color: var(--green); padding: 2px 0; transition: color .18s; }
.footer-widget ul li a:hover { color: var(--green-dark); text-decoration: underline; }

.footer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.footer-form input, .footer-form textarea {
  width: 100%; padding: 7px 10px;
  border: 1px solid #cdd4b8; background: #fff;
  font-size: 12px; font-family: inherit; color: #555; border-radius: 2px;
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: #aaa; }
.footer-form input:focus, .footer-form textarea:focus { outline: none; border-color: var(--green); }
.footer-form .span2 { grid-column: 1 / -1; }
.footer-form textarea { grid-column: 1 / -1; height: 88px; resize: vertical; }
.footer-form .btn-send { grid-column: 1 / -1; justify-self: start; background: var(--gold); color: #fff; border: none; padding: 9px 20px; font-size: 13px; font-weight: 600; cursor: pointer; border-radius: 2px; transition: background .2s; }
.footer-form .btn-send:hover { background: #9a7009; }

.footer-bottom { border-top: 1px solid var(--green-mid); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 12px; color: var(--text-light); }
.footer-bottom-right { display: flex; align-items: center; gap: 8px; }
.footer-bottom a { font-size: 12px; color: var(--text-light); }
.footer-bottom a:hover { text-decoration: underline; }

.btn-top { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid #aaa; border-radius: 2px; background: none; color: #aaa; font-size: 10px; cursor: pointer; transition: background .18s; }
.btn-top:hover { background: #ddd; }

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Header */
  .header-inner {
    flex-wrap: wrap;
    min-height: 60px;
    padding: 8px 16px;
    gap: 0;
  }

  /* Logo: bigger, image only */
  .site-logo {
    flex: 1;
    padding-right: 0;
  }
  .site-logo img {
    height: 50px;
  }

  /* Hamburger always visible */
  .nav-toggle { display: flex; }

  /* Nav hidden by default on mobile */
  nav#primary-nav {
    display: none;
    width: 100%;
    order: 3;
    flex: none;
    border-top: 1px solid #eee;
  }
  nav#primary-nav.open { display: block; }

  nav#primary-nav > ul {
    flex-direction: column;
    height: auto;
  }

  nav#primary-nav > ul > li > a {
    padding: 14px 20px;
    height: auto;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
  }

  /* Mobile: dropdown toggled by JS tap */
  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--green);
    background: #f7f9f0;
    display: none;
    min-width: 0;
  }
  nav#primary-nav > ul > li.dropdown-open > .dropdown { display: block; }
  .dropdown li a { padding: 10px 20px 10px 26px !important; font-size: 13px !important; }

  /* Page layout */
  .page-wrap, .contact-wrap { flex-direction: column; padding: 24px 16px 40px; }
  .page-sidebar { width: 100%; }
  .page-hero-inner { flex-direction: column; gap: 10px; }
  .page-hero-img { display: none; }
  .page-hero { padding: 22px 0 20px; }
  .page-hero h1 { font-size: 22px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 0 16px 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; padding: 12px 16px; }

  /* Contact */
  .form-row { flex-direction: column; }
}
