/* Basic Styles & Global Resets */
:root {
    --primary-color: #CB494E; 
    --secondary-color: #f4f4f4;
    --text-color: #333;
    --white: #fff;
    --font-family: 'Roboto', sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: var(--white);
    border-bottom: 1px solid #e0e0e0;
}

img.logo {
    width: 100px;
    float: left;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/1.png') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 400;
}

/* Testimonials Section */
.testimonials-section {
    padding: 4rem 5%;
    text-align: center;
    background: var(--secondary-color);
}

.testimonials-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.testimonial-container {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.testimonial {
    flex: 1;
    max-width: 400px;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial span {
    font-weight: 700;
    color: var(--primary-color);
}

/* Contact Form Section */
.contact-section {
    padding: 4rem 5%;
    text-align: center;
}

.contact-section div {
    margin-bottom: 2rem;
}

.contact-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form label {
    align-self: flex-start;
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    align-self: flex-end;
    padding: 12px 30px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: #003366;
}

/* Footer */
.footer {
    padding: 20px;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .testimonial-container {
        flex-direction: column;
        align-items: center;
    }

    .testimonial {
        width: 100%;
    }
}

/* Viewport */
.carousel {
  position: relative;
  overflow: hidden;
  background: #f4f4f4;
}

/* The moving rail (JS will create this wrapper) */
.carousel__track {
  display: flex;
  gap: var(--gap, 16px);
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: carousel-scroll linear infinite;
  animation-duration: var(--duration, 30s);
}

/* Pause on hover */
.carousel:hover .carousel__track {
  animation-play-state: paused;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .carousel__track { animation: none; }
}

/* Slides sit side-by-side; size as you like */
.carousel .carousel-slide {
  flex: 0 0 auto;
  border-radius: 16px;
  object-fit: cover;
  /* Optional sizing examples: pick one (or your own) */
   width: clamp(260px, 45vw, 520px); 
  height: 260px; width: auto;
}

/* The animation moves exactly one full set width left, then loops */
@keyframes carousel-scroll {
  to { transform: translate3d(calc(-1 * var(--distance, 0px)), 0, 0); }
}
