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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #fff;
  color: #222;
  font-size: 15px;
}

/* === Layout === */
.layout {
  display: flex;
  min-height: 100vh;
}

/* === Sidebar === */
.sidebar {
  width: 240px;
  min-width: 240px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  background: #fff;
  z-index: 100;
}

.brand-name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sidebar-nav a {
  display: block;
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
  padding: 0.65rem 0;
  border-bottom: 1px solid #e8e8e8;
  transition: color 0.2s;
}

.sidebar-nav a:first-child {
  border-top: 1px solid #e8e8e8;
}

.sidebar-nav a:hover {
  color: #111;
}

.sidebar-nav a.active {
  color: #111;
  font-weight: 600;
}

.sidebar-footer {
  margin-top: auto;
}

.copyright {
  font-size: 0.7rem;
  color: #bbb;
  line-height: 1.7;
}

/* === Main Content === */
.main-content {
  margin-left: 240px;
  flex: 1;
  min-height: 100vh;
}

/* === Hero Carousel === */
.hero-carousel {
  height: 100vh;
}

.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
  opacity: 0.6;
}

/* === Page Content (inner pages) === */
.page-content {
  padding: 4rem 3.5rem;
}

/* === About Page === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  max-width: 900px;
}

.about-text h1 {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: #111;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #555;
  margin-bottom: 1.1rem;
}

.about-text a {
  color: #111;
  text-underline-offset: 3px;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* === Work Page === */
.work-page {
  padding-top: 3rem;
}

.category-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e8e8e8;
}

.cat-tab {
  background: none;
  border: none;
  padding: 0.6rem 1.5rem 0.6rem 0;
  font-size: 0.85rem;
  font-family: inherit;
  color: #999;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.03em;
}

.cat-tab.active {
  color: #111;
  border-bottom-color: #111;
}

.cat-tab:hover {
  color: #444;
}

.category-grid {
  display: none;
  columns: 3;
  column-gap: 0.75rem;
}

.category-grid.active {
  display: block;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
}

.gallery-item img {
  width: 100%;
  display: block;
}

/* === Contact Page === */
.contact-page h1 {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: #111;
}

.contact-intro {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 480px;
}

.sent-message {
  background: #f5f5f5;
  color: #444;
  font-size: 0.875rem;
  padding: 0.9rem 1.2rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.contact-form {
  max-width: 480px;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 0.45rem;
  font-family: Arial, sans-serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-family: inherit;
  color: #222;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #ccc;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #333;
}

.contact-form button {
  background: #111;
  color: #fff;
  border: none;
  padding: 0.8rem 2.25rem;
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form button:hover {
  background: #444;
}

/* === Mobile Nav (hidden on desktop) === */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 56px;
  background: #fff;
  z-index: 200;
  padding: 0 1.5rem;
  border-bottom: 1px solid #e8e8e8;
}

.mobile-nav .brand-name {
  margin-bottom: 0;
  line-height: 1;
  font-size: 0.85rem;
}

.mobile-nav .navbar-toggler {
  border: none;
  padding: 0;
}

.mobile-nav .navbar-toggler:focus {
  box-shadow: none;
}

.mobile-menu-links {
  padding: 0.25rem 0 0.5rem;
  border-top: 1px solid #f0f0f0;
  width: 100%;
}

.mobile-menu-links a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s;
}

.mobile-menu-links a:last-child {
  border-bottom: none;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: #111;
}

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

/* === Responsive breakpoints === */
@media (max-width: 767px) {
  .mobile-nav {
    display: flex;
  }

  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding-top: 56px;
  }

  .hero-carousel {
    height: calc(100vh - 56px);
  }

  .page-content {
    padding: 2.5rem 1.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .category-grid {
    columns: 2;
    column-gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .category-grid {
    columns: 1;
  }
}
