/* ===== CYPRUS BUSINESS DIRECTORY — Design System ===== */
/* Palette: Mediterranean limestone white, deep Aegean navy, terracotta accent, olive text */

:root {
  --white: #FAFAF7;
  --navy: #1B2D45;
  --navy-light: #243852;
  --terracotta: #C4581A;
  --terracotta-light: #E8D5C8;
  --olive: #3D4A2E;
  --stone: #8A8279;
  --border: #DDD9D0;
  --bg-subtle: #F3F0EA;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  line-height: 1.7;
  font-size: 1rem;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--navy);
  border-bottom: 3px solid var(--terracotta);
  padding: 0 1.5rem;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--terracotta);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: -1px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  font-weight: normal;
  letter-spacing: 0.01em;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--terracotta-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.82rem;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.site-nav a:hover { color: #fff; background: var(--navy-light); }
.site-nav a.active { color: var(--terracotta-light); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e3a5f 100%);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { max-width: 700px; margin: 0 auto; position: relative; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.hero h1 em { font-style: normal; color: #f4a66a; }
.hero p {
  color: #b8c8dc;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-search {
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.hero-search input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  background: #fff;
  color: var(--navy);
}
.hero-search button {
  padding: 14px 22px;
  background: var(--terracotta);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s;
  white-space: nowrap;
}
.hero-search button:hover { background: #a84714; }

/* ===== MAIN LAYOUT ===== */
.page-wrap { max-width: var(--max); margin: 0 auto; padding: 2.5rem 1.5rem; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 720px) { .content-grid { grid-template-columns: 1fr; } }

/* ===== SECTION LABELS ===== */
.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

/* ===== CATEGORY CARDS ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cat-card:hover {
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(196,88,26,0.12);
  transform: translateY(-2px);
}
.cat-icon {
  font-size: 1.6rem;
  line-height: 1;
}
.cat-name {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--navy);
  font-weight: bold;
}
.cat-desc { font-size: 0.8rem; color: var(--stone); line-height: 1.5; }
.cat-count { font-size: 0.72rem; color: var(--terracotta); font-weight: 600; margin-top: auto; }

/* ===== ARTICLE LIST ===== */
.article-list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.article-item {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.article-item:first-child { border-top: 1px solid var(--border); }
.article-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.article-item a:hover .article-title { color: var(--terracotta); }
.article-meta {
  font-size: 0.72rem;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  display: flex;
  gap: 1rem;
}
.article-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.4rem;
  transition: color 0.15s;
}
.article-excerpt { font-size: 0.88rem; color: var(--stone); line-height: 1.6; }

/* ===== ARTICLE PAGE ===== */
.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}
.article-header .article-meta { margin-bottom: 0.75rem; }
.article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy);
  font-weight: normal;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.article-header .lead {
  font-size: 1.1rem;
  color: var(--stone);
  line-height: 1.65;
  max-width: 650px;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: bold;
  margin: 2rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.article-body h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.article-body p { margin-bottom: 1.1rem; color: var(--navy); font-size: 0.95rem; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--terracotta); text-decoration: underline; }
.article-body a:hover { color: #a84714; }

/* ===== SIDEBAR ===== */
.sidebar-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-block h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-block ul { list-style: none; }
.sidebar-block ul li { padding: 0.35rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.sidebar-block ul li:last-child { border-bottom: none; }
.sidebar-block ul li a { color: var(--navy); text-decoration: none; }
.sidebar-block ul li a:hover { color: var(--terracotta); }
.sidebar-cta {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.sidebar-cta h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 0.5rem; color: #fff; border: none; padding: 0; }
.sidebar-cta p { font-size: 0.82rem; color: #b8c8dc; margin-bottom: 1rem; }
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { background: #a84714; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
}
.btn-outline:hover { background: var(--terracotta); color: #fff; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--stone);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.breadcrumb a { color: var(--terracotta); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--stone); }

/* ===== RELATED ARTICLES ===== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.related-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
  display: block;
}
.related-card:hover { border-color: var(--terracotta); }
.related-card .cat-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.related-card h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.35;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: #8a9ab0;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: #8a9ab0; text-decoration: none; font-size: 0.85rem; }
.footer-col ul li a:hover { color: #f4a66a; }
.footer-col p { font-size: 0.82rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: #8a9ab0; text-decoration: none; }
.footer-bottom a:hover { color: #f4a66a; }

/* ===== CATEGORY PAGE HERO ===== */
.cat-hero {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}
.cat-hero-inner { max-width: var(--max); margin: 0 auto; }
.cat-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
  font-weight: normal;
  margin-bottom: 0.5rem;
}
.cat-hero p { font-size: 0.95rem; color: var(--stone); max-width: 600px; }

/* ===== UTILITY ===== */
.tag {
  display: inline-block;
  background: var(--terracotta-light);
  color: var(--terracotta);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
}
.info-box {
  background: #EAF0F7;
  border-left: 3px solid #2563EB;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--navy);
}
.info-box strong { display: block; margin-bottom: 0.3rem; }

@media (max-width: 600px) {
  .site-nav { display: none; }
  .hero { padding: 2.5rem 1rem 2rem; }
  .page-wrap { padding: 1.5rem 1rem; }
}
