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

@font-face {
  font-family: "SafiraMarch";
  src: url("res/fonts/Safira March.ttf");
}
@font-face {
  font-family: "Montserrat";
  src: url("res/fonts/Montserrat-VariableFont_wght.ttf");
}
@font-face {
  font-family: "InstrumentSerif";
  src: url("res/fonts/InstrumentSerif-Regular.ttf");
}
@font-face {
  font-family: "InstrumentSerif";
  src: url("res/fonts/InstrumentSerif-Italic.ttf");
  font-style: italic;
}
@font-face {
  font-family: "Almarai";
  src: url("res/fonts/Almarai-Regular.ttf");
  font-weight: 400;
}
@font-face {
  font-family: "Almarai";
  src: url("res/fonts/Almarai-Light.ttf");
  font-weight: 100;
}
@font-face {
  font-family: "Almarai";
  src: url("res/fonts/Almarai-Bold.ttf");
  font-weight: 700;
}
@font-face {
  font-family: "Almarai";
  src: url("res/fonts/Almarai-ExtraBold.ttf");
  font-weight: 900;
}
@font-face {
  font-family: "IBMPlexMono";
  src: url("res/fonts/IBMPlexMono-Regular.ttf");
}
@font-face {
  font-family: "Playfair Display";
  src: url("res/fonts/PlayfairDisplay-VariableFont_wght.ttf");
}
@font-face {
  font-family: "Playfair Display";
  src: url("res/fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf");
  font-style: italic;
}

:root {
  --color-bg: #341513;
  --color-accent: #d95e16;
  --color-text: #fdfaf5;
  --color-text-half-muted: #e3ded4;
  --color-text-muted: #a19590;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Almarai', sans-serif;
  --container-width: 1800px;
  
  /* Fluid Sizing Scales */
  --fs-hero: clamp(3.5rem, 15vw + 1rem, 10rem);
  --fs-section-title: clamp(2rem, 5vw + 1rem, 3.5rem);
  --fs-section-title-lg: clamp(2.5rem, 6vw + 1rem, 4.5rem);
  --fs-body: clamp(1rem, 0.5vw + 0.8rem, 1.2rem);
  --fs-ui: clamp(0.85rem, 0.2vw + 0.8rem, 1rem);
  
  --space-section: clamp(4rem, 4vh + 2rem, 8rem);
}

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

.muted {
  color: var(--color-text-muted)
}

.no-scrollbar {
  /* Hide scrollbar for Chrome, Safari and Opera */
  -webkit-scrollbar {
    display: none;
  }

  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
  
  /* Ensure scrolling is still possible */
  overflow-y: scroll;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 4rem);
}

button, .btn {
  background-color: var(--color-accent);
  color: white;
  border: none;
  padding: clamp(0.6rem, 1vw, 0.8rem) clamp(1.5rem, 2vw, 2.5rem);
  font-family: var(--font-sans);
  font-weight: 500;
  cursor: pointer;
  border-radius: 50px;
  font-size: var(--fs-ui);
  transition: transform 0.2s, background-color 0.2s;
  white-space: nowrap;
  /* box-shadow: clamp(0.1rem, 0.2vw, 0.2rem) clamp(0.1rem, 0.2vw, 0.2rem) clamp(0.2rem, 0.4vw, 0.4rem) rgba(0, 0, 0, 0.2); */
}

button:hover, .btn:hover {
  background-color: #c45414;
  transform: translateY(-2px);
}

.menu-toggle:hover {
  background: none;
  transform: translateY(-2px);
}

.menu-toggle:hover .bar {
  background-color: var(--color-accent);
}

.menu-toggle.active .bar {
  background-color: var(--color-accent);
}

.italic {
  font-style: italic;
  font-family: var(--font-serif);
  color: var(--color-accent);
  font-weight: 400;
}

/* Navbar */
.navbar {
  padding: clamp(1rem, 3vh, 2.5rem) 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 100;
}

.navbar .nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

