/* =========================
   James Sturdee Counselling
   Clean Site Stylesheet
   ========================= */

:root{
  --bg: #FAF3F0;
  --text: #2f2f2f;
  --muted: #4f4f4f;
  --card: rgba(255,255,255,0.70);
  --border: rgba(0,0,0,0.08);
  --shadow: 0 10px 30px rgba(0,0,0,0.06);

  --whatsapp: #25D366;
  --whatsappHover: #1fb85a;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
}

body{
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* =========================
   Header / Nav
   ========================= */
header{
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img{
  height: 200px;
  width: auto;
  display: block;
}

nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

nav a{
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
}

nav a:hover{
  background: rgba(0,0,0,0.04);
}

/* =========================
   Layout helpers
   ========================= */
.section{
  padding: 70px 10%;
  max-width: 1100px;
  margin: 0 auto;
}

.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.two-column{
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.two-column img{
  width: 340px;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Typography */
h1, h2, h3, h4{
  font-family: 'Playfair Display', serif;
  margin-top: 0;
  line-height: 1.2;
}

h2{ font-size: 40px; margin-bottom: 16px; }
h3{ font-size: 30px; margin-bottom: 16px; }
h4{ font-size: 20px; margin: 18px 0 10px; }

p{ margin: 0 0 14px; color: var(--muted); }
ul{ margin: 10px 0 0; padding-left: 18px; }
li{ margin: 6px 0; color: var(--muted); }

/* =========================
   Buttons
   ========================= */
.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.12);
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  color: #fff !important;          /* Force readable button text */
  background: var(--text);
}

.button:hover{
  transform: translateY(-1px);
  opacity: 0.98;
}

.button.secondary{
  background: transparent;
  color: var(--text) !important;
  border: 1px solid rgba(0,0,0,0.22);
}

.button.secondary:hover{
  background: rgba(0,0,0,0.05);
}

/* WhatsApp */
.button.whatsapp{
  background: var(--whatsapp);
  border: none;
  color: #fff !important;
}
.button.whatsapp:hover{
  background: var(--whatsappHover);
}

/* If you ever use secondary buttons on dark hero overlays */
.hero-overlay .button.secondary{
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.10);
}
.hero-overlay .button.secondary:hover{
  background: rgba(255,255,255,0.14);
}

/* =========================
   Hero (if used on other pages)
   ========================= */
.hero{
  padding: 70px 10%;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero h2{
  font-size: 42px;
}

.hero p{
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-secondary{
  margin-top: 26px;
}

.hero-secondary img{
  width: 100%;
  max-width: 900px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

/* =========================
   Corporate horizontal scroll panels
   ========================= */
.scroll-hint{
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  margin: 0 0 12px;
}

/* The “peek” is built in via ::after */
.scroll-container{
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 8px 2px 18px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  align-items: stretch;
}

/* subtle scrollbar (desktop helpful) */
.scroll-container::-webkit-scrollbar{
  height: 8px;
}
.scroll-container::-webkit-scrollbar-thumb{
  background: rgba(0,0,0,0.15);
  border-radius: 10px;
}

/* Add a little “peek” space after last card */
.scroll-container::after{
  content: "";
  flex: 0 0 70px;
}

.scroll-card{
  min-width: 290px;
  max-width: 290px;
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}

.scroll-card:hover{
  transform: translateY(-4px);
}

.scroll-card h4{
  margin: 0 0 10px;
}

.scroll-card ul{
  margin: 0;
  padding-left: 18px;
}

/* =========================
   Footer
   ========================= */
footer{
  background: var(--text);
  color: #fff;
  text-align: center;
  padding: 38px 10%;
}

footer p{
  color: rgba(255,255,255,0.9);
  margin: 6px 0;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 900px){
  header{
    padding: 14px 6%;
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  nav{
    justify-content: flex-start;
    width: 100%;
  }

  .logo img{
    height: 140px;
  }

  .section{
    padding: 55px 6%;
  }

  .hero{
    padding: 55px 6%;
    text-align: left;
  }

  .hero h2{
    font-size: 32px;
  }

  .two-column{
    flex-direction: column;
    align-items: flex-start;
  }

  .button{
    width: 100%;
    max-width: 360px;
  }
}

/* =========================
   Corporate Hero Section
   ========================= */

.corporate-hero{
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;

  background-image: url("corporate.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 80% 20%; /* move RIGHT + a bit UP */
}

/* Overlay for readability */
.hero-overlay{
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.05)
  );
  display: flex;
  align-items: center;
}

/* Content */
.hero-content{
  padding: 0 10%;
  max-width: 700px;
  color: white;
}

.hero-content h2{
  font-size: 42px;
  margin-bottom: 14px;
}

.hero-content p{
  font-size: 18px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

@media (max-width: 700px){

  .corporate-hero{
    height: auto;              /* let it expand to fit content */
    min-height: 520px;         /* still feels like a hero */
    padding: 36px 0;           /* breathing room */
  }

  .hero-content{
    padding: 0 6%;
    max-width: 100%;
  }

  .hero-content h2{
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .hero-content p{
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 16px;
  }

  .hero-content .button{
    width: 100%;
    max-width: 360px;
  }
}

/* About page: photo with text wrapping until photo ends */
.card .about-photo {
  float: left;
  width: 380px;          /* adjust as you like */
  max-width: 45%;
  height: auto;
  margin: 0 32px 24px 0; /* space to the right + below */
  border-radius: 18px;
  display: block;
}

/* Clear the float so the card contains the floated image */
.card::after {
  content: "";
  display: block;
  clear: both;
}

/* Mobile: stack image above text */
@media (max-width: 900px) {
  .card .about-photo {
    float: none;
    width: 100%;
    max-width: 520px;
    margin: 0 0 20px 0;
  }
}

/* Mobile header layout */
@media (max-width: 900px) {

  header {
    display: flex;
    flex-direction: column;
    align-items: center;   /* this centers everything horizontally */
    text-align: center;
  }

  .mobile-logo {
    display: block;
    margin: 0 auto;        /* ensures centering */
  }

  nav ul {
    justify-content: center; /* center nav items if using flex */
    padding: 0;
  }
}

/* ===== Services Hero Banner ===== */
.services-hero {
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.25)
    ),
    url('services-banner.jpg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
  text-align: center;
}

.services-hero-content h1 {
  font-size: 42px;
  margin-bottom: 10px;
  font-weight: 500;
}

.services-hero-content p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .services-hero {
    height: 260px;
    padding: 0 20px;
  }

  .services-hero-content h1 {
    font-size: 30px;
  }

  .services-hero-content p {
    font-size: 16px;
  }
}

.services-hero-content p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9); /* brighter */
}

.services-hero-content h1 {
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* =========================
   TRUE GLASSMORPHISM CARDS
   ========================= */

.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;

  /* Base glass */
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.40);

  /* Realistic depth + soft shadow */
  box-shadow:
    0 18px 45px rgba(0,0,0,0.14),
    inset 0 1px 0 rgba(255,255,255,0.35);

  /* Frosted blur */
  backdrop-filter: blur(18px) saturate(155%) contrast(105%);
  -webkit-backdrop-filter: blur(18px) saturate(155%) contrast(105%);

  /* Slight “refraction” feel */
  transform: translateZ(0);
}

/* Specular highlight sweep (top-left) */
.glass-card::before{
  content:"";
  position:absolute;
  inset:-40% -40%;
  pointer-events:none;
  background:
    linear-gradient(120deg,
      rgba(255,255,255,0.85) 0%,
      rgba(255,255,255,0.35) 18%,
      rgba(255,255,255,0.08) 42%,
      transparent 60%);
  transform: rotate(8deg);
  opacity: 0.75;
}

/* Inner “edge glow” + subtle grain to sell the glass */
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    /* inner border glow */
    linear-gradient(to bottom, rgba(255,255,255,0.35), rgba(255,255,255,0.05)),
    /* subtle noise */
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      rgba(255,255,255,0.00) 2px,
      rgba(255,255,255,0.00) 6px
    );

  mix-blend-mode: overlay;
  opacity: 0.38;
}

