/* ==========================================================================
   Βλαστός Βασίλειος – Ιατρείο Μικρών Ζώων
   Χρωματική παλέτα βάσει brand χρωμάτων: #F0F0D1 / #A7A342 / #3E3E14.
   ========================================================================== */

:root {
  /* Brand colours */
  --color-deep: #3E3E14;        /* σκούρο λαδί - header/footer/dark surfaces, κείμενο */
  --color-deep-2: #53521D;      /* ελαφρώς πιο ανοιχτό σκούρο λαδί, gradients */
  --color-sage: #A7A342;        /* μεσαίο λαδοπράσινο - χρώμα λογότυπου, accents */
  --color-sage-dark: #8D8A37;   /* πιο σκούρο λαδοπράσινο για κουμπιά / hover */
  --color-cream: #F0F0D1;       /* κρεμ χρώμα, χρήση σε dark bg */
  --color-white: #FFFFFF;       /* λευκό, για ομαλό πέρασμα ανάμεσα σε ενότητες */
  --color-bg: #F0F0D1;          /* γενικό φόντο σελίδας */
  --color-bg-alt: #E9E8C3;      /* εναλλασσόμενο φόντο ενοτήτων */
  --color-border: #D5D5B5;
  --color-text: #3E3E14;        /* βασικό κείμενο */
  --color-text-muted: #62623A;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 3px rgba(62, 62, 20, 0.08);
  --shadow-md: 0 8px 24px rgba(62, 62, 20, 0.12);
  --shadow-lg: 0 20px 48px rgba(62, 62, 20, 0.16);

  --header-height: 76px;
  --mobile-bar-height: 64px;

  --transition-fast: 0.18s ease;
  --transition-med: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Accessibility helpers
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 0;
  top: -60px;
  background: var(--color-deep);
  color: var(--color-cream);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--color-sage-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
}

section {
  padding-block: 64px;
}

section h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  letter-spacing: -0.01em;
  color: var(--color-deep);
  margin-bottom: 20px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.btn .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--color-sage-dark);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--color-deep);
  border: 2px solid var(--color-sage);
}

.btn-secondary:hover {
  background: var(--color-sage);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(180deg, var(--color-deep) 0%, var(--color-deep-2) 100%);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.15;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-logo {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(240, 240, 209, 0.35);
}

@media (min-width: 900px) {
  .brand-logo {
    height: 44px;
    width: 44px;
  }
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-cream);
  letter-spacing: 0.01em;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--color-cream);
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-sage);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-call {
  display: none;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
}

.menu-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-cream);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  background: var(--color-deep-2);
  border-top: 1px solid rgba(240, 240, 209, 0.12);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  padding: 8px 20px 16px;
}

.mobile-nav-link {
  display: block;
  padding: 14px 4px;
  color: var(--color-cream);
  font-weight: 500;
  border-bottom: 1px solid rgba(240, 240, 209, 0.1);
  min-height: 44px;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-call {
  color: var(--color-sage);
  font-weight: 700;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-white) 100%);
  padding-block: 56px;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.eyebrow {
  color: var(--color-sage-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2rem, 1.6rem + 2vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-deep);
  max-width: 16ch;
}

.hero-lead {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding-bottom: 20px;
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
}

.hero-photo-shadow {
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 74%;
  height: 22px;
  background: radial-gradient(closest-side, rgba(62, 62, 20, 0.4), rgba(62, 62, 20, 0) 75%);
  border-radius: 50%;
  z-index: 0;
  animation: float-shadow 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes float-shadow {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.55; }
  50% { transform: translateX(-50%) scale(0.78); opacity: 0.3; }
}

.hero-visual-caption {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 30ch;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--color-white);
}

.about-inner {
  max-width: 760px;
}

.about p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   Benefits
   ========================================================================== */

.benefits {
  background: var(--color-bg-alt);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.benefit-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.benefit-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  font-size: 1.1rem;
  color: var(--color-deep);
  margin-bottom: 8px;
}