@media (min-width: 851px) {
  .logo-group {
    width: auto;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001; /* Stays above mobile overlay */
  position: relative;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: all 0.3s ease;
}

.menu-toggle.active .bar:nth-child(1) {
  /* transform: translateY(9px) rotate(45deg);
  background-color: var(--color-accent); */
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  /* transform: translateY(-9px) rotate(-45deg);
  background-color: var(--color-accent); */
  opacity: 0;
}

.navbar .logo {
  font-family: 'SafiraMarch', serif;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  font-weight: 100;
}

/* Mobile Nav Dropdown */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dimmed background */
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: -100%; /* Start off-screen */
  width: min(80%, 350px); /* Responsive width, max 350px */
  height: 100%;
  background-color: var(--color-bg);
  padding: 2rem 2rem;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  text-align: left;
  overflow-y: auto; /* Enable scrolling if content is long */
}

.mobile-nav-overlay.active .mobile-nav-content {
  right: 0; /* Slide in */
}

.mobile-nav-content ul {
  margin-bottom: 2.5rem;
}

.mobile-nav-content li {
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.mobile-nav-content a {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 500;
  display: block;
}

.mobile-nav-content .btn {
  width: 100%;
  text-align: center;
}

.navbar nav ul {
  display: flex;
  gap: clamp(1rem, 2vw, 2.5rem);
  font-size: var(--fs-ui);
}

section {
  padding: var(--space-section) 0;
}

.section-title {
  font-size: var(--fs-section-title);
  margin-bottom: clamp(1.5rem, 12vw, 7rem);
  font-family: var(--font-sans);
  text-shadow: clamp(0.1rem, 0.2vw, 0.2rem) clamp(0.1rem, 0.2vw, 0.2rem) clamp(0.2rem, 0.4vw, 0.4rem) rgba(0, 0, 0, 0.8);
}

.section-title.right {
  text-align: right;
}

.section-title.centered {
  text-align: center;
}

.section-title.large {
  font-size: var(--fs-section-title-lg);
}

/* Hero Section */
.hero {
  padding-top: clamp(8rem, 20vh, 14rem);
  text-align: center;
}

.hero .hero-title {
  font-size: var(--fs-hero);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  line-height: 0.8; /* Reduced to bring lines closer */
  letter-spacing: -0.03em;
  text-shadow: clamp(0.1rem, 0.2vw, 0.2rem) clamp(0.1rem, 0.2vw, 0.2rem) clamp(0.3rem, 0.6vw, 0.6rem) rgba(0, 0, 0, 0.8);
}

.hero .hero-title .italic {
  display: block;
  margin-top: -0.2em; /* Slight negative margin for overlap */
}

.hero .hero-subtitle {
  font-size: clamp(1rem, 2vw, 2rem);
  font-family: var(--font-sans);
  line-height: 1.2;
  font-weight: 100;
  text-align: center;
  margin: 0 auto clamp(3rem, 8vw, 8rem);
  max-width: 1150px;
}

.hero .hero-content-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: clamp(1rem, 3vw, 4rem);
  align-items: center;
  text-align: left;
}

.hero .hero-text-side {
  font-size: var(--fs-ui);
  margin-top: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: auto;
}

.hero .hero-text-side p {
  margin-bottom: 1.5rem;
}

.hero .hero-text-side.right {
  text-align: right;
  margin-top: auto;
  margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

.hero .hero-image img {
  width: 100%;
  max-width: clamp(400px, 100%, 800px);
  height: auto;
  display: block;
  margin: 0 auto;
}

/* About Section */
/* .about {
  background-color: #210c08;
} */

.about .container.narrow {
  max-width: 1650px;
}

.about .label {
  /* text-transform: uppercase; */
  color: var(--color-text-half-muted);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 5rem;
  text-align: center;
}

.about .about-text {
  font-size: clamp(1rem, 2vw, 2rem);
  font-family: var(--font-sans);
  line-height: 1.2;
  font-weight: 100;
  text-align: center;
  margin: 0 auto;
  max-width: 1150px;
}

/* Services Section */
.services .services-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 16rem);
}

.services-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-image img {
  margin-top: clamp(2rem, 1vw, 6rem);
  width: 100%;
  max-width: clamp(300px, 100%, 800px);
  height: auto;
}

.services .services-list {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

.services .service-item {
  border-bottom: 1px solid rgba(253, 250, 245, 0.1);
  padding-bottom: clamp(1rem, 2vw, 2.5rem);
}

.services .service-item h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.services .service-item p {
  color: var(--color-text-half-muted)
}

/* Method Section */
.method .method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 4rem);
}