/* Make sure content sits above the glass layers */
.glass-card > * {
  position: relative;
  z-index: 1;
}

/* Hover: looks like it “lifts” and catches light */
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.45);
  border-color: rgba(255,255,255,0.60);
}

@media (prefers-reduced-motion: reduce) {
  .glass-card, .glass-card:hover { transform: none; }
}

/* FORCE glass to override default card styling */
.scroll-card.glass-card {
  background: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.15),
    inset 0 1px 0 rgba(255,255,255,0.4) !important;
}

/* Add subtle depth behind workshop cards */
.workshop-section {
  position: relative;
}

.workshop-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(800px 300px at 20% 10%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(700px 280px at 80% 60%, rgba(255,255,255,0.25), transparent 65%);

  opacity: 0.9;
}

.workshop-section > * {
  position: relative;
}

/* Kill the default card look completely */
.scroll-card.glass-card {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  box-shadow: none !important;
}

.scroll-card.glass-card {
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);

  box-shadow:
    0 25px 60px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -1px 0 rgba(255,255,255,0.2) !important;
}

/* Give the glass something to refract */
.workshop-section{
  position: relative;
  border-radius: 22px;
  padding: 46px 24px;
  background: linear-gradient(180deg, #f0e7e2 0%, #e3d6cf 100%);
}

.workshop-section::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: inherit;
  pointer-events:none;
  background:
    radial-gradient(900px 320px at 20% 10%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(700px 280px at 80% 65%, rgba(0,0,0,0.10), transparent 65%);
  opacity: 0.85;
}

.workshop-section > *{
  position: relative;
}

/* Stronger “glass” read */
.scroll-card.glass-card{
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.55) !important;

  backdrop-filter: blur(26px) saturate(190%) contrast(110%);
  -webkit-backdrop-filter: blur(26px) saturate(190%) contrast(110%);

  box-shadow:
    0 26px 60px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.65),
    inset 0 -1px 0 rgba(255,255,255,0.18) !important;
}

