/*
Theme Name: Bitwave Business Site 2025 Theme
Theme URI: https://www.bitwavedesign.com/
Description: A custom WordPress theme by Bitwave Design.
Version: 5.3.3
Author: Bitwave Design
Author URI: https://bitwavedesign.com/
Text Domain: bitwave-biz-2025
*/

/* =========================================================
   1) TOKENS / VARIABLES
   ========================================================= */
:root {
  /* Palette — dark jazz + purples (no greens) */
  --primary-bg: #0f0f14;                 /* near-black */
  --surface-1: #14141b;                  /* deep charcoal */
  --surface-2: #1b1b23;                  /* footer/nav scrolled */
  --primary-accent: #6e2d91;             /* rich purple */
  --primary-accent-rgb: 110, 45, 145;
  --strong-accent: #8b57b3;              /* lighter purple for accents */
  --accent-hover: #a77ad3;               /* hover/active purple */
  --secondary-accent: #3c3c48;

  --dark-text: #e6e6ec;                  /* light text on dark */
  --light-text: #ECEAF0;

  --nav-scrolled: rgba(15,15,20,0.96);

  --footer-bg: #1b1b23;
  --footer-text: #ffffff;

  --body-bg: var(--primary-bg);
  --light-section-bg: #1E1E23;           /* “light” section on dark site = dark surface */
  --footer-cta-bg: var(--primary-accent);
  --footer-social-bg: #23232c;
  --footer-social-icon-color: #bfbfd4;
  --footer-social-icon-hover-color: var(--primary-accent);

  --header-overlay-color-start: rgba(0, 0, 0, 0.65);
  --header-overlay-color-end: rgba(0, 0, 0, 0.3);
  --subpage-header-overlay-color-start: rgba(0, 0, 0, 0.9);
  --subpage-header-overlay-color-end: rgba(0, 0, 0, 0.6);

  --link-accent: var(--primary-accent);

  /* Type */
  --font-primary: 'Catamaran', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-secondary: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Layout / UI */
  --nav-gap: clamp(1rem, 2.5vw, 2rem);
  --nav-font-weight: 600;
  --border-radius: 8px;
  --container-max-width: 1300px;
  --content-max-width: 900px;
  --header-nav-height: 150px;

  /* Surfaces / Effects */
  --card-bg: #ffffff;
  --card-shadow: 0 5px 15px rgba(0,0,0,0.07);
  --card-hover-shadow: 0 8px 20px rgba(0,0,0,0.1);
  --image-shadow: 0 6px 18px rgba(0,0,0,0.2);

  /* Form/UI */
  --input-border-color: #d1d1d1;
  --input-focus-border-color: var(--primary-accent);

  /* Social */
  --social-icon-font-size: 1.6rem;
  --social-icon-spacing: 1.2rem;
}

/* =========================================================
   2) BASE / LAYOUT
   ========================================================= */
html { scroll-behavior: smooth; font-size: 100%; }
body {
  font-family: var(--font-primary);
  margin: 0; padding: 0;
  background-color: var(--body-bg);
  color: var(--dark-text);
  line-height: 1.75; font-size: 1rem;
  overflow-x: hidden;
  display: flex; flex-direction: column; min-height: 100vh;
}
main.site-main { flex-grow: 1; padding-top: 0; padding-bottom: 0; }
.container { width: 90%; max-width: var(--container-max-width); margin-inline: auto; padding-inline: 1.5rem; }

/* =========================================================
   3) HEADER
   ========================================================= */
.site-header {
  width: 100%;
  background-color: var(--primary-bg);
  background-size: cover; background-repeat: no-repeat; background-position: center;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-max-width); margin: 0 auto;
  padding: .5rem 1.5rem; min-height: var(--header-nav-height);
}
.site-logo { box-sizing: border-box; max-width: 33%; }
.site-logo img { display: block; height: auto; width: 100%; max-width: 345px; min-width: 240px; }
@media (max-width: 768px) {
  .site-logo { max-width: 65%; }
  .site-logo img { width: 100%; max-width: 315px; min-width: 50%; }
}

