/* ==========================================================
   CINCINA — one stylesheet for the whole site

   Contents
   1. Settings (colours, fonts)      5. Page sections
   2. Product-line accents           6. Cards (landing page)
   3. Basics                         7. Footer
   4. Corner sprigs, header, menus   8. Phones
   ========================================================== */


/* ---------- 1. Settings ----------
   Change a value here and the whole site follows.            */
:root {
  --paper:   #f6f5f1;   /* off-white background, like the label */
  --ink:     #2b2b2b;   /* main text */
  --muted:   #6f6f6a;   /* secondary text */
  --line:    #dcdcd5;   /* thin dividers, photo placeholders */

  --accent:    #5f7d72; /* default accent (estate pages) */
  --accent-lt: #a9c2b8;

  --font: "Jost", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1000px;
}


/* ---------- 2. Product-line accents ----------
   Each page's <body> carries one of these classes.
   To add a new line: add a class here, use it on its pages.  */
.line-estate  { --accent: #5f7d72; --accent-lt: #a9c2b8; }  /* sage  */
.line-lavanda { --accent: #6e6a8e; --accent-lt: #b9b4d4; }  /* lavender */
.line-olio    { --accent: #6b7038; --accent-lt: #b8bb86; }  /* olive */
.line-cosmetici    { --accent: #6b7038; --accent-lt: #b8bb86; }  /* cosmetici */


/* ---------- 3. Basics ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-weight: 300;
  letter-spacing: 0.08em;
  margin: 0 0 0.6em;
}
h3 { font-size: 1.25rem; }


/* ---------- 4a. Corner sprigs ----------
   ::before = top-right sprig, ::after = bottom-left sprig.  */
.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 34vw;
  max-width: 460px;
  aspect-ratio: 1;
  background-repeat: no-repeat;
  background-size: contain;
}

/* Paths are relative to THIS css file, so they work from every folder */
.page::before {
  top: 0; right: 0;
  background-image: url("../images/decor/sprig-top.png");
  background-position: top right;
}
.page::after {
  bottom: 0; left: 0;
  background-image: url("../images/decor/sprig-bottom.png");
  background-position: bottom left;
}

.page > * { position: relative; z-index: 1; }


/* ---------- 4b. Site header + site menu ---------- */
.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 56px;           /* menu sits beside the logo, clear of the sprig */
}

.brand {
  color: var(--ink);
  font-size: 1.1rem;
  letter-spacing: 0.25em;
}
.brand:hover { text-decoration: none; }

.site-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* the page you're on: mark its menu item with aria-current="page" */
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}


/* ---------- 4b+. Language switcher (EN · IT) ----------
   Sits after the site menu, separated by a thin line.        */
.lang-switch {
  display: flex;
  gap: 12px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.lang-switch a {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
}
.lang-switch a:hover { color: var(--ink); text-decoration: none; }
.lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 400; }


/* ---------- 4c. Breadcrumb + section menu (inside a product line) ---------- */
.breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 8px 0 0;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 0.5em; }

.section-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 14px 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-nav a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.section-nav a[aria-current="page"] { color: var(--accent); font-weight: 400; }


/* ---------- 5. Page sections ---------- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 24px 0; }
section + section { border-top: 1px solid var(--line); }

/* Big opening block — estate home page */
.hero {
 /* min-height: 62vh; */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
}
.hero h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  letter-spacing: 0.06em;
  margin-bottom: 0.2em;
}

/* Smaller opening block — product-line and inner pages */
.page-intro { padding: 40px 0 56px; }
.page-intro h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0.5em 0 0.2em;
}

.tagline {
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.6em;
}
.intro { max-width: 34em; color: var(--muted); }

/* Full-width photo */
.wide-photo { margin: 0; }
.wide-photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: var(--line);
}

/* Readable block of text (the estate story etc.) -
   the section stays full width so its divider line does too */
.prose > * { max-width: 38em; }

/* less space straight after a page intro */
.page-intro + section { padding-top: 24px; }

/* Photo + text side by side */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.reverse .photo { order: 2; }

.photo { margin: 0; }
.photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--line);
}

.detail {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.2em;
}
.price { font-size: 1.3rem; margin-top: 0; }
.price { display: none; }

/* Text-style link with an arrow: "Discover the lavender →" */
.more {
  display: inline-block;
  margin-top: 0.6em;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Centred sections */
.centered { text-align: center; }

.markets {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 30em;
}
.markets li { padding: 10px 0; }
.when {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* Bulleted list with accent-coloured bullets */
.seasons {
  padding-left: 1.2em;
  margin: 0;
}
.seasons li {
  margin-bottom: 1em;
  padding-left: 0.3em;
}
.seasons li::marker {
  color: var(--accent);        /* olive on Olio pages */
}
.seasons strong {
  font-weight: 400;
  color: var(--accent);
}

/* ---------- 6. Cards (product lines on the landing page) ----------
   Each card carries its own line class, so it picks up that accent. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 32px;
}

.card {
  display: block;
  color: var(--ink);
}
.card:hover { text-decoration: none; }

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--line);
  transition: opacity 0.3s;
}
.card:hover img { opacity: 0.85; }

.card h3 { margin-top: 18px; margin-bottom: 0.3em; }
.card p { color: var(--muted); margin: 0; }
.card .more { color: var(--accent); }


/* ---------- 7. Footer ---------- */
.site-footer {
  text-align: center;
  padding: 48px 24px 160px;    /* extra bottom space for the sprig */
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.site-footer p { margin: 0.3em 0; }
.site-footer a { color: var(--muted); }


/* ---------- 8. Phones ---------- */
@media (max-width: 700px) {
  /* header on phones: logo + EN/IT on the first line, menu below */
  .site-header { gap: 10px 16px; }
  .brand { flex: 1; }
  .lang-switch { order: 2; border-left: none; padding-left: 0; }
  .site-nav { order: 3; width: 100%; gap: 6px 16px; }
  .site-nav a { font-size: 0.78rem; letter-spacing: 0.12em; }

  body { font-size: 17px; }

  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .photo { order: 0; }

  section { padding: 52px 0; }
  .wide-photo img { aspect-ratio: 4 / 3; }

  .page::before,
  .page::after { width: 55vw; opacity: 0.55; }

  .site-nav { gap: 16px; }
  .section-nav { gap: 20px; }
}