/* =========================
   TOP HERO (Home + Contact)
   Scoped so it DOES NOT affect Corporate .hero-overlay
   ========================= */

.hero-top{
  position: relative;
  width: 100%;
  height: 420px;
  background: url("hero-road.jpg") center/cover no-repeat;
  overflow: hidden;
}

/* Only applies to overlay inside .hero-top */
.hero-top .hero-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 10%;
  color: #fff;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0.35)
  );
}

.hero-top .hero-overlay h1{
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.15;
  max-width: 980px;
}

.hero-top .hero-overlay p{
  max-width: 900px;
  margin: 0 auto 10px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-top .hero-overlay .button{
  margin-top: 16px;
}

.hero-top .hero-overlay .button.secondary{
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

.hero-top .hero-overlay .button.secondary:hover{
  background: rgba(255,255,255,0.10);
}

/* Mobile fix (prevents cut-off) */
@media (max-width: 900px){
  .hero-top{
    height: auto;
    min-height: 420px;
    overflow: visible;
  }

  .hero-top .hero-overlay{
    position: relative;
    inset: auto;
    padding: 42px 6%;
  }

  .hero-top .hero-overlay h1{
    font-size: 32px;
  }

  .hero-top .hero-overlay p{
    font-size: 16px;
  }

  .hero-top .hero-overlay .button{
    width: 100%;
    max-width: 340px;
  }
}

/* =========================
   Home page image pair
   ========================= */

.hero-images{
  display: grid;
  grid-template-columns: 2fr 1fr;   /* room image bigger than profile */
  gap: 28px;
  margin-top: 30px;
  align-items: start;
}

.hero-images img{
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
}

/* Mobile: stack images */
@media (max-width: 900px){
  .hero-images{
    grid-template-columns: 1fr;
  }
}

/* =========================
   Home page: intro + profile side-by-side (desktop)
   ========================= */

.home-intro-grid{
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 34px;
  align-items: start;
  margin-top: 10px;
}

.home-intro-profile img{
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow);
  display: block;
  margin-left: auto;
}

/* Mobile: stack */
@media (max-width: 900px){
  .home-intro-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-intro-profile img{
    margin: 0;
    max-width: 520px;
  }
}

/* =========================
   Home intro spacing polish
   ========================= */

.home-intro{
  padding-top: 50px;   /* tighter than default .hero */
  padding-bottom: 40px;
  text-align: left;    /* stops the “floaty” centered feel */
}

.home-intro-text h2{
  margin-bottom: 12px;
}

.home-intro-text p{
  margin-bottom: 10px; /* reduce paragraph gaps just here */
}

.home-intro-text .button{
  margin-top: 12px;    /* reduce button gap */
}

.home-intro-grid{
  gap: 22px;
}