/* ============================================
   Hadımköy Diş Kliniği — Clean Corporate CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=DM+Sans:wght@400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-bg: #eff6ff;
  --accent: #06b6d4;
  --text: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--primary);
  color: #fff;
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 13px;
  position: relative;
  z-index: 1001;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar a {
  color: rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar a:hover {
  color: #fff;
}

.top-bar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.top-bar-hours {
  color: rgba(255,255,255,0.85);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-social a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  transition: var(--transition);
}

.top-bar-social a:hover {
  background: rgba(255,255,255,0.25);
}

.top-bar-social svg {
  width: 14px;
  height: 14px;
}

/* --- Navbar --- */
.navbar {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar-logo img {
  height: 48px;
  width: auto;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-menu > li {
  position: relative;
}

.navbar-menu > li > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  transition: var(--transition);
}

.navbar-menu > li > a:hover,
.navbar-menu > li > a.active {
  color: var(--primary);
}

.navbar-menu > li > a.active {
  font-weight: 600;
}

.navbar-menu > li > a .chevron {
  width: 12px;
  height: 12px;
  transition: var(--transition);
}

.navbar-menu > li:hover > a .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 260px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  pointer-events: none;
}

.navbar-menu > li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  border-radius: 6px;
  font-weight: 400;
  transition: var(--transition);
}

.dropdown-menu a:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

.navbar-cta .btn {
  padding: 10px 24px;
  font-size: 14px;
}

/* Mobile Nav Toggle */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
}

/* --- Hero Section (Home) --- */
.hero {
  height: 85vh;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15,23,42,0.75), rgba(15,23,42,0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-label {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Page Hero (Subpages) --- */
.page-hero {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  position: relative;
}

.page-hero h1 {
  font-size: 36px;
  color: #fff;
  margin-bottom: 12px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .separator {
  font-size: 10px;
}

.breadcrumb .current {
  color: rgba(255,255,255,0.9);
}

/* --- Section Spacing & Headers --- */
.section {
  padding: 120px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

.section-line {
  width: 48px;
  height: 3px;
  background: var(--primary);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* --- Trust / Stats Bar --- */
.trust-bar {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-number {
  font-family: "Outfit", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}

.trust-label {
  font-size: 14px;
  color: var(--text-light);
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-preview-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-preview-content .section-label {
  text-align: left;
}

.about-preview-content h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-preview-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 500;
  font-size: 15px;
  margin-top: 8px;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.text-link:hover svg {
  transform: translateX(4px);
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.service-card-image {
  height: 200px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 28px;
}

.service-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.service-card-link:hover {
  text-decoration: underline;
}

.service-card-link svg {
  width: 14px;
  height: 14px;
}

/* Services listing (larger images) */
.services-grid-lg .service-card-image {
  height: 240px;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--primary-bg);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 24px;
}

.cta-phone {
  font-family: "Outfit", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 28px;
}

.cta-phone a {
  color: var(--primary);
}

.cta-phone a:hover {
  text-decoration: underline;
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.section-footer-link {
  text-align: center;
  margin-top: 48px;
}

/* --- Contact Info Cards --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.contact-info-text a:hover {
  color: var(--primary);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 400px;
  border: 1px solid var(--border);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* --- Footer --- */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.footer-col h4 {
  font-family: "Outfit", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.4);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.55);
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* --- Page Content --- */
.page-content {
  padding: 120px 0;
}

.page-content-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.page-content-narrow p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 16px;
}

.page-content-narrow h2 {
  font-size: 28px;
  margin-bottom: 16px;
  margin-top: 48px;
}

.page-content-narrow h2:first-child {
  margin-top: 0;
}

.page-content-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 40px 0;
}

.page-content-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

/* Values cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

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

.value-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}

.value-card-icon svg {
  width: 28px;
  height: 28px;
}

.value-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.team-card {
  text-align: center;
}

.team-card-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--border);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* --- Service Detail --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.service-main-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
}

.service-main-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.service-main h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.service-main p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-benefits {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.service-benefits li svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Sidebar */
.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.sidebar-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-links a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  border-radius: 8px;
  transition: var(--transition);
}

.sidebar-links a:hover,
.sidebar-links a.active {
  background: var(--primary-bg);
  color: var(--primary);
}

.sidebar-links a.active {
  font-weight: 600;
}

.sidebar-cta {
  background: var(--primary-bg);
  text-align: center;
}

.sidebar-cta h3 {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 8px;
}

.sidebar-cta p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.sidebar-cta .cta-phone {
  font-size: 22px;
  margin-bottom: 16px;
}

/* --- Contact Page --- */
.contact-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.contact-card {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}

.contact-card-icon svg {
  width: 22px;
  height: 22px;
}

.contact-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-card p,
.contact-card a {
  font-size: 14px;
  color: var(--text-light);
}

.contact-card a:hover {
  color: var(--primary);
}

.contact-form-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-size: 24px;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
  font-size: 20px;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.3);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  z-index: 99;
  box-shadow: var(--shadow);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --- WhatsApp Button --- */
.whatsapp-btn {
  position: fixed;
  bottom: 32px;
  left: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: var(--transition);
}

.whatsapp-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .top-bar-email {
    display: none;
  }

  .navbar .container {
    height: 68px;
  }

  .navbar-logo img {
    height: 40px;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    z-index: 1001;
    overflow-y: auto;
  }

  .navbar-menu.active {
    right: 0;
  }

  .navbar-menu > li > a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    width: 100%;
    padding: 0 0 0 16px;
    pointer-events: auto;
    display: none;
  }

  .dropdown-menu.mobile-open {
    display: block;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-cta {
    display: none;
  }

  .mobile-overlay {
    display: block;
  }

  /* Hero */
  .hero {
    height: 60vh;
    min-height: 480px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-buttons .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  /* Page hero */
  .page-hero {
    height: 220px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  /* Section header */
  .section-header h2 {
    font-size: 28px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  /* Grids */
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .about-preview {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cards-row {
    grid-template-columns: 1fr;
  }

  .contact-form-section {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: block;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .hero {
    height: auto;
    min-height: 420px;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

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

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid,
  .gallery-grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cta-phone {
    font-size: 22px;
  }

  .whatsapp-btn {
    bottom: 20px;
    left: 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
  }
}
