@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Lexend:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&family=Cinzel:wght@400;500;600;700&display=swap');

:root {
  /* Colors - Premium Orange and Milky White Palette */
  --primary: #f5841f;          /* Core SARA TILES Orange */
  --primary-hover: #d8680a;
  --primary-light: #fff3e6;    /* Very soft orange tint */
  --bg-milky: #fbf9f6;        /* Milky White warm base */
  --bg-card: #ffffff;
  --bg-beige: #f5efe6;        /* Elegant warm beige */
  --text-dark: #1f1b18;        /* Soft black with warm undertone */
  --text-light: #ffffff;
  --text-muted: #6e655f;
  --border-color: #efeae2;
  --border-orange: rgba(245, 132, 31, 0.2);
  
  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(31, 27, 24, 0.04);
  --shadow-md: 0 10px 30px rgba(245, 132, 31, 0.06);
  --shadow-lg: 0 20px 50px rgba(31, 27, 24, 0.08);
  --shadow-orange: 0 8px 24px rgba(245, 132, 31, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Lexend', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Hero Font Options */
  --font-hero-1: 'Playfair Display', serif; /* Elegant / Luxurious (Backup) */
  --font-hero-2: 'Montserrat', sans-serif;  /* Professional / Clean Modern */
  --font-hero-3: 'Cinzel', serif;           /* Fancy yet Professional / Architectural (Active) */
  
  --font-hero: var(--font-hero-3);

  /* Border Radii - Sophisticated Micro-Rounded Architectural Finish */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;

  /* Transitions */
  --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-milky);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
}

.grid {
  display: grid;
  gap: 20px;
}

@media (max-width: 768px) {
  .grid {
    gap: 16px;
  }
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .grid-cols-2, .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Mobile-specific overrides */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .grid {
    gap: 16px;
  }
  
  /* Hero section mobile adjustments */
  #home-hero-banner {
    background-position: left center !important;
  }
  
  .hero-mobile {
    padding: 60px 0 !important;
  }
  
  .hero-mobile h1 {
    font-size: 28px !important;
    margin-bottom: 12px !important;
  }
  
  .hero-mobile p {
    font-size: 15px !important;
    margin-bottom: 20px !important;
  }
  
  /* Card mobile adjustments */
  .card {
    padding: 20px !important;
  }
  
  .card h3 {
    font-size: 18px !important;
  }
  
  .card p {
    font-size: 14px !important;
  }
  
  /* Navigation mobile tweaks */
  .nav-links {
    gap: 12px;
  }
  
  .nav-item {
    font-size: 12px;
  }
  
  /* Button mobile sizing */
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .hero-mobile {
    padding: 40px 0 !important;
  }
  
  .hero-mobile h1 {
    font-size: 24px !important;
  }
  
  .hero-mobile p {
    font-size: 14px !important;
  }
  
  .nav-item {
    font-size: 11px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-milky);
}
::-webkit-scrollbar-thumb {
  background: #dcd7cf;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

@media (max-width: 768px) {
  .btn {
    padding: 10px 20px;
    font-size: 14px;
    gap: 4px;
  }
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-light);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 132, 31, 0.35);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: #ff4757;
  color: white;
}

.btn-danger:hover {
  background-color: #ff2e44;
  transform: translateY(-2px);
}

/* Cards & Components */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-orange);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover::before {
  transform: scaleX(1);
}

/* Header/Nav */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1a1614;
  border-bottom: 1px solid #2e2622;
  transition: var(--transition);
}

.header.home-header {
  position: absolute;
  width: 100%;
  background: transparent;
  border-bottom: none;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .nav-container {
    height: 60px;
    padding: 0 16px;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.logo-img {
  height: 50px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo-img {
    height: 40px;
  }
}

.logo-fallback {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .logo-fallback {
    font-size: 18px;
  }
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }
}

.nav-item {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 0;
  cursor: pointer;
  white-space: nowrap;
  color: #ffffff;
}

@media (max-width: 768px) {
  .nav-item {
    font-size: 13px;
    padding: 4px 0;
  }
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: var(--transition);
}

.nav-item:hover::after,
.nav-item.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-dark);
  font-size: 14px;
}

.form-input, .form-textarea, .form-select {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 132, 31, 0.15);
  background: #ffffff;
}

/* Footer */
.footer {
  background-color: #1a1614;
  color: #dcd7cf;
  padding: 60px 0 30px 0;
  margin-top: 80px;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand h3 {
  color: white;
  margin-bottom: 16px;
  font-size: 24px;
}

.footer-links h4, .footer-contact h4, .footer-socials h4 {
  color: white;
  margin-bottom: 20px;
  font-size: 18px;
  position: relative;
  padding-bottom: 8px;
}

.footer-links h4::after, .footer-contact h4::after, .footer-socials h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links li {
  cursor: pointer;
  transition: var(--transition);
}

.footer-links li:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #2e2622;
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #9e958f;
}

/* Glassmorphism modal wrapper */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 27, 24, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  max-width: 650px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fadeInUp 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 40px;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 24px;
    max-height: 95vh;
  }
  
  .modal-content > div {
    display: block !important;
  }
  
  .modal-content > div > div:first-child {
    margin-bottom: 24px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 98%;
    padding: 16px;
    border-radius: var(--radius-md);
  }
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-beige);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  background: var(--primary);
  color: white;
}

/* Admin Panel Responsive */
.admin-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; gap: 24px; } }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

