/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

:root {
  --bg-dark: #0f0f0f;
  --bg-light: #f7f7f7;
  --text-dark: #111;
  --text-muted: #555;
   --accent: #2563eb; /* refined royal blue */
  --accent-hover: #1e4fd8;
  --accent-soft: rgba(37, 99, 235, 0.25);
  --header-height: 70px;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* HEADER */
.site-header {
  background: #ffffff;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e6e6e6; /* subtle separation */
}

.link-muted {
  color: #3b82f6;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-left: 0;
    padding-left: 1rem; 
}

.logo img {
    max-height: 60px;
    width: auto;
    display: block;
    background: transparent;
    filter: none;
}

img {
  max-width: 100%;
  height: auto;
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    width: 100%;
    margin-left: auto;
}

/* NAVIGATION */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-list a {
    color: #111;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    letter-spacing: 0.02em;
}

.nav-list a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.nav-list a:hover {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 4px;
}

/* MOBILE MENU */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: #111;
    cursor: pointer;
}

/* HERO SECTION */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;

  background-image: url("mainhouse1.jpg");
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;

  background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    animation: fadeUp 0.8s ease both;
    max-width: 720px;
    margin: auto;
}

.hero-content h2 {
  font-size: clamp(2.5rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.15rem;
  color: #e0e0e0;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.hero-content .btn-primary {
  margin-top: 2rem;
}

.hero-content .btn-primary {
  margin-top: 1.5rem;
}

/* BUTTONS */
.btn-primary {
   background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 0.9rem 2rem;
  font-weight: 600;
  box-shadow: 0 10px 30px var(--accent-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
   background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.35);
}

.btn-primary:focus {
    outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

/* ABOUT / CONTACT SECTIONS */
.about, .contact-section {
    padding: 5rem 0;
    text-align: center;
}

.about {
  background: #fff;
}

.contact-section {
  background: #f4f4f4;
}

.contact-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-page {
  background: #f4f7fb; /* soft cool neutral */
}
.contact-body .contact-page {
  flex: 1;
}

.contact-section h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
    max-width: 700px;
    margin: auto;
    color: var(--text-muted);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.contact-form {
    max-width: 450px;
    margin: 1.5rem auto;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    font-size: 1rem;
    border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-page .contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 2rem;
  gap: 0.5rem;
}

.contact-info {
    font-size: 0.95rem;
}

/* FOOTER */
.site-footer {
  background: #0c0c0c;
  color: #cfcfcf;
  padding: 3rem 1.5rem;
  font-size: 0.85rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-flex > p {
   max-width: 420px;
  line-height: 1.6;
  color: #9a9a9a;
}

.footer-legal {
  font-size: 0.75rem;
  color: #777;
}

/* Social icons */
.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links p {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777;
  margin-right: 0.5rem;
}

.social-links img {
  width: 22px;
  height: 22px;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.social-links a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* CONTACT PAGE */
.contact-page {
    padding: 5rem 0;
    text-align: center;
    background: var(--bg-light);
    flex: 1;
    border-top: 1px solid #e6ebf2;
}

.contact-page h1 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    color: #111;
}

.contact-page p {
    max-width: 650px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #444;
}

.contact-page > .container > p {
  margin-bottom: 2.5rem;
}

/* CONTACT FORM */
.contact-page .contact-form {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.08),
    0 1px 0 rgba(0,0,0,0.04);
}

.contact-page .contact-form input,
.contact-page .contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-page .contact-form textarea {
    resize: vertical;
}

.contact-page .contact-form button.btn-primary {
    padding: 0.9rem 2rem;
    font-size: 1rem;
}

/* CONTACT INFO BELOW FORM */
.contact-page .contact-info {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
    animation: fadeUpSoft 0.7s ease-out both;
    animation-delay: 0.25s;
}

.contact-page .contact-info p {
    margin: 0.5rem 0;
    opacity: 0;
    animation: fadeUpSoft 0.6s ease-out forwards;
}

.contact-page .contact-info p:nth-child(1) {
  animation-delay: 0.3s;
}

.contact-page .contact-info p:nth-child(2) {
  animation-delay: 0.45s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpSoft {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #ffffff;
        border-top: 1px solid #e6e6e6;
        text-align: center;
    }

    .nav.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        gap: 0.8rem;
    }

    .nav-list a {
    color: #111;
  }

      .hero {
        background-attachment: scroll;
     }

    .contact-page {
        padding: 3rem 1rem;
    }

    .contact-page .contact-form input,
    .contact-page .contact-form textarea {
        font-size: 0.95rem;
    }

    .contact-page .contact-form button.btn-primary {
        width: 100%;
    }
    .footer-flex {
        flex-direction: column;
        text-align: center;
        gap: 1.25rem;
    }
    .social-links {
        justify-content: center;
    }

    .social-links a img {
        width: 32px;
        height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page .contact-info,
  .contact-page .contact-info p {
    animation: none;
  }
}

@supports (background-attachment: fixed) {
  .hero {
    background-attachment: fixed;
  }
}