﻿/* DentJohn — Faithful Hestia recreation. Purple #9c27b0, Roboto + Roboto Slab. */

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

:root {
  --purple:       #e53935;
  --purple-dark:  #c62828;
  --purple-hover: #b71c1c;
  --purple-light: #ffebee;
  --text:         #3c4858;
  --text-muted:   #777;
  --border:       #e0e0e0;
  --bg:           #ffffff;
  --bg-alt:       #f9f9f9;
  --bg-dark:      #2d2d2d;
  --white:        #ffffff;
  --radius:       6px;
  --shadow:       0 2px 12px rgba(0,0,0,0.10);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.14);
  --max-w:        1140px;
  --t:            0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.skip-link {
  position: absolute; top: -100%; left: 1rem;
  background: var(--purple); color: #fff;
  padding: 0.5rem 1rem; border-radius: var(--radius);
  font-size: 0.85rem; z-index: 9999;
}
.skip-link:focus { top: 1rem; }

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--purple); color: #fff;
  padding: 0.875rem 2.25rem;
  border-radius: 50px;
  font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  border: 2px solid var(--purple);
}
.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229,57,53,0.35);
}

.btn-outline {
  display: inline-block;
  background: transparent; color: var(--purple);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 2px solid var(--purple);
  transition: background var(--t), color var(--t);
}
.btn-outline:hover { background: var(--purple); color: #fff; }

/* ============================================================
   HEADER (Bootstrap navbar overrides)
   ============================================================ */
#site-header {
  --bs-navbar-padding-y: 0;
  background: var(--white) !important;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
#site-header .container {
  min-height: 72px;
}

.navbar-brand { padding: 0; }
.navbar-brand img { height: 48px; width: auto; display: block; }
.logo-text {
  font-family: 'Roboto Slab', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--purple);
}

.navbar-nav .nav-link {
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text) !important;
  transition: color var(--t);
  padding-top: 0.5rem; padding-bottom: 0.5rem;
}
.navbar-nav .nav-link:hover { color: var(--purple) !important; }

.navbar-toggler {
  border-color: var(--border);
  padding: 6px 10px;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233c4858' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.lang-switcher {
  display: flex; gap: 0.2rem;
  background: var(--bg-alt);
  border-radius: 50px; padding: 3px;
  border: 1px solid var(--border);
}
.lang-btn {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text-muted); padding: 0.3rem 0.65rem;
  border-radius: 50px;
  transition: background var(--t), color var(--t);
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: #e53935; color: #fff; }

@media (max-width: 991px) {
  #site-header { --bs-navbar-padding-y: 0.625rem; }
  .navbar-collapse { border-top: 1px solid var(--border); padding: 1rem 0; }
  .navbar-nav .nav-link { font-size: 1.05rem; padding: 0.75rem 0; }

  /* Language switcher: separator + vertical list items */
  .lang-switcher {
    flex-direction: column; gap: 0;
    background: none; border: none; border-top: 1px solid var(--border);
    border-radius: 0; padding: 0.5rem 0 0; margin-top: 0.5rem; width: 100%;
  }
  .lang-btn {
    font-size: 1.05rem; font-weight: 500; letter-spacing: 0.05em;
    text-transform: uppercase; text-align: left;
    color: var(--text-muted); padding: 0.75rem 0; border-radius: 0;
  }
  .lang-btn.active { background: none; color: var(--purple); font-weight: 700; }
  .lang-btn:hover { color: var(--text); }

  /* Scale logo so hamburger always fits on the same row */
  .navbar-brand { flex-shrink: 1; min-width: 0; --bs-navbar-brand-margin-end: 0.5rem; }
  .navbar-brand img { height: auto; max-height: 42px; max-width: 100%; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: url('../img/hero.jpg') center center / cover no-repeat;
  position: relative; overflow: hidden; text-align: center;
  padding: 120px 1.5rem 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.52);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 760px; margin-inline: auto;
}
.hero-inner h1 {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.15;
  color: #fff; margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  color: rgba(255,255,255,0.9); margin-bottom: 2.25rem;
  font-weight: 300;
}
.hero .btn-primary {
  background: #e53935; color: #fff;
  border-color: #e53935;
  font-size: 1rem;
}
.hero .btn-primary:hover {
  background: #c62828; color: #fff;
  border-color: #c62828;
  box-shadow: 0 6px 20px rgba(229,57,53,0.45);
}

/* ============================================================
   FEATURES
   ============================================================ */
#services { padding: 80px 0; background: var(--bg); }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; margin-top: 3rem;
}

.feature-card {
  text-align: center; padding: 2.5rem 2rem;
  border-radius: var(--radius);
  transition: box-shadow var(--t), transform var(--t);
}
.feature-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-4px);
}
.feature-icon {
  width: 180px; height: 180px;
  object-fit: contain; margin: 0 auto 1.5rem;
}
.feature-card h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.75rem;
}
.feature-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

/* ============================================================
   ABOUT / INFO
   ============================================================ */
#about { padding: 80px 0; background: var(--bg-alt); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start; margin-top: 0;
}

