/*
  TIRANA.CSS — Stylesheet for the Tirana website
  ================================================
  CSS controls how everything LOOKS.
  We use "variables" at the top to store our colours and fonts,
  so it's easy to change them in one place.
*/


/* ── VARIABLES ──────────────────────────────────────
   These are like settings. Change a value here and
   it updates everywhere it's used on the page.
─────────────────────────────────────────────────── */
:root {
  --bg:        #f8f6f1;   /* page background (warm off-white) */
  --bg-grey:   #f0ede6;   /* slightly darker background for alternating sections */
  --text:      #1a1917;   /* main text colour (near black) */
  --muted:     #7a756e;   /* secondary text colour (grey) */
  --border:    #dedad3;   /* colour for lines and borders */
  --red:       #c13228;   /* accent colour (Albanian red) */
  --white:     #ffffff;
}


/* ── RESET ──────────────────────────────────────────
   Removes default spacing that browsers add,
   so we start from a clean slate.
─────────────────────────────────────────────────── */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* makes sizing more predictable */
}

html {
  scroll-behavior: smooth; /* smooth scrolling when clicking nav links */
}


/* ── BODY (base styles) ─────────────────────────── */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
}


/* ── NAVIGATION BAR ─────────────────────────────── */
#navbar {
  position: fixed;       /* stays at the top when you scroll */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;          /* sits above everything else */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 3rem;
  height: 64px;
  background-color: rgba(248, 246, 241, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s; /* smooth change when scrolling */
}

/* This class is added by JavaScript when you scroll down */
#navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text);
  text-decoration: none; /* removes the default underline on links */
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none; /* removes the bullet points */
}

.nav-links a {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s; /* smooth colour change on hover */
}

.nav-links a:hover {
  color: var(--text);
}

/* The active link (current section) gets an underline, added by JavaScript */
.nav-links a.active {
  color: var(--text);
  border-bottom: 1.5px solid var(--red);
  padding-bottom: 2px;
}


/* ── HERO SECTION ───────────────────────────────── */
#hero {
  min-height: 100vh;          /* fills the full screen height */
  padding: 140px 3rem 5rem;   /* top padding accounts for the fixed navbar */
  border-bottom: 1px solid var(--border);
  display: flex;              /* enables flexbox layout */
  flex-direction: column;     /* stacks children vertically */
  align-items: center;        /* centers children horizontally */
  text-align: center;         /* centers the text inside each element */
}

.hero-label {
  font-size: 2rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem); /* clamp = min, preferred, max size */
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--red); /* makes the italic word red */
}

.hero-description {
  font-size: 1rem;
  color: var(--muted);
  max-width: 460px;
  margin-bottom: 2.5rem;
}

.hero-button {
  display: inline-block;
  background-color: var(--text);
  color: var(--white);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 4px;
  transition: background-color 0.25s, transform 0.25s;
}

.hero-button:hover {
  background-color: var(--red);
  transform: translateY(-2px); /* lifts up slightly on hover */
}

/* The row of numbers (800K, 543m, 1614) */
.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;  /* centers the three stat boxes */
  margin-top: 4rem;
  padding-top: 2.5rem;
  width: 100%;              /* stretches to full width so the border line looks right */
  border-top: 1px solid var(--border);
}

.stat-box {
  /* Each stat is a small column */
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
}

.stat-unit {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--text);
}

.stat-label {
  display: block;         /* puts it on its own line */
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}


/* ── SHARED SECTION STYLES ──────────────────────── */
.section {
  padding: 6rem 3rem;
  border-bottom: 1px solid var(--border);
}

/* Alternating grey background for some sections */
.section-grey {
  background-color: var(--bg-grey);
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.7rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 3rem;
}

.section-title em {
  font-style: italic;
}


/* ── ABOUT SECTION ──────────────────────────────── */
/* Two-column layout: text on the left, quote on the right */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 4rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  border-left: 2px solid var(--red);
  padding-left: 1.5rem;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}


/* ── CARDS GRID (Highlights) ────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 1px;                               /* tiny gap creates border effect */
  background-color: var(--border);        /* shows through the gaps as lines */
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.card {
  background-color: var(--bg-grey);
  padding: 2rem;
  transition: background-color 0.2s;
}

.card:hover {
  background-color: var(--white);
}

.card-number {
  display: block;
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.card p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.card-tag {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 500;
}


/* ── FOOD GRID ──────────────────────────────────── */
.food-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns */
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.food-item {
  padding: 2rem 2.2rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
}

/* Add a right border to items in the left column */
.food-item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

/* Remove bottom border from the last two items */
.food-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.food-item:hover {
  background-color: var(--white);
}

.food-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.food-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  background-color: rgba(193, 50, 40, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 500;
  margin-bottom: 0.7rem;
}

.food-item p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.75;
}


/* ── TIPS GRID ──────────────────────────────────── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  gap: 1.5rem;
}

.tip-item {
  padding: 2rem;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.tip-item:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);
  transform: translateY(-3px);
}

.tip-icon {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
}

.tip-item h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.tip-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
}


/* ── FOOTER ─────────────────────────────────────── */
footer {
  background-color: var(--text);
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--white);
}

.footer-text {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

#back-to-top {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

#back-to-top:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}


/* ── SCROLL REVEAL ANIMATION ────────────────────── */
/*
  Elements with class "reveal" start invisible and
  slide up. JavaScript adds the "visible" class when
  they enter the screen, which triggers this transition.
*/
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── RESPONSIVE (mobile/tablet) ─────────────────── */
/*
  @media rules apply styles only when the screen
  is a certain width. This makes the site work on phones.
*/
@media (max-width: 900px) {
  .about-grid         { grid-template-columns: 1fr; }
  .cards-grid         { grid-template-columns: 1fr 1fr; }
  .tips-grid          { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  #navbar             { padding: 0 1.5rem; }
  .nav-links          { display: none; } /* hide nav links on small screens */
  #hero               { padding: 120px 1.5rem 4rem; }
  .hero-stats         { gap: 2rem; }
  .section            { padding: 4rem 1.5rem; }
  .about-grid         { grid-template-columns: 1fr; }
  .cards-grid         { grid-template-columns: 1fr; }
  .food-grid          { grid-template-columns: 1fr; }
  .food-item:nth-child(odd)          { border-right: none; }
  .food-item:nth-last-child(-n+2)    { border-bottom: 1px solid var(--border); }
  .food-item:last-child              { border-bottom: none; }
  .tips-grid          { grid-template-columns: 1fr; }
  footer              { flex-direction: column; text-align: center; }
}