/* =========================================================
   GLOBAL STYLES
   ========================================================= */
body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: #222;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    gap: 1rem;
}

/* Logo */
.logo img {
    display: block;
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 180px;
    transition: all 0.3s ease;
}

/* Responsive logo sizes */
@media (max-width: 992px) {
    .logo img { max-height: 50px; max-width: 150px; }
}
@media (max-width: 768px) {
    .logo img { max-height: 45px; max-width: 130px; }
}
@media (max-width: 480px) {
    .logo img { max-height: 40px; max-width: 110px; }
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
}
.main-nav a:hover {
    color: #007bff;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 85vh;
    background: url('/img/header.avif') center center / cover no-repeat;
    color: white;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 1rem 2rem;
}
.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}
.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #f2f2f2;
}

/* CTA Button */
.btn-primary {
    display: inline-block;
    background-color: #e63946;
    color: #fff;
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s;
}
.btn-primary:hover {
    background-color: #d62828;
    transform: translateY(-2px);
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero { height: 70vh; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1.1rem; }
}

/* =========================================================
   SECTIONS (general)
   ========================================================= */
.intro, .features, .gallery {
    margin: 3rem auto;
    text-align: center;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}
.feature h3 {
    color: #007bff;
}

/* Dynamic content blocks */
.dynamic-section {
    background: #fff;
    padding: 4rem 1rem;
    border-top: 1px solid #eee;
}
.dynamic-section:nth-child(even) {
    background: #f9fafb;
}
.dynamic-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.section-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

/* =========================================================
   GALLERY SECTION
   ========================================================= */
.gallery-section {
    padding: 60px 0;
    text-align: center;
}
.gallery-section h2 {
    margin-bottom: 30px;
    font-size: 2rem;
}

/* Carousel container */
.gallery-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 3rem auto;
    padding: 1rem;
}
.gallery-carousel .item {
    flex: 0 1 300px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-carousel .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.gallery-carousel img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-carousel .item {
        flex: 0 1 90%;
    }
}

/* =========================================================
   CTA (call to action)
   ========================================================= */
.cta {
    background: #f04623;
    text-align: center;
    padding: 3rem 2rem;
}
.btn-secondary {
    background: #111;
    color: #fff;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: #111;
    color: #aaa;
    text-align: center;
    padding: 2rem 1rem;
}
.site-footer a {
    color: #ffcc00;
    text-decoration: none;
}
.header-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 34px;
}
ul > li {
    list-style-type: none;
}