/* Base styles and variables */
:root {
  --primary: #3A6B7E;
  --accent: #D66853;
  --bg-main: #FAF7F2;
  --bg-section: #E9E4DA;
  --text: #333333;
  --heading: #2B4F5E;
  --secondary: #A6866A;
  --highlight: #8B9D83;
  --shadow: rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.08);
  --pattern-opacity: 0.05;
}

/* Typography */
body {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-main);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'PT Serif', serif;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p, ul, ol {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

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

a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

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

strong {
  font-weight: 500;
}

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

.split-screen {
  display: flex;
  flex-direction: column;
}

.split-left, .split-right {
  width: 100%;
  padding: 2rem 0;
}

/* Header */
.site-header {
  background-color: var(--bg-main);
  padding: 1rem 0;
  position: relative;
  box-shadow: 0 2px 15px var(--shadow);
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.logo img {
  max-width: 200px;
  height: auto;
}

/* Navigation */
.nav-trigger {
  display: block;
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  background: var(--accent);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-soft);
}

.main-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: var(--primary);
  z-index: 999;
  transition: right 0.4s ease;
  padding: 6rem 2rem 2rem;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.main-nav.active {
  right: 0;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links li {
  margin-bottom: 1.5rem;
}

.nav-links a {
  color: white;
  font-size: 1.2rem;
  display: block;
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.nav-links a::after {
  background-color: white;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
  text-align: center;
  height: 70dvh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.2;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/mid-century-pattern.jpg') center/cover repeat;
  opacity: var(--pattern-opacity);
  mix-blend-mode: multiply;
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--heading);
  position: relative;
  display: inline-block;
}

.hero-title::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--accent);
  bottom: -10px;
  left: 25%;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--secondary);
  font-weight: 400;
}

/* Decorative Elements */
.vintage-divider {
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='%23A6866A' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E") repeat-x;
  margin: 2rem 0;
}

.geometric-shape {
  position: absolute;
  width: 200px;
  height: 200px;
  background-color: var(--highlight);
  opacity: 0.1;
  z-index: -1;
  transform: rotate(45deg);
}

.shape-1 {
  top: -100px;
  right: -100px;
}

.shape-2 {
  bottom: -100px;
  left: -100px;
}

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

.section:nth-child(odd) {
  background-color: var(--bg-section);
}

.section-inner {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background-color: var(--highlight);
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
}

