:root {
  --background: #6aaae9;
  --light: #89b9e9;
  --dark: #5690ca;
  --hover: #53a5f7;

  --background2: #c1ae9d;
  --light2: #beaf9c;
  --dark2: #95836f;
  --hover2: #92806c;

  --text-highlight: rgb(201, 14, 14);
  --text-highlight-dimmed: rgb(162, 42, 42);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fafafa;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 8px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  background: var(--background2);
  color: white;
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-weight: bold;
  font-size: 2.5rem;
}

nav {
  flex: 1 1 auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

nav a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
  font-size: 1.5rem;
}

nav a:hover {
  opacity: 0.8;
}

.contact a {
  background: var(--background2);
  padding: 0.5rem 1rem;
  color: white;
  text-decoration: none;
  border: solid 2px #e9e9e9;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.contact a:hover {
  background: var(--hover2);
  padding: 0.6rem 1.1rem;
}

.menu-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  display: none;
}

.hero {
  background: 
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url("../ordinace_img/hero_enh.png") center / cover no-repeat;
  padding: 6rem 0;
  color: white;
}

.hero-content {
  display: flex;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.5rem;
}

.hero-text p {
  font-size: 1.6rem;
}

.hero-subtext{
  font-size: 1.15rem !important; 
  padding: 4px 0 4px 0;
}

.highlighted{
  font-size: 1.8rem !important;
  color: var(--text-highlight);
}

.highlighted-dimmed {
  font-size: 1.55rem !important;
  color: var(--text-highlight-dimmed);
}

.hero-text {
  flex: 1 1 45%;
}

.services {
  text-align: center;
  padding: 4rem 0;
}

.service-title{
  padding-bottom: 5px;
}

.service-row {
  display: grid;
  grid-template-columns: repeat(3, 3fr);
  gap: 1.5rem;
  justify-items: center;
}

.service-card {
  background: rgb(241, 241, 241);
  padding: 1rem;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card span {
  font-size: 0.9rem;
}

.service-card img {
  height: 120px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.highlight {
  border-top: 4px solid var(--background2);
}

.schedule {
  padding: 4rem 0;
  background: #f4f4f4;
}

.schedule-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.schedule-box {
  flex: 1 1 45%;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.schedule-table .row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
  font-size: 1.1rem;
}

.schedule-table .closed {
  color: #888;
}

.schedule-image {
  flex: 1 1 45%;
  text-align: center;
}

.schedule-text {
  display: flex;
  justify-self: center;
  align-self: center;
  padding: 20px 0 0 0;
}

.gallery {
  padding: 4rem 0;
  text-align: center;
  display: flex;
  justify-content: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0 2rem 0;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}


footer {
  background: var(--background2);
  color: white;
  padding: 2rem 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  font-size: 1.3rem;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-logo, .footer-links {
  flex: 1 1 40%;
}

.footer-links ul {
  list-style: none;
  columns: 2;
}

.footer-links li {
  padding-left: 40%;
}

.footer-links a, .socials a {
  color: white;
  text-decoration: none;
  display: block;
  margin: 0.3rem 0;
}

.socials a {
  margin-right: 1rem;
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--light2);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .service-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-row > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    background: var(--dark2);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 0.5rem;
  }

  .hero-content, .location-grid, .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .contact {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
  }

  .service-row {
    grid-template-columns: 1fr;
  }
  .service-row > :last-child {
    grid-column: 1 / -1;
  }
}

/* google maps */

.mapouter {
  position:relative;
  text-align:right;
} 

.gmap_canvas {
  overflow:hidden;
  background:none!important;
} 

.gmap_canvas iframe {
  width:100%;
  height:100%;
} 

.mapouter a {
  display:block;
  font-size:0.85em;
  text-align:center;
  padding:5px 0;
  color:#6c757d;
  text-decoration:none;
} 

.gme-generated-link {
  display:none!important;
}

.schedule-image .mapouter {
  width: 100%;
  aspect-ratio: 8/6;
  position: relative;
}

.schedule-image .gmap_canvas, 
.schedule-image iframe {
  width: 100%;
  height: 100%;
}