.method .method-item h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.method .method-item p {
  color: var(--color-text-half-muted)
}

/* Testimonials Section */
.testimonials .testimonials-grid {
  color: var(--color-text-half-muted);
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.testimonial-image img {
  width: 100%;
  /* max-width: clamp(400px, 100%, 750px); */
  height: auto;
}

.testimonials .quotes {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* CTA Section */
.cta .cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 8rem);
  margin-top: clamp(2rem, 5vw, 6rem);
}

.cta .cta-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: baseline;
}

.cta .cta-block h3 {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.cta .cta-block p {
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  padding: clamp(3rem, 6vh, 6rem) 0;
  /* border-top: 1px solid rgba(253, 250, 245, 0.1); */
}

.footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer .social-links {
  display: flex;
  gap: 1.5rem;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.footer .social-links a:hover {
  transform: scale(1.1);
  opacity: 1;
}

.footer .social-links img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-info {
  color: var(--color-text-muted);
  justify-items: end;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--color-bg);
  padding: clamp(1.5rem, 5vw, 3.5rem);
  width: min(90%, 650px);
  border: 1px solid rgba(253, 250, 245, 0.1);
  position: relative;
  max-height: 95vh;
  overflow-y: auto;
  border-radius: 12px;
}

#bookingForm {
  width: 100%;
}

.close-btn {
  display: none;
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: var(--color-accent);
  background-color: var(--color-bg);
}


.modal-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 2rem;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  color: var(--color-text-muted);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.label-row label {
  margin-bottom: 0;
}

.char-limit {
  font-size: 0.7rem;
  color: var(--color-accent);
  opacity: 0.8;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  background-color: rgba(253, 250, 245, 0.05);
  border: 1px solid rgba(253, 250, 245, 0.2);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  border-radius: 8px;
}

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

.btn.wide {
  width: 100%;
  margin-top: 1rem;
}

/* Custom Select */
.custom-select {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.select-trigger {
  padding: 0.8rem;
  background-color: rgba(253, 250, 245, 0.05);
  border: 1px solid rgba(253, 250, 245, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  border-radius: 8px;
  transition: border-radius 0.2s;
}

.custom-select.active .select-trigger {
  border-radius: 8px 8px 0 0;
  border-bottom: none;
}

.select-trigger .arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-text-muted);
}

.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #210c08;
  border: 1px solid rgba(253, 250, 245, 0.2);
  display: none;
  z-index: 10;
  font-family: var(--font-sans);
  font-size: 1rem;
  border-top: none;
  border-radius: 0 0 8px 8px;
}

.custom-select.active .select-options {
  display: block;
}

.option {
  padding: 0.8rem;
  transition: background-color 0.2s;
}

.option:last-child {
  border-radius: 0 0 8px 8px;
}

.option:hover {
  background-color: var(--color-accent);
}

.success-message {
  text-align: center;
  padding: 2rem;
  color: var(--color-accent);
  font-size: 1.2rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  padding: 0;
  background-color: var(--color-accent);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background-color: #c45414;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid white;
}

/* Media Queries */
@media (max-width: 1100px) {
  .hero .hero-content-grid {
    grid-template-columns: 1fr 1.5fr;
  }
  .hero .hero-text-side.right {
    display: none;
  }
}

@media (max-width: 850px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(52, 21, 19, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(253, 250, 245, 0.1);
    z-index: 1100;
  }

  .menu-toggle { display: flex; }
  .desktop-nav, .nav-btn { display: none; }
  .back-to-top { display: none; }
  
  .hero .hero-content-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero .hero-text-side {
    order: 2;
  }
  
  .hero .hero-text-side.right {
    display: block;
    text-align: center;
  }
  
  .hero .hero-image {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .quote-item {
    margin-bottom: clamp(0.1rem, 10vh, 3rem);
  }

  .services .services-grid,
  .testimonials .testimonials-grid,
  .cta .cta-grid {
    grid-template-columns: 1fr;
  }

  .method .method-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .section-title.right {
    text-align: left;
  }

  .footer-info {
    justify-items: center;
  }
  
  .footer .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