/* Collapsible section toggle button */
.about-toggle {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  align-items: center; justify-content: space-between;
  width: 100%; text-align: left; background: none; border: none; padding: 0;
  padding-bottom: 1.5rem; border-bottom: 2px solid var(--border);
  gap: 1.5rem; cursor: pointer;
  color: inherit; transition: border-color var(--t);
}
.about-toggle:hover { border-color: var(--purple); }
.about-toggle:hover .about-title { color: var(--purple); }
.about-chevron {
  flex-shrink: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  transition: transform 0.3s ease, background var(--t);
}
.about-toggle:hover .about-chevron { background: var(--purple-dark); }
.about-toggle[aria-expanded="true"] .about-chevron { transform: rotate(180deg); }
#aboutContent { padding-top: 2rem; }

.about-title {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; line-height: 1.2;
  color: var(--text); margin-bottom: 0; flex: 1;
}
.about-desc { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8; }

.check-list { display: flex; flex-direction: column; gap: 0.6rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.95rem; color: var(--text);
}
.check-list li::before {
  content: '✓'; color: var(--purple); font-weight: 700;
  font-size: 0.85rem; margin-top: 0.1rem; flex-shrink: 0;
}

.suitable-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.875rem;
}

/* Limitations box */
.limitations-box {
  background: #fff4e5;
  border-left: 4px solid #ff9800;
  border-radius: var(--radius);
  padding: 2rem 2rem 2rem 1.75rem;
}
.limitations-box h3 {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem; font-weight: 700;
  color: #e65100; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.limitations-box ul { display: flex; flex-direction: column; gap: 0.6rem; }
.limitations-box li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.95rem; color: var(--text);
}
.limitations-box li::before {
  content: '✗'; color: #e65100; font-weight: 700;
  font-size: 0.85rem; margin-top: 0.1rem; flex-shrink: 0;
}

/* ============================================================
   GALLERY
   ============================================================ */
#gallery { padding: 80px 0; background: var(--bg); }

.section-title {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; color: var(--text);
  text-align: center; margin-bottom: 2.5rem;
}
.section-title span { color: var(--purple); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-item {
  overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/3; cursor: pointer;
  background: var(--bg-alt);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.06); opacity: 0.9; }

/* Lightbox */
#lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.9); z-index: 9000;
  align-items: center; justify-content: center;
  cursor: zoom-out; padding: 2rem;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 80px 0;
  background: url('../img/hero2.jpg') center center / cover no-repeat;
  position: relative;
}
#contact::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.62);
  pointer-events: none;
}

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 4rem; align-items: start;
  position: relative; z-index: 1;
}

.contact-heading {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; color: #fff;
  margin-bottom: 0.5rem; position: relative; z-index: 1;
}
.contact-subtitle { font-size: 1rem; color: rgba(255,255,255,0.75); margin-bottom: 2rem; }

.contact-details { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.22); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.38);
  transition: background var(--t), border-color var(--t);
}
.contact-detail:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); }
.contact-detail-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--purple); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-detail-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.15rem;
}
.contact-detail-value { font-size: 0.95rem; font-weight: 500; color: #fff; }
.contact-detail-value a { color: #fff; }
.contact-detail-value a:hover { color: var(--purple-light); }

.contact-social { margin-top: 1.5rem; }
.contact-social-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 0.75rem;
}
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.social-link:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.1); }

/* Contact form */
.contact-form-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow);
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block; font-size: 0.82rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
}
.form-row input,
.form-row textarea {
  display: block; width: 100%;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0.8rem 1rem;
  font: inherit; font-size: 0.95rem; color: var(--text);
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.12);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-honeypot { display: none !important; }

.file-input-wrap input[type="file"] {
  display: block; width: 100%;
  background: var(--bg-alt); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 0.65rem 1rem;
  font: inherit; font-size: 0.9rem; color: var(--text);
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t);
}
.file-input-wrap input[type="file"]:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.12);
}
.file-input-wrap input[type="file"].file-error { border-color: #c62828; }
.form-row:has(.file-input-wrap) > label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 0.82rem;
}

.btn-form {
  width: 100%; background: var(--purple); color: #fff;
  padding: 1rem 2rem; border-radius: 50px;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), transform var(--t);
  margin-top: 0.5rem;
}
.btn-form:hover:not(:disabled) { background: var(--purple-dark); transform: translateY(-1px); }
.btn-form:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.65);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: var(--max-w); margin-inline: auto; padding-inline: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-copy { font-size: 0.82rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  font-size: 0.82rem; color: rgba(255,255,255,0.45);
  transition: color var(--t);
}
.footer-social a:hover { color: #fff; }

/* ============================================================
   TOAST
   ============================================================ */
.dj-toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text); color: #fff;
  padding: 0.875rem 1.5rem; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600;
  white-space: nowrap; max-width: 90vw;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9999; pointer-events: none;
}
.dj-toast.show { transform: translateX(-50%) translateY(0); }
.dj-toast.error { background: #c62828; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(n+7) { display: none; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  #services, #about, #gallery, #contact { padding: 55px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
