/* ============================================
   Δημήτρης Χ. Τρυφωνόπουλος — Dental Website
   Modern, Clean, Professional
   ============================================ */

:root {
  --primary: #129596;
  --primary-dark: #0d7377;
  --primary-light: #e8f6f6;
  --secondary: #00792e;
  --secondary-light: #e6f4ec;
  --accent: #c0d65d;
  --bg: #fafaf8;
  --bg-warm: #f5f3ef;
  --surface: #ffffff;
  --text: #1a1a2e;
  --text-light: #5c6b73;
  --text-muted: #8a9ba8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600; line-height: 1.2; color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
p { color: var(--text-light); margin-bottom: 1rem; }

/* ---- Top Bar ---- */
.top-bar {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; padding: 0.6rem 0; font-size: 0.9rem; position: relative; z-index: 1001;
}
.top-bar-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem;
}
.top-bar a { color: var(--accent); font-weight: 700; font-size: 1.05rem; }
.top-bar a:hover { color: white; }
.top-bar i { margin-right: 0.4rem; opacity: 0.9; }

/* ---- Header ---- */
.header {
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000;
  transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0.8rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo-link { display: flex; align-items: center; gap: 0.8rem; }
.logo-img { height: 48px; width: auto; border-radius: var(--radius-sm); }
.logo-text { display: flex; flex-direction: column; }
.logo-text .name { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.logo-text .title { font-size: 0.75rem; color: var(--primary); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }

/* ---- Nav ---- */
.nav-desktop { display: flex; gap: 2.5rem; list-style: none; }
.nav-desktop a { color: var(--text-light); font-weight: 500; font-size: 0.9rem; letter-spacing: 0.3px; position: relative; padding: 0.3rem 0; }
.nav-desktop a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); border-radius: 2px; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--primary); }
.nav-desktop a:hover::after, .nav-desktop a.active::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--text); }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); border-radius: 2px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-warm) 50%, var(--secondary-light) 100%);
  padding: clamp(3rem, 8vw, 6rem) 1.5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(18,149,150,0.08) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: white; padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; color: var(--primary); box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.hero-badge i { color: var(--accent); }
.hero h1 { margin-bottom: 1rem; }
.hero h1 span { color: var(--primary); font-style: italic; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-light); margin-bottom: 2rem; max-width: 500px; }
.hero-cta { display: inline-flex; align-items: center; gap: 0.6rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 0.9rem 2rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 15px rgba(18,149,150,0.3); transition: var(--transition); }
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(18,149,150,0.4); color: white; }
.hero-visual { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-logo-wrap { position: relative; display: inline-block; }
.hero-logo-wrap img { width: 280px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.hero-logo-wrap::before { content: ''; position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); border-radius: var(--radius); z-index: 1; opacity: 0.15; }

/* ---- Sections ---- */
.section { padding: clamp(3rem, 6vw, 5rem) 1.5rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 0.5rem; }
.section-header h2 { margin-bottom: 0.8rem; }
.section-header p { font-size: 1.05rem; }

/* ---- Cards ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); transition: var(--transition); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card-icon { width: 56px; height: 56px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.2rem; }
.card-icon.teal { background: var(--primary-light); color: var(--primary); }
.card-icon.green { background: var(--secondary-light); color: var(--secondary); }
.card-icon.lime { background: #f0f4d9; color: #8a9e2e; }
.card-icon.blue { background: #e0f0f7; color: #2b7a9e; }
.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.92rem; margin-bottom: 0; }

/* ---- Why Section ---- */
.why-section { background: var(--bg-warm); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; align-items: center; }
.why-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.why-image img { width: 100%; height: 100%; object-fit: cover; }
.why-list { list-style: none; }
.why-list li { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.why-list .check { width: 28px; height: 28px; min-width: 28px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; margin-top: 0.2rem; }
.why-list h4 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.why-list p { font-size: 0.92rem; margin: 0; }

/* ---- Contact Section ---- */
.contact-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; position: relative; }
.contact-section .section-header h2, .contact-section .section-header p { color: white; }
.contact-section .section-label { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.contact-card { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 1.8rem; text-align: center; transition: var(--transition); }
.contact-card:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }
.contact-card i { font-size: 2rem; margin-bottom: 1rem; color: var(--accent); }
.contact-card h3 { color: white; font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact-card p, .contact-card a { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.contact-card a:hover { color: white; }
.contact-card .phone-big { font-size: 1.4rem; font-weight: 700; color: var(--accent); display: block; margin-top: 0.3rem; }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); height: 350px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.15); }
.map-placeholder { text-align: center; color: rgba(255,255,255,0.7); }
.map-placeholder i { font-size: 3rem; margin-bottom: 1rem; display: block; }

