/*
Theme Name: GlobalFT Swiss Light
Author: Assistant
Description: Clean, grid-based, light theme with unique functional blocks.
Version: 5.0
*/

:root {
  /* Colors - Light Swiss Style */
  --bg-body: #f4f4f4;
  --bg-card: #ffffff;
  --c-text: #111111;
  --c-text-soft: #555555;
  --c-accent: #0044cc; /* International Klein Blue style */
  --c-accent-hover: #003399;
  --c-line: #e0e0e0;
  
  /* Typography */
  --f-display: 'Syne', sans-serif;
  --f-body: 'Public Sans', sans-serif;
  
  /* Spacing */
  --container: 1360px;
  --header-h: 80px;
}

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

body {
  background-color: var(--bg-body);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

/* UTILS */
.btn-swiss {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--c-text);
  color: #fff;
  font-weight: 600;
  border-radius: 4px;
  transition: 0.3s;
}

.btn-swiss:hover {
  background: var(--c-accent);
  transform: translateY(-2px);
}

.section-pad {
  padding: 8rem 0;
}

/* HEADER - FLOATING ISLAND */
.site-header {
  position: fixed;
  top: 2rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none; /* Let clicks pass through sides */
}

.header-island {
  pointer-events: auto;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0,0,0,0.05);
}

.brand {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
}
.brand span { color: var(--c-accent); }

.nav-links ul {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: var(--c-accent);
}

/* HERO - SPLIT WITH EXTRACTION */
.hero-swiss {
  padding: 12rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-title h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -2px;
  margin-bottom: 2rem;
}

.hero-tag {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-radius: 50px;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--c-text-soft);
  max-width: 500px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  height: 500px;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

/* BLOCK: 3 PILLARS (COLUMNS) */
.pillars-section {
  background: #fff;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 500px;
}

.pillar-card {
  padding: 4rem 2rem;
  border-right: 1px solid var(--c-line);
  position: relative;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.pillar-card:last-child { border-right: none; }

.pillar-card:hover {
  background: var(--c-text);
  color: #fff;
}

.pillar-num {
  font-size: 4rem;
  font-family: var(--f-display);
  font-weight: 800;
  opacity: 0.1;
  margin-bottom: 2rem;
  transition: 0.4s;
}

.pillar-card:hover .pillar-num { opacity: 0.3; color: #fff; }

.pillar-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.pillar-desc {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.8;
  transform: translateY(20px);
  /* opacity: 0; */ /* Optional: hide until hover if desired */
  transition: 0.4s;
}

/* BLOCK: DIRECTIONS (Horizontal Accordion) */
.directions-section {
  padding: 8rem 0;
  overflow: hidden;
}

.dir-header {
  margin-bottom: 4rem;
  text-align: center;
}

.dir-header h2 { font-size: 3rem; margin-bottom: 1rem; }

.accordion-h {
  display: flex;
  height: 500px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  gap: 1px;
}

.acc-item {
  flex: 1;
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  transition: flex 0.5s ease;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.acc-item:hover {
  flex: 3;
  background: #fdfdfd;
}

.acc-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 2rem;
  font-weight: 800;
  white-space: nowrap;
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%) rotate(180deg); /* Adjust for centering and rotation */
  transition: 0.3s;
}

.acc-item:hover .acc-title {
  writing-mode: horizontal-tb;
  transform: none;
  position: static;
  margin-bottom: 2rem;
  color: var(--c-accent);
}

.acc-content {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s 0.1s; /* delay */
  max-width: 600px;
}

.acc-item:hover .acc-content {
  opacity: 1;
  transform: translateY(0);
}

/* MAGAZINE POST GRID */
.magazine-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.mag-main-post {
  position: relative;
}

.mag-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.mag-img img {
  width: 100%;
  aspect-ratio: 16/9;
  transition: 0.5s;
}

.mag-main-post:hover .mag-img img { transform: scale(1.03); }

.mag-meta {
  font-size: 0.85rem;
  color: var(--c-text-soft);
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}

.mag-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.mag-excerpt {
  font-size: 1.1rem;
  color: var(--c-text-soft);
  margin-bottom: 1.5rem;
}

.side-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.side-item {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  border-bottom: 1px solid var(--c-line);
  padding-bottom: 2rem;
}
.side-item:last-child { border-bottom: none; }

.side-item h3 {
  font-size: 1.2rem;
  line-height: 1.4;
}

.side-item .mag-meta { margin-bottom: 0.5rem; font-size: 0.75rem; }

/* FOOTER */
.swiss-footer {
  background: #fff;
  border-top: 1px solid var(--c-line);
  padding: 6rem 0 3rem;
  margin-top: 6rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-cta h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.footer-links-grid h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.footer-links-grid a {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.footer-links-grid a:hover { color: var(--c-accent); }

/* FIND GRID */
.find-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.find-item {
  background: #fff;
  padding: 2.5rem;
  border: 1px solid var(--c-line);
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
}

.find-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-5px);
  border-color: var(--c-accent);
}

.find-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.find-item h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.find-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* AUDIENCE CARDS */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.aud-card {
  background: #fff;
  border: 2px solid #000;
  padding: 3rem;
  position: relative;
  transition: 0.3s;
}

.aud-card:hover {
  background: #000;
  color: #fff;
}

.aud-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 4rem;
  font-family: var(--f-display);
  font-weight: 800;
  opacity: 0.1;
  transition: 0.3s;
}

