/* Improved stylesheet for Drive Into / Marianna Kritikou Driving School */
/* Basic color scheme preserved: red accents (#FF0000), dark headers (#333), light backgrounds */

:root {
  --primary-red: #FF0000;
  --dark-bg: #333;
  --light-bg: #f9f9f9;
  --text: #222;
  --white: #fff;
  --shadow: 0 4px 12px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--light-bg);
  line-height: 1.65;
  font-size: 16px;
}

.header {
  position: relative;
  height: 420px;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.header h1 {
  font-size: 2.6em;
  margin: 0 0 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.75);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header p {
  font-size: 1.35em;
  margin: 10px 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.75);
  font-weight: 500;
}

nav {
  background-color: var(--primary-red);
  padding: 12px 0;
  width: 100%;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

nav li {
  margin: 4px;
}

nav button, .btn {
  background-color: var(--white);
  color: var(--primary-red);
  border: 3px solid #e8e8e8;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  min-width: 110px;
  text-align: center;
  font-family: inherit;
  box-shadow: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

nav button:hover, .btn:hover {
  background-color: #f5f5f5;
  box-shadow: none;
  transform: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.lang-flags {
  text-align: center;
  margin: 15px 0 20px;
}

.lang-flags a {
  margin: 0 8px;
  display: inline-block;
}

.lang-flags img {
  height: 32px;
  border-radius: 4px;
  transition: transform 0.2s;
}

.lang-flags img:hover {
  transform: scale(1.08);
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 20px -10px;
  justify-content: center;
}

.col {
  flex: 1 1 300px;
  margin: 10px;
  text-align: center;
  background: var(--white);
  padding: 18px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.col img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

h2, h3 {
  color: var(--dark-bg);
  margin-top: 0;
  font-weight: 700;
  letter-spacing: 0.3px;
}

h2 {
  font-size: 1.8em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.35em;
  margin-bottom: 10px;
}

p {
  font-size: 1em;
  margin: 0 0 14px;
}

.cta, .reviews, .google-reviews {
  position: relative;
  height: 360px;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.cta h1, .reviews h1 {
  font-size: 2.1em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.75);
  font-weight: 700;
}

.google-reviews {
  background-color: #cacaca;
  height: auto;
  min-height: 200px;
  padding: 20px;
}

footer {
  background-color: var(--dark-bg);
  background-image: url("img/footer.png");
  background-size: cover;
  background-position: center 58%;
  color: #fff;
  padding: 10px 0 6px;
  text-align: center;
}

footer .container {
  padding-top: 6px;
  padding-bottom: 4px;
}

footer .row {
  margin: 0;
  align-items: center;
  flex-wrap: nowrap;
}

footer .col {
  flex: 1 1 0;
  min-width: 0;
  margin: 4px 0;
  padding: 4px 10px;
  background: transparent;
  box-shadow: none;
  color: #fff;
}

footer .col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer img {
  filter: brightness(1.1);
  vertical-align: middle;
}

footer .col img {
  width: 52px;
}

footer .col img[alt="TestDriver"] {
  width: 150px;
  max-width: 100%;
}

footer .col p {
  margin: 5px 0 0;
  color: #fff;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

footer .col p[style] {
  font-size: 10px !important;
  margin-top: 2px;
}

.map-container {
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .lang-flags {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    column-gap: 14px;
    row-gap: 9px;
  }
  .lang-flags a {
    margin: 0;
    display: block;
  }
  .header {
    height: 300px;
  }
  .header h1 {
    font-size: 1.7em;
  }
  nav {
    padding: 7px 0;
  }
  nav ul {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
  }
  nav li {
    margin: 1px;
  }
  nav .btn {
    width: auto;
    max-width: none;
    padding: 7px 9px;
  }
  .col {
    flex-basis: 100%;
  }
  .cta, .reviews {
    height: 250px;
  }
  .btn {
    width: 100%;
    max-width: 280px;
  }
  footer .row {
    flex-wrap: wrap;
  }
  footer .col {
    flex: 1 1 45%;
    margin: 5px 0;
    padding: 8px 6px;
  }
  footer .col:nth-child(2) {
    border-right: 0;
  }
  footer .col img[alt="TestDriver"] {
    width: 125px;
  }
}

@media screen and (min-width: 769px) and (max-width: 992px) {
  .header h1 {
    font-size: 2.1em;
  }
}

/* Force no shadows on all buttons, especially hero */
.btn, a.btn, button.btn, nav .btn, .header .btn, .header p .btn, .cta .btn {
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-box-shadow: none !important;
}

.btn:hover, a.btn:hover, .header .btn:hover {
  box-shadow: none !important;
  text-shadow: none !important;
}
