/* ============================================
   SYD ELEKTRİK — Design Tokens & Base Styles
   ============================================ */

:root {
  --primary: #1a2744;
  --primary-light: #243556;
  --accent: #f5b731;
  --accent-hover: #e5a520;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-body: #334155;
  --text-heading: #1a2744;
  --text-light: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ============ Reset ============ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-body);
  line-height: 1.6;
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Global focus indicator — visible only for keyboard users */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.navbar :focus-visible,
.footer :focus-visible,
.mobile-menu :focus-visible,
.stats-section :focus-visible,
.hero :focus-visible {
  outline-color: var(--accent);
}

/* ============ Typography ============ */

h1, h2, h3, h4 {
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
}

/* ============ Utilities ============ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  border-color: var(--bg-white);
  color: var(--bg-white);
  background: transparent;
}

.btn-outline:hover {
  background: var(--bg-white);
  color: var(--primary);
}

.btn-outline-dark {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--bg-white);
}

/* ============ Navbar ============ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--primary);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo img,
.navbar-logo svg {
  height: 40px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--accent);
}

.navbar-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.navbar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all var(--transition);
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--transition), visibility var(--transition);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
  visibility: visible;
}

.mobile-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.85);
  padding: 1rem 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
}

.mobile-menu .mobile-phone {
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0 0;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 39, 68, 0.92) 0%, rgba(26, 39, 68, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-content h1 {
  color: white;
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-content .accent-text {
  color: var(--accent);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============ Services ============ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: rgba(245, 183, 49, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============ Featured Projects ============ */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
  display: block;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--accent);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-card-body {
  padding: 1.25rem;
}

.project-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.85rem;
}

.project-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============ Stats / Why Us ============ */

.stats-section {
  background: var(--primary);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  color: var(--accent);
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 0;
}

/* ============ Footer ============ */

.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.75);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand img,
.footer-brand svg {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer-links a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  align-items: flex-start;
}

.footer-contact-item .icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ============ Page Header (inner pages) ============ */

.page-header {
  background: var(--primary);
  padding: 6rem 0 3rem;
  margin-top: var(--nav-height);
  text-align: center;
}

.page-header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
  color: var(--accent);
}

/* ============ About Page ============ */

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-body);
  line-height: 1.8;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.value-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.value-icon {
  width: 56px;
  height: 56px;
  background: rgba(245, 183, 49, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ============ Project Detail ============ */

.project-detail {
  padding: 3rem 0 5rem;
}

.project-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.project-description {
  font-size: 1.05rem;
  line-height: 1.8;
}

.project-info-table {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.project-info-table h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-light);
  font-weight: 500;
}

.info-value {
  color: var(--text-heading);
  font-weight: 600;
  text-align: right;
}

.project-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.service-tag {
  background: rgba(245, 183, 49, 0.15);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Project Gallery — Slideshow */
.project-gallery {
  margin-bottom: 3rem;
}

.project-gallery h2 {
  margin-bottom: 1.5rem;
}

.slideshow {
  /* outline removed — :focus-visible handles keyboard focus */
}

.slideshow-main {
  position: relative;
  aspect-ratio: 16/9;
  background: #0c1220;
  border-radius: var(--radius);
  overflow: hidden;
  user-select: none;
}

.slideshow-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.slideshow-main img.fade-out {
  opacity: 0;
}

.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 39, 68, 0.6);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 2;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  background: var(--accent);
}

.slideshow-prev { left: 0.75rem; }
.slideshow-next { right: 0.75rem; }

.slideshow-counter {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(26, 39, 68, 0.7);
  color: #fff;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  z-index: 2;
  pointer-events: none;
}

.slideshow-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.slideshow-thumbs::-webkit-scrollbar {
  height: 4px;
}

.slideshow-thumbs::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}

.slideshow-thumb {
  flex: 0 0 auto;
  width: 80px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  opacity: 0.5;
  transition: opacity var(--transition), border-color var(--transition);
}

.slideshow-thumb:hover {
  opacity: 0.8;
}

.slideshow-thumb.active {
  border-color: var(--accent);
  opacity: 1;
}

.slideshow-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gallery Placeholder */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 2rem;
  border: 2px dashed rgba(26, 39, 68, 0.15);
  border-radius: var(--radius);
  background: rgba(26, 39, 68, 0.02);
}

.gallery-placeholder svg {
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.7;
}

.gallery-placeholder p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.gallery-placeholder span {
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: 400px;
  line-height: 1.5;
}

/* Video */
.project-video {
  margin-bottom: 3rem;
}

.project-video h2 {
  margin-bottom: 1.5rem;
}

.video-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Other projects */
.other-projects {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.other-projects h2 {
  margin-bottom: 1.5rem;
}

/* ============ Lightbox / Modal ============ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

/* ============ Contact Page ============ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  align-items: flex-start;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 183, 49, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.contact-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.contact-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
  transition: color var(--transition);
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  min-height: 400px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Contact form */
.contact-form {
  margin-top: 3rem;
}

.contact-form h2 {
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-heading);
}

.form-group input,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============ Loading State ============ */

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Not found */
.not-found {
  text-align: center;
  padding: 5rem 0;
}

.not-found h2 {
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ============ Responsive ============ */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .project-info-grid {
    grid-template-columns: 1fr;
  }

  .slideshow-thumb {
    width: 70px;
    height: 48px;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .navbar-links,
  .navbar-phone {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-content p {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    text-align: center;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .slideshow-prev,
  .slideshow-next {
    width: 36px;
    height: 36px;
  }

  .slideshow-prev { left: 0.5rem; }
  .slideshow-next { right: 0.5rem; }

  .slideshow-thumb {
    width: 60px;
    height: 42px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 4rem 0 2rem;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .slideshow-main {
    aspect-ratio: 4/3;
  }

  .slideshow-prev,
  .slideshow-next {
    width: 32px;
    height: 32px;
  }

  .slideshow-thumb {
    width: 52px;
    height: 36px;
  }

  .info-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .info-value {
    text-align: left;
  }
}

/* ============ Reduced Motion ============ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
