/*
Theme Name: Creative Connections
Theme URI: https://creativeconnections.co.uk
Author: Creative Connections
Author URI: https://creativeconnections.co.uk
Description: Custom WordPress theme for Creative Connections - Music and Creative Arts for Health and Wellbeing
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: creative-connections
*/

/* ============================================
   CSS VARIABLES / BRAND COLOURS
   ============================================ */
:root {
  --cc-teal: #3AAFA9;
  --cc-teal-dark: #2B8A85;
  --cc-teal-light: #C5DDD8;
  --cc-coral: #E8857A;
  --cc-coral-dark: #D06B60;
  --cc-mustard: #F0C05A;
  --cc-sage: #8FB5A1;
  --cc-pink: #F2C4C4;
  --cc-white: #FFFFFF;
  --cc-off-white: #F9FAFB;
  --cc-dark: #2D3436;
  --cc-grey: #636E72;
  --cc-light-grey: #DFE6E9;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--cc-dark);
  line-height: 1.7;
  background: var(--cc-white);
  overflow-x: hidden;
}

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

a {
  color: var(--cc-teal);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--cc-teal-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--cc-dark);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
  background: var(--cc-white);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo img {
  height: 90px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 5px;
}

.main-nav ul li {
  position: relative;
}

.main-nav ul li a {
  display: block;
  padding: 10px 18px;
  color: var(--cc-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  color: var(--cc-teal);
  background: rgba(58, 175, 169, 0.08);
}

/* Dropdown menu */
.main-nav ul li ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--cc-white);
  min-width: 280px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 8px 0;
  z-index: 100;
  flex-direction: column;
  gap: 0;
}

.main-nav ul li:hover > ul.sub-menu {
  display: flex;
}

.main-nav ul li ul.sub-menu li a {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 0;
}

.main-nav ul li ul.sub-menu li a:hover {
  background: rgba(58, 175, 169, 0.08);
}

/* Dropdown arrow indicator */
.main-nav ul li.menu-item-has-children > a::after {
  content: ' \25BE';
  font-size: 0.8em;
  margin-left: 4px;
}

/* Mobile hamburger */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--cc-dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* CTA button in nav */
.nav-cta a {
  background: var(--cc-teal) !important;
  color: var(--cc-white) !important;
  padding: 10px 24px !important;
  border-radius: 30px !important;
  font-weight: 600 !important;
}

.nav-cta a:hover {
  background: var(--cc-teal-dark) !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(58,175,169,0.85) 0%, rgba(43,138,133,0.9) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/images/group-session.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(58,175,169,0.88) 0%, rgba(43,138,133,0.92) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px;
  width: 100%;
}

.hero-content {
  flex: 1;
  color: var(--cc-white);
}

.hero-content h1 {
  color: var(--cc-white);
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.8;
}

.hero-content .accent-line {
  width: 60px;
  height: 4px;
  background: var(--cc-mustard);
  margin-bottom: 20px;
  border-radius: 2px;
}

.hero-video {
  flex: 1;
  max-width: 560px;
}

.hero-video .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hero-video .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* CTA buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--cc-mustard);
  color: var(--cc-dark);
}

.btn-primary:hover {
  background: #e0b04a;
  color: var(--cc-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240,192,90,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--cc-white);
  border: 2px solid var(--cc-white);
}

.btn-secondary:hover {
  background: var(--cc-white);
  color: var(--cc-teal);
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--cc-teal);
  color: var(--cc-white);
}

.btn-teal:hover {
  background: var(--cc-teal-dark);
  color: var(--cc-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58,175,169,0.4);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--cc-off-white);
}

.section-teal {
  background: var(--cc-teal);
  color: var(--cc-white);
}

.section-teal h2,
.section-teal h3 {
  color: var(--cc-white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 10px;
}

.section-header .divider {
  width: 60px;
  height: 4px;
  background: var(--cc-teal);
  margin: 15px auto 20px;
  border-radius: 2px;
}

.section-teal .section-header .divider {
  background: var(--cc-mustard);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--cc-grey);
  max-width: 700px;
  margin: 0 auto;
}

.section-teal .section-header p {
  color: rgba(255,255,255,0.9);
}

/* ============================================
   MISSION SECTION
   ============================================ */
.mission-section {
  background: var(--cc-white);
  padding: 80px 0;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mission-content blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--cc-dark);
  line-height: 1.8;
  position: relative;
  padding: 30px 40px;
}

.mission-content blockquote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--cc-teal);
  position: absolute;
  top: -10px;
  left: 0;
  font-family: Georgia, serif;
  line-height: 1;
}

/* ============================================
   DISCOVER / SESSIONS SECTION
   ============================================ */
.discover-section {
  padding: 80px 0;
  background: var(--cc-off-white);
}

.discover-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.discover-video .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.discover-video .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Image carousel */
.carousel-container {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-track img {
  min-width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  color: var(--cc-dark);
}

.carousel-btn:hover {
  background: var(--cc-teal);
  color: var(--cc-white);
}

.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* ============================================
   TESTIMONIALS / IMPACT SECTION
   ============================================ */
.impact-section {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, rgba(58,175,169,0.88) 0%, rgba(43,138,133,0.92) 100%);
  color: var(--cc-white);
  overflow: hidden;
}

.impact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/images/workshop-group.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.2;
}