.content-box {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.content-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url('../images/mid-century-pattern.jpg') center/cover repeat;
  opacity: var(--pattern-opacity);
  z-index: 0;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background-color: var(--bg-section);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.feature-icon i {
  font-size: 2rem;
  color: var(--primary);
}

.feature-title {
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.feature-description {
  position: relative;
  z-index: 1;
}

/* Split Screen Layout */
.dual-content {
  display: flex;
  flex-direction: column;
  margin: 2rem 0;
}

.content-image {
  flex: 1;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content-text {
  flex: 1;
  padding: 2rem;
  background-color: white;
  box-shadow: var(--shadow-soft);
  border-radius: var(--border-radius);
}

.content-image:hover img {
  transform: scale(1.05);
}

/* Model Cards */
.model-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.model-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  position: relative;
}

.model-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.model-header {
  padding: 1.5rem;
  background-color: var(--primary);
  color: white;
}

.model-title {
  margin: 0;
  color: white;
  font-size: 1.5rem;
}

.model-body {
  padding: 1.5rem;
}

.model-footer {
  background-color: var(--bg-section);
  padding: 1rem 1.5rem;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Contact Form */
.contact-form-container {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.contact-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/mid-century-pattern.jpg') center/cover repeat;
  opacity: var(--pattern-opacity);
  z-index: 0;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.9);
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus {
  color: var(--text);
  background-color: #fff;
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(58, 107, 126, 0.25);
}

textarea.form-control {
  height: auto;
  min-height: 150px;
}

.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
  z-index: -1;
}

.btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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

.btn-primary:hover {
  color: #fff;
  background-color: var(--heading);
  border-color: var(--heading);
}

.btn-accent {
  color: #fff;
  background-color: var(--accent);
  border-color: var(--accent);
}

.btn-accent:hover {
  color: #fff;
  background-color: #c05a46;
  border-color: #c05a46;
}

.iti {
  width: 100%;
}

/* Resource Items */
.resource-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.resource-item {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.resource-image {
  height: 200px;
  overflow: hidden;
}

.resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.resource-item:hover .resource-image img {
  transform: scale(1.05);
}

.resource-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.resource-title {
  margin-top: 0;
  font-size: 1.3rem;
}

.resource-description {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--bg-section);
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Footer */
.site-footer {
  background-color: var(--heading);
  color: white;
  padding: 3rem 0 1.5rem;
  position: relative;
  overflow: hidden;
}

.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/mid-century-pattern.jpg') center/cover repeat;
  opacity: 0.05;
  z-index: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  max-width: 180px;
  filter: brightness(0) invert(1);
}

.footer-info {
  margin-bottom: 2rem;
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-icon {
  margin-right: 1rem;
  color: var(--accent);
}

.footer-links {
  margin-bottom: 2rem;
}

.footer-links h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--heading);
  color: white;
  padding: 1.5rem;
  z-index: 1000;
  display: none;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cookie-text {
  margin-bottom: 1.5rem;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cookie-settings {
  color: white;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.cookie-settings:hover {
  color: var(--accent);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 10% auto;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  border-radius: var(--border-radius);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--accent);
}

.cookie-category {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--bg-section);
}

.cookie-category:last-child {
  border-bottom: none;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.category-title {
  margin: 0;
  font-size: 1.2rem;
}

.cookie-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition);
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.category-description {
  font-size: 0.9rem;
  color: var(--secondary);
}

.modal-footer {
  margin-top: 2rem;
  text-align: right;
}

/* Thanks Page */
.thanks-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0;
}

.thanks-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.thanks-icon {
  width: 80px;
  height: 80px;
  background-color: var(--highlight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.thanks-icon i {
  font-size: 2.5rem;
  color: white;
}

.thanks-title {
  margin-bottom: 1.5rem;
  color: var(--heading);
}

.thanks-message {
  margin-bottom: 2rem;
  color: var(--text);
}

/* Media Queries */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.2rem;
  }
  
  h3 {
    font-size: 1.8rem;
  }
  
  .header-inner {
    flex-direction: row;
  }
  
  .nav-trigger {
    display: none;
  }
  
  .main-nav {
    position: static;
    width: auto;
    height: auto;
    background: none;
    padding: 0;
    box-shadow: none;
    overflow: visible;
  }
  
  .nav-links {
    display: flex;
    align-items: center;
  }
  
  .nav-links li {
    margin-bottom: 0;
    margin-left: 2rem;
  }
  
  .nav-links a {
    color: var(--heading);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    padding: 0;
  }
  
  .nav-links a::after {
    background-color: var(--accent);
  }
  
  .split-screen {
    flex-direction: row;
  }
  
  .split-left, .split-right {
    width: 50%;
    padding: 4rem 2rem;
  }
  
  .dual-content {
    flex-direction: row;
    align-items: stretch;
  }
  
  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .resource-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  
  .footer-info {
    width: 50%;
    padding-right: 2rem;
  }
  
  .footer-links {
    width: 50%;
  }
  
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .cookie-text {
    margin-bottom: 0;
    margin-right: 2rem;
  }
}

@media (min-width: 992px) {
  .model-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .resource-list {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-info {
    width: 30%;
  }
  
  .footer-links {
    width: 20%;
  }
}

/* Print Styles */
@media print {
  .site-header, .site-footer, .cookie-consent, .form-container {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .container {
    max-width: 100%;
    padding: 0;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: black;
    page-break-after: avoid;
  }
  
  img {
    max-width: 100% !important;
  }
  
  p, h2, h3 {
    orphans: 3;
    widows: 3;
  }
}

.reveal {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  overflow-y: hidden;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}