/*
 * Global stylesheet for the Turco.cl website (v2)
 * Defines a clean, modern look inspired by Turkish colours and motifs.
 * Uses CSS variables for easy theming and responsiveness.
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

:root {
  --primary: #0e375e;    /* deep blue reminiscent of Iznik tiles */
  --secondary: #c3913d;  /* warm golden accent */
  --accent: #28597a;     /* mid‑tone blue for subtle highlights */
  --bg: #f7f0e6;        /* light beige background */
  --text: #2a2a2a;      /* dark neutral for body text */
  --light: #ffffff;     /* pure white for contrast */
  --shadow: rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

/* Header and navigation */
header {
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px var(--shadow);
}

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

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s;
  letter-spacing: 0.5px;
}

nav a:hover {
  color: var(--secondary);
}

nav a.active {
  color: var(--secondary);
}

/* Hero sections */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 70vh;
  min-height: 400px;
  color: var(--light);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero .content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.75rem;
  margin: 0;
  line-height: 1.2;
}

.hero p {
  margin-top: 1rem;
  font-size: 1.25rem;
}

.hero .btn {
  display: inline-block;
  margin-top: 2rem;
  background-color: var(--secondary);
  color: var(--light);
  padding: 0.8rem 1.6rem;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.hero .btn:hover {
  background-color: #9c7030;
}

/* Section styling */
.section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  text-align: center;
  color: var(--primary);
  margin-bottom: 2rem;
}

.section p.intro {
  font-size: 1.1rem;
  margin: 0 auto 2rem;
  max-width: 800px;
  text-align: center;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--light);
  border: 1px solid #e6e0d2;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow);
  padding: 1.5rem;
  transition: transform 0.3s;
  position: relative;
}

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

.card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}

.card a:hover {
  text-decoration: underline;
}

/* List containers for restaurants, shops, community etc. */
.list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 900px;
  margin: auto;
}

.list-item {
  background-color: var(--light);
  border-left: 4px solid var(--secondary);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 4px var(--shadow);
}

.list-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}

.list-item p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.list-item small {
  display: block;
  margin-top: 0.5rem;
  color: var(--accent);
}

/* Recipe sections */
details.recipe {
  background-color: var(--light);
  border: 1px solid #e6e0d2;
  border-left: 4px solid var(--secondary);
  border-radius: 4px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px var(--shadow);
}

details.recipe summary {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  outline: none;
}

details.recipe summary::marker {
  font-size: 1.1rem;
  color: var(--secondary);
}

details.recipe p {
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--bg);
  padding: 2rem;
  text-align: center;
  margin-top: 4rem;
}

footer a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.25rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  header {
    padding: 0 1rem;
  }
  nav {
    gap: 0.8rem;
  }
}