:root {
  --midnight: #30294a;
  --deep-forest: #08362f;
  --golden-ochre: #d6963f;
  --sand: #fff1d0;
  --bark: #8d7662;
  --dusty-dune: #a7a597;
  --riverstone: #929c89;
  --olive-grove: #566351;
  --white: #fff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--sand);
  color: var(--midnight);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; color: var(--deep-forest); }

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: var(--midnight);
}

a {
  color: var(--golden-ochre);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--bark);
}

/* Base Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* Header & Nav */
header {
  background-color: var(--sand);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgb(0 0 0 / 5%);
}

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

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-wrap img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--deep-forest);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: capitalize;
}

.nav-links a:hover {
  color: var(--golden-ochre);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgb(8 54 47 / 70%), rgb(48 41 74 / 60%));
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  max-width: 800px;
  margin-bottom: 2rem;
  color: var(--sand);
}

.hero-subtitle {
  font-size: 1.5rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  color: var(--white);
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--golden-ochre);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgb(214 150 63 / 30%);
}

.btn:hover {
  background-color: var(--midnight);
  color: var(--sand);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(48 41 74 / 40%);
}

/* Tiles Section */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tile {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgb(0 0 0 / 5%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.tile:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgb(0 0 0 / 10%);
}

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

.tile-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.tile-content h3 {
  color: var(--midnight);
  margin-bottom: 1rem;
}

.tile-content p {
  color: var(--dusty-dune);
  flex-grow: 1;
}

.tile-btn {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--golden-ochre);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Image blocks */
.image-text-block {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.image-text-block.reverse {
  flex-direction: row-reverse;
}

.image-text-block > div {
  flex: 1;
}

.image-text-block img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 15px 40px rgb(0 0 0 / 10%);
}

/* Value Columns */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.value-col h3 {
  color: var(--golden-ochre);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Forms */
.contact-section {
  background-color: var(--olive-grove);
  color: var(--white);
  padding: 5rem 0;
}

.contact-section h2 {
  color: var(--sand);
}

.contact-section form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 8px;
  color: var(--midnight);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--deep-forest);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--dusty-dune);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--golden-ochre);
  box-shadow: 0 0 5px rgb(214 150 63 / 30%);
}

.checkbox-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-wrap input {
  width: auto;
}

/* Footer */
footer {
  background-color: var(--midnight);
  color: var(--sand);
  padding: 3rem 0;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.social-links a {
  color: var(--sand);
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--golden-ochre);
}

.footer-logo {
  height: 40px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

/* Background Utility Classes */
.bg-sand { background-color: var(--sand); color: var(--midnight); }
.bg-midnight { background-color: var(--midnight); color: var(--sand); }
.bg-white { background-color: var(--white); color: var(--midnight); }
.bg-forest { background-color: var(--deep-forest); color: var(--sand); }

/* Responsive */
@media (width <= 768px) {
  .image-text-block, .image-text-block.reverse {
    flex-direction: column;
  }
  
  header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
}
