:root{
    --primary:#1E7D4D;
    --secondary:#F5F8F6;
    --dark:#222;
    --light:#fff;
    --shadow:0 10px 30px rgba(0,0,0,.08);
}

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    color:var(--dark);
    line-height:1.7;
    background:white;
}

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

header{
    position:fixed;
    top:0;
    width:100%;
    background:white;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
    z-index:1000;
}

nav{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 0;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    text-decoration:none;
    color:var(--primary);
    font-weight:bold;
    font-size:24px;
}

.logo-icon{
    width:32px;
    height:32px;
    object-fit:contain;
}

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

.nav-links a{
    text-decoration:none;
    color:var(--dark);
    font-weight:500;
}

.hero{
    min-height:100vh;
    display:flex;
    align-items:center;
    text-align:center;
    color:white;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

/* Homepage */
.hero-home{
    background:
    linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.55)
    ),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80");
}

/* Cleaning page */
.hero-cleaning{
    background:
    linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.55)
    ),
    url("https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=1600&q=80");
}

/* Swahili dishes */
.hero-swahili{
    background:
    linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.55)
    ),
    url("../swahili.png");
}


.hero-content{
    max-width:850px;
    margin:auto;
}

.hero h1{
    font-size:4rem;
    line-height:1.2;
    margin-bottom:20px;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    background:var(--primary);
    color:white;
    text-decoration:none;
    padding:15px 30px;
    border-radius:50px;
    transition:.3s;
    border:none;
    cursor:pointer;
}

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

section{
    padding:100px 0;
}

.section-title{
    text-align:center;
    margin-bottom:60px;
}

.section-title h2{
    font-size:2.5rem;
    color:var(--primary);
    margin-bottom:10px;
}

.services-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
}

.card{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:var(--shadow);
    transition:.3s;
}

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

.card h3{
    color:var(--primary);
    margin-bottom:15px;
}

.card-link{
    text-decoration:none;
    color:inherit;
    display:block;
}

.about{
    background:var(--secondary);
}

.about-content{
    max-width:900px;
    margin:auto;
    text-align:center;
}

.contact-section{
    background:var(--secondary);
}

.contact-wrapper{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

.contact-info,
.contact-form,
.quote-info{
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:var(--shadow);
}

.contact-form input,
.contact-form select,
.contact-form textarea{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:1rem;
}

.contact-form textarea{
    resize:vertical;
}

.contact-form button{
    width:100%;
}

footer{
    background:white;
    text-align:center;
    padding:40px;
}

.footer-info{
    margin-top:20px;
}

footer p{
    opacity:.85;
}

ul{
    margin-left:20px;
}

/* Cleaning page estimate result */

#result{
    font-size:1.5rem;
    color:var(--primary);
    font-weight:700;
    margin-top:15px;
}

@media(max-width:768px){

    .hero h1{
        font-size:2.5rem;
    }

    .nav-links{
        display:none;
    }

    .contact-wrapper{
        grid-template-columns:1fr;
    }

}

/* Privacy / Terms documents */

.policy-content{
    line-height:1.9;
}

.policy-content h3{
    color:var(--primary);
    margin-top:40px;
    margin-bottom:15px;
}

.policy-content p,
.policy-content li{
    margin-bottom:15px;
}

.policy-content ul{
    margin-left:25px;
}

/* Hero image specifically for policy pages */

.policy-hero{
    background:
    linear-gradient(
        rgba(0,0,0,.55),
        rgba(0,0,0,.55)
    ),
    url("images/privacy-hero.jpg");

    background-size:cover;
    background-position:center;
}


/* Terms and Privacy checkbox */

.terms-checkbox {
    margin: 5px 0 30px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-line input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--primary);
    transform: scale(1.1);
}

.checkbox-line span {
    color: var(--dark);
}

.checkbox-line a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-line a:hover {
    text-decoration: underline;
}

/* Styling for submit form message */
.form-message {
    display: none;
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    display: block;
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Styles the small "Designed by" text */
.designer-credit {
  font-size: 0.75rem; /* Makes the text small */
  color: #777777;     /* Soft grey color so it doesn't distract */
  margin-top: 5px;    /* Adds a tiny gap below the copyright */
}

/* Styles the link inside the credit */
.designer-credit a {
  color: #555555;
  text-decoration: none; /* Removes the underline */
  font-weight: bold;
}

/* Subtle hover effect for the link */
.designer-credit a:hover {
  text-decoration: underline;
  color: #000000;
}