*,
::after,
::before {
  box-sizing: border-box;
  scroll-behavior: smooth
}
/* fonts */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600&family=Montserrat&display=swap');
html {
  font-size: 100%;
} /*16px*/

:root {
  /* colors */
  --primary-100: #e2e0ff;
  --primary-200: #c1beff;
  --primary-300: #a29dff;
  --primary-400: #837dff;
  --primary-500: #f2c217;
  --primary-600: #504acc;
  --primary-700: #3c3799;
  --primary-800: #282566;
  --primary-900: #141233;

  --sandwich-btn-color: #f2c217;
  --sandwich-btn-color-hover: #c39c0e;
  --whatsuppButton: #40C351;
  --whatsuppButtonHover: #27a537;

  /* grey */
  --grey-50: #f8fafc;
  --grey-100: #f1f5f9;
  --grey-200: #e2e8f0;
  --grey-300: #cbd5e1;
  --grey-400: #94a3b8;
  --grey-500: #64748b;
  --grey-600: #475569;
  --grey-700: #334155;
  --grey-800: #1e293b;
  --grey-900: #0f172a;
  /* rest of the colors */
  --black: #222;
  --white: #fff;
  --red-light: #f8d7da;
  --red-dark: #842029;
  --green-light: #d1e7dd;
  --green-dark: #0f5132;

  /* fonts  */
  --headingFont: 'Roboto', sans-serif;
  --bodyFont: 'Karla';
  --smallText: 0.7em;
  /* rest of the vars */
  --backgroundColor: var(--grey-50);
  --textColor: var(--grey-900);
  --borderRadius: 0.25rem;
  --letterSpacing: 1px;
  --transition: 0.3s ease-in-out all;
  --max-width: 1120px;
  --medium-width: 800px;
  --small-width: 600px;
  --mobile-width: 400px;
  --fixed-width: 600px;

  /* box shadow*/
  --shadow-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-4: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
  background: var(--backgroundColor);
  font-family: var(--bodyFont);
  font-weight: 400;
  line-height: 1.75;
  color: var(--textColor);
}

a {
  text-decoration: none;
}

.btn {
  cursor: pointer;
  color: var(--white);
  background: var(--whatsuppButton);
  border: transparent;
  border-radius: 999px;
  letter-spacing: var(--letterSpacing);
  padding: 0.375rem 0.75rem;
  box-shadow: var(--shadow-1);
  /* transition: var(--transtion); */
  text-transform: capitalize;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: 600ms;
}
.btn:hover {
  background: var(--whatsuppButtonHover);
  box-shadow: var(--shadow-3);
}

.sandwich-btn-color {
  background: var(--sandwich-btn-color);
}

.sandwich-btn-color:hover { 
  background: var(--sandwich-btn-color-hover);
}


/* title */

.title {
  font-size: 28px;
  font-weight: 600;
  align-self: self-start;
}

.title-underline {
  background: var(--primary-500);
  width: 7rem;
  height: 0.25rem;
  margin: 0 auto;
  margin-top: -1rem;
}

@media (max-width: 800px) {
  .title {
    font-size: 22px;
    font-weight: 600;
  }
}

/* @media (max-width: 400px) {
  .title {
    font-size: 18px;
    font-weight: 600;
  }
} */

/*
=============== 
Navbar
===============
*/

.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-center {
  width: 90vw;
  max-width: var(--max-width);
}
.nav-header {
  height: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-header img {
  width: 200px;
}
.nav-logo {
  display: flex;
  align-items: flex-end;
  width: auto;
  height: 70px;
}

.nav-logo img{
  width: auto;
  height: 70px;
}

.nav-btn {
  padding: 0.15rem 0.75rem;
}
.nav-btn i {
  font-size: 1.25rem;
}
.nav-links {
  height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.show-links {
  height: 23.9375rem;
}

.nav-link {
  display: block;
  text-align: center;
  font-size: 1.25rem;
  text-transform: capitalize;
  color: var(--grey-900);
  letter-spacing: var(--letterSpacing);
  padding: 1rem 0;
  border-top: 1px solid var(--grey-500);
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--primary-500);
}

.contact-link a {
  padding: 0.15rem 1rem;
}

@media screen and (min-width: 992px) {
  .navbar {
    height: 6rem;
  }
  .nav-center {
    display: flex;
    align-items: center;
  }
  .nav-header {
    padding: 0;
    margin-right: 2rem;
    height: auto;
  }

  .nav-btn {
    display: none;
  }
  .nav-links {
    height: auto !important;
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
  .nav-link {
    padding: 0;
    border-top: none;
    margin-right: 1rem;
    font-size: 1rem;
  }
  .contact-link {
    margin-right: 0;
    margin-left: auto;
  }
}

@media (max-width: 400px) {
  .nav-logo {
    width: 50px;
    height: 50px;
  }

  .nav-logo img{
    width: auto;
    height: 50px;
  }
}

/*
=============== 
Page
===============
*/

.page {
  width: 90vw;
  max-width: var(--max-width);
  margin: 0 auto;
}
.page {
  padding-top: 2rem;
  min-height: calc(100vh - (6rem + 4rem));
}

.wrapper{
  margin-top: 80px;
  margin-left: 40px;
  margin-right: 40px;
  
}
/*
=============== 
Footer
===============
*/

.page-footer {
  text-align: center;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  color: var(--white);
  margin-top: 60px;
}
.page-footer h5 {
  margin-top: 0;
  margin-bottom: 0;
}
.page-footer p {
  margin-bottom: 0;
}
.page-footer .footer-logo,
.page-footer a {
  color: var(--primary-500);
}
/*
=============== 
Hero
===============
*/

.hero {
  height: 40vh;
  position: relative;
  margin-bottom: 2rem;
  background: url('../assets/insaat.webp') center/cover no-repeat;
  border-radius: var(--borderRadius);
}
.hero-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--borderRadius);
  justify-content: right;
  align-items: end;
}