.impact-section .container {
  position: relative;
  z-index: 1;
}

.impact-section h2 {
  color: var(--cc-white);
  text-align: center;
  margin-bottom: 10px;
}

.impact-section .divider {
  width: 60px;
  height: 4px;
  background: var(--cc-mustard);
  margin: 0 auto 50px;
  border-radius: 2px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.testimonial-card {
  position: relative;
  padding: 30px;
}

.testimonial-card .quote-icon {
  font-size: 4rem;
  color: var(--cc-mustard);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 10px;
}

.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.95);
}

/* ============================================
   BROCHURE DOWNLOAD
   ============================================ */
.brochure-section {
  padding: 60px 0;
  background: var(--cc-off-white);
  text-align: center;
}

.brochure-section .btn {
  margin-top: 15px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
  padding: 80px 0;
  background: var(--cc-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  margin-bottom: 15px;
}

.contact-info p {
  color: var(--cc-grey);
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--cc-dark);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--cc-light-grey);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--cc-off-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cc-teal);
  background: var(--cc-white);
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form .btn {
  width: 100%;
}

/* Note: when WPForms is installed, it will override these styles.
   These are fallback styles for the theme's built-in form. */

/* WPForms compatibility */
.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field textarea {
  border: 2px solid var(--cc-light-grey) !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
}

.wpforms-container .wpforms-field input:focus,
.wpforms-container .wpforms-field textarea:focus {
  border-color: var(--cc-teal) !important;
}

.wpforms-container .wpforms-submit {
  background: var(--cc-teal) !important;
  border-radius: 30px !important;
  padding: 14px 32px !important;
  font-family: var(--font-heading) !important;
}

/* ============================================
   ABOUT PAGE - PROFILES
   ============================================ */
.profile-section {
  padding: 80px 0;
}

.profile-card {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 60px;
  padding: 40px;
  background: var(--cc-white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.profile-card:nth-child(even) {
  direction: rtl;
}

.profile-card:nth-child(even) > * {
  direction: ltr;
}

.profile-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.profile-card h3 {
  color: var(--cc-teal);
  margin-bottom: 15px;
  font-size: 1.75rem;
}

.profile-card p {
  color: var(--cc-grey);
  line-height: 1.8;
}

/* ============================================
   SERVICE PAGES
   ============================================ */
.service-hero {
  background: linear-gradient(135deg, var(--cc-teal) 0%, var(--cc-teal-dark) 100%);
  padding: 80px 0 60px;
  text-align: center;
  color: var(--cc-white);
}

.service-hero h1 {
  color: var(--cc-white);
  margin-bottom: 15px;
}

.service-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto;
}

.service-content {
  padding: 60px 0;
}

.service-content h3 {
  color: var(--cc-teal);
  margin-top: 40px;
  margin-bottom: 15px;
}

.service-content ul {
  list-style: none;
  padding: 0;
}

.service-content ul li {
  padding: 12px 0 12px 30px;
  position: relative;
  line-height: 1.6;
}

.service-content ul li::before {
  content: '♪';
  position: absolute;
  left: 0;
  color: var(--cc-teal);
  font-size: 1.1rem;
}

.service-content .highlight-box {
  background: var(--cc-off-white);
  border-left: 4px solid var(--cc-teal);
  padding: 25px 30px;
  margin: 30px 0;
  border-radius: 0 12px 12px 0;
}

.service-content .highlight-box p {
  margin: 0;
  font-style: italic;
  color: var(--cc-dark);
}

/* Service cards grid (for overview) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--cc-white);
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-top-color: var(--cc-teal);
}

.service-card h3 {
  color: var(--cc-teal);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--cc-grey);
  margin-bottom: 20px;
}

/* ============================================
   R2R PAGE
   ============================================ */
.r2r-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.r2r-intro img {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--cc-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 80px;
  margin-bottom: 15px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-links h4,
.footer-social h4 {
  color: var(--cc-white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--cc-teal-light);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--cc-white);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--cc-teal);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ============================================
   PAGE HERO (generic inner pages)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, var(--cc-teal) 0%, var(--cc-teal-dark) 100%);
  padding: 60px 0;
  text-align: center;
}

.page-hero h1 {
  color: var(--cc-white);
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-hero .divider {
  width: 60px;
  height: 4px;
  background: var(--cc-mustard);
  margin: 0 auto;
  border-radius: 2px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .hero-content h1 { font-size: 2.5rem; }

  .hero-content .accent-line { margin: 0 auto 20px; }

  .hero-buttons { justify-content: center; }

  .hero-video { max-width: 100%; }

  .discover-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-card:nth-child(even) {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .r2r-intro {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section { padding: 50px 0; }

  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cc-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 20px;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav ul li ul.sub-menu {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: none;
    min-width: auto;
  }

  .main-nav ul li.menu-open > ul.sub-menu {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .hero-section { min-height: 70vh; }

  .hero-content h1 { font-size: 2rem; }

  .profile-card {
    padding: 25px;
  }

  .profile-card img {
    height: 300px;
  }

  .carousel-track img {
    height: 280px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Decorative circles (matching logo style) */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.15;
}

.deco-circle.teal { background: var(--cc-teal); }
.deco-circle.pink { background: var(--cc-pink); }
.deco-circle.mustard { background: var(--cc-mustard); }
.deco-circle.sage { background: var(--cc-sage); }