.aud-card:hover .aud-number { opacity: 0.2; color: #fff; }

.aud-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.aud-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* SINGLE POST & PAGE */
.post-header-block {
  padding: 10rem 0 4rem;
  text-align: center;
  background: #fafafa;
}

.single-h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.single-meta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
}

.single-featured-wrap {
  margin: 4rem 0;
  border-radius: 12px;
  overflow: hidden;
}

.content-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-narrow p {
  margin-bottom: 1.5rem;
  color: #333;
}

.content-narrow h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
}

.content-narrow h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.content-narrow ul, .content-narrow ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style: disc;
}

.content-narrow li {
  margin-bottom: 0.5rem;
}

.content-narrow a {
  color: var(--c-accent);
  text-decoration: underline;
}

/* PAGE.PHP */
.single-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: #fafafa;
}

.single-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  max-width: 900px;
  margin: 0 auto;
}

.single-content-wrap {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.single-featured-image {
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
}

.single-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.single-body p {
  margin-bottom: 1.5rem;
}

.single-body h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
}

.single-body h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.single-body ul, .single-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style: disc;
}

.single-body li {
  margin-bottom: 0.5rem;
}

/* CATEGORY PAGE */
.hero-section {
  padding: 10rem 0 4rem;
  text-align: center;
  background: #fafafa;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-text {
  font-size: 1.1rem;
  color: #666;
  margin-top: 1rem;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--c-line);
  transition: 0.3s;
}

.post-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transform: translateY(-5px);
}

.post-thumbnail {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 2rem;
}

.post-category {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.post-card-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-card-title a:hover {
  color: var(--c-accent);
}

.post-card-excerpt {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.post-read-more {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--c-text);
  padding-bottom: 2px;
}

.post-read-more:hover {
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.pagination-wrapper {
  text-align: center;
  padding: 2rem 0 4rem;
  font-size: 1.1rem;
}

.pagination-wrapper a {
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  font-weight: 600;
}

.pagination-wrapper a:hover {
  color: var(--c-accent);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-card { border-right: none; border-bottom: 1px solid var(--c-line); }
  .accordion-h { flex-direction: column; height: auto; }
  .acc-item { height: 100px; }
  .acc-item:hover { height: auto; padding: 2rem; }
  .acc-title { writing-mode: horizontal-tb; transform: none; position: static; margin-bottom: 0.5rem; }
  .magazine-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .header-island { width: 90%; flex-direction: column; gap: 1rem; border-radius: 20px; }
  .find-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr; }
  .grid-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .find-grid { grid-template-columns: 1fr; }
  .grid-container { grid-template-columns: 1fr; }
}
