:root {
  --goodwood: #0e3b2e;
  --goodwood-light: #145c43;
  --goodwood-dark: #08271f;
  --white: #ffffff;
  --section-grey: #f1f1f1;
  --text-muted: #d6e5df;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--goodwood);
  color: var(--white);
  line-height: 1.5;
}

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

/* Layout container (mobile-first) */
.container {
  width: min(1100px, 100% - 32px);
  margin-inline: auto;
}

/* =========================
   Top bar (mobile friendly)
   ========================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to right, var(--goodwood-dark), var(--goodwood-light));
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

/* If you use a text brand anywhere */
.brand-text {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 38px;
  line-height: 1;
}

/* Default (desktop/tablet) logo size */
.logo-img {
  width: 420px;       /* big desktop presence */
  height: auto;
  object-fit: contain;
}

/* =========================
   Buttons (tap-friendly)
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 22px;
  transition: transform 0.18s ease, filter 0.18s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.28);
  user-select: none;
  min-height: 44px; /* good mobile tap target */
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.btn-primary {
  background: linear-gradient(to bottom, #3d7f66, #2c6a53);
  color: var(--white);
}

.btn-secondary {
  background: linear-gradient(to bottom, #3d7f66, #2c6a53);
  color: var(--white);
}

/* =========================
   Hero (responsive)
   ========================= */
.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 59, 46, 0.68);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 56px 20px;
}

.hero-content h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  margin: 0 0 18px;
  line-height: 1.08;
}

.hero-content p {
  max-width: 820px;
  margin: 0 0 28px;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-muted);
}

/* =========================
   Services
   ========================= */
.services {
  background: var(--section-grey);
  color: #222;
  padding: 78px 0;
}

.services h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin: 0 0 46px;
  color: var(--goodwood);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  padding: 34px 26px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  transition: transform 0.22s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-icon {
  font-size: 34px;
  margin-bottom: 10px;
}

.service-card h3 {
  margin: 10px 0 10px;
  font-size: 22px;
  color: var(--goodwood);
}

.service-card p {
  margin: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.55;
}

/* =========================
   Carousel (responsive)
   ========================= */
.carousel-section {
  background: #0b2f25;
  padding: 60px 0 50px;
}

.carousel-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.125rem);
  margin: 0 0 18px;
  color: #ffffff;
  text-align: center;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  background: rgba(0,0,0,0.12);
}

.carousel-track {
  display: flex;
  gap: 16px;
  padding: 16px;
  will-change: transform;
}

.carousel-track img {
  width: 340px;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  flex: 0 0 auto;
}

/* =========================
   Footer
   ========================= */
.footer {
  background: var(--goodwood-dark);
  text-align: center;
  padding: 22px 14px;
  font-size: 14px;
}

/* =========================
   Responsive tweaks
   ========================= */
@media (min-width: 720px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
  }
}

@media (max-width: 820px) {
  .brand-text {
    font-size: 28px;
  }

  .services {
    padding: 60px 0;
  }
}

/* Small phones: stack header + full-width button */
@media (max-width: 420px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .btn {
    width: 100%;
  }
}

/* Mobile logo + carousel sizing */
@media (max-width: 768px) {
  .logo-img {
    width: 200px;     /* slightly bigger on mobile */
    height: auto;
  }

  .carousel-track img {
    width: 260px;
    height: 170px;
  }
}

/* ===== Desktop-only header refinements ===== */
@media (min-width: 769px) {
  /* Make header content span wider so logo/button sit at edges on large screens */
  .topbar .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 24px;
  }

  /* Slimmer bar while keeping a large logo */
  .topbar-inner {
    padding: 8px 0;
    align-items: center;
  }

  .topbar .btn {
    padding: 10px 18px;
  }
}
/* ===== Slimmer Desktop Header ===== */
@media (min-width: 769px) {

  .topbar-inner {
    padding: 2px 0;   /* slimmer than 8px */
  }

  .logo-img {
    width: 260px;     /* slightly smaller than 420px */
    height: auto;
  }

  .topbar .btn {
    padding: 8px 16px;  /* slightly tighter button */
  }
}

/* ===== Services layout fixes ===== */

.service-card ul{
  text-align: left;
  padding-left: 22px;
  margin-top: 14px;
  list-style-position: outside;
}

.service-card ul{
  text-align: left;
  padding-left: 24px;
  margin: 16px 0 0;
  list-style-position: outside;
  display: block;
}

.service-card ul li{
  text-align: left;
  margin-bottom: 6px;
  line-height: 1.5;
}
.service-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:34px;
  align-items:stretch;
}

.service-card{
  display:flex;
  flex-direction:column;
  height:100%;
}

.service-card p{
  margin-bottom:12px;
}

.service-card ul{
  flex-grow:1;
}

/* Center only the section heading */
.services h2{
  text-align: center;
}

/* Keep icons, titles, and intro text centered inside each card */
.service-card .service-icon,
.service-card h3,
.service-card p{
  text-align: center;
}

/* But keep the bullet list left-aligned */
.service-card ul{
  text-align: left;
  margin: 14px 0 0;
  padding-left: 22px;
  list-style-position: outside;
}

.service-card li{
  text-align: left;
  margin-bottom: 6px;
}

/* Mobile layout for services */
@media (max-width: 768px){

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

}
.about {
  padding: 64px 0;
}

.about h2 {
  margin: 0 0 24px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.about-card {
  border-radius: 14px;
  padding: 28px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.about-card p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.about-card p:last-child {
  margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
  .about-card {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
  }
}

@media (max-width: 480px) {
  .about {
    padding: 48px 0;
  }

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