/* FILE: /public/styles.css */

/* Reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: #f4efe9;
  color: #221b33;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Layout */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-block {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-subtitle {
  font-size: 0.85rem;
  opacity: 0.8;
}

.top-nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.top-nav a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.top-nav a.active {
  background-color: #1b4b8f;
  color: #fff;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.hero-highlights li {
  margin: 0.15rem 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn.primary {
  background-color: #1b4b8f;
  color: #fff;
}

.btn.primary:hover {
  opacity: 0.92;
}

.btn.outline {
  border-color: #1b4b8f;
  color: #1b4b8f;
  background-color: transparent;
}

.btn.outline:hover {
  background-color: rgba(27, 75, 143, 0.05);
}

/* Hero slider */
.hero-image {
  position: relative;
}

.hero-slider {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-btn.prev {
  left: 8px;
}

.hero-slider-btn.next {
  right: 8px;
}

.hero-slider-btn:hover {
  background: rgba(0, 0, 0, 0.55);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.hero-dot.active {
  background-color: #1b4b8f;
}

/* Sections */
.section {
  margin-top: 2.5rem;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.section p {
  line-height: 1.7;
  max-width: 60rem;
}

/* Two-column section */
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.feature-list li {
  margin-bottom: 0.35rem;
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.card {
  background-color: #fff;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.card h3 {
  margin-top: 0;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.gallery-item {
  border-radius: 0.9rem;
  overflow: hidden;
  background-color: #ddd;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

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

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(255, 255, 255, 0.25);
  color: #000;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

/* Simple content layout */
.content-narrow {
  max-width: 720px;
}

/* Enquiry form */
.enquiry-form {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.enquiry-form label {
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.enquiry-form input,
.enquiry-form textarea {
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font: inherit;
}

.enquiry-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #fff;
}

.site-footer .small {
  margin-top: 0.15rem;
  font-size: 0.8rem;
}

/* Responsive tweaks */
@media (max-width: 800px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .hero,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .hero-image {
    order: -1;
  }
}
