/*
Theme Name: Sulova Professional
Theme URI: https://sulovasuport.com/
Author: Sulova Team
Description: Temë e lehtë dhe e personalizuar për Shoqatën Kulturore-Sportive-Ekonomike Sulova.
Version: 1.0.3
Text Domain: sulova
Requires at least: 6.6
Requires PHP: 8.1
*/

:root {
  --green-950: #052e20;
  --green-900: #073d29;
  --green-800: #0b5235;
  --green-700: #116b45;
  --green-100: #e5f1e9;
  --gold: #e7b516;
  --gold-light: #f7dc6f;
  --red: #b91c2b;
  --ink: #17211c;
  --muted: #5d6a63;
  --line: #dfe7e2;
  --paper: #ffffff;
  --cream: #f7f5ee;
  --shadow: 0 18px 50px rgba(5, 46, 32, 0.10);
  --radius: 22px;
  --container: min(1180px, calc(100% - 40px));
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header { top: 32px; }

img { max-width: 100%; height: auto; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-900); }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--green-950);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
p { margin: 0 0 1.25rem; }

.container { width: var(--container); margin-inline: auto; }
.site-main { min-height: 60vh; }
.section { padding: clamp(72px, 9vw, 124px) 0; }
.section--cream { background: var(--cream); }
.section--green { color: #fff; background: var(--green-950); }
.section--green h2, .section--green h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green-700);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--gold); border-radius: 2px; }
.section--green .eyebrow { color: var(--gold-light); }

