/* Base reset / typography */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #111111;
  background-color: #f5f5f5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* BRAND COLORS */
:root {
  --black: #000000;
  --gold: #d4af37;
}

/* GLOBAL HEADING RESET */
h1, h2, h3, h4 {
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--black); /* default black text */
  font-family: "Poppins", sans-serif;
}

h1 {
  font-family: "Lora", serif;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 0.75rem;
  color: var(--white);
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 85px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

h2 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--black);
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  margin-top: 2rem;
}

h3 {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--black);
  border-bottom: 2px solid var(--gold);
  display: inline-block;
  padding-bottom: 4px;
}

h4 {
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--black);
  opacity: 0.8;
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Layout: Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background-color: #111111;
  color: #ffffff;
  position: relative;
  z-index: 9999;
}

.branding {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4af37, #f5f5f5);
  color: #111111;
  font-weight: 700;
  margin-right: 0.5rem;
}

.logo-text {
  font-family: "Lora", serif;
  font-size: 35px;
  font-weight: bolder;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

/* Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  background-color: #f5f5f5;
  color: #111111;
}

/* Desktop Navigation Right-Aligned */
.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Hamburger Button */
.nav-toggle {
  display: none;              
  background-color: #ffae00; 
  border: none;
  padding: 0.6rem 0.6rem;     /* Increase tap area */
  border-radius: 8px;          
  cursor: pointer;
  position: absolute;
  right: 1.2em;               
  top: 1.2em;                 
  z-index: 9999;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-toggle i {
  font-size: 1.1em;     
  color: #000000;
  background-color: transparent;            
}

/* Hover + active styles */
.nav-toggle:hover {
  background-color: #ffffff;
  transform: scale(1.05);
}

.nav-toggle:active {
  transform: scale(0.95);
}


/* Search */
.site-search {
  display: flex;
  align-items: center;
  background-color: #222222;
  padding: 0.2rem 0.4rem;
  border-radius: 999px;
  margin: 0.5rem 0;
  width: auto;
  margin-left: auto;
  justify-content: flex-end;
  gap: 1rem;
}

.site-search input[type="text"] {
  border: none;
  background: transparent;
  color: #f5f5f5;
  padding: 0.2rem 0.4rem;
  min-width: 180px;
}

.site-search input[type="text"]::placeholder {
  color: #aaaaaa;
}

.site-search button {
  border: none;
  background: none;
  cursor: pointer;
  color: #f5f5f5;
}

/* Hero (Home) */
.hero {
  position: relative;
  min-height: 60vh;
  color: #ffffff;
  display: grid;
  align-items: center;
  place-items: center;
  padding: 3rem 2rem;
  background: linear-gradient(
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.7)
    ),
    url("../images/hero-home.jpg") center/cover no-repeat;
}

.hero-content {
  max-width: 640px;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: #d4af37;
}

.hero h1 {
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background-color: #d4af37;
  color: #111111;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  background-color: #f1cd63;
}

.btn-outline {
  background-color: transparent;
  color: #000000;
  background-color: #d4af37;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  background-color: #ffd240;
  color: #111111;
}

/* Sections & Cards */
.section {
  padding: 3rem 2rem;
  background-color: #f5f5f5;
}

.section-alt {
  background-color: #ffffff;
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
}

.section-intro {
  max-width: 640px;
  margin-bottom: 2rem;
}

.icon-grid {
  display: grid;
  gap: 1.5rem;
}

.icon-card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.icon-card i {
  font-size: 1.6rem;
  color: #d4af37;
  margin-bottom: 0.5rem;
}

/* Listings grid */
.listings-grid {
  display: grid;
  gap: 1.8rem;
}

.listing-card {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.listing-card:hover {
  background-color: #d4af37;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
}

.listing-body {
  padding: 1rem 1.2rem 1.2rem;
}

.listing-price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #111111;
}

.listing-meta {
  font-size: 0.9rem;
  color: #555555;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  gap: 1.5rem;
}

.testimonial {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  border-left: 4px solid #d4af37;
}

/* Forms */
form {
  max-width: 640px;
  margin: 0 auto 2rem;
}

fieldset {
  border: 1px solid #dddddd;
  border-radius: 0.5rem;
  padding: 1.5rem;
}

legend {
  padding: 0 0.4rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.4rem;
  border: 1px solid #cccccc;
  font: inherit;
}

textarea {
  min-height: 120px;
}

/* Footer */
.site-footer {
  background-color: #111111;
  color: #f5f5f5;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: #f1cd63;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-main p {
  margin: 0.2rem 0;
}

.footer-links {
  margin-top: 0.5rem;
}

/*Responsive */
@media (min-width: 640px) {
  .icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .listings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.9rem; }
  h3 { font-size: 1.4rem; }
  h4 { font-size: 1.05rem; }
}

/* MOBILE NAV (900px and below) */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    background: #111;
    padding: 1rem 0;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    text-align: center;
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-search {
    width: 100%;
    margin-top: 3.5rem;
  }
}
