/* ============================================================
   MBROKER — Main Stylesheet
   Style: matches mbroker.gr (white nav, green accent, dark section)
   Fonts: Fira Sans (headings) + Montserrat (body)
   ============================================================ */

/* ── 1. Variables & Reset ─────────────────────────────────── */
:root {
  --green:      rgb(0, 175, 80);
  --green-dark: rgb(0, 140, 60);
  --dark:       rgb(29, 30, 32);
  --black:      rgb(0, 0, 0);
  --white:      #ffffff;
  --gray-bg:    #f5f5f5;
  --text:       #333333;
  --muted:      #666666;
  --border:     #e0e0e0;

  --font-head: 'Fira Sans', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --max-w:    1240px;
  --nav-h:    63px;
  --radius:   6px;
  --radius-btn: 24px;
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); font-size: 16px; color: var(--text);
        background: var(--white); line-height: 1.5; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── 2. Typography ────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); line-height: 1.2; }
h1 { font-size: 48px;  font-weight: 700; }
h2 { font-size: 40px;  font-weight: 700; }
h3 { font-size: 32px;  font-weight: 700; }
h4 { font-size: 24px;  font-weight: 600; }
h5 { font-size: 20px;  font-weight: 600; }
p  { line-height: 1.6; }

/* ── 3. Layout ────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section   { padding: 80px 0; }
.section--gray { background: var(--gray-bg); }

/* ── 4. Navigation ────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* Centered links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: #000;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
}
/* Burger (mobile only) */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  position: absolute;
  right: 16px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: #000;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition);
  white-space: nowrap;
}
.btn-green          { background: var(--green);      color: var(--white); border-color: var(--green); }
.btn-green:hover    { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline-white  { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--dark); }
.btn-outline-dark   { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline-dark:hover  { background: var(--dark); color: var(--white); }

/* ── 6. Hero ──────────────────────────────────────────────── */
/* Matches live mbroker.gr: bg image, NO overlay */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  background-color: var(--dark);
  background-image: url('/assets/img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 0 40px;
}
.hero__content { max-width: 500px; align-self: flex-start; padding-left: 0; }
.hero .container { margin-left: 0; }
.hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}
.hero h1 { color: var(--white); margin-bottom: 16px; font-size: 36px; }
.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── 7. Dark section (quote + photo) ──────────────────────── */
/* Matches live mbroker.gr: black background, big quote, circular photo */
.dark-section {
  background: var(--black);
  padding: 80px 0;
}
.dark-section .container {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 48px;
}
.dark-section--centered .container {
  display: block;
  text-align: center;
  max-width: 800px;
}
.dark-quote {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
}
.dark-photo-wrap { display: flex; justify-content: center; }
.dark-photo {
  width: 380px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

/* ── 8. Services section ──────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
  transform: translateY(-3px);
}
.service-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.service-card h4 { margin-bottom: 10px; font-size: 18px; }
.service-card p  { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── 9. eMbroker section ──────────────────────────────────── */
.embroker-section {
  background: var(--dark);
  padding: 80px 0;
}
.embroker-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.embroker-section h2 { color: var(--white); margin-bottom: 20px; }
.embroker-tag {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-btn);
  margin-bottom: 16px;
}
.embroker-section p {
  color: rgba(255,255,255,.7);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.embroker-features { margin: 28px 0; }
.embroker-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.embroker-feature:first-child { border-top: 1px solid rgba(255,255,255,.08); }
.embroker-feature__icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.embroker-feature strong { display: block; color: var(--white); font-size: 15px; margin-bottom: 2px; }
.embroker-feature p { font-size: 13px; margin: 0; }

.embroker-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 40px 32px;
}
.embroker-price-label {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.embroker-price {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.embroker-price-sub { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 28px; }
.embroker-list { margin-bottom: 32px; }
.embroker-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  font-size: 14px;
}
.embroker-list li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── 10. About page ───────────────────────────────────────── */
.page-hero {
  background: var(--black);
  padding: 80px 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { font-size: 18px; color: rgba(255,255,255,.7); max-width: 560px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-photo {
  width: 380px;
  height: 380px;
  max-width: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
  display: block;
  margin: 0 auto;
}
.about-text h2 { margin-bottom: 20px; }
.about-text p  { color: var(--muted); margin-bottom: 16px; line-height: 1.7; }

.service-list { margin: 32px 0; }
.service-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.service-list li:last-child { border-bottom: none; }
.service-list__icon { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.service-list h5 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.service-list p  { font-size: 14px; color: var(--muted); margin: 0; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 48px;
}
.stat-item {
  background: var(--white);
  padding: 32px 24px;
  text-align: center;
}
.stat-item__num {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item p { font-size: 14px; color: var(--muted); margin: 0; }

/* ── 11. Contact page ─────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 8px; font-size: 24px; }
.contact-info > p { color: var(--muted); margin-bottom: 36px; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:first-of-type { border-top: 1px solid var(--border); }
.contact-item__icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.contact-item h5   { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.contact-item p    { font-size: 14px; color: var(--muted); margin: 0; }
.contact-item a    { color: var(--green); font-weight: 500; }
.contact-item a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
}
.contact-form-wrap h3 { margin-bottom: 28px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,175,80,.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none; padding: 14px 18px; margin-top: 16px;
  background: #f0fdf4; border: 1px solid #86efac;
  border-radius: var(--radius); color: #15803d; font-size: 14px;
}
.form-error {
  display: none; padding: 14px 18px; margin-top: 16px;
  background: #fef2f2; border: 1px solid #fca5a5;
  border-radius: var(--radius); color: #dc2626; font-size: 14px;
}

/* ── 12. Blog ─────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.post-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.post-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-card__date { font-size: 12px; color: var(--muted); }
.post-card__title { font-family: var(--font-head); font-size: 17px; font-weight: 700;
                    color: var(--dark); margin-bottom: 10px; line-height: 1.35; }
.post-card__excerpt { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 20px; }
.post-card__link { font-size: 13px; font-weight: 600; color: var(--green);
                   display: inline-flex; align-items: center; gap: 4px; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 20px;
       font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tag--customs { background: #f0fdf4; color: #15803d; }
.tag--tax     { background: #eff6ff; color: #1d4ed8; }
.tag--imports { background: #fdf4ff; color: #7e22ce; }
.tag--exports { background: #fff7ed; color: #c2410c; }
.tag--other   { background: #f5f5f5; color: #555; }

.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.blog-filter-btn {
  padding: 7px 18px; border: 1px solid var(--border); border-radius: 20px;
  background: transparent; font-size: 13px; font-family: var(--font-body);
  cursor: pointer; transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.blog-filter-btn:hover,
.blog-filter-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); }
.blog-empty { grid-column: 1/-1; text-align: center; padding: 64px 0; color: var(--muted); }

/* ── 13. Footer ───────────────────────────────────────────── */
/* Matches live mbroker.gr: white bg, left=CTA, right=contacts */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}
.footer-left h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  max-width: 320px;
  line-height: 1.3;
}
.footer-contact h6 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-contact p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
}
.footer-contact a { color: var(--text); }
.footer-contact a:hover { color: var(--green); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom a { color: var(--muted); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--dark); }

/* ── 14. Cookie banner ──────────────────────────────────────*/
#js-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
#js-cookie-banner p { flex: 1; font-size: 14px; color: var(--text); margin: 0; }
.cookie-btns { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--green); color: var(--white);
  border: none; border-radius: var(--radius-btn);
  padding: 10px 22px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background var(--transition);
}
.btn-cookie-accept:hover { background: var(--green-dark); }
.btn-cookie-decline {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  padding: 10px 22px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-cookie-decline:hover { border-color: var(--dark); color: var(--dark); }

/* ── 15. Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .embroker-section .container { gap: 48px; }
}

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  .section { padding: 56px 0; }

  .dark-section .container { grid-template-columns: 1fr; gap: 32px; }
  .dark-quote { font-size: 28px; }
  .dark-photo  { width: 220px; height: 220px; margin: 0 auto; }
  .dark-photo-wrap { order: -1; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  .embroker-section .container { grid-template-columns: 1fr; gap: 40px; }

  .about-grid  { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 28px 20px; }
  .form-row   { grid-template-columns: 1fr; }
  .blog-grid  { grid-template-columns: 1fr; }
  .stats-row  { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  #js-cookie-banner { flex-direction: column; align-items: flex-start; }

  /* Nav mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    padding: 8px 0 16px;
    z-index: 100;
  }
  .nav-links.open { display: flex; }
  .nav-links a    { padding: 12px 24px; }
  .nav-burger     { display: flex; }
}

@media (max-width: 480px) {
  h1 { font-size: 30px; }
  .services-grid { grid-template-columns: 1fr; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn { display: block; text-align: center; }
}