.lead { max-width: 720px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.section--green .lead { color: rgba(255,255,255,.78); }

.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wpcf7-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 24px !important;
  border: 1px solid var(--green-800) !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--green-800) !important;
  box-shadow: none !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wpcf7-submit:hover { color: #fff !important; background: var(--green-950) !important; transform: translateY(-2px); }

.button--gold { color: var(--green-950) !important; border-color: var(--gold) !important; background: var(--gold) !important; }
.button--ghost { color: #fff !important; border-color: rgba(255,255,255,.46) !important; background: rgba(255,255,255,.08) !important; backdrop-filter: blur(10px); }
.button--light { color: var(--green-950) !important; border-color: #fff !important; background: #fff !important; }

.skip-link {
  position: fixed;
  z-index: 99999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--green-950);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.13);
  background: rgba(5, 46, 32, .96);
  backdrop-filter: blur(14px);
}

.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand .custom-logo-link { display: flex; flex: 0 0 auto; }
.brand .custom-logo { width: 64px; height: 52px; padding: 2px; border: 2px solid rgba(255,255,255,.7); border-radius: 12px; background: #fff; object-fit: contain; }
.brand-copy { display: grid; color: #fff; line-height: 1.1; text-decoration: none; }
.brand-copy:hover { color: #fff; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; letter-spacing: .02em; }
.brand-copy small { margin-top: 5px; color: var(--gold-light); font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; margin: 0; padding: 0; align-items: center; gap: 24px; list-style: none; }
.primary-nav a { position: relative; color: rgba(255,255,255,.82); font-size: .86rem; font-weight: 750; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #fff; }
.primary-nav .current-menu-item > a::after { content: ""; position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; background: var(--gold); }
.header-cta { min-height: 44px; padding: 10px 18px !important; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 12px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; content: ""; }

/* Hero */
.hero {
  position: relative;
  display: grid;
  min-height: min(780px, calc(100vh - 82px));
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(5,46,32,.96) 0%, rgba(5,46,32,.78) 49%, rgba(5,46,32,.2) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
}
.hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 8px; background: linear-gradient(90deg, var(--gold) 0 50%, var(--red) 50%); content: ""; }
.hero-content { position: relative; z-index: 2; max-width: 830px; padding: 100px 0 118px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { max-width: 820px; color: #fff; font-size: clamp(3rem, 7vw, 6.6rem); }
.hero p { max-width: 680px; margin-bottom: 32px; color: rgba(255,255,255,.84); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.pillar-card { position: relative; padding: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 34px rgba(5,46,32,.06); }
.pillar-number { display: inline-grid; width: 52px; height: 52px; margin-bottom: 24px; place-items: center; border-radius: 50%; color: var(--green-950); background: var(--gold); font-family: Georgia, serif; font-size: 1.4rem; font-weight: 700; }
.pillar-card p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: center; gap: clamp(48px, 8vw, 104px); }
.media-card { position: relative; min-height: 540px; overflow: hidden; border-radius: 30px; box-shadow: var(--shadow); }
.media-card img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.media-card-badge { position: absolute; right: 22px; bottom: 22px; left: 22px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.35); border-radius: 18px; color: #fff; background: rgba(5,46,32,.82); backdrop-filter: blur(10px); }
.media-card-badge strong { display: block; font-family: Georgia, serif; font-size: 1.35rem; }
.check-list { display: grid; margin: 28px 0 34px; padding: 0; gap: 15px; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 13px; }
.check-list li::before { display: grid; flex: 0 0 26px; width: 26px; height: 26px; margin-top: 2px; place-items: center; border-radius: 50%; color: var(--green-950); background: var(--gold); font-size: .78rem; font-weight: 900; content: "✓"; }

.map-preview { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 60px; }
.map-preview img { max-height: 620px; margin-inline: auto; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); object-fit: contain; }

.news-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 14px 40px rgba(5,46,32,.07); }
.post-card-image { display: block; height: 300px; overflow: hidden; background: var(--green-100); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-content { padding: 28px; }
.post-meta { margin-bottom: 12px; color: var(--green-700); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.post-card h3 a { color: var(--green-950); text-decoration: none; }
.post-card p { color: var(--muted); }
.text-link { font-weight: 800; text-decoration: none; }

.cta-panel { display: flex; padding: clamp(34px, 6vw, 66px); align-items: center; justify-content: space-between; gap: 34px; border-radius: 30px; color: #fff; background: linear-gradient(125deg, var(--green-800), var(--green-950)); box-shadow: var(--shadow); }
.cta-panel h2 { max-width: 720px; margin: 0; color: #fff; font-size: clamp(1.9rem, 3.5vw, 3.2rem); }

/* Interior pages */
.page-hero { padding: clamp(76px, 9vw, 126px) 0 70px; color: #fff; background: linear-gradient(135deg, var(--green-950), var(--green-800)); }
.page-hero h1 { max-width: 900px; color: #fff; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.breadcrumbs { margin-bottom: 18px; color: rgba(255,255,255,.66); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumbs a { color: var(--gold-light); text-decoration: none; }
.content-wrap { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 110px; }
.content-wrap--wide { width: var(--container); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2.1em; font-size: clamp(1.75rem, 3vw, 2.6rem); }
.entry-content h3 { margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.25rem; }
.entry-content blockquote { margin: 40px 0; padding: 24px 30px; border-left: 5px solid var(--gold); color: var(--green-900); background: var(--cream); font-family: Georgia, serif; font-size: 1.3rem; }
.entry-content img { border-radius: 18px; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 38px 0; }
.info-box { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.info-box h3 { margin-bottom: 10px; font-size: 1.35rem; }
.info-box p { margin: 0; color: var(--muted); }
.map-figure { margin: 40px 0; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.map-figure img { display: block; max-height: 980px; margin: auto; border-radius: 12px; }
.map-figure figcaption { padding: 16px 8px 4px; color: var(--muted); text-align: center; font-size: .9rem; }

/* Forms */
.contact-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 54px; }
.contact-card { padding: 32px; border-radius: 22px; color: #fff; background: var(--green-950); }
.contact-card h2, .contact-card h3 { color: #fff; }
.contact-card a { color: var(--gold-light); }
.contact-details { margin: 24px 0 0; padding: 0; list-style: none; }
.contact-details li { padding: 15px 0; border-top: 1px solid rgba(255,255,255,.15); }

label { display: block; margin-bottom: 8px; color: var(--green-950); font-size: .88rem; font-weight: 800; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="password"], textarea, select {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid #cbd8d0;
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
textarea { min-height: 170px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--green-700); outline: 3px solid rgba(17,107,69,.14); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 20px; }
.wpcf7-not-valid-tip { color: #a01725; font-size: .86rem; }
.wpcf7-response-output { margin: 20px 0 0 !important; padding: 14px !important; border-radius: 10px; }

/* Blog */
.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 54px; }
.post-list { display: grid; gap: 28px; }
.post-list .post-card { display: grid; grid-template-columns: 260px 1fr; }
.post-list .post-card-image { height: 100%; min-height: 250px; }
.sidebar { position: sticky; top: 112px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--cream); }
.sidebar h2 { font-size: 1.4rem; }
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sidebar a { color: var(--green-900); font-weight: 700; text-decoration: none; }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-bottom: 28px; }
.search-form .search-field { min-width: 0; }
.search-form .button { min-height: 52px; padding-inline: 17px !important; }
.single-meta { margin-top: 18px; color: rgba(255,255,255,.7); }
.single-featured { margin: -36px auto 54px; }
.single-featured img { display: block; width: min(1000px, calc(100% - 40px)); max-height: 620px; margin: auto; border: 8px solid #fff; border-radius: 26px; box-shadow: var(--shadow); object-fit: cover; }
.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: grid; min-width: 42px; height: 42px; padding: 0 12px; place-items: center; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pagination .current { color: #fff; border-color: var(--green-800); background: var(--green-800); }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { margin-bottom: 24px; color: var(--muted); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.woocommerce ul.products li.product a img { border-radius: 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--green-950); font-family: Georgia, serif; font-size: 1.35rem; }
.woocommerce span.onsale { background: var(--red); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--green-700); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--green-700); }
.shop-empty { max-width: 780px; margin: 20px auto 40px; padding: 50px; border: 1px solid var(--line); border-radius: 26px; text-align: center; background: var(--cream); }
.shop-empty-mark { display: grid; width: 74px; height: 74px; margin: 0 auto 24px; place-items: center; border-radius: 50%; color: var(--green-950); background: var(--gold); font-size: 2rem; }
.shop-empty h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }

/* Footer */
.site-footer { color: rgba(255,255,255,.75); background: #031f16; }
.footer-main { display: grid; grid-template-columns: 1.35fr .8fr .9fr; gap: 70px; padding: 72px 0 48px; }
.footer-main h2, .footer-main h3 { color: #fff; }
.footer-brand { max-width: 440px; }
.footer-brand h2 { margin-bottom: 14px; font-size: 2.1rem; }
.footer-nav { margin: 0; padding: 0; list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: rgba(255,255,255,.75); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-light); }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-links a { display: inline-grid; min-width: 42px; height: 42px; padding: 0 12px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: #fff; font-size: .76rem; font-weight: 800; text-decoration: none; }
.footer-bottom { display: flex; padding: 22px 0 30px; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .83rem; }
.footer-bottom a { color: var(--gold-light); }

.empty-state { padding: 60px; border: 1px solid var(--line); border-radius: 24px; text-align: center; background: var(--cream); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 5px; left: 5px; display: block; width: auto; height: auto; padding: 15px 23px; clip: auto !important; color: var(--green-950); background: #fff; font-weight: 700; }

@media (max-width: 980px) {
  .header-cta { display: none !important; }
  .menu-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 22px 20px 28px; border-top: 1px solid rgba(255,255,255,.12); background: var(--green-950); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { width: var(--container); margin: auto; align-items: stretch; flex-direction: column; gap: 0; }
  .primary-nav li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .primary-nav a { display: block; padding: 15px 0; }
  .primary-nav .current-menu-item > a::after { display: none; }
  .split, .map-preview, .contact-layout, .archive-layout { grid-template-columns: 1fr; }
  .pillar-grid, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1.2fr 1fr; }
  .footer-main > :last-child { grid-column: 1 / -1; }
  .sidebar { position: static; }
}

@media (max-width: 700px) {
  :root { --container: min(100% - 28px, 1180px); }
  body { font-size: 16px; }
  body.admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 74px; }
  .brand .custom-logo { width: 52px; height: 44px; }
  .brand-copy small { display: none; }
  .hero { min-height: 720px; background-image: linear-gradient(180deg, rgba(5,46,32,.9), rgba(5,46,32,.7)), var(--hero-image); }
  .hero-content { padding: 82px 0 96px; }
  .hero h1 { font-size: clamp(2.9rem, 15vw, 4.5rem); }
  .hero-actions .button { width: 100%; }
  .pillar-grid, .info-grid, .post-grid, .woocommerce ul.products { grid-template-columns: 1fr !important; }
  .media-card { min-height: 420px; }
  .map-preview { gap: 38px; }
  .news-header, .cta-panel, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .post-list .post-card { grid-template-columns: 1fr; }
  .post-list .post-card-image { height: 240px; min-height: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .footer-main > :last-child { grid-column: auto; }
  .content-wrap { padding: 52px 0 80px; }
  .shop-empty, .empty-state { padding: 34px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
