/*
  Stylesheet for Onyx Gardens Landing Page
  Defines baseline styling, layout components and responsive rules
*/

/* Reset margins and paddings */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root variables for reusability */
:root {
  --primary-color: #1d4e89;
  --secondary-color: #f5f5f5;
  --accent-color: #c8e7fa;
  --text-color: #333333;
  --muted-text-color: #666666;
  --light-bg: #ffffff;
  --dark-bg: #111111;
  --border-radius: 4px;
  --transition-duration: 0.3s;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

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

/* Header */
.header {
  width: 100%;
  background-color: var(--light-bg);
  border-bottom: 1px solid #e4e4e4;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

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

.nav a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  width: 100%;
  background-color: var(--secondary-color);
  padding: 3rem 0;
}

.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-content {
  flex: 1 1 380px;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
  color: var(--muted-text-color);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition-duration), color var(--transition-duration);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  /* Slightly darken the primary colour on hover */
  background-color: #1b487f;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

.hero-image {
  flex: 1 1 380px;
  text-align: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-light {
  background-color: var(--light-bg);
}

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

.section-container {
  text-align: center;
}

.section-container h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.section-container p {
  font-size: 1rem;
  color: var(--muted-text-color);
  max-width: 800px;
  margin: 0 auto;
}

/* Enquiry section */
.enquire-section h2 {
  margin-bottom: 0.5rem;
}

.enquire-container p {
  margin-bottom: 1rem;
  color: var(--muted-text-color);
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

.form-wrapper iframe {
  display: block;
  border: none;
  width: 100%;
}

.form-hint {
  font-size: 0.875rem;
  color: var(--muted-text-color);
  margin-top: 0.5rem;
}

.form-hint a {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: #ffffff;
  padding: 2rem 0;
  font-size: 0.875rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer-info p {
  margin-bottom: 0.25rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav a {
  color: #cccccc;
  text-decoration: none;
  transition: color var(--transition-duration);
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  color: #888888;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav ul {
    gap: 1rem;
  }
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    order: 2;
  }
  .hero-image {
    order: 1;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-info,
  .footer-nav {
    width: 100%;
  }
}