/* =========================================================
   4) HERO
   ========================================================= */
.hero-content-area { align-items: flex-start; text-align: left; padding: 2rem 1rem; }
.homepage-hero .hero-content-area { margin-top: calc(var(--header-nav-height) + .8rem); padding: 1.6rem 1rem; }
.subpage-hero .hero-content-area,
.subpage-default-hero .hero-content-area {
  padding: clamp(2.4rem, 5.6vh, 4rem) 1rem clamp(2rem, 4.8vh, 3.2rem);
  margin-top: var(--header-nav-height); width: 100%; box-sizing: border-box;
}
.hero-content-inner {
  max-width: 900px; margin-left: 2%;
  padding-top: clamp(3rem, 8vw, 5rem); padding-bottom: clamp(3rem, 8vw, 5rem);
}
body.home .hero-content-inner {
  padding-top: clamp(3rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 5rem);
}
.hero-content-area h1 {
  font-family: var(--font-secondary);
  font-size: clamp(1.675rem, 4.9vw, 2.65rem); /* smaller, per your change */
  font-weight: 700; margin-bottom: 1rem; line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0,0,0,.35); color: var(--light-text);
}
.hero-content-area p {
  font-family: var(--font-primary);
  font-size: clamp(0.825rem, 2.1vw, 1.05rem); /* 25% smaller, per your change */
  line-height: 1.7; margin-bottom: 2rem; max-width: 600px;
  text-shadow: 1px 1px 2px rgba(0,0,0,.25); color: var(--light-text); font-weight: 300;
}
.subpage-hero .hero-content-area h1,
.subpage-default-hero .hero-content-area h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 0; }
.subpage-hero .hero-content-area p,
.subpage-hero .hero-content-area .cta-button.hero-cta,
.subpage-default-hero .hero-content-area p,
.subpage-default-hero .hero-content-area .cta-button.hero-cta { display: none; }

/* =========================================================
   5) TYPOGRAPHY & LINKS
   ========================================================= */
.entry-content {
  max-width: 840px; margin: 0 auto; padding: 4rem 1.5rem;
  font-size: 1.05rem; line-height: 1.8; color: #444;
}
.wp-block-heading .emoji { width: 1.25em; height: 1.25em; vertical-align: text-bottom; margin-right: .4rem; }

.entry-content a { color: var(--link-accent); text-decoration: underline; font-weight: 500; }
.entry-content a:hover { color: var(--accent-hover); }

/* =========================================================
   6) SECTIONS
   ========================================================= */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; }
.section.bg-light { background-color: var(--light-section-bg); }
.section h2 {
  font-family: var(--font-secondary);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700; margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.25;
}
.section .section-subheading {
  font-family: var(--font-primary);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  max-width: 45rem; margin: 0 auto 3rem auto;
  line-height: 1.75;
  color: #888888;
}

/* =========================================================
   7) COMPONENTS (Buttons, Cards)
   ========================================================= */
