/*
Theme Name: Cretavil Travel News Multi Style
Theme URI: https://cretavil.com/
Author: Ordovex.com & Connective People Group
Author URI: https://ordovex.com/
Description: Responsive travel/news WordPress theme for Cretan editorial and tourism websites. Includes 3 selectable visual styles: Aegean Blue, Olive Local and Premium Dark.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cretavil-travel-news
Tags: blog, news, travel, custom-logo, custom-menu, featured-images, grid-layout, one-column, two-columns, theme-options
*/

:root {
  --ctn-bg: #f7f5ef;
  --ctn-surface: #ffffff;
  --ctn-surface-soft: #f1eee6;
  --ctn-text: #161616;
  --ctn-muted: #686868;
  --ctn-border: rgba(0,0,0,.10);
  --ctn-accent: #0b6f9e;
  --ctn-accent-2: #d89b34;
  --ctn-dark: #102331;
  --ctn-radius: 22px;
  --ctn-shadow: 0 18px 50px rgba(0,0,0,.08);
  --ctn-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ctn-text);
  background: var(--ctn-bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ctn-accent); }
img { max-width: 100%; height: auto; display: block; }

.ctn-container { width: min(var(--ctn-container), calc(100% - 32px)); margin: 0 auto; }
.ctn-screen-reader-text { position: absolute; left: -9999px; }

/* Header */
.ctn-topbar {
  background: var(--ctn-dark);
  color: rgba(255,255,255,.88);
  font-size: 13px;
}
.ctn-topbar-inner { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; align-items: center; }
.ctn-topbar strong { color: #fff; }
.ctn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ctn-border);
}
.admin-bar .ctn-header { top: 32px; }
.ctn-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.ctn-brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.ctn-brand img { max-height: 52px; width: auto; }
.ctn-site-title { margin: 0; font-size: clamp(23px, 3vw, 34px); font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.ctn-site-description { margin: 5px 0 0; color: var(--ctn-muted); font-size: 13px; }
.ctn-menu-toggle { display: none; border: 1px solid var(--ctn-border); background: var(--ctn-surface); border-radius: 999px; padding: 9px 14px; font-weight: 750; }
.ctn-primary-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ctn-primary-nav a { display: block; padding: 10px 13px; border-radius: 999px; color: var(--ctn-text); font-weight: 700; font-size: 14px; }
.ctn-primary-nav a:hover,
.ctn-primary-nav .current-menu-item > a { background: var(--ctn-surface-soft); color: var(--ctn-accent); }
.ctn-header-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--ctn-accent); color: #fff !important; padding: 11px 16px; border-radius: 999px; font-weight: 800; box-shadow: 0 10px 24px rgba(0,0,0,.10); }

