/* Main stylesheet for KM Plastering site layout and visual theme */

/* Theme variables and root-level defaults */
:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8f7f3;
  color: #222;
}

/* Global box-sizing for reliable spacing */
* {
  box-sizing: border-box;
}

/* Base typography and page reset */
body {
  margin: 0;
  line-height: 1.6;
}

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

/* Centered content container with responsive width */
.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Header bar and site branding */
.site-header {
  background: #103f74;
  color: #fff;
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  max-width: 170px;
}

/* Navigation layout and header links */
.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a,
.cta-phone {
  color: #fff;
  text-decoration: none;
}

/* Highlighted call-to-action phone button */
.cta-phone {
  background: #ffb800;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Hero section with gradient background */
.hero {
  background: linear-gradient(180deg, #0f3b6f 0%, #173f77 100%);
  color: #fff;
  padding: 4rem 0;
}

.hero-content {
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.75rem);
  margin: 0 0 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin: 0 0 1.5rem;
  max-width: 30rem;
}

.btn {
  display: inline-block;
  background: #ffb800;
  color: #102b58;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

section {
  padding: 4rem 0;
}

.services h2,
.projects h2,
.contact h2 {
  text-align: center;
  margin-bottom: 1.75rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.article, .grid article {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(15, 46, 78, 0.08);
}

/* Card/grid panels used in services and project previews */
.grid article {
  padding: 1rem;
}

.grid article h3 {
  margin: 1rem 0 0.5rem;
}

.grid article p {
  margin: 0;
  color: #505050;
}

/* Responsive project gallery grid */
.projects .gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.projects img {
  border-radius: 16px;
  object-fit: cover;
  height: 240px;
  width: 100%;
}

.contact {
  text-align: center;
}

.contact p,
.contact address {
  margin: 0.5rem auto;
  max-width: 35rem;
  color: #434343;
}

.site-footer {
  background: #102b58;
  color: #fff;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: center;
  text-align: left;
}

.footer-grid p {
  margin: 0.5rem 0;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer a {
  color: #ffb800;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer p {
  margin: 0;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 47, 92, 0.95);
  color: #fff;
  padding: 0.95rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  z-index: 999;
}

.carousel-wrapper {
  position: relative;
  height: 800px;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 46, 78, 0.08);
  height: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: block;
  width: 100%;
  height: 800px;
  object-fit: fill;
  border-radius: 16px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(16, 47, 92, 0.7);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background: rgba(16, 47, 92, 0.95);
}

.carousel-btn.prev {
  left: 15px;
}

.carousel-btn.next {
  right: 15px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dot.active {
  background: #103f74;
}

.carousel-dot:hover {
  background: #888;
}

@media (max-width: 720px) {
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 3rem 0;
  }
}
