/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

:root {
    --green-main: #2f7d5c;
    --green-soft: #e6f3ec;
    --green-pastel: #cfe8db;
    --text-dark: #1f2d26;
    --gray-soft: #f6f8f7;
}

body {
    color: var(--text-dark);
    background: white;
}

/* HEADER STICKY */
header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 999;
    border-bottom: 10px solid #ffffff;

}

.header-wrap {
    max-width: 1100px;
    margin: auto;
    padding: 28px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
    color: var(--green-main);
}

.logo img{
    height: 32px;
    width: auto;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.btn-quote {
    background: var(--green-main);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
}

/* HERO */
.hero {
    background:
    linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75));
    background-image: url(../img/mainimg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 120px 20px 140px;
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 20px;
}

.hero span {
    color: var(--green-main);
}

.hero p {
    max-width: 600px;
    margin: auto;
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.5;
}

.btn {
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn-primary {
    background: var(--green-main);
    color: white;
}

.btn-light {
    background: white;
    border: 1px solid #ccc;
}

/* SECTION BASE */
.section {
    padding: 80px 20px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

/* SERVICES */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

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

.card {
    background: rgb(15, 14, 14);
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.card h3 {
    margin-bottom: 10px;
}

/* WHY CHOOSE */
.features {
    background: var(--green-soft);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 30px;
    text-align: center;
}

/* CTA STRIP */
.cta {
    background: var(--green-main);
    color: white;
}

.cta-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta a {
    background: white;
    color: var(--green-main);
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

/* FOOTER */
footer {
    background: var(--gray-soft);
    padding: 60px 20px;
    font-size: 14px;
}

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

footer h4 {
    margin-bottom: 12px;
}

footer a {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-dark);
}

.copy {
    text-align: center;
    margin-top: 40px;
    opacity: 0.7;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

:root {
    --green-main: #549a3f;
    --green-soft: #7bc266;
    --green-pastel: #d5f5cb;
    --text-dark: #3f549a;
    --gray-soft: #f6f8f7;
}

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

/* ================= HEADER ================= */

header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 999;
    border-bottom: 1px solid #eee;
}

.header-wrap {
    max-width: 1100px;
    margin: auto;
    padding: 28px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
   display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
    color: var(--green-main);
}

.logo img{
    height: 72px;
    width: auto;
}
nav a {
    margin-left: 22px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 18px;
}

nav a:hover {
    color: var(--green-main);
}

.btn-quote {
    background: var(--green-main);
    color: white !important;
    padding: 10px 16px;
    border-radius: 8px;
}

/* ================= HERO ================= */

.hero {
    background:
    linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.75));
    background-image: url(../img/mainimg1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    padding: 120px 20px 140px;
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 16px;
}

.hero span {
    color: var(--green-main);
}

.hero p {
    max-width: 650px;
    margin: auto;
    font-size: 18px;
    opacity: .85;
}

/* ================= BUTTONS ================= */

.btn {
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    margin: 8px 6px;
    font-weight: 600;
}

.btn-primary {
    background: var(--green-main);
    color: white;
}

.btn-light {
    background: white;
    border: 1px solid #ccc;
    color: var(--text-dark);
}

/* ================= SECTIONS ================= */

.section {
    padding: 80px 20px;
}

.container {
    max-width: 1100px;
    margin: auto;
}

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

.section-title h2 {
    font-size: 30px;
    margin-bottom: 8px;
}

.section-title p {
    opacity: .75;
}

/* ================= CARDS ================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.card {
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #dbdcdf 100%
    );
    border-radius: 24px;
    box-shadow:
        0 20px 30px rgba(0,0,0,0.10),
        0 10px 16px rgba(0,0,0,0.08);
    padding: 35px;
    border-radius: 14px;
    
}

.card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

/* ================= FEATURES STRIP ================= */

.features {
    background: var(--green-soft);
}

/* ================= FEATURE GRID ================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
    gap: 30px;
    text-align: center;
}

/* ================= OWNER BLOCK ================= */

.owner-flex {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.owner-avatar {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    background: var(--green-pastel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}

/* ================= CTA ================= */

.cta {
    background: var(--green-main);
    color: white;
}

.cta-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.cta a {
    background: white;
    color: var(--green-main);
    padding: 14px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

/* ================= FOOTER ================= */

footer {
    background: var(--gray-soft);
    padding: 60px 20px;
    font-size: 14px;
}

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

footer h4 {
    margin-bottom: 12px;
}

footer a {
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--text-dark);
}

footer a:hover {
    color: var(--green-main);
}

.copy {
    text-align: center;
    margin-top: 40px;
    opacity: 0.7;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 700px) {

    nav {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .cta-wrap {
        text-align: center;
        justify-content: center;
    }

}

/* ================= CONTACT PAGE ================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 14px;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.field-small {
    flex: 0 0 140px;
}

.field-small input {
    width: 100%;
}

.field-message{
    flex: 1 1 320px;
    min-width: 260px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #dcdcdc;
    font-size: 15px;
    background: #fafafa;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green-main);
    background: white;
}

.contact-form button {
    margin-top: 22px;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: var(--green-main);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    opacity: .9;
}

.contact-card {
    height: fit-content;
}

.contact-item {
    margin-bottom: 18px;
}

.contact-item strong {
    display: block;
    margin-bottom: 4px;
}

/* RESPONSIVE CONTACT */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.social-img{
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-img img{
    width: 25px;
    height: 25px;
    object-fit: contain;
    transition: 0.25s;
}

/* hover effect */
.social-img a:hover img{
    transform: scale(1.15);
    opacity: 0.85;
}

/* ================= RESPONSIVE PATCH (KEEP DESKTOP SAME) ================= */

/* Make containers breathe on small screens */
@media (max-width: 1024px) {
  .container,
  .header-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Tablet */
@media (max-width: 900px) {

  /* Header: stack logo + nav if it gets tight */
  .header-wrap {
    flex-wrap: wrap;
    gap: 12px;
  }

  nav a {
    margin-left: 14px;
  }

  /* Hero: reduce spacing */
  .hero {
    padding: 90px 18px 100px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.15;
  }

  .hero p {
    font-size: 16px;
  }

  /* CTA: center items nicely */
  .cta-wrap {
    justify-content: center;
    text-align: center;
  }

  /* Contact already stacks at 900px (you have it) */
  .contact-card {
    justify-self: stretch;
  }
}

/* Phone */
@media (max-width: 700px) {

  /* Don’t hide nav completely unless you want that.
     You currently have: nav { display:none; }
     If you WANT to keep it hidden, leave your rule.
     If you want links visible, comment your rule and use wrap: */
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: 100%;
  }

  nav a {
    margin-left: 0;
  }

  .btn-quote {
    padding: 10px 14px;
  }

  /* Header layout */
  .header-wrap {
    justify-content: center;
    text-align: center;
  }

  /* Hero */
  .hero {
    padding: 75px 16px 85px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .btn {
    width: 100%;
    max-width: 420px;
  }

  /* Cards spacing */
  .section {
    padding: 60px 16px;
  }

  .cards {
    gap: 18px;
  }

  /* Owner block */
  .owner-flex {
    justify-content: center;
    text-align: center;
  }

  /* Contact form: stack bedrooms/bathrooms */
  .form-row {
    flex-direction: column;
    gap: 14px;
  }

  .field-small {
    flex: 1 1 auto;
    width: 100%;
  }

  /* Center submit button */
  .contact-form button {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer */
  footer {
    padding: 50px 16px;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .hero h1 {
    font-size: 26px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .card {
    padding: 22px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px;
  }
}

/* Make all images responsive (safe global rule) */
img {
  max-width: 100%;
  height: auto;
}