/* Breaking line */
.ctn-ticker { border-top: 1px solid var(--ctn-border); background: var(--ctn-surface); }
.ctn-ticker-inner { display: flex; gap: 12px; align-items: center; padding: 10px 0; overflow: hidden; }
.ctn-ticker-label { flex: 0 0 auto; background: var(--ctn-accent-2); color: #111; font-size: 12px; font-weight: 900; letter-spacing: .04em; padding: 5px 9px; border-radius: 999px; text-transform: uppercase; }
.ctn-ticker-items { display: flex; gap: 16px; min-width: 0; white-space: nowrap; overflow: hidden; }
.ctn-ticker-items a { color: var(--ctn-muted); font-size: 14px; }
.ctn-ticker-items a:hover { color: var(--ctn-accent); }

/* Hero */
.ctn-hero { padding: clamp(28px, 5vw, 64px) 0 34px; }
.ctn-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: stretch; }
.ctn-hero-main { background: var(--ctn-surface); border-radius: calc(var(--ctn-radius) + 6px); overflow: hidden; box-shadow: var(--ctn-shadow); border: 1px solid var(--ctn-border); display: grid; grid-template-columns: 1fr 1fr; min-height: 430px; }
.ctn-hero-copy { padding: clamp(24px, 4vw, 42px); display: flex; flex-direction: column; justify-content: center; }
.ctn-kicker { color: var(--ctn-accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 900; margin-bottom: 10px; }
.ctn-hero-title { margin: 0; font-size: clamp(36px, 5vw, 68px); line-height: .96; letter-spacing: -.06em; }
.ctn-hero-subtitle { margin: 18px 0 0; color: var(--ctn-muted); font-size: 17px; max-width: 560px; }
.ctn-hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.ctn-button { display: inline-flex; justify-content: center; align-items: center; padding: 12px 17px; border-radius: 999px; font-weight: 850; border: 1px solid var(--ctn-border); background: var(--ctn-surface); }
.ctn-button-primary { background: var(--ctn-accent); color: #fff !important; border-color: transparent; }
.ctn-hero-image { min-height: 100%; background: linear-gradient(135deg, var(--ctn-accent), var(--ctn-accent-2)); }
.ctn-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.ctn-hero-side { display: grid; gap: 18px; }
.ctn-side-card { background: var(--ctn-surface); border: 1px solid var(--ctn-border); border-radius: var(--ctn-radius); overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,.06); }
.ctn-side-card img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.ctn-side-card-content { padding: 18px; }
.ctn-side-card h3 { margin: 0; font-size: 20px; line-height: 1.15; letter-spacing: -.03em; }

/* Cards */
.ctn-section { padding: 34px 0; }
.ctn-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.ctn-section-title { margin: 0; font-size: clamp(26px, 3vw, 40px); line-height: 1; letter-spacing: -.05em; }
.ctn-section-desc { margin: 8px 0 0; color: var(--ctn-muted); }
.ctn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ctn-card { background: var(--ctn-surface); border: 1px solid var(--ctn-border); border-radius: var(--ctn-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.05); transition: transform .18s ease, box-shadow .18s ease; }
.ctn-card:hover { transform: translateY(-3px); box-shadow: var(--ctn-shadow); }
.ctn-card-image { background: var(--ctn-surface-soft); }
.ctn-card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ctn-card-body { padding: 20px; }
.ctn-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ctn-muted); font-size: 13px; margin-bottom: 9px; }
.ctn-cat { display: inline-flex; background: color-mix(in srgb, var(--ctn-accent) 12%, transparent); color: var(--ctn-accent); border-radius: 999px; padding: 3px 8px; font-weight: 850; }
.ctn-card h2,
.ctn-card h3 { margin: 0; font-size: 22px; line-height: 1.14; letter-spacing: -.035em; }
.ctn-card p { margin: 12px 0 0; color: var(--ctn-muted); font-size: 15px; }
.ctn-read-more { display: inline-flex; margin-top: 16px; color: var(--ctn-accent); font-weight: 850; }

