/* 
   Karataş Aspava - Main Styles
   Theme: Dark & Gold (Premium)
*/

:root {
  --primary-color: #d4af37; /* Metallic Gold */
  --primary-dark: #b89628;
  --bg-dark: #121212;
  --bg-card: #1e1e1e;
  --text-light: #f5f5f5;
  --text-muted: #aaaaaa;
  --font-heading: "Cinzel", serif;
  --font-body: "Lato", sans-serif;
  --transition: all 0.3s ease;
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

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

ul {
  list-style: none;
}

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

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

.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 10px;
  text-transform: uppercase;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 10px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-style: italic;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

.btn:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
}

.btn-gold {
  background-color: var(--primary-color);
  color: var(--bg-dark);
}

.btn-gold:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Navbar */
.navbar {
  background-color: rgba(18, 18, 18, 0.98);
  height: 120px; /* Increased height for square logo */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid var(--primary-color); /* Changed to primary color and slightly thicker */
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

/* Footer Pattern and Design */
.footer {
    background-color: #0a0a0a; /* Very dark base */
    background-image: url('../img/common/footer_pattern.png'); /* Relative path for local support */
    background-size: auto; /* Use original size to prevent stretching */
    background-repeat: repeat; /* Tile the image */
    /* Blend mode removed to let the image show naturally */
    position: relative;
    padding: 80px 0 20px;
    color: #ccc;
    border-top: 3px solid var(--primary-color);
    overflow: hidden;
}

/* Very light overlay just to tint, allowing pattern to shine directly */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Only 20% opacity block, rest is image */
    z-index: 1;
}

.footer .container {
    position: relative;
    z-index: 2;
}

/* Sub-Page Header - Standardized */
.sub-header {
    height: 50vh; /* Taller visibility */
    min-height: 400px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 120px; /* Clear the fixed navbar */
}

.sub-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* Good contrast overlay */
    z-index: 1;
}

.sub-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.sub-header h1 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Footer Logo Adjustment */
.footer-logo {
    height: 140px;
    width: auto;
    margin-bottom: 20px;
}

/* Footer QR Link Fix */
.qr-link {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    line-height: 1; /* Fix height issues */
}

.qr-link i {
    margin-right: 0 !important; /* Remove the generic footer icon spacing */
    width: auto !important; /* Allow natural width */
    display: block; /* Ensure it stays centered */
}

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

.logo img {
  height: 100px; /* Increased logo size */
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu li a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-light);
  position: relative;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.nav-menu li a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu li a:hover:after,
.nav-menu li a.active:after {
  width: 100%;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  height: 3px;
  width: 25px;
  background-color: var(--primary-color);
  margin: 3px 0;
  transition: 0.4s;
}

/* Hero Slider */
.hero-slider {
  height: 100vh;
  width: 100%;
  position: relative;
  padding-top: 120px; /* Account for taller fixed header */
  margin-top: -120px; /* Pull back up so background covers everything */
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4); /* Darken image for text readability */
  z-index: -1;
  transform: scale(1.1); /* Slight zoom for parallax feel effect */
  transition: transform 6s ease;
}

.swiper-slide-active .slide-image {
  transform: scale(1); /* Animate to normal scale */
}

.slide-content h1 {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.3s;
}

.slide-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.6s;
}

.slide-content .btn {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.9s;
}

.swiper-slide-active .slide-content h1,
.swiper-slide-active .slide-content p,
.swiper-slide-active .slide-content .btn {
  opacity: 1;
  transform: translateY(0);
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--primary-color);
}

.swiper-pagination-bullet-active {
  background-color: var(--primary-color);
}

/* Featured Section */
.featured-lezzetler {
  background-color: var(--bg-dark);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid transparent;
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-image {
  height: 250px;
  overflow: hidden;
}

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

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

.card-info {
  padding: 20px;
  text-align: center;
}

.card-info h3 {
  color: var(--primary-color);
  font-family: var(--font-heading);
  margin-bottom: 15px;
}

/* Ikramlar Section */
.ikramlar {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* Reduced opacity */
  z-index: 1; /* Ensure it stays behind text but in front of bg */
}

/* Ensure slide-image is behind overlay */
.hero-slider .slide-image {
  z-index: 0;
}


.ikram-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.ikram-content h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 20px;
}

.ikram-content p {
  font-size: 1.2rem;
}

/* QR Section */
.qr-teaser {
  background-color: var(--bg-card);
  text-align: center;
}

.qr-box {
  margin-top: 30px;
}

.qr-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  transition: var(--transition);
}

.qr-link:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.qr-link span {
  margin-top: 15px;
  font-weight: bold;
}

/* Footer */
.footer {
  background-color: #000;
  padding: 60px 0 20px;
  color: #ccc;
  border-top: 1px solid var(--primary-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--primary-color);
  font-family: var(--font-heading);
  margin-bottom: 25px; /* Increased header margin */
}

.footer-col p {
  margin-bottom: 20px; /* Increased paragraph spacing */
  line-height: 1.8; /* Better readability */
}

.footer-col i {
  margin-right: 5px; /* Add space after icons */
  color: var(--primary-color);
  width: 20px; /* Fixed width for alignment */
  text-align: center;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.footer-logo {
  height: 120px;
  margin-bottom: 20px;
}

.social-links {
  margin-top: 20px;
}

.social-links a {
  color: var(--text-light);
  font-size: 1.5rem;
  margin-right: 15px;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.98);
    width: 100%;
    height: calc(100vh - 80px); /* minus height of navbar */
    text-align: center;
    transition: 0.3s;
    padding-top: 40px;
    gap: 40px;
  }

  .nav-menu.active {
    left: 0;
  }

  .slide-content h1 {
    font-size: 2.5rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }
}
