:root {
  --primary: #1d3d63;      /* WCAG Contrast Compliant Blue */
  --dark: #1a202c;
  --light: #f7fafc;
  --gray: #556275;         
  --accent: #2b70a8;       
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Force document canvas to scale to 100% device viewport depth */
html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  
  /* Flexbox arrangement blueprint */
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo1 {
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  flex-grow: 1;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  color: var(--primary);
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&q=80&w=1973') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 12rem 2rem 8rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn:hover,
.btn:focus {
  background: var(--accent);
  transform: translateY(-2px);
}

/* FIX A: Elastic layout pillar that anchors the sticky footer mechanics */
main {
  flex: 1 0 auto;
}

section {
  padding: 5rem 0;
}

h2 {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 3rem;
  color: var(--dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  }
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.price {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.meta {
  color: var(--gray);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.features {
  display: flex;
  flex-wrap: wrap; 
  gap: 1.2rem;
  font-size: 0.95rem;
  color: var(--gray);
}

form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}    

textarea {
  min-height: 160px;
  resize: vertical; 
}

footer {
  flex-shrink: 0;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 2.5rem 1rem;
  margin-top: auto; 
}

footer a {
  color: white;
  text-decoration: underline;
}

/* FIX B: Corrected syntax blocks closing rules inside media query scripts */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .logo1 { 
    margin: 0 auto; 
  }
  .nav-links { 
    gap: 1.2rem; 
  }
  .hero {
    padding: 10rem 1.5rem 6rem;
  }
  h2 {
    font-size: 2.2rem;
  }
}