.cta-button {
  background-color: var(--primary-accent);
  color: var(--light-text) !important;
  padding: .8rem 1.8rem; border-radius: var(--border-radius);
  font-weight: 700; text-decoration: none; display: inline-block; border: none;
  text-shadow: none; cursor: pointer; letter-spacing: .05em; text-transform: uppercase; font-size: .9rem;
  transition: background-color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.cta-button:hover, .cta-button:focus {
  background-color: var(--accent-hover);
  color: var(--light-text) !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(var(--primary-accent-rgb), .3);
}
.cta-button.cta-button--small { padding: .6rem 1.2rem; font-size: .85rem; width: auto; align-self: center; }

/* Cards (generic) */
.service-card, .testimonial-item, .post-teaser {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover, .post-teaser:hover { transform: translateY(-6px); box-shadow: var(--card-hover-shadow); }






/* =========================================================
   FEATURED EVENT TEASERS – grid cards (image on top, text below)
   ========================================================= */
.event-teasers {
  --teaser-bg: #1e1e23;
  --teaser-border: rgba(255,255,255,.08);
  --teaser-radius: 14px;
  --gap: clamp(16px, 3vw, 28px);

  display: grid;
  grid-template-columns: 1fr;            /* mobile: single column */
  gap: var(--gap);
  margin: 0;
  padding: var(--gap);
  background: var(--primary-bg, #0f0f14);
}

/* desktop: two-wide */
@media (min-width: 1024px) {
  .event-teasers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Card shell */
.teaser-row {
  background: var(--teaser-bg);
  border: 1px solid var(--teaser-border);
  border-radius: var(--teaser-radius);
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}
.teaser-row__link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Media (10 x 5.5 = 20 / 11) */
.teaser-media {
  position: relative;
  width: 100%;
  aspect-ratio: 20 / 11;                  /* modern browsers */
  overflow: hidden;
  background: #121218;
}
.teaser-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;                       /* fills the 20:11 box neatly */
  object-position: center;
}
.teaser-media__gradient { display: none; } /* not needed with text below */

/* Fallback if aspect-ratio unsupported */
@supports not (aspect-ratio: 1 / 1) {
  .teaser-media::before {
    content: "";
    display: block;
    padding-top: 55%;                      /* 11/20 ≈ 55% */
  }
  .teaser-media img { position: absolute; inset: 0; }
}

/* Content */
.teaser-row__content {
  padding: clamp(14px, 2.6vw, 22px) clamp(16px, 3.2vw, 26px) clamp(18px, 3.2vw, 28px);
  display: grid;
  gap: .55rem;
  text-align: left;
}

.teaser-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-secondary, 'Playfair Display', serif);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}

.teaser-excerpt {
  margin: .25rem 0 .65rem;
  color: rgba(255,255,255,.92);
  font-family: var(--font-primary, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  line-height: 1.6;
  font-size: clamp(.95rem, 1.3vw, 1.05rem);
}

.teaser-cta {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .8rem;
  padding-bottom: .2rem;
  border-bottom: 2px solid var(--primary-accent, #6e2d91);
  opacity: .95;
  transition: color .2s ease, transform .2s ease, opacity .2s ease;
}
.teaser-row:hover .teaser-cta { color: var(--accent-hover, #a77ad3); transform: translateY(-1px); opacity: 1; }

/* Focus + reduced motion */
.teaser-row__link:focus-visible { outline: 3px solid rgba(110,45,145,.65); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .teaser-row * { transition: none !important; } }






/* ========== ABOUT / WHAT WE DO ========== */
.section.what-we-do-section {
  --bg: #1e1e23;
  --text: #e6e6e8;
  --muted: rgba(255, 255, 255, 0.83);
  --accent: #6a0dad;          /* primary purple */
  --accent-dark: #4f0b91;     /* darker for hover */

  background: var(--bg);
  color: var(--text);
  padding: clamp(32px, 6vw, 80px) 0;
}

.section.what-we-do-section .container {
  width: 100%;
  max-width: min(1280px, 92vw);
  margin: 0 auto;
}

.teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}

/* desktop: image left, text right */
@media (min-width: 900px) {
  .teaser-grid {
    grid-template-columns: 1.05fr .95fr;
  }
}

.teaser-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 5.5;      /* requested ratio */
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,.35);
}

/* content */
.teaser-content {
  text-align: center;
}

@media (min-width: 900px) {
  .teaser-content {
    text-align: left;
    padding-left: clamp(8px, 1vw, 16px);
  }
}

.section-heading {
  margin: 0 0 .35rem;
  font-family: var(--font-secondary, "Playfair Display", serif);
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.section-subheading {
  margin: 0 auto clamp(16px, 2.4vw, 24px);
  max-width: 65ch;
  color: var(--muted);
  font-size: clamp(.98rem, 1.4vw, 1.1rem);
  line-height: 1.7;
}

@media (min-width: 900px) {
  .section-subheading { margin-left: 0; }
}




/* =========================================================
   11) ABOUT
   ========================================================= */
.about-hero-image { margin: 2.5rem 0; }
.about-hero-image img {
  width: 100%; max-width: 1200px; height: auto; display: block; margin: 0 auto;
  border-radius: var(--border-radius); box-shadow: var(--image-shadow);
}

/* =========================================================
   12) PORTFOLIO
   ========================================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; margin-top: 2rem; }
.portfolio-item { position: relative; overflow: hidden; }
.portfolio-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.portfolio-item:hover img { transform: scale(1.03); }
.portfolio-item a::after {
  content: attr(data-title); position: absolute; bottom: 0; left: 0; width: 100%;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: .9rem; padding: .75rem; opacity: 0; transition: opacity .3s ease;
  font-family: var(--font-primary);
}
.portfolio-item a:hover::after { opacity: 1; }
.portfolio-teaser-section .portfolio-grid { max-width: 100%; padding: 0; margin: 0 auto; }

.portfolio-gallery-section { padding: clamp(3rem, 6vw, 5rem) 0; background-color: #fff; }
.portfolio-gallery-section h2 { text-align: center; font-size: 2rem; font-family: var(--font-secondary); color: var(--primary-accent); margin-bottom: 1rem; }
.portfolio-gallery-section .section-subheading {
  text-align: center; font-size: 1.05rem; color: #555; max-width: 640px; margin: 0 auto 2.5rem; line-height: 1.6;
}
.portfolio-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; max-width: 100%; }
.portfolio-gallery-grid .gallery-item { position: relative; overflow: hidden; }
.portfolio-gallery-grid .gallery-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.portfolio-gallery-grid .gallery-item:hover img { transform: scale(1.03); }
.portfolio-gallery-grid .gallery-item a::after {
  content: attr(data-title); position: absolute; bottom: 0; left: 0; width: 100%;
  background: rgba(0, 0, 0, .5); color: #fff; font-size: .9rem; padding: .75rem; opacity: 0; transition: opacity .3s ease;
  font-family: var(--font-primary);
}
.portfolio-gallery-grid .gallery-item a:hover::after { opacity: 1; }
.portfolio-gallery-section + .testimonial-section { margin-top: 3rem; }

/* =========================================================
   13) TESTIMONIALS
   ========================================================= */
.testimonial-section { background-color: var(--light-section-bg); padding: clamp(3.5rem, 8vw, 6rem) 0; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.testimonial-item { text-align: left; padding: 2rem; display: flex; flex-direction: column; justify-content: flex-start; }
.testimonial-stars { color: var(--primary-accent); font-size: 1.2rem; margin-bottom: .75rem; }
.testimonial-title { font-family: var(--font-secondary); font-size: 1.2rem; color: var(--secondary-accent); margin-bottom: .5rem; font-weight: 700; }
.testimonial-text { font-size: 1rem; line-height: 1.7; color: #555; margin-bottom: 1rem; }
.testimonial-author { font-size: .875rem; color: var(--primary-accent); font-weight: 600; text-align: right; display: block; }
@media (max-width: 768px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* =========================================================
   14) BLOG LIST & SINGLE
   ========================================================= */
.blog-listing-page .post-teasers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 3rem; }
.post-teaser { overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.post-teaser__thumbnail img { width: 100%; height: auto; display: block; }
.post-teaser__content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-teaser__title { font-family: var(--font-secondary); font-size: 1.4rem; margin: 0 0 .5rem; color: var(--primary-accent); }
.post-teaser__meta { font-size: .9rem; color: #777; margin-bottom: 1rem; }
.post-teaser__excerpt p { font-size: 1rem; line-height: 1.6; color: #444; margin-bottom: 1.5rem; }
.post-teaser__read-more { align-self: flex-start; margin-top: auto; }
@media (max-width: 768px) {
  .blog-listing-page .post-teasers-grid { grid-template-columns: 1fr; gap: 2rem; }
  .post-teaser__title { font-size: 1.2rem; }
}

.site-main .entry-header.single-entry-header { margin-bottom: 2rem; text-align: center; }

.entry-meta-simplified {
  font-size: .95rem; font-weight: 500; color: #777; text-align: center; margin-bottom: 2rem;
  font-family: var(--font-primary); line-height: 1.5; padding-top: 2rem;
}
.entry-meta-simplified .post-category { color: var(--primary-accent); font-weight: 600; }
.entry-meta-simplified .meta-separator { margin: 0 .5rem; color: #aaa; }
.entry-meta-simplified .posted-on { color: #666; }
.entry-meta-simplified span { letter-spacing: .02em; }

.entry-content { max-width: 900px; margin: 0 auto; font-size: 1.05rem; line-height: 1.8; color: #444; padding-bottom: 3rem; }
.entry-content img { width: 100%; height: auto; margin: 2rem 0; border-radius: var(--border-radius); box-shadow: var(--image-shadow); }
.entry-content h2,
.entry-content h3,
.entry-content h4.wp-block-heading {
  font-family: var(--font-secondary); color: var(--primary-accent);
  font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; line-height: 1.4;
}
.entry-content h4.wp-block-heading { font-size: 1.3rem; }
.entry-content p { 
    margin-bottom: 1.5rem;
    color: var(--light-text);
}
.entry-content strong { color: #E9E6FB; }


/* WP Buttons */
div.wp-block-button {
    margin-bottom: 15px !important;
}
.wp-block-button .wp-block-button__link {
  background: #89DDA0;
  color: #382851 !important;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--border-radius);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
  transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus {
  background: #35355A;               /* slightly darker on hover */
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  transform: translateY(-1px);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff;
  color: var(--primary-accent);
  border: 2px solid var(--primary-accent);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus {
  background: #efeaf6;               /* subtle darken */
  border-color: var(--accent-hover);
  color: var(--primary-accent);
}


.post-navigation {
  margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid #eee; text-align: center;
}
.post-navigation .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1 1 300px; max-width: 500px; }
.post-navigation a {
  display: block; padding: 1.5rem; background-color: #fdf9f6;
  border-radius: var(--border-radius); color: var(--primary-accent);
  text-decoration: none; box-shadow: var(--card-shadow);
  transition: background-color .3s ease, color .3s ease;
}
.post-navigation a:hover { background-color: var(--primary-accent); color: #fff; }
.post-navigation .nav-subtitle {
  display: block; font-size: .85rem; color: #666; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem;
}
.post-navigation .nav-title { font-size: 1.1rem; font-weight: 700; color: inherit; line-height: 1.4; }
.post-navigation a:hover .nav-title { color: #fff; }
@media (max-width: 600px) {
  .post-navigation .nav-links { flex-direction: column; gap: 1.5rem; }
  .post-navigation a { padding: 1.25rem; }
  .post-navigation .nav-title { font-size: 1rem; }
}

/* =========================================================
   15) FAQ
   ========================================================= */
.faq-section { background-color: var(--light-section-bg); padding: 4rem 1rem; }
.faq-section .container { max-width: var(--content-max-width); margin: 0 auto; }
.faq-section .section-heading { font-family: var(--font-secondary); font-size: 2.5rem; font-weight: 700; color: var(--dark-text); text-align: center; margin-bottom: 2rem; }
.faq-section .faq-item { margin-bottom: 2rem; border-bottom: 1px solid var(--input-border-color); padding-bottom: 1.5rem; }
.faq-section .faq-question { font-family: var(--font-primary); font-size: 1.25rem; font-weight: var(--nav-font-weight); color: var(--primary-accent); margin: 0 0 .75rem; }
.faq-section .faq-answer { font-family: var(--font-primary); font-size: 1rem; line-height: 1.6; color: var(--dark-text); margin: 0 0 .5rem; }
.faq-section .faq-answer a { color: var(--primary-accent); text-decoration: none; border-bottom: 1px dashed var(--primary-accent); }
.faq-section .faq-answer a:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }
.faq-section .cta-link { color: var(--primary-accent); font-weight: 600; text-decoration: none; }
.faq-section .cta-link:hover { color: var(--accent-hover); text-decoration: underline; }
@media (min-width: 768px) {
  .faq-section .faq-item { display: flex; align-items: flex-start; }
  .faq-section .faq-question { flex: 0 0 30%; margin-right: 2%; }
  .faq-section .faq-answer { flex: 1; }
}