/* ---- Services Page ---- */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
.service-block:nth-child(even) { direction: rtl; }
.service-block:nth-child(even) > * { direction: ltr; }
.service-block:last-child { margin-bottom: 0; }
.service-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.service-img:hover img { transform: scale(1.03); }
.service-content h3 { color: var(--primary); margin-bottom: 0.8rem; font-size: 1.4rem; }
.service-content p { margin-bottom: 1rem; }
.service-content ul { list-style: none; padding: 0; }
.service-content ul li { padding-left: 1.5rem; position: relative; margin-bottom: 0.5rem; color: var(--text-light); font-size: 0.95rem; }
.service-content ul li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }

/* ---- Office Page ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-bottom: 3rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: white; font-weight: 600; opacity: 0; transition: var(--transition); }
.gallery-item:hover .overlay { opacity: 1; }
.hours-table { width: 100%; max-width: 500px; margin: 0 auto; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hours-table th, .hours-table td { padding: 1rem 1.5rem; text-align: left; border-bottom: 1px solid var(--border); }
.hours-table th { background: var(--primary-light); color: var(--primary); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }
.hours-table td { color: var(--text-light); }
.hours-table tr:last-child td { border-bottom: none; }

/* ---- Bio Page ---- */
.bio-hero { background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-warm) 100%); padding: clamp(3rem, 8vw, 5rem) 1.5rem; }
.bio-hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
.bio-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 3/4; }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-content h1 { margin-bottom: 0.5rem; }
.bio-content .subtitle { color: var(--primary); font-weight: 600; font-size: 1.1rem; margin-bottom: 1.5rem; }
.bio-content p { margin-bottom: 1rem; }
.timeline { position: relative; padding-left: 2rem; margin-top: 2rem; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--primary), var(--accent)); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: -2.35rem; top: 0.3rem; width: 12px; height: 12px; background: var(--primary); border-radius: 50%; border: 3px solid var(--bg); }
.timeline-item h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.timeline-item .year { font-size: 0.8rem; color: var(--primary); font-weight: 700; margin-bottom: 0.3rem; display: block; }
.timeline-item p { font-size: 0.95rem; margin: 0; }

/* ---- Footer ---- */
.footer { background: var(--text); color: rgba(255,255,255,0.7); padding: 2.5rem 1.5rem 1.5rem; text-align: center; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; }
.footer-logo img { height: 40px; border-radius: 8px; }
.footer-logo span { color: white; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.1rem; }
.footer p { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin-bottom: 0.3rem; }
.footer-bottom { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ---- Mobile Nav ---- */
.nav-mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  box-shadow: var(--shadow-lg);
}
.nav-mobile.active { display: block; }
.nav-mobile ul { list-style: none; padding: 0; }
.nav-mobile li { border-bottom: 1px solid var(--border); }
.nav-mobile li:last-child { border-bottom: none; }
.nav-mobile a { display: block; padding: 1rem 1.5rem; color: var(--text); font-weight: 500; }
.nav-mobile a:hover, .nav-mobile a.active { background: var(--primary-light); color: var(--primary); }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-logo-wrap img { width: 200px; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) { direction: ltr; }
  .bio-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .bio-photo { max-width: 250px; margin: 0 auto; }
  .top-bar-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: 2rem 1rem; }
  .section { padding: 2rem 1rem; }
  .card { padding: 1.5rem; }
  .contact-card { padding: 1.2rem; }
}
