/* --- 1. Design System & Variables --- */
:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --color-primary: #2c3e50;      /* Charcoal */
    --color-secondary: #004d40;     /* Deep Teal/Green */
    --color-accent: #c5a572;        /* Sophisticated Gold */
    --color-background: #f8f9fa;    /* Off-White */
    --color-text: #34495e;          /* Dark Grey */
    --color-light-grey: #ecf0f1;
}

/* --- 2. CSS Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
}

/* --- 3. Layout & Helpers --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

section:nth-of-type(even) {
    background-color: #ffffff;
}

/* --- 4. Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; }
p { margin-bottom: 16px; max-width: 70ch; } /* `ch` unit is great for readability */

/* --- 5. Header & Footer --- */
.main-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-light-grey);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
}
.main-nav a {
    color: var(--color-text);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 700;
    transition: color 0.3s ease;
}
.main-nav a:hover {
    color: var(--color-accent);
}

.main-footer {
    background-color: var(--color-primary);
    color: var(--color-light-grey);
    text-align: center;
    padding: 40px 20px;
}
.main-footer p {
    margin: 0 auto; /* Center the paragraphs */
    font-size: 0.9rem;
}


/* --- 6. Page-Specific Sections --- */

/* Hero Section */
.hero {
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 120px 0;
}
.hero h1 {
    color: white;
}
.hero .subtitle {
    font-size: 1.2rem;
    color: var(--color-light-grey);
    margin-bottom: 30px;
    text-align: center;
}

/* CTA Button */
.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Services Section */
/* Container Setup */
#services {
    padding: 4rem 1rem;
    /*background-color: #f9f9f9;*/
    background-color: lightgray;
  }


#services h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    font-weight: 700;
   
}

/* Responsive Grid - MODIFIED FOR BETTER CENTERING */
.services-grid {
    display: flex; /* Change from grid to flex */
    justify-content: center; /* This is the key! It centers the items horizontally. */
    flex-wrap: wrap; /* Allows items to wrap onto the next line on small screens */
    gap: 2rem;

    /* To prevent the cards from stretching, we give them a max-width */
    /* This works beautifully with the flexbox centering. */
}

.service-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* ADD THIS: Set a flexible basis and a max-width */
    flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
    max-width: 400px; /* Prevents cards from becoming too wide */
}

/* The rest of your .service-card styles are perfect and can remain unchanged */
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
/* ... etc */


/*.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    background-color: #fff;
    border: 1px solid var(--color-light-grey);
    padding: 30px;
    text-align: center;
    border-radius: 5px;
}
.service-card h3 {
    color: var(--color-secondary);
    margin-top: 15px;
}
.service-card .icon {
    font-size: 3rem; 
    color: var(--color-accent);
}*/

/* =================================
   Contact Section Styling
   ================================= */

   #contact {
    background-color: #f9f9f9;
    padding: 4rem 1rem;
  }
  
  .contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
  }
  
  .contact-column {
    flex: 1 1 45%;
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
  }
  
  .contact-column h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
  }
  
  .contact-column hr {
    border: none;
    height: 2px;
    background-color: #e0e0e0;
    margin-bottom: 1.5rem;
  }
  
  .address-text {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
  
  .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .contact-list li {
    margin-bottom: 1rem;
  }
  
  .contact-list a {
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
  }
  
  .contact-list a:hover {
    color: #0056b3;
  }
  
  .contact-list i {
    font-size: 1.2rem;
    color: #0077b5;
  }

/* --- IMPORTANT: FOR MOBILE PHONES --- */
/* This makes the columns stack on small screens */
@media (max-width: 768px) {
    .contact-container {
        /* Change back to a single column on mobile */
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    #contact {
        padding: 4rem 1.5rem;
    }
}
/* The responsive media query is no longer needed for this layout, */
/* as it's already a single column by default. */
/* === Responsive Design for Mobile === */
@media (max-width: 768px) {
    .contact-container {
      flex-direction: column;
    }
  
    .contact-column {
      flex: 1 1 100%;
    }
  }
/* --- 7. Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
}