.hero-text {
  color: var(--white);
  margin-right: 60px;
  margin-bottom: 40px;
  font-size: 48px;
}


@media (max-width: 800px) {
  .hero-text {
    margin-right: 40px;
    margin-bottom: 30px;
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .hero-text {
    margin-right: 20px;
    margin-bottom: 20px;
    font-size: 24px;
  }
}

@media (max-width: 400px) {
  .hero-text {
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 20px;
    font-size: 18px;
  }
}

/*
=============== 
FAQ SECTION
===============
*/

.faq-container {
  flex: 1;
  background-color: #f9f9f9;
  margin-top: 60px;
}

.button-container {
  flex: 1;
  margin: 20px auto;
  text-align: center;
  background-color: #fff;
  cursor: pointer;
  border-radius: 16px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.toggle-button {
  width: 100%;
  height: 80px;
  color: black;
  border: none;
  background-color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 600;
  margin-left: 30px;
  margin-right: 30px;
  justify-content: space-between;
  /* transition: background-color 0.3s ease; */
}


.description {
  max-height: 0;
  /* overflow: hidden; */
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  padding: 0 15px;
  transition: max-height 0.5s ease;
  text-align: justify;
  font-size: 16px;
  font-weight: 400;
  margin-left: 30px;
  margin-right: 30px;
}

.description.open {
  max-height: 1080px; /* Açıklamanın görünür yüksekliği */
  padding: 10px 15px; /* İç dolgu */
  margin-bottom: 30px;
}


@media (max-width: 800px) {
  .toggle-button {
    height: 60px;
    font-size: 18px;
    margin-left: 16px;
    margin-right: 16px;
  }
  .description {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 400px) {
  .button-container {
    border-radius: 8px;
  }
  .toggle-button {
    height: 60px;
    font-size: 16px;
    margin-left: 8px;
    margin-right: 8px;
  }
  .description {
    margin-left: 8px;
    margin-right: 8px;
  }
}

/*
=============== 
Error
===============
*/

.error-page {
  text-align: center;
  padding-top: 5rem;
}
.error-page h1 {
  font-size: 9rem;
}

/*
=============== 
About Section
===============
*/

.about-container {
  display: flex;
  flex-direction: row;
  margin-top: 60px;
  justify-content: space-between;
}

.about-text {
  margin-right: 40px;
}

.about-image {
  border-radius: 16px;
  align-self: center;
  width: 400px;
  height: 400px;
}

@media (max-width: 1000px) {
  .about-image {
    border-radius: 16px;
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 800px) {
  .about-container {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .about-image {
    width: 100%;
    height: auto;
  }
}

/*
=============== 
Contact Section
===============
*/

.contact-container {
  display: flex;
  flex-direction: row;
  margin-top: 60px;
  justify-content: space-between;
}
.contact-map {
  border-radius: 16px;
  display: flex;
  flex: 1;
  width: auto;
  height: 400px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin-left: 30px;
  margin-right: 40px;
}

.contact-text h2 {
  font-size: 24px;
  font-weight: 500;
  margin-top: 10px;
}

.contact-text p {
  color: #666;
}
.contact-text a {
  color: #666;
}
.contact-text span {
  color: #666;
}

.contact-info-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.adress-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.adress-container p {
  line-height: .4;
}
@media (max-width: 800px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-text {
    margin-left: 0px;
    flex-direction: row;
    margin-top: 60px;
    align-items: start;
    justify-content: space-around;
    margin-right: 0px;
  }

  .contact-info-container {
    flex-direction: column;
  }

  .adress-container {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .contact-text {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .contact-text h2 {
    font-size: 20px;
  }
}

/* PRODUCTS SECTION */

.products-container {
  /* max-width: 1200px;
  margin: 0 auto; */
  margin-top: 60px;
}

.product-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

@media (max-width: 640px) {
  .product-title {
    text-align: center;
    margin-bottom: 22px;
    color: #333;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
  aspect-ratio: 1;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 80%;
  /* object-fit: cover; */
}

.product-image {
  width: 95%;
  height: 95%;
  /* margin: 10px; */
  box-sizing: content-box;
  object-fit: contain;
}

.product-info {
  padding: 15px;
}

.product-name {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 5px;
  line-height: 20px;
}

.product-price {
  color: #2ecc71;
  font-weight: bold;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 15px;
}

.modal-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.modal-price {
  color: #2ecc71;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.modal-description {
  color: #666;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .products-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

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