:root {
  --color-primary: #0F0E0E;
  --color-secondary: #541212;
  --color-accent: #468A9A;
  --color-light: #EEEEEE;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 2px 8px rgba(15, 14, 14, 0.1);
  --shadow-md: 0 4px 16px rgba(15, 14, 14, 0.15);
  --shadow-lg: 0 8px 32px rgba(15, 14, 14, 0.2);
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-light);
  color: var(--color-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, .btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  background: var(--color-accent);
  color: var(--color-light);
  font-weight: 600;
  display: inline-block;
  margin: 15px 0;
}

button:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: #3a7585;
}

.header {
  background: var(--color-primary);
  z-index: 1000;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-base);
}

.header.scrolled {
  background: rgba(15, 14, 14, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-light);
  letter-spacing: 0.05em;
}

.nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav a {
  color: var(--color-light);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition-base);
}

.nav a:hover::after {
  width: 100%;
}

.burger {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  z-index: 1001;
}

.burger span {
  width: 1.5rem;
  height: 2px;
  background: var(--color-light);
  transition: var(--transition-base);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(0.4rem, 0.4rem);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-light);
  max-width: 50rem;
  padding: var(--space-md);
  animation: fadeInUp 1s ease;
}

.hero-content h1 {
  margin-bottom: var(--space-sm);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  opacity: 0.9;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  padding: var(--space-lg) var(--space-md);
  position: relative;
}

.container {
  max-width: 75rem;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.card {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.card h3 {
  margin-bottom: var(--space-xs);
  color: var(--color-secondary);
}

.card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: var(--space-sm);
}

.asymmetric-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
}

.asymmetric-content {
  padding: var(--space-md);
}

.asymmetric-image {
  position: relative;
  transform: rotate(-2deg);
  transition: var(--transition-slow);
}

.asymmetric-image:hover {
  transform: rotate(0deg) scale(1.02);
}

.asymmetric-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.overlap-section {
  position: relative;
  margin-top: -3rem;
  z-index: 10;
}

.overlap-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  transform: skewY(-1deg);
}

.overlap-card > * {
  transform: skewY(1deg);
}

.testimonial {
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: #555;
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-secondary);
}

.contact-form {
  max-width: 35rem;
  margin: 0 auto;
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 8rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.checkbox-group input {
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: #666;
}

.footer {
  background: var(--color-primary);
  color: var(--color-light);
  padding: var(--space-md);
  text-align: center;
  font-size: 0.85rem;
}

.footer-content {
  max-width: 75rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.footer a {
  color: var(--color-accent);
}

.footer a:hover {
  text-decoration: underline;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin: var(--space-sm) 0;
}

.map-container {
  width: 100%;
  height: 25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: var(--space-md) 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.popup.active {
  display: flex;
}

.popup-content {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  max-width: 35rem;
  margin: var(--space-md);
  position: relative;
  animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-2rem); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.popup-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  color: var(--color-secondary);
  transform: none;
  box-shadow: none;
}

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
}

.error-content h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.thankyou-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
  color: var(--color-light);
}

.thankyou-content {
  max-width: 40rem;
}

.icon {
  font-size: 4rem;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.policy-page {
  padding: var(--space-lg) var(--space-md);
  max-width: 50rem;
  margin: 0 auto;
}

.policy-page h1 {
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
}

.policy-page h2 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--color-secondary);
}

.policy-page p {
  margin-bottom: var(--space-sm);
  line-height: 1.8;
}

@media (min-width: 75rem) {
  .container {
    padding: 0 var(--space-md);
  }
}

@media (min-width: 62rem) and (max-width: 74.99rem) {
  .container {
    padding: 0 var(--space-md);
  }
  
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
}

@media (min-width: 48rem) {
  .asymmetric-section {
    grid-template-columns: 1fr 1fr;
  }
  
  .asymmetric-section:nth-child(even) .asymmetric-image {
    order: -1;
  }
}

@media (min-width: 48rem) and (max-width: 61.99rem) {
  .section {
    padding: var(--space-md) var(--space-sm);
  }
  
  h1 { font-size: 2.25rem; }
  h2 { font-size: 2rem; }
  
  .card img {
    height: 12rem;
  }
}

@media (max-width: 52rem) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }
  
  .nav.active {
    right: 0;
  }
  
  .burger {
    display: flex;
  }
  
  .section {
    padding: var(--space-md) var(--space-sm);
  }
  
  .hero-content {
    padding: var(--space-sm);
  }
  
  .contact-form {
    padding: var(--space-md);
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .card img {
    height: 12rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 36rem) {
  .header {
    padding: var(--space-sm);
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .section {
    padding: var(--space-sm);
  }
  

  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.1rem; }
  
  .btn, button {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .card {
    padding: var(--space-sm);
  }
  
  .card img {
    height: 10rem;
  }
  
  .contact-form {
    padding: var(--space-sm);
  }
  
  .map-container {
    height: 18rem;
  }
  
  .price {
    font-size: 1.25rem;
  }
  
  .overlap-card {
    padding: var(--space-md);
  }
  
  .popup-content {
    padding: var(--space-md);
  }
}

@media (max-width: 25rem) {
  html {
    font-size: 93.75%;
  }
  
  .header {
    padding: 0.75rem;
  }
  
  .logo {
    font-size: 1.1rem;
  }
  
  .section {
    padding: var(--space-sm) 0.75rem;
  }

  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.15rem; }
  h4 { font-size: 1rem; }
  
  .btn, button {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
  }
  
  .card {
    padding: 0.75rem;
  }
  
  .card img {
    height: 9rem;
  }
  
  .contact-form {
    padding: var(--space-sm);
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.65rem;
    font-size: 0.9rem;
  }
  
  .map-container {
    height: 15rem;
  }
  
  .price {
    font-size: 1.15rem;
  }
  
  .overlap-card {
    padding: var(--space-sm);
  }
  
  .popup-content {
    padding: var(--space-sm);
    margin: var(--space-sm);
  }
  
  .icon {
    font-size: 2.5rem;
  }
  
  .nav {
    width: 80%;
  }
}

@media (max-width: 20rem) {
  html {
    font-size: 87.5%;
  }
  
  .header {
    padding: 0.5rem;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .section {
    padding: 0.75rem 0.5rem;
  }

  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.1rem; }
  h4 { font-size: 0.95rem; }
  
  .btn, button {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }
  
  .card {
    padding: 0.65rem;
  }
  
  .card img {
    height: 8rem;
  }
  
  .contact-form {
    padding: 0.75rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
  
  .form-group label {
    font-size: 0.85rem;
  }
  
  .checkbox-group label {
    font-size: 0.8rem;
  }
  
  .map-container {
    height: 12rem;
  }
  
  .price {
    font-size: 1.1rem;
  }
  
  .overlap-card {
    padding: 0.75rem;
  }
  
  .popup-content {
    padding: 0.75rem;
    margin: 0.75rem;
  }
  
  .icon {
    font-size: 2rem;
  }
  
  .footer {
    padding: var(--space-sm);
    font-size: 0.8rem;
  }
  
  .nav {
    width: 85%;
  }
  
  .burger span {
    width: 1.25rem;
  }
  
  .policy-page {
    padding: var(--space-md) 0.75rem;
  }
  
  .error-content h1 {
    font-size: 4rem;
  }
}
