/* Peninsula Custom Tailor — Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --bg-dark: #310d35;
  --bg-footer: #35003a;
  --bg-sidebar: #5e0063;
  --sidebar-link: #eeee22;
  --accent: #993366;
  --white: #ffffff;
  --text-light: #dddddd;
  --text-muted: #9d9d9d;
}

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

body {
  background: var(--bg-dark);
  color: #50545C;
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Edwardian Script ITC', 'Playfair Display', serif;
}

/* Header */
.site-header {
  background: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-title {
  font-size: 36px;
  color: var(--white);
  text-decoration: none;
  font-family: 'Edwardian Script ITC', 'Playfair Display', serif;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
}

/* Navigation */
.sidebar {
  background: var(--bg-sidebar);
  width: 220px;
  min-height: calc(100vh - 70px);
  padding: 30px 0;
  position: fixed;
  top: 70px;
  left: 0;
  z-index: 50;
  flex-shrink: 0;
}

.sidebar ul {
  list-style: none;
}

.sidebar li a {
  display: block;
  color: var(--sidebar-link);
  text-decoration: none;
  padding: 12px 25px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s;
}

.sidebar li a:hover,
.sidebar li a.active {
  background: rgba(255,255,255,0.15);
}

/* Main layout */
.content-wrapper {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 70px);
}

.content-area {
  flex: 1;
  padding: 30px 30px 30px 250px;
  color: var(--white);
}

/* Page heading */
.entry-title {
  font-size: 32px;
  color: var(--white);
  padding: 16px 24px;
  margin-bottom: 30px;
}

.entry-title a { color: #000; text-decoration: none; }

/* Hero image */
.hero-image {
  text-align: center;
  margin-bottom: 30px;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 960px) {
   .hero-image img {
    max-height: 60vh;
    object-fit: contain;
   }
}

@media (min-width: 961px) {
   .hero-image img {
    max-height: 70vh;
    object-fit: contain;
   }
}

/* Gallery */
.gallery-grid {
  display: grid;
  gap: 12px;
  justify-content: center;
}

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

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

.gallery-item {
  max-width: 300px;
  margin: 0 auto;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.gallery-item img:hover {
  opacity: 0.85;
}

/* About page grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-card {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s, background 0.2s;
}

.about-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

.about-card img {
  width: 100%;
  max-width: 370px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.about-card-inner {
  padding: 16px 20px;
}

.about-card-inner h2, .about-card-inner h2 a {
  font-size: 24px;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

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

/* Contact page */
.contact-info {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 30px;
}

.contact-info p {
  margin-bottom: 12px;
}

.contact-info a { color: var(--white); text-decoration: underline; }

.contact-info .highlight {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

.contact-form {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 30px;
  color: var(--white);
}

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

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sidebar-link);
  background: rgba(255,255,255,0.12);
}

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

.btn-submit {
  background: var(--white);
  color: #310d35;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  transition: box-shadow 0.2s;
}

.btn-submit:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Footer */
.site-footer {
  background: var(--bg-footer);
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 960px) {
  .mobile-toggle {
    display: block;
  }

  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    min-height: 100vh;
    z-index: 200;
    padding-top: 80px;
  }

  .sidebar.open {
    display: block;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 190;
  }

  .sidebar-overlay.open {
    display: block;
  }

  .content-wrapper {
    flex-direction: column;
  }

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

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

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

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

  .site-title {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  .gallery-grid.cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .content-area {
    padding: 20px 16px;
  }

   .contact-form {
    padding: 20px;
   }
}

/* Sidebar slide-in animation */
@keyframes sidebarSlideIn {
   from {
    transform: translateX(-100%);
    opacity: 0;
   }
   to {
    transform: translateX(0);
    opacity: 1;
   }
}

@keyframes menuItemSlideIn {
   from {
    transform: translateX(-40px);
    opacity: 0;
   }
   to {
    transform: translateX(0);
    opacity: 1;
   }
}

/* Desktop sidebar slide-in */
@media (min-width: 961px) {
    .sidebar {
    animation: sidebarSlideIn 0.5s ease-out forwards;
    transform: translateX(-100%);
   }

   .sidebar ul li {
    animation: menuItemSlideIn 0.4s ease-out forwards;
    opacity: 0;
   }

   .sidebar ul li:nth-child(1) { animation-delay: 0.2s; }
   .sidebar ul li:nth-child(2) { animation-delay: 0.3s; }
   .sidebar ul li:nth-child(3) { animation-delay: 0.4s; }
   .sidebar ul li:nth-child(4) { animation-delay: 0.5s; }
   .sidebar ul li:nth-child(5) { animation-delay: 0.6s; }
}

/* Mobile sidebar slide-in */
@media (max-width: 960px) {
   .sidebar.open {
    animation: sidebarSlideIn 0.35s ease-out forwards;
   }

   .sidebar.open ul li {
    animation: menuItemSlideIn 0.3s ease-out forwards;
    opacity: 0;
   }

   .sidebar.open ul li:nth-child(1) { animation-delay: 0.05s; }
   .sidebar.open ul li:nth-child(2) { animation-delay: 0.1s; }
   .sidebar.open ul li:nth-child(3) { animation-delay: 0.15s; }
   .sidebar.open ul li:nth-child(4) { animation-delay: 0.2s; }
   .sidebar.open ul li:nth-child(5) { animation-delay: 0.25s; }
}
