/* ================================================
   Bursa Rampa – Responsive Stylesheet
   ================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #e63946;
  --dark: #1a1a2e;
  --gray-bg: #f4f4f4;
  --text: #444;
  --light: #fff;
}

html { scroll-behavior: smooth; }
body { font-family: Arial, sans-serif; color: var(--text); font-size: 15px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ── Top Bar ── */
.top-bar {
  background: var(--dark);
  color: #fff;
  padding: 8px 5%;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.top-bar a { color: #fff; text-decoration: none; }

/* ── Header / Nav ── */
header {
  background: var(--light);
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .logo img { height: 52px; width: auto; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 14px;
  transition: color .2s;
  white-space: nowrap;
}
nav ul li a:hover { color: var(--red); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--red) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(50px, 10vw, 90px) 5%;
}
.hero h1 { font-size: clamp(26px, 5vw, 44px); margin-bottom: 12px; }
.hero p  { font-size: clamp(14px, 2vw, 18px); opacity: .9; }
.hero .btn {
  display: inline-block;
  margin-top: 24px;
  background: #fff;
  color: var(--red);
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.hero .btn:hover { background: #f0f0f0; }

/* ── Page Title / Breadcrumb ── */
.page-title {
  background: var(--gray-bg);
  padding: 18px 5%;
  border-bottom: 1px solid #e0e0e0;
}
.page-title h1 { font-size: clamp(20px, 3vw, 28px); color: var(--dark); }
.breadcrumb { font-size: 13px; color: #888; margin-top: 4px; }
.breadcrumb a { color: var(--red); text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 5%; }

.main-content {
  display: flex;
  gap: 36px;
  padding: 48px 5%;
  max-width: 1140px;
  margin: 0 auto;
}
.content { flex: 1; min-width: 0; }
.sidebar { width: 270px; flex-shrink: 0; }

/* ── Sections ── */
section { padding: clamp(40px, 6vw, 70px) 5%; }
section h2 {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--dark);
  margin-bottom: 20px;
  border-left: 4px solid var(--red);
  padding-left: 12px;
}
section p { margin-bottom: 14px; color: #555; }

/* ── About (homepage) ── */
.about-section { display: flex; gap: 36px; align-items: flex-start; }
.about-section img { width: 44%; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.15); flex-shrink: 0; }
.about-section .about-text { flex: 1; }

/* ── Services / Gallery ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.service-img { width: 100%; border-radius: 6px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.gallery-grid img { width: 100%; border-radius: 4px; transition: transform .2s; cursor: pointer; aspect-ratio: 1; object-fit: cover; }
.gallery-grid img:hover { transform: scale(1.06); }

/* ── Referanslar ── */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.ref-grid img { width: 100%; object-fit: contain; padding: 10px; border: 1px solid #eee; border-radius: 4px; background: #fff; aspect-ratio: 2/1; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--dark); font-size: 14px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--red); }
.form-group textarea { height: 130px; resize: vertical; }
.btn-submit {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 38px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
}
.btn-submit:hover { background: #c0303c; }

/* ── Contact Cards ── */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 38px;
}
.contact-card { background: #f9f9f9; border: 1px solid #eee; border-radius: 6px; padding: 20px; }
.contact-card h3 { color: var(--red); margin-bottom: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.contact-card p, .contact-card a { color: #444; text-decoration: none; font-size: 14px; line-height: 1.5; }

/* ── Sidebar ── */
.sidebar-box { background: #f9f9f9; border: 1px solid #eee; border-radius: 6px; padding: 20px; margin-bottom: 22px; }
.sidebar-box h3 { font-size: 15px; color: var(--dark); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--red); }
.sidebar-box ul { list-style: none; }
.sidebar-box ul li { padding: 6px 0; border-bottom: 1px solid #eee; }
.sidebar-box ul li a { text-decoration: none; color: #444; font-size: 14px; transition: color .2s; }
.sidebar-box ul li a:hover { color: var(--red); }
.sidebar-box table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sidebar-box td { padding: 5px 4px; color: #444; vertical-align: top; }

/* ── Footer ── */
footer { background: var(--dark); color: #ccc; padding: clamp(36px,6vw,56px) 5% 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  max-width: 1140px;
  margin: 0 auto 28px;
}
footer h3 { color: #fff; margin-bottom: 12px; font-size: 15px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 7px; }
footer ul li a { color: #ccc; text-decoration: none; font-size: 13px; transition: color .2s; }
footer ul li a:hover { color: var(--red); }
footer p { font-size: 13px; color: #999; line-height: 1.6; }
footer table { font-size: 13px; border-collapse: collapse; }
footer td { padding: 4px 5px; color: #bbb; vertical-align: top; }
.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 16px;
  font-size: 12px;
  color: #777;
  max-width: 1140px;
  margin: 0 auto;
}
.footer-bottom a { color: var(--red); text-decoration: none; }

/* ════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════ */

/* Tablet – 1024px */
@media (max-width: 1024px) {
  .ref-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

/* Tablet – 900px */
@media (max-width: 900px) {
  .about-section { flex-direction: column; }
  .about-section img { width: 100%; max-height: 320px; object-fit: cover; }
  .main-content { flex-direction: column; }
  .sidebar { width: 100%; }
}

/* Mobile – 768px */
@media (max-width: 768px) {
  /* Hamburger menu */
  .nav-toggle { display: flex; }
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--light);
    box-shadow: 0 6px 16px rgba(0,0,0,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  nav.open { max-height: 400px; }
  nav ul { flex-direction: column; gap: 0; padding: 8px 0; }
  nav ul li a { display: block; padding: 12px 5%; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
  nav ul li:last-child a { border-bottom: none; }

  .top-bar { justify-content: center; font-size: 12px; gap: 10px; }
  .main-content { padding: 28px 4%; gap: 24px; }
  section { padding: 36px 4%; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-info { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Small mobile – 480px */
@media (max-width: 480px) {
  .hero { padding: 44px 4%; }
  .hero .btn { padding: 10px 24px; font-size: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info { grid-template-columns: 1fr; }
  .page-title { padding: 14px 4%; }
  .btn-submit { width: 100%; }
  footer td { font-size: 12px; }
}

/* Very small – 360px */
@media (max-width: 360px) {
  header .logo img { height: 40px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
