/* ==========================================================================
   Akhmim & Hagaza — site stylesheet
   Plain CSS. No framework, no icon font, no build step.
   Brand colours are sampled from the unified logo.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* logo colours */
  --teal: #134C39;          /* Akhmim */
  --teal-dark: #0D3729;
  --teal-soft: #E4EEEA;
  --brown: #663E1A;         /* Hagaza */
  --brown-dark: #4B2C11;
  --brown-soft: #F1E7DA;
  --paper: #FCF8F5;

  /* neutrals */
  --bg: var(--paper);
  --bg-alt: #F4ECE2;
  --panel: #FFFFFF;
  --ink: #2B2118;
  --muted: #5E5146;
  --line: #E0D4C1;
  --gold: #C79A3A;

  /* the page's own accent — overridden per page below */
  --brand: var(--brown);
  --brand-dark: var(--brown-dark);
  --brand-soft: var(--brown-soft);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-ar: "Amiri", "Traditional Arabic", serif;

  --wrap: 1180px;
  --gap: 30px;
  --radius: 6px;
  --shadow: 0 2px 14px rgba(43, 33, 24, .08);
}

/* per-page themes: set on <body> */
body.theme-akhmim { --brand: var(--teal);  --brand-dark: var(--teal-dark);  --brand-soft: var(--teal-soft); }
body.theme-hagaza { --brand: var(--brown); --brand-dark: var(--brown-dark); --brand-soft: var(--brown-soft); }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover, a:focus-visible { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[lang="ar"] { font-family: var(--font-ar); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brand);
  color: #fff; padding: 12px 18px; z-index: 100; }
.skip:focus { left: 0; }

/* 3. Layout ---------------------------------------------------------------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 50px 0; }
.heading { text-align: center; margin-bottom: 50px; }
.heading h2 { margin-bottom: 10px; }
.heading h2 span { color: var(--brand); }
.heading p { color: var(--muted); max-width: 640px; margin-inline: auto; }
.heading::after { content: ""; display: block; width: 70px; height: 3px;
  background: var(--brand); margin: 18px auto 0; }
.heading--start { text-align: start; }
.heading--start::after { margin-inline-start: 0; }
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split--sidebar { grid-template-columns: 2fr 1fr; align-items: start; }
.lead { font-size: 19px; color: var(--muted); }

/* image placeholders — replace each .ph with a real <img> */
.ph { background: repeating-linear-gradient(45deg, #efe4d3 0 12px, #e7dac6 12px 24px);
  border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; color: var(--muted);
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase; aspect-ratio: 4 / 3; }
.ph--square { aspect-ratio: 1 / 1; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 3 / 4; }

/* 4. Buttons --------------------------------------------------------------- */
.btn { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .12em;
  text-transform: uppercase; padding: 14px 30px; min-height: 44px; font-family: inherit;
  border: 2px solid var(--brand); border-radius: var(--radius);
  background: var(--brand); color: #fff; cursor: pointer; }
.btn:hover, .btn:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; text-decoration: none; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg-alt); border-color: var(--bg-alt); color: var(--ink); }

/* 5. Top bar --------------------------------------------------------------- */
.topbar { background: var(--ink); color: #e8ddcb; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; padding-block: 10px; }
.topbar a { color: #e8ddcb; }
.topbar a:hover { color: #fff; }
.topbar ul { display: flex; gap: 20px; flex-wrap: wrap; }

/* 6. Header ---------------------------------------------------------------- */
.masthead .wrap { display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { width: 68px; height: 68px; object-fit: contain; }
.logo .names { font-family: var(--font-display); font-size: 27px; font-weight: 700; line-height: 1.05; }
.logo .names em { font-style: normal; color: var(--teal); }
.logo .names b { font-weight: 700; color: var(--brown); }
.logo small { display: block; font-family: var(--font-body); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.masthead-tools { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--panel);
  color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }

/* 7. Navigation ------------------------------------------------------------ */
.nav { background: var(--brand); position: sticky; top: 0; z-index: 50; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.nav ul { display: flex; flex-wrap: wrap; }
.nav a { color: #fff; display: block; padding: 16px 18px; font-weight: 700;
  font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-dark); text-decoration: none; }
.nav li.has-sub { position: relative; }
.nav .sub { display: none; position: absolute; inset-inline-start: 0; top: 100%;
  background: var(--panel); min-width: 230px; box-shadow: var(--shadow);
  border: 1px solid var(--line); flex-direction: column; z-index: 60; }
.nav li.has-sub:hover .sub, .nav li.has-sub:focus-within .sub { display: flex; }
.nav .sub a { color: var(--ink); text-transform: none; letter-spacing: 0;
  padding: 12px 18px; border-bottom: 1px solid var(--line); }
.nav .sub a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 14px;
  cursor: pointer; font: inherit; }
.nav-toggle svg { width: 26px; height: 26px; }

/* 8. Hero slider (home) ---------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.slide { display: none; min-height: 520px; align-items: center; position: relative; }
.slide[data-active] { display: flex; }
.slide-1 { background: linear-gradient(120deg, #0D3729, #2B6F55); }
.slide-2 { background: linear-gradient(120deg, #4B2C11, #96693B); }
.slide-3 { background: linear-gradient(120deg, #134C39, #663E1A); }
.slide::after { content: ""; position: absolute; inset: 0; background: rgba(20, 14, 10, .32); }
.slide .wrap { position: relative; z-index: 2; color: #fff; padding-block: 90px; }
.slide .slide-text { max-width: 620px; }
.slide h1 { color: #fff; }
.slide p { font-size: 19px; }
.slide .eyebrow { letter-spacing: .25em; text-transform: uppercase; font-size: 13px;
  font-weight: 700; color: var(--gold); }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 251, 244, .85); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; z-index: 3; }
.hero-arrow:hover { background: #fff; }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow.prev { inset-inline-start: 20px; }
.hero-arrow.next { inset-inline-end: 20px; }
.hero-dots { position: absolute; bottom: 22px; inset-inline: 0; display: flex;
  justify-content: center; gap: 10px; z-index: 3; }
.hero-dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff;
  background: transparent; cursor: pointer; padding: 0; }
.hero-dots button[aria-selected="true"] { background: #fff; }

/* 9. Page banner (inner pages) --------------------------------------------- */
.banner { background: var(--brand); color: #fff; padding: 60px 0; text-align: center; }
.banner h1 { color: #fff; margin-bottom: 8px; }
.banner p { color: rgba(255, 255, 255, .88); max-width: 680px; margin-inline: auto; }
.banner .ar { font-family: var(--font-ar); font-size: 24px; color: var(--gold); margin-bottom: 4px; }
.crumbs { background: var(--bg-alt); font-size: 14px; }
.crumbs .wrap { display: flex; gap: 8px; flex-wrap: wrap; padding-block: 12px; color: var(--muted); }

/* 10. Village cards (home) ------------------------------------------------- */
.village { border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.village .village-body { padding: 26px; }
.village h3 { font-size: 28px; margin-bottom: 2px; }
.village .ar { font-family: var(--font-ar); font-size: 21px; margin-bottom: 10px; }
.village--akhmim h3, .village--akhmim .ar { color: var(--teal); }
.village--hagaza h3, .village--hagaza .ar { color: var(--brown); }
.village--akhmim { border-top: 5px solid var(--teal); }
.village--hagaza { border-top: 5px solid var(--brown); }

/* 11. Product cards -------------------------------------------------------- */
.product { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; }
.product-media { position: relative; }
.product-overlay { position: absolute; inset: 0; background: rgba(43, 33, 24, .55);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transition: opacity .2s ease; }
.product:hover .product-overlay, .product:focus-within .product-overlay { opacity: 1; }
.product-overlay .icon-btn { background: #fff; border-color: #fff; }
.product-body { padding: 18px; text-align: center; }
.product-body h3 { font-size: 20px; margin-bottom: 4px; }
.product-body .ar { font-family: var(--font-ar); color: var(--muted); margin-bottom: 6px; }
.price { color: var(--brand); font-weight: 700; font-size: 18px; }
.tagline { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.badge--akhmim { background: var(--teal-soft); color: var(--teal); }
.badge--hagaza { background: var(--brown-soft); color: var(--brown); }

/* 12. Filters -------------------------------------------------------------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filters button { font: inherit; font-weight: 700; font-size: 14px; padding: 10px 20px;
  min-height: 44px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); border-radius: 30px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* 13. Accordion ------------------------------------------------------------ */
.accordion { border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--panel); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary { cursor: pointer; padding: 18px 20px; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 24px; color: var(--brand); line-height: 1; }
.accordion details[open] summary { background: var(--brand-soft); }
.accordion details[open] summary::after { content: "\2013"; }
.accordion .acc-body { padding: 0 20px 18px; color: var(--muted); }

/* 14. Artisans ------------------------------------------------------------- */
.artist { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.artist h3 { margin-bottom: 2px; }
.artist .role { color: var(--brand); font-size: 14px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.social { display: flex; gap: 10px; margin-top: 12px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--ink); }
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; text-decoration: none; }
.social svg { width: 16px; height: 16px; }

/* 15. Steps (how it is made) ----------------------------------------------- */
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; margin-bottom: 14px; }

/* 16. Quotes --------------------------------------------------------------- */
.quote { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.quote blockquote { margin: 0 0 16px; font-size: 18px; font-style: italic; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote .avatar { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto; aspect-ratio: 1; }
.quote .who { font-weight: 700; }
.quote .where { color: var(--muted); font-size: 14px; }

/* 17. Journal -------------------------------------------------------------- */
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-media { position: relative; }
.post-date { position: absolute; inset-block-start: 14px; inset-inline-start: 14px;
  background: var(--brand); color: #fff; text-align: center; padding: 8px 12px;
  border-radius: 4px; line-height: 1.1; font-weight: 700; }
.post-date span { display: block; font-size: 12px; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; }
.post-body { padding: 20px; }
.post-body h3 { font-size: 21px; }
.post-meta { font-size: 13px; color: var(--muted); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 8px; }
.article { max-width: 760px; }
.article h2 { margin-top: 1.4em; }
.article blockquote { border-inline-start: 4px solid var(--brand); margin: 1.5em 0;
  padding: 4px 0 4px 20px; font-size: 19px; font-style: italic; color: var(--muted); }
.sidebar .card { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.sidebar h3 { font-size: 20px; }
.sidebar li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.sidebar li:last-child { border-bottom: 0; }

/* 18. Product detail ------------------------------------------------------- */
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.spec-table th, .spec-table td { text-align: start; padding: 11px 12px;
  border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 40%; font-weight: 700; color: var(--muted);
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.qty { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.qty input { width: 90px; min-height: 46px; padding: 10px; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-top: 40px; }
.tabs button { font: inherit; font-weight: 700; padding: 12px 20px; min-height: 44px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.tabpanel { padding-top: 24px; }
.tabpanel[hidden] { display: none; }

/* 19. Forms ---------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
input, select, textarea { font: inherit; width: 100%; padding: 12px; min-height: 46px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); }

/* 20. Facts / contact cards ------------------------------------------------ */
.fact { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; text-align: center; }
.fact .big { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--brand); line-height: 1; }
.fact p { margin: 8px 0 0; color: var(--muted); }
.contact-card { background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; }
.contact-card svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 10px; }

/* 21. Partners ------------------------------------------------------------- */
.partners { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.partners .ph { width: 180px; aspect-ratio: 3 / 1; }

/* 22. Footer --------------------------------------------------------------- */
.footer { background: var(--ink); color: #d9cdb9; padding: 70px 0 40px; }
.footer h3 { color: #fff; font-size: 22px; }
.footer a { color: #d9cdb9; }
.footer a:hover { color: #fff; }
.footer .links li { padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .contact li { display: flex; gap: 10px; padding: 6px 0; }
.footer .contact svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 4px; color: var(--gold); }
.newsletter { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.newsletter input { flex: 1 1 180px; min-height: 46px; padding: 10px 14px; font: inherit;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); color: #fff; }
.newsletter input::placeholder { color: #b9ab96; }
.subfooter { background: #17110d; color: #a99a85; font-size: 14px; }
.subfooter .wrap { display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding-block: 18px; }

/* 23. Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split, .split--sidebar { grid-template-columns: 1fr; gap: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .nav .wrap { flex-direction: column; align-items: stretch; }
  .nav ul.menu { display: none; flex-direction: column; padding-bottom: 10px; }
  .nav ul.menu[data-open] { display: flex; }
  .nav .sub { position: static; display: block; border: 0; box-shadow: none; background: transparent; }
  .nav .sub a { color: #ffeede; padding-inline-start: 36px; border-bottom: 0; }
  .nav .sub a:hover { background: var(--brand-dark); color: #fff; }
}
@media (max-width: 620px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .artist { grid-template-columns: 1fr; }
  .slide { min-height: 420px; }
  .topbar .wrap { justify-content: center; }
  .logo .names { font-size: 22px; }
}

/* 24. Motion and print ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .nav, .topbar, .hero-arrow, .hero-dots, .newsletter, .filters { display: none; }
  body { color: #000; background: #fff; }
}
