/*
 * Basic styles for the Prabhat Associates website.
 * The colour scheme draws from the dark blue logo to evoke trust and
 * professionalism. Layouts are responsive, with a simple navigation bar
 * that collapses gracefully on small screens. Feel free to expand on this
 * stylesheet as you add more pages or functionality.
 */

/* Reset some default margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f7f9fc;
}

header {
  background-color: #063c7c; /* deep blue to match the logo */
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

/* Navigation styles */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-bar img {
  /* Logo size is controlled within .logo-container now */
  height: 90px;
  width: auto;
  border-radius: 50%;
}

/* Logo container and tagline */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
}

.logo-container .tagline {
  color: #fff;
  font-size: 0.8rem;
  margin-top: 4px;
  font-weight: 500;
  text-align: center;
}

/* Navigation list styles
 * The nav links are displayed in a single row on desktop.  The
 * flex-wrap is disabled so items remain on one line.  We also
 * reduce the gap slightly and prevent text wrapping within each
 * anchor so long labels such as “Corporate Land Aggregation”
 * remain on one line. */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  margin-left: auto;
  gap: 20px;
}

.nav-links li {
  /* spacing between nav items is handled by gap on .nav-links */
  margin-left: 0;
}

/* Prevent the navigation anchors from wrapping onto multiple lines
 * by disabling normal white-space wrapping. This ensures each
 * navigation label appears as a single unit. */
.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  opacity: 0.8;
}

/* Special call-to-action button for posting a land enquiry.  This
 * button appears next to the navigation bar on desktop to draw
 * attention to the Buy Land service without occupying a spot in
 * the primary navigation list.  On smaller screens it stacks
 * vertically with the other nav links. */
.buy-land-btn {
  background-color: #ffcc00;
  color: #063c7c;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-left: 20px;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.buy-land-btn:hover {
  background-color: #e6b800;
}

@media (max-width: 768px) {
  /* In mobile view, show the buy land button as part of the dropdown
   * menu by treating it like a nav link.  We reset the margin so
   * it aligns with the other items. */
  .buy-land-btn {
    margin-left: 0;
    display: block;
    padding: 12px 24px;
    text-align: center;
  }
}

/* Mobile navigation toggle (hamburger menu)
 * Hidden on larger screens; appears on smaller screens to toggle the
 * navigation menu. */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

/* Responsive navigation styles */
@media (max-width: 768px) {
  .nav-bar {
    position: relative;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #063c7c;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 10px 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li {
    margin: 10px 0;
    text-align: center;
  }
  .nav-links a {
    display: block;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links a:hover {
    opacity: 1;
  }
}

/* Hero section */
/*
 * Hero section styling
 * We overlay the hero image with a semi‑transparent blue gradient to
 * maintain legibility of the white text. The background now uses
 * a royalty‑free skyline photograph (images/hero.jpg) instead of the
 * logo. This matches the professional look of Cushman & Wakefield
 * and Knight Frank websites.
 */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px;
  /* Use a lighter overlay to allow the skyline image to show through */
  background-image: linear-gradient(rgba(6, 60, 124, 0.2), rgba(6, 60, 124, 0.2)), url('images/hero.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

.cta-buttons a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  background-color: #ffcc00;
  color: #063c7c;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.cta-buttons a:hover {
  background-color: #e6b800;
}

/* Services page */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px;
  transition: transform 0.2s ease;
}

/* Service card images
 * Each service card contains an image at the top. These styles ensure
 * the images fill the card width, maintain aspect ratio and have
 * rounded top corners to blend seamlessly with the card. */
.service-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-bottom: 15px;
}

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

.service-card h3 {
  margin-bottom: 10px;
  color: #063c7c;
}

.service-card p {
  font-size: 0.95rem;
}

/* Buy lands form */
.form-section {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin: 40px 0;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #063c7c;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

.form-group textarea {
  min-height: 120px;
}

.form-submit {
  background-color: #063c7c;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-submit:hover {
  background-color: #052e5e;
}

/* Generic page hero sections
 * These classes are used on internal pages like Buy Land to display a
 * banner with a background image and introductory text. The .buy-land-hero
 * subclass specifies the image for the Buy Land page. */
.page-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.page-hero .hero-content {
  max-width: 800px;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 1.1rem;
}

/* Specific hero for the Buy Land page */
.buy-land-hero {
  background-image: linear-gradient(rgba(6, 60, 124, 0.3), rgba(6, 60, 124, 0.3)), url('images/service-land.jpg');
}

/* Specific hero for the Farmhouse Development page */
.farmhouse-hero {
  background-image: linear-gradient(rgba(6, 60, 124, 0.3), rgba(6, 60, 124, 0.3)), url('images/farmhouse3.jpg');
}

/* Hero backgrounds for informational pages */
.about-hero {
  background-image: linear-gradient(rgba(6, 60, 124, 0.3), rgba(6, 60, 124, 0.3)), url('images/service-research.jpg');
}

.legal-hero {
  background-image: linear-gradient(rgba(6, 60, 124, 0.3), rgba(6, 60, 124, 0.3)), url('images/service-documentation.jpg');
}

.corporate-hero {
  background-image: linear-gradient(rgba(6, 60, 124, 0.3), rgba(6, 60, 124, 0.3)), url('images/service-marketing.jpg');
}

.investors-hero {
  background-image: linear-gradient(rgba(6, 60, 124, 0.3), rgba(6, 60, 124, 0.3)), url('images/service-investment.jpg');
}

/* Farmhouse gallery layout
 * Displays farmhouse projects in a responsive grid similar to the services list. */
.farmhouse-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.farmhouse-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform 0.2s ease;
}

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

.farmhouse-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.farmhouse-card h3 {
  margin: 15px;
  color: #063c7c;
}

.farmhouse-card p {
  margin: 0 15px 15px;
  font-size: 0.95rem;
}

/* Footer */
footer {
  background-color: #063c7c;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  margin-top: 40px;
}

footer .social-links a {
  margin: 0 10px;
  color: #ffcc00;
  text-decoration: none;
  font-size: 1.2rem;
  transition: opacity 0.2s ease;
}

footer .social-links a:hover {
  opacity: 0.8;
}