@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary: #962030;
  --primary-light: #ad3042;
  --primary-dark: #6b121e;
  --bg-color: #fcf4e3; /* Light cream */
  --bg-header: #fedba4; /* Peach top header */
  --text-dark: #333333;
  --text-light: #555555;
  --white: #ffffff;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px 0 rgba(155, 28, 49, 0.1);
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Spacing */
  --container-width: 1200px;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--primary-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-light);
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
}

/* Header & Nav */
header {
  background-color: var(--bg-header);
  position: relative;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
}

.logo {
  display: block;
  width: 80px;
  height: 80px;
  transition: var(--transition);
}

.logo:hover {
  transform: rotate(-5deg) scale(1.05);
}

.brand-text h1 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary-dark);
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

nav {
  width: 100%;
  background-color: var(--primary);
  display: flex;
  justify-content: center;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: var(--container-width);
}

nav a {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  padding: 1rem 1.5rem;
  text-transform: uppercase;
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

nav li:first-child a {
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}

nav a:hover,
nav a.active {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(155, 28, 49, 0.9), rgba(106, 16, 32, 0.9)), url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
  padding: 6rem 0;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero h2 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: slideUp 0.8s ease-out;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  animation: slideUp 1s ease-out;
}

/* Main Layout */
.layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  padding: var(--spacing-xl) 0;
}

/* Content Area */
.content-area {
  animation: fadeIn 1s ease-out;
}

.intro-text ul {
  margin-bottom: var(--spacing-lg);
  padding-left: 1.5rem;
}

.intro-text li {
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.intro-text li::before {
  content: '✓';
  color: var(--primary);
  position: absolute;
  left: -1.5rem;
  font-weight: bold;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

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

.card-img {
  height: 200px;
  background-color: #eee;
  overflow: hidden;
}

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

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

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

.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card .btn {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

/* Sidebar / Glassmorphism Contact */
aside {
  animation: slideInRight 1s ease-out;
}

.contact-widget {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  position: sticky;
  top: 100px;
}

.contact-widget h3 {
  color: var(--primary);
  border-bottom: 2px solid rgba(155, 28, 49, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

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

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(155, 28, 49, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info p {
  margin: 0;
  color: var(--text-dark);
  font-weight: 500;
}

.contact-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.sidebar-logo {
  margin-top: 3rem;
  text-align: center;
}

.sidebar-logo img {
  max-width: 180px;
  opacity: 0.9;
  filter: drop-shadow(0 4px 6px rgba(155, 28, 49, 0.2));
  transition: var(--transition);
}

.sidebar-logo img:hover {
  transform: rotate(5deg) scale(1.05);
}

/* Footer */
footer {
  background-color: var(--bg-header);
  border-top: 3px solid var(--text-dark);
  padding: 1.5rem 0;
  margin-top: 4rem;
}

.footer-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: var(--primary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-light);
}

.separator {
  color: var(--primary);
  font-size: 0.95rem;
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Responsive */
@media (max-width: 992px) {
  .layout-wrapper {
    grid-template-columns: 1fr;
  }
  
  .contact-widget {
    position: static;
  }
  
  .header-container {
    flex-wrap: wrap;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }
  
  nav.active {
    display: block;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  nav a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }
}
