css:root {
    --desert-sand: #EDC9AF; 
    --desert-light: #FAD5A5;
    --desert-dark: #8B5A2B;
    --text-dark: #332924;
    --bg-light: #FAF3E8;
    --font-family: 'Cabin', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: 'Cabin', sans-serif;
    color: #179A64;
    line-height: 1.6;
    background-color: #FAD5A5;
    font-size: 14px; /* Mobile base font size */
    overflow-x: hidden; /* Prevents ugly horizontal scrolling on mobile */
    width: 100%;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
}

.sidebar {
  display: none; /* Hide sidebar on mobile */
}

/* ==========================================
   NAVBAR & NAVIGATION 
   ========================================== */
/* Navbar Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: #FAD5A5; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; 
    /* REMOVED height: 95px; entirely so the navbar expands naturally to fit your logo/links */
}

/* This creates a safe zone above your slider content dynamically */
.slider-container {
  margin-top: 0; /* Clear the old margin out */
  padding-top: 140px; /* INCREASED: Pushes content down safely. If it's too much space, change to 120px */
  box-sizing: border-box;
}

/*.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background-color: #FAD5A5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 95px; 
    z-index: 1000;
    box-sizing: border-box;
}
*/
/* This pushes the slider down so it starts exactly below the navbar on page load */
/*.slider-container {
  margin-top: 95px; 
}
*/
.navbar .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--desert-dark);
}

/* ==========================================
   SLIDER SHOW ELEMENT
   ========================================== */
.slider-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #FAD5A5;
    margin-bottom: 100px;
}

.slider {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.slide-content {
    position: relative;
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 10;
}

.slide-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--desert-light);
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.slide-content p {
    font-size: 1.2rem;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(237, 201, 175, 0.4);
    color: var(--text-dark);
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 20;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-family: var(--font-family);
}

.slider-btn:hover {
    background: var(--desert-sand);
}

.prev { left: 2rem; }
.next { right: 2rem; }

/* Interactive Dot Controls */
.dot-container {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 30;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.dot.active {
    background: var(--desert-light);
    transform: scale(1.1);
}

/* ==========================================
   MAIN PAGE CONTENT
   ========================================== */
.content-section {
    padding: 0 20px; /* Added side breathing room for mobile screens */
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 0;
    padding-bottom: 5px;
}

.content-section p {
  margin-bottom: 0;
}

.content-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 2rem;
}

.content-section-thanx {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  
  /* Shrinks the container tightly around the text */
  min-height: auto !important; 
  padding: 40px 20px; /* Controls the exact space above/below and on sides */
}

.content-section-thanx > * {
  margin: 0 0 15px 0; 
}

.content-section-thanx > *:last-child {
  margin-bottom: 0; 
}

/* Adjusts the specific gap between your text elements */
.content-section-thanx > * {
  margin: 0 0 15px 0; /* Adds a small uniform bottom margin */
}

.content-section-thanx > *:last-child {
  margin-bottom: 0; /* Removes margin from the final button */
}

/* Services Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.service-card {
    background: var(--bg-light);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--desert-sand);
}

.service-card h3 {
    color: var(--desert-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Portfolio Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Contact Form Layout */

.contact-form textarea {
    background-color: #ffffff !important;
    color: ##179A64 !important;
    margin-bottom: 15px; /* Adds space below the text areas */
}

/* Also applying to inputs just in case they fail too */
.contact-form input[type="text"],
.contact-form input[type="email"] {
    background-color: #ffffff !important;
    color: #179A64 !important;
}

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

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--desert-sand);
    background-color: var(--bg-light);
    border-radius: 4px;
    font-size: 1rem;
    color: #179A64;
    font-family: 'Cabin', system-ui, -apple-system, sans-serif;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: 2px solid var(--desert-dark);
}

input[type="image"].form-btn,
.form-btn img {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    cursor: pointer;
    width: 100px !important;
    height: 100px !important;
    align-self: center;
}

.form-btn {
    background: var(--desert-dark);
    color: white;
    padding: 0.9rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Cabin', system-ui, -apple-system, sans-serif;
    text-align: center
}

.form-btn:hover {
    transform: translateY(-4px);
}

/* ==========================================
   FOOTER SECTION 
   ========================================== */
.footer {
    background: var(--text-dark);
    color: var(--desert-light);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    margin-top: 5px;   
    padding-top: 0;    
}

.site-footer {
  text-align: center;
  padding: 40px 20px;
}

.footer-primary p,
.footer-social,
.footer-copyright {
  margin-bottom: 25px; 
}

.footer-primary {
  display: flex;
  flex-direction: column; /* Stacks them on small mobile screens */
  align-items: center;
  gap: 20px;              
  margin-bottom: 30px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;        
  justify-content: center;
  gap: 15px;              
  margin-bottom: 30px;
}

.footer-primary a,
.footer-social a {
  display: inline-flex;   /* Fixes alignment quirks with image wrapper boundaries */
  transition: transform 0.2s ease-in-out;
}

/* Lift Effect on Hover */
.footer-primary a:hover,
.footer-social a:hover {
  transform: translateY(-4px);
}

.footer-primary a:hover,
.footer-social a:hover {
  transform: translateY(-4px);
}

/* ==========================================
   RESPONSIVE MEDIA QUERIES (BREAKPOINTS)
   ========================================== */

/* Tablet screens & up (600px and up) */
@media (min-width: 600px) {
  body {
    font-size: 16px;
  }
  .footer-primary {
    flex-direction: row;  /* Changes stacking to a horizontal row on larger displays */
    justify-content: center;
    gap: 40px;            /* Gives larger images more breathing room side-by-side */
  }
}

/* Desktop screens (1024px and up) */
@media (min-width: 1024px) {
  .sidebar {
    display: block; /* Show sidebar on desktop */
  }
}

/* Smartphone Portrait / Vertical Mobile (Under 768px) */
@media (max-width: 768px) {
    /* Navbar structural adjustments */
    .navbar { 
        flex-direction: column; 
        height: auto; /* Drops fixed height so links fit stacked */
        padding: 1rem 5%;
        gap: 0.5rem; 
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        padding-left: 0;
    }
    
    .nav-links li { 
        margin: 0 0.6rem; /* Changes left margin to even side spaces */
    }

    /* Adjust content top placement since vertical navbar is taller */
    .slider-container { 
        margin-top: 115px; 
        height: 320px; /* Keeps image slider proportional on tiny screens */
        margin-bottom: 40px; /* Shrinks separation space */
    }
    
    /* Text resizing to fit a small phone screen */
    .slide-content h1 { 
        font-size: 1.6rem; 
    }
    
    .slide-content p {
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    /* Shifting arrows to prevent edges overflowing */
    .prev { left: 0.5rem; }
    .next { right: 0.5rem; }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}