@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* --- Global Variables & Design Tokens --- */
:root {
  --cream-bg: #FDFBF7;
  --cream-bg-dark: #F5F1E9;
  --charcoal: #1E1E1E;
  --burgundy: #5A1827;
  --burgundy-light: #7A2437;
  --dark-blue: #1A365D;
  --border-color: #E6E1D8;
  --font-serif: 'Playfair Display', 'Rubik', Georgia, serif;
  --font-sans: 'Rubik', system-ui, -apple-system, sans-serif;
  --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* --- Base Rules --- */
html, body {
  direction: rtl;
  text-align: right;
  background-color: var(--cream-bg);
  color: var(--charcoal);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  padding-top: 80px; /* Offset for fixed header */
}

a {
  color: var(--dark-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--burgundy);
}

/* --- Layout Utilities --- */
.max-width-container {
  max-width: 1200px;
  width: 100%;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
}

@media (max-width: 991px) {
  .grid-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section-content-col, .section-visual-col {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.flex { display: flex; }
.flex-column { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.overflow-hidden { overflow: hidden; }

/* Spacing */
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 4rem; padding-bottom: 4rem; }
.py-16 { padding-top: 5rem; padding-bottom: 5rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.m-0 { margin: 0; }
.p-0 { padding: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.mx-3 { margin-left: 0.75rem; margin-right: 0.75rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* Borders & Shadow */
.border-bottom { border-bottom: 1px solid var(--border-color); }
.border-sharp { border-radius: 0 !important; border: 1px solid var(--border-color); }
.border-none { border: none !important; }
.shadow-nav { box-shadow: var(--shadow-nav); }
.shadow-subtle { box-shadow: var(--shadow-subtle); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Colors */
.cream-bg { background-color: var(--cream-bg); }
.bg-cream-dark { background-color: var(--cream-bg-dark); }
.bg-white { background-color: #ffffff; }
.bg-charcoal { background-color: var(--charcoal); }
.text-charcoal { color: var(--charcoal); }
.text-burgundy { color: var(--burgundy); }
.text-dark-blue { color: var(--dark-blue); }
.text-white { color: #ffffff; }
.text-cream { color: #E6E1D8; }

/* Typography Rules */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-weight-medium { font-weight: 500; }
.font-weight-bold { font-weight: 700; }
.font-style-italic { font-style: italic; }
.text-uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-wider { letter-spacing: 0.1em; }
.line-height-relaxed { line-height: 1.7; }

.text-size-xs { font-size: 0.85rem; }
.text-size-sm { font-size: 0.95rem; }
.text-size-md { font-size: 1.05rem; }
.text-size-lg { font-size: 1.25rem; }
.text-size-xl { font-size: 2.2rem; line-height: 1.2; }
.text-size-xxl { font-size: 3.5rem; line-height: 1.1; }

@media (max-width: 768px) {
  .text-size-xl { font-size: 1.8rem; }
  .text-size-xxl { font-size: 2.5rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-burgundy {
  background-color: var(--burgundy);
  border: 1px solid var(--burgundy);
  color: #fff !important;
}

.btn-burgundy:hover {
  background-color: var(--burgundy-light);
  border-color: var(--burgundy-light);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--charcoal);
  color: var(--charcoal) !important;
}

.btn-outline:hover {
  background-color: var(--charcoal);
  color: #fff !important;
}

.btn-whatsapp {
  background-color: #25D366;
  border: 1px solid #25D366;
  color: #fff !important;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  border-color: #128C7E;
}

/* --- Header / Navbar --- */
.navbar-header {
  height: 80px;
}

.header-logo-image {
  object-fit: contain;
}

.nav-links a {
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--burgundy);
  border-bottom-color: var(--burgundy);
}

/* --- Hero Section --- */
.hero-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
}

/* --- Anchors Sticky Bar --- */
.anchors-bar {
  top: 80px;
}

.anchors-bar a {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 0.95rem;
}

.anchors-bar a:hover {
  color: var(--cream-bg-dark);
  text-decoration: underline;
}

/* --- Portfolio Sections --- */
.portfolio-section {
  border-bottom: 1px solid var(--border-color);
}

/* Gallery Grid System (Asymmetrical layout) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: grayscale(15%);
  border: 1px solid var(--border-color);
}

.gallery-grid img:hover {
  transform: scale(1.03);
  filter: grayscale(0%);
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Section Highlights */
.section-highlights {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.highlights-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.highlight-item {
  align-items: flex-start;
}

.highlight-icon svg {
  flex-shrink: 0;
}

/* Features List */
.grid-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 480px) {
  .grid-features {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  font-size: 0.95rem;
}

/* Testimonials / Reviews */
.testimonials-wrapper {
  margin-top: 2rem;
}

.avatar-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
}

.last-no-border:last-child {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* --- Webforms / Contact Us Forms --- */
.drupal-webform-container form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.drupal-webform-container .form-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drupal-webform-container label {
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--charcoal);
  font-size: 0.9rem;
}

.drupal-webform-container input[type="text"],
.drupal-webform-container input[type="email"],
.drupal-webform-container input[type="tel"],
.drupal-webform-container textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  background-color: var(--cream-bg);
  border-radius: 0;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.drupal-webform-container input:focus,
.drupal-webform-container textarea:focus {
  outline: none;
  border-color: var(--burgundy);
  background-color: #ffffff;
}

.drupal-webform-container input[type="submit"] {
  background-color: var(--burgundy);
  color: #ffffff;
  border: none;
  border-radius: 0;
  padding: 1rem 2rem;
  font-family: var(--font-serif);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.drupal-webform-container input[type="submit"]:hover {
  background-color: var(--burgundy-light);
}

/* Newsletter inline form & Simplenews subscription block */
.newsletter-inline-form {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 auto !important;
}

.newsletter-inline-form .field--name-mail {
  flex-grow: 1 !important;
}

.newsletter-inline-form .field--name-mail input {
  width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  outline: none;
}

.newsletter-inline-form .field--name-mail input:focus {
  border-color: var(--burgundy);
}

.newsletter-inline-form .form-actions {
  margin: 0 !important;
  padding: 0 !important;
}

.newsletter-inline-form .description,
.newsletter-inline-form label {
  display: none !important;
}

/* Hide all mobile navigation elements by default on desktop viewports */
.mobile-nav-toggle,
.mobile-navigation-drawer,
.drawer-overlay {
  display: none !important;
}

/* --- Responsiveness Utilities --- */
@media (max-width: 767px) {
  .hidden-mobile {
    display: none !important;
  }
  body {
    padding-top: 70px;
  }
  .navbar-header {
    height: 70px;
  }
}

@media (max-width: 991px) {
  .hidden-tablet {
    display: none !important;
  }
}

/* --- Mobile Navigation Hamburger & Drawer (Vienna Editorial Style) --- */

/* Desktop hide utility */
.hidden-desktop {
  display: none !important;
}

@media (max-width: 767px) {
  .hidden-desktop {
    display: flex !important;
  }
  
  /* Position hamburger on the far right, logo in the middle, CTA on the left (RTL support) */
  .mobile-nav-toggle {
    order: -1 !important; /* first from right in RTL */
    margin-right: 0 !important;
    margin-left: 1rem !important;
  }
  .logo-container {
    order: 1 !important;
  }
  .header-cta {
    order: 2 !important;
  }
  
  /* Hamburger button transitions with absolute z-index & solid block lines */
  .mobile-nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 36px;
    padding: 8px;
    background: #ffffff !important; /* solid white background behind it */
    border: 1px solid var(--charcoal);
    border-radius: 0 !important; /* Strictly sharp corners */
    cursor: pointer;
    z-index: 10000 !important; /* High enough to stay above the drawer overlay */
    transition: all 0.3s ease;
    position: relative;
  }
  
  .mobile-nav-toggle .hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--charcoal) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  
  /* Morphing hamburger lines into a neat "X" */
  .mobile-nav-toggle.is-open .line-1 {
    transform: translateY(7px) rotate(45deg);
    background-color: var(--burgundy) !important;
  }
  
  .mobile-nav-toggle.is-open .line-2 {
    opacity: 0;
    transform: translateX(-15px);
  }
  
  .mobile-nav-toggle.is-open .line-3 {
    transform: translateY(-7px) rotate(-45deg);
    background-color: var(--burgundy) !important;
  }
  
  .mobile-nav-toggle.is-open {
    border-color: var(--burgundy);
    background: var(--cream-bg) !important; /* matches drawer */
  }
  
  /* Solid Mobile Menu Drawer with 100% opacity and high z-index, anchored to the RIGHT side */
  .mobile-navigation-drawer {
    position: fixed;
    top: 0;
    right: 0 !important; /* Anchored to the right side */
    left: auto !important;
    bottom: 0;
    width: 300px;
    max-width: 85%;
    height: 100vh;
    background-color: var(--cream-bg) !important; /* uses premium cream color */
    opacity: 1 !important; /* strictly solid */
    color: var(--charcoal);
    border-left: 1px solid var(--charcoal);
    border-right: none !important;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%); /* Slide from the right side */
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999 !important; /* sits directly under toggle */
    display: flex !important; /* overrides global display: none */
    flex-direction: column;
    text-align: right !important; /* RTL aligned text */
  }
  
  .mobile-navigation-drawer.is-open {
    transform: translateX(0);
  }
  
  /* Drawer overlay right under the drawer */
  .drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(18, 18, 18, 0.6) !important; /* darker overlay for premium contrast */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9998 !important;
  }
  
  .drawer-overlay.is-open {
    display: block !important; /* overrides global display: none */
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  /* Drawer links */
  .drawer-links a {
    font-size: 1.15rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
  }
  
  .drawer-links a:hover {
    color: var(--burgundy);
    padding-right: 8px; /* Elegant movement on RTL hover */
  }
  
  /* Header adjustments for small viewports */
  .navbar-header {
    padding: 0.75rem 1rem !important;
  }
  
  .header-logo-image {
    max-height: 44px !important;
  }
}