/* Layout */
.ctn-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 34px; padding: 40px 0; }
.ctn-main-content { min-width: 0; }
.ctn-sidebar { min-width: 0; }
.ctn-widget { background: var(--ctn-surface); border: 1px solid var(--ctn-border); border-radius: var(--ctn-radius); padding: 22px; margin-bottom: 22px; }
.ctn-widget h2,
.ctn-widget h3 { margin-top: 0; }
.ctn-post-list { display: grid; gap: 20px; }
.ctn-post-row { display: grid; grid-template-columns: 210px 1fr; gap: 18px; background: var(--ctn-surface); border: 1px solid var(--ctn-border); border-radius: var(--ctn-radius); overflow: hidden; }
.ctn-post-row img { width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.ctn-post-row-content { padding: 20px; }
.ctn-post-row h2 { margin: 0; line-height: 1.12; letter-spacing: -.035em; }
.ctn-pagination { margin: 34px 0; }
.ctn-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ctn-pagination a,
.ctn-pagination span { display: inline-flex; min-width: 38px; justify-content: center; align-items: center; border: 1px solid var(--ctn-border); background: var(--ctn-surface); border-radius: 999px; padding: 8px 11px; }
.ctn-pagination .current { background: var(--ctn-accent); color: #fff; border-color: transparent; }

/* Single */
.ctn-single-hero { padding: 34px 0 20px; }
.ctn-single-card { background: var(--ctn-surface); border: 1px solid var(--ctn-border); border-radius: calc(var(--ctn-radius) + 6px); overflow: hidden; box-shadow: var(--ctn-shadow); }
.ctn-single-header { padding: clamp(24px, 5vw, 54px); max-width: 920px; }
.ctn-single-title { margin: 0; font-size: clamp(36px, 5vw, 66px); line-height: .98; letter-spacing: -.06em; }
.ctn-single-excerpt { margin: 18px 0 0; color: var(--ctn-muted); font-size: 19px; }
.ctn-single-image img { width: 100%; max-height: 560px; object-fit: cover; }
.ctn-article { background: var(--ctn-surface); border: 1px solid var(--ctn-border); border-radius: var(--ctn-radius); padding: clamp(24px, 4vw, 52px); }
.ctn-article :where(p,li) { font-size: 18px; }
.ctn-article a { color: var(--ctn-accent); text-decoration: underline; text-underline-offset: 3px; }
.ctn-article h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; line-height: 1.1; margin-top: 1.5em; }
.ctn-article blockquote { margin: 28px 0; border-left: 4px solid var(--ctn-accent); padding: 2px 0 2px 22px; color: var(--ctn-muted); font-size: 20px; }
.ctn-tags { margin-top: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.ctn-tags a { border: 1px solid var(--ctn-border); background: var(--ctn-surface-soft); border-radius: 999px; padding: 6px 10px; color: var(--ctn-text); text-decoration: none; font-weight: 700; }

/* Footer */
.ctn-footer { margin-top: 50px; background: var(--ctn-dark); color: rgba(255,255,255,.84); }
.ctn-footer a:hover { color: #fff; }
.ctn-footer-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; padding: 42px 0; }
.ctn-footer-title { color: #fff; font-size: 28px; font-weight: 900; letter-spacing: -.04em; margin: 0 0 8px; }
.ctn-footer-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ctn-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 13px; color: rgba(255,255,255,.62); }

/* Forms and comments */
input, textarea, select, button { font: inherit; }
input, textarea, select { width: 100%; border: 1px solid var(--ctn-border); background: var(--ctn-surface); border-radius: 14px; padding: 12px 14px; color: var(--ctn-text); }
button, input[type="submit"] { cursor: pointer; border: 0; background: var(--ctn-accent); color: #fff; border-radius: 999px; padding: 12px 17px; font-weight: 850; }

/* Style variants */
body.ctn-style-aegean {
  --ctn-bg: #f4f8fb;
  --ctn-surface-soft: #eaf3f8;
  --ctn-accent: #0a70a8;
  --ctn-accent-2: #f0b84f;
  --ctn-dark: #092131;
}
body.ctn-style-olive {
  --ctn-bg: #f5f1e8;
  --ctn-surface-soft: #ece4d4;
  --ctn-accent: #5f7442;
  --ctn-accent-2: #c58a3b;
  --ctn-dark: #26301f;
  --ctn-radius: 16px;
}
body.ctn-style-olive .ctn-site-title,
body.ctn-style-olive .ctn-section-title,
body.ctn-style-olive .ctn-single-title { letter-spacing: -.025em; }
body.ctn-style-premium {
  --ctn-bg: #101010;
  --ctn-surface: #181818;
  --ctn-surface-soft: #242424;
  --ctn-text: #f6f0e8;
  --ctn-muted: #b9ada0;
  --ctn-border: rgba(255,255,255,.12);
  --ctn-accent: #c9a45d;
  --ctn-accent-2: #e5d4aa;
  --ctn-dark: #050505;
  --ctn-shadow: 0 22px 70px rgba(0,0,0,.45);
}
body.ctn-style-premium .ctn-header { background: rgba(12,12,12,.90); }
body.ctn-style-premium .ctn-hero-main,
body.ctn-style-premium .ctn-card,
body.ctn-style-premium .ctn-widget,
body.ctn-style-premium .ctn-article,
body.ctn-style-premium .ctn-single-card,
body.ctn-style-premium .ctn-post-row { box-shadow: var(--ctn-shadow); }

/* Responsive */
@media (max-width: 980px) {
  .admin-bar .ctn-header { top: 46px; }
  .ctn-menu-toggle { display: inline-flex; }
  .ctn-primary-nav { display: none; position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); background: var(--ctn-surface); border: 1px solid var(--ctn-border); border-radius: var(--ctn-radius); box-shadow: var(--ctn-shadow); padding: 12px; }
  .ctn-primary-nav.is-open { display: block; }
  .ctn-primary-nav ul { display: grid; justify-content: stretch; }
  .ctn-primary-nav a { border-radius: 12px; }
  .ctn-header-inner { position: relative; }
  .ctn-hero-grid,
  .ctn-hero-main,
  .ctn-content-layout,
  .ctn-footer-inner { grid-template-columns: 1fr; }
  .ctn-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .ctn-container { width: min(100% - 22px, var(--ctn-container)); }
  .ctn-topbar-inner { display: grid; gap: 4px; }
  .ctn-grid { grid-template-columns: 1fr; }
  .ctn-post-row { grid-template-columns: 1fr; }
  .ctn-post-row img { min-height: 210px; }
  .ctn-hero-main { min-height: unset; }
  .ctn-hero-image { min-height: 260px; }
}