.benefit-card p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* ==========================================================================
   Ωράριο Λειτουργίας
   ========================================================================== */

.hours {
  background: var(--color-bg-alt);
}

.hours-inner {
  max-width: 560px;
}

.hours-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border);
}

.hours-row:last-child {
  border-bottom: none;
}

.hours-day {
  font-weight: 600;
  color: var(--color-deep);
}

.hours-time {
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.hours-closed {
  color: var(--color-sage-dark);
  font-weight: 600;
}

.hours-row.is-today {
  background: var(--color-sage);
}

.hours-row.is-today .hours-day,
.hours-row.is-today .hours-time {
  color: #FFFFFF;
}

.hours-row.is-today .hours-closed {
  color: var(--color-deep);
}

/* ==========================================================================
   Location / Map
   ========================================================================== */

.location {
  background: var(--color-white);
}

.location-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.location-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-sage-dark);
  font-weight: 600;
  margin-bottom: 16px;
}

.icon-inline {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.location address {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background: var(--color-deep);
  color: var(--color-cream);
}

.contact h2 {
  color: var(--color-cream);
}

.contact-lead {
  color: rgba(240, 240, 209, 0.85);
  font-size: 1.1rem;
  max-width: 50ch;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
}

.contact-item .icon {
  width: 22px;
  height: 22px;
  fill: var(--color-sage);
  flex-shrink: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.contact .btn-secondary {
  color: var(--color-cream);
  border-color: var(--color-sage);
}

.contact .btn-secondary:hover {
  background: var(--color-sage);
  color: var(--color-deep);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-deep-2);
  color: rgba(240, 240, 209, 0.85);
  padding-block: 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-brand .brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.footer-brand .brand-name {
  color: var(--color-cream);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}

.footer-info a {
  font-weight: 600;
  color: var(--color-cream);
}

.footer-note,
.footer-copy {
  font-size: 0.85rem;
  color: rgba(240, 240, 209, 0.6);
}

.footer-copy {
  margin-top: 8px;
}

/* ==========================================================================
   Mobile sticky action bar
   ========================================================================== */

.mobile-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--mobile-bar-height);
  background: var(--color-deep);
  box-shadow: 0 -4px 16px rgba(34, 48, 30, 0.25);
}

.mobile-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-cream);
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
}

.mobile-action-btn:first-child {
  background: var(--color-sage-dark);
}

.mobile-action-btn .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Only show on small screens; keep page content from being covered */
body.has-mobile-bar {
  padding-bottom: var(--mobile-bar-height);
}

@media (min-width: 769px) {
  .mobile-action-bar {
    display: none;
  }
  body.has-mobile-bar {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   Scroll reveal (progressive enhancement via JS)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* Tablet and up */
@media (min-width: 640px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-wrap: nowrap;
  }
}

/* Desktop nav appears; hamburger + mobile call button hide */
@media (min-width: 900px) {
  .main-nav {
    display: block;
  }

  .btn-header-call {
    display: inline-flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
  }

  .hero-text {
    flex: 1 1 480px;
  }

  .hero-visual {
    flex: 1 1 380px;
  }

  .about-inner {
    text-align: left;
  }

  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .location-inner {
    flex-direction: row;
    align-items: stretch;
  }

  .location-text {
    flex: 1 1 380px;
  }

  .map-frame {
    flex: 1 1 480px;
    aspect-ratio: 16 / 11;
  }

  .contact-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 48px;
  }

  .contact-lead {
    margin-bottom: 0;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    flex-wrap: wrap;
  }

  .footer-info {
    align-items: flex-end;
    text-align: right;
  }
}

@media (min-width: 1100px) {
  section {
    padding-block: 96px;
  }
}

/* Small phones: tighten up spacing slightly */
@media (max-width: 380px) {
  .container {
    padding-inline: 16px;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
