/*
Theme Name: Surf and Scale
Theme URI: https://surfandscale.com
Author: Surf and Scale Consulting
Author URI: https://surfandscale.com
Description: Custom WordPress theme for Surf and Scale Consulting - AI, Marketing, and Business Strategy
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: surfandscale
*/

/* Custom Raleway Fonts */
@font-face {
  font-family: 'Raleway';
  src: url('assets/fonts/Raleway-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('assets/fonts/Raleway-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* CRITICAL: Raleway Italic variants using oblique simulation */
@font-face {
  font-family: 'Raleway';
  src: url('assets/fonts/Raleway-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('assets/fonts/Raleway-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* CSS Variables */
:root {
  --surf-cream: #F6F2EA;
  --surf-navy: #0B1E3C;
  --surf-teal: #2F8E92;
  --surf-charcoal: #101828;
  --surf-gray: #6B7280;
  --surf-light-gray: #A9B6C7;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400 !important;
  font-size: 16px;
  line-height: 1.6;
  color: var(--surf-charcoal);
  background-color: var(--surf-cream);
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 300 !important;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--surf-charcoal);
}

h1 { font-size: clamp(32px, 6vw, 56px); }
h2 { font-size: clamp(26px, 4vw, 42px); }
h3 { font-size: clamp(20px, 3vw, 28px); }

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

a:hover {
  color: var(--surf-navy);
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 4rem;
  }
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(246, 242, 234, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Contact Page - Light background header always (higher specificity) */
body.page-template-contact .site-header {
  background: rgba(246, 242, 234, 0.98) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.page-template-contact .site-header.scrolled {
  background: rgba(246, 242, 234, 0.98) !important;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

@media (min-width: 768px) {
  .nav-container {
    height: 80px;
  }
}

/* Logo - Prominent and Well-Integrated */
.site-logo {
  display: flex;
  align-items: center;
}

.site-logo img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.site-logo img.logo-horizontal {
  width: auto;
  height: 55px;
  border-radius: 0;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo img {
    width: 70px;
    height: 70px;
  }
  .site-logo img.logo-horizontal {
    height: 70px;
  }
}

@media (min-width: 1024px) {
  .site-logo img {
    width: 80px;
    height: 80px;
  }
  .site-logo img.logo-horizontal {
    height: 80px;
  }
}

.site-logo:hover img {
  transform: scale(1.05);
}

.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.main-nav a {
  font-family: 'Raleway', sans-serif !important;
  font-size: 0.875rem;
  font-weight: 400 !important;
  color: white;
  position: relative;
  list-style: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header.scrolled .main-nav a {
  color: var(--surf-charcoal);
}

/* Contact Page - Dark menu always (higher specificity) */
body.page-template-contact .site-header .main-nav a {
  color: var(--surf-charcoal) !important;
}

body.page-template-contact .site-header.scrolled .main-nav a {
  color: var(--surf-charcoal) !important;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--surf-teal);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.current::after {
  width: 100%;
}

.main-nav a:hover,
.main-nav a.current {
  color: var(--surf-teal);
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta {
    display: block;
  }
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: white;
  transition: color 0.3s ease;
}

.site-header.scrolled .mobile-menu-toggle {
  color: var(--surf-charcoal);
}

/* Contact Page - Dark hamburger menu always (higher specificity) */
body.page-template-contact .site-header .mobile-menu-toggle {
  color: var(--surf-charcoal) !important;
}

body.page-template-contact .site-header.scrolled .mobile-menu-toggle {
  color: var(--surf-charcoal) !important;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--surf-cream);
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.125rem;
  color: var(--surf-charcoal);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  list-style: none;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 400 !important;
  font-size: 0.875rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: #247a7e;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(47, 142, 146, 0.4);
}

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

.btn-secondary:hover {
  background: var(--surf-charcoal);
  color: var(--surf-cream);
}

.btn-white {
  background: white;
  color: var(--surf-charcoal);
}

.btn-white:hover {
  background: var(--surf-cream);
}

/* Teal Rule */
.teal-rule {
  width: 56px;
  height: 4px;
  background: var(--surf-teal);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.teal-rule-lg {
  width: 72px;
  height: 4px;
  background: var(--surf-teal);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.teal-rule-center {
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section - Fully Responsive */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

@media screen and (max-width: 767px) {
  .hero-bg img {
    object-position: 25% bottom;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 30, 60, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1.5rem 2rem;
  max-width: 900px;
  width: 100%;
}

.hero-content h1 {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 300 !important;
  color: white;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Parallax Effect */
.parallax-bg {
  will-change: transform;
}

/* Page Sections */
.page-section {
  padding: 4rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .page-section {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  .page-section {
    padding: 7rem 0;
  }
}

.page-section.bg-white {
  background: white;
}

.page-section.bg-navy {
  background: var(--surf-navy);
  color: white;
}

.page-section.bg-navy h1,
.page-section.bg-navy h2,
.page-section.bg-navy h3 {
  color: var(--surf-cream);
}

/* Two Column Layout - Mobile First */
.two-column {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .two-column {
    flex-direction: row;
    gap: 3rem;
    align-items: center;
  }
  
  .two-column > * {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .two-column {
    gap: 4rem;
  }
}

/* Mobile Services - Centered Text and Text-First Layout */
@media (max-width: 767px) {
  /* Center all text in two-column sections EXCEPT case studies and blog posts */
  .two-column {
    text-align: center;
  }
  
  /* Override: Keep case study and blog content left-aligned on mobile */
  .two-column .case-study-content-area,
  .two-column .post-content {
    text-align: left !important;
  }
  
  /* Force text sections to appear first, images second */
  .two-column .service-text {
    order: 1;
  }
  
  .two-column .service-image {
    order: 2;
  }
  
  /* Center the teal rule */
  .two-column .teal-rule {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Center bullet lists as blocks but keep text left-aligned */
  .two-column ul {
    display: inline-block;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Main content wrapper - MAXIMUM specificity */
body .page-section .container .case-study-content-area,
body .page-section .container .post-content,
body article .case-study-content-area,
body article .post-content,
.post-content,
.case-study-content-area,
.entry-content,
article .post-content,
article .case-study-content-area {
  color: var(--surf-charcoal) !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.125rem !important;
  line-height: 1.8 !important;
}

/* Mobile: Keep left-aligned for readability */
@media (max-width: 767px) {
  body .post-content,
  body .case-study-content-area,
  body .entry-content {
    text-align: left !important;
  }
}

/* PARAGRAPH SPACING - Enhanced */
body .page-section .case-study-content-area p,
body .page-section .post-content p,
body article .case-study-content-area p,
body article .post-content p,
.post-content p,
.case-study-content-area p,
.entry-content p,
article p {
  margin-bottom: 1.5rem !important;
  margin-top: 0 !important;
  display: block !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
}

/* WordPress Classic Editor wrapper */
body .case-study-content-area > p,
body .post-content > p {
  margin-bottom: 1.5rem !important;
  margin-top: 0 !important;
}

.post-content p:last-child,
.case-study-content-area p:last-child,
.entry-content p:last-child {
  margin-bottom: 0 !important;
}

/* HEADING SPACING - Enhanced with font control */
body .page-section .case-study-content-area h2,
body .page-section .post-content h2,
.post-content h2,
.case-study-content-area h2,
.entry-content h2 {
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
  display: block !important;
  color: var(--surf-charcoal) !important;
}

body .page-section .case-study-content-area h3,
body .page-section .post-content h3,
.post-content h3,
.case-study-content-area h3,
.entry-content h3 {
  margin-top: 2rem !important;
  margin-bottom: 0.75rem !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
  display: block !important;
  color: var(--surf-charcoal) !important;
}

body .page-section .case-study-content-area h4,
body .page-section .post-content h4,
.post-content h4,
.case-study-content-area h4,
.entry-content h4 {
  margin-top: 1.5rem !important;
  margin-bottom: 0.5rem !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
  display: block !important;
  color: var(--surf-charcoal) !important;
}

/* First heading shouldn't have top margin */
.post-content > h2:first-child,
.case-study-content-area > h2:first-child,
.case-study-content-area > h3:first-child,
.entry-content > h2:first-child {
  margin-top: 0 !important;
}

/* LIST SPACING - Enhanced with indentation fix */
body .page-section .case-study-content-area ul,
body .page-section .case-study-content-area ol,
body .page-section .post-content ul,
body .page-section .post-content ol,
.post-content ul,
.post-content ol,
.case-study-content-area ul,
.case-study-content-area ol,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem !important;
  margin-top: 1rem !important;
  margin-left: 0 !important;
  padding-left: 2rem !important;
  list-style-position: outside !important;
  display: block !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
}

/* Mobile list alignment fix */
@media (max-width: 767px) {
  body .post-content ul,
  body .post-content ol,
  body .case-study-content-area ul,
  body .case-study-content-area ol,
  .entry-content ul,
  .entry-content ol {
    padding-left: 1.5rem !important;
    margin-left: 0 !important;
  }
}

body .page-section .case-study-content-area li,
body .page-section .post-content li,
.post-content li,
.case-study-content-area li,
.entry-content li {
  margin-bottom: 0.5rem !important;
  padding-left: 0.25rem !important;
  display: list-item !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
}

.post-content li:last-child,
.case-study-content-area li:last-child,
.entry-content li:last-child {
  margin-bottom: 0 !important;
}

/* Nested lists */
.post-content li > ul,
.post-content li > ol,
.case-study-content-area li > ul,
.case-study-content-area li > ol,
.entry-content li > ul,
.entry-content li > ol {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}

/* Blockquotes */
body .case-study-content-area blockquote,
body .post-content blockquote,
.post-content blockquote,
.case-study-content-area blockquote,
.entry-content blockquote {
  margin: 2rem 0 !important;
  padding-left: 1.5rem !important;
  border-left: 4px solid var(--surf-teal) !important;
  font-style: italic !important;
  color: var(--surf-gray) !important;
  display: block !important;
  font-family: 'Raleway', sans-serif !important;
}

/* Images in content */
.post-content img,
.case-study-content-area img,
.entry-content img {
  margin: 2rem 0 !important;
  border-radius: 8px;
  display: block !important;
}

/* Code blocks */
.post-content pre,
.case-study-content-area pre,
.entry-content pre {
  margin: 1.5rem 0 !important;
  padding: 1rem !important;
  background: #f5f5f5 !important;
  border-radius: 6px;
  overflow-x: auto;
  display: block !important;
}

.post-content code,
.case-study-content-area code,
.entry-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

/* Tables */
.post-content table,
.case-study-content-area table,
.entry-content table {
  width: 100%;
  margin: 2rem 0 !important;
  border-collapse: collapse;
  display: table !important;
}

.post-content th,
.post-content td,
.case-study-content-area th,
.case-study-content-area td,
.entry-content th,
.entry-content td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.post-content th,
.case-study-content-area th,
.entry-content th {
  background: var(--surf-cream);
  font-weight: 400;
}

/* Horizontal rules */
.post-content hr,
.case-study-content-area hr,
.entry-content hr {
  margin: 3rem 0 !important;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: block !important;
}

/* Strong/Bold text */
.post-content strong,
.post-content b,
.case-study-content-area strong,
.case-study-content-area b,
.entry-content strong,
.entry-content b {
  font-weight: 400 !important;
  font-family: 'Raleway', sans-serif !important;
}

/* Emphasis/Italic text */
.post-content em,
.post-content i,
.case-study-content-area em,
.case-study-content-area i,
.entry-content em,
.entry-content i {
  font-style: italic !important;
  font-family: 'Raleway', sans-serif !important;
}

/* Override any plugin styles that might interfere */
.post-content *,
.case-study-content-area *,
.entry-content * {
  font-family: 'Raleway', sans-serif !important;
}

/* WordPress Gutenberg block overrides */
.wp-block-paragraph {
  margin-bottom: 1.5rem !important;
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
}

.wp-block-heading {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 300 !important;
}

.wp-block-list {
  padding-left: 2rem !important;
  margin-left: 0 !important;
}

.wp-block-list li {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 400 !important;
}

/* Image Containers */
.image-container {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
}

.image-container img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.03);
}

/* Placeholder Styling */
.placeholder-box {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.placeholder-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--surf-teal) 0%, var(--surf-navy) 100%);
  opacity: 0.9;
}

.placeholder-box.gradient-1::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-box.gradient-2::before {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.placeholder-box.gradient-3::before {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.placeholder-box.gradient-4::before {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.placeholder-box.gradient-5::before {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.placeholder-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 2rem;
}

.placeholder-content svg {
  margin: 0 auto 1rem;
  opacity: 0.9;
}

.placeholder-content p {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 1.25rem;
  opacity: 0.9;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: white;
  border-radius: 8px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-align: center;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(47, 142, 146, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--surf-teal);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--surf-gray);
  line-height: 1.6;
}

/* Case Study Cards */
.case-study-card {
  background: var(--surf-cream);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.case-study-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .case-study-image {
    height: 240px;
  }
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.case-study-card:hover .case-study-image img {
  transform: scale(1.05);
}

.case-study-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.case-study-header {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.case-study-header span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
}

.case-study-header h3 {
  color: white;
  font-size: 1.25rem;
}

@media (min-width: 768px) {
  .case-study-header h3 {
    font-size: 1.5rem;
  }
}

.case-study-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surf-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.case-study-icon svg {
  width: 18px;
  height: 18px;
  color: white;
}

.case-study-content {
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .case-study-content {
    padding: 1.5rem;
  }
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.case-study-tags span {
  padding: 0.25rem 0.75rem;
  background: white;
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--surf-charcoal);
}

.case-study-content p {
  color: var(--surf-gray);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.case-study-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid white;
}

.case-study-stat .stat-number {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--surf-teal);
}

@media (min-width: 768px) {
  .case-study-stat .stat-number {
    font-size: 2rem;
  }
}

.case-study-stat .stat-label {
  font-size: 0.75rem;
  color: var(--surf-gray);
}

/* Blog Cards */
.blog-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .blog-card-image {
    height: 200px;
  }
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--surf-charcoal);
  font-weight: 500;
}

.blog-card-content {
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .blog-card-content {
    padding: 1.5rem;
  }
}

.blog-card-content .date {
  font-size: 0.75rem;
  color: var(--surf-gray);
  margin-bottom: 0.5rem;
}

.blog-card-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .blog-card-content h3 {
    font-size: 1.25rem;
  }
}

.blog-card:hover .blog-card-content h3 {
  color: var(--surf-teal);
}

.blog-card-content p {
  color: var(--surf-gray);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .form-group {
    margin-bottom: 1.5rem;
  }
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--surf-charcoal);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--surf-charcoal);
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--surf-teal);
  box-shadow: 0 0 0 3px rgba(47, 142, 146, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--surf-gray);
  opacity: 0.6;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form Grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 1rem;
  }
}

/* Footer - Redesigned with Centered Logo */
.site-footer {
  background: var(--surf-navy);
  color: var(--surf-cream);
  padding: 4rem 0 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .site-footer {
    padding: 5rem 0 2rem;
  }
}

/* Footer Top - Centered Logo Section */
.footer-top {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.footer-logo img.logo-horizontal {
  width: auto;
  height: 80px;
  border-radius: 0;
  object-fit: contain;
}

@media (min-width: 768px) {
  .footer-logo img {
    width: 100px;
    height: 100px;
  }
  .footer-logo img.logo-horizontal {
    height: 100px;
  }
}

.footer-logo:hover img {
  transform: scale(1.05);
}

.footer-tagline {
  color: var(--surf-light-gray);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--surf-teal);
  transform: translateY(-2px);
}

.footer-social a svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 3rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav a {
  color: var(--surf-light-gray);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--surf-teal);
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: var(--surf-light-gray);
  font-size: 0.875rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.footer-bottom-links a {
  color: var(--surf-light-gray);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--surf-teal);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--surf-teal);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-white {
  color: white;
}

.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Line clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Selection */
::selection {
  background: rgba(47, 142, 146, 0.2);
  color: var(--surf-charcoal);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surf-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--surf-teal);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #247a7e;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
}

.stat-number {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 300;
  color: var(--surf-teal);
  line-height: 1;
}

.stat-label {
  color: var(--surf-gray);
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* CTA Box */
.cta-box {
  background: var(--surf-navy);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-box {
    padding: 3rem 2rem;
  }
}

@media (min-width: 1024px) {
  .cta-box {
    padding: 4rem;
  }
}

.cta-box h2 {
  color: var(--surf-cream);
  margin-bottom: 1rem;
}

.cta-box p {
  color: var(--surf-light-gray);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Contact Page Specific */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid {
    flex-direction: row;
    gap: 3rem;
  }
  
  .contact-grid > * {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    gap: 4rem;
  }
}

.contact-form-box {
  padding: 1.75rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .contact-form-box {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .contact-form-box {
    padding: 2.5rem;
  }
}

.contact-info-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: white;
  border-radius: 12px;
}

@media (min-width: 768px) {
  .contact-info-box {
    padding: 1.5rem;
  }
}

.contact-booking-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--surf-navy);
  border-radius: 12px;
  text-align: center;
}

/* Success Message */
.success-message {
  padding: 2rem;
  background: rgba(47, 142, 146, 0.08);
  border-radius: 12px;
  text-align: center;
}

.success-message svg {
  margin: 0 auto 1rem;
}

/* Error Message */
.error-message {
  padding: 1rem;
  background: #fee2e2;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  color: #dc2626;
  font-size: 0.875rem;
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }

/* ============================================
   100 PROMPTS PAGE STYLES
   ============================================ */

/* Sticky TOC Navigation */
.prompts-toc {
    position: sticky;
    top: 90px;
    z-index: 100;
    background: rgba(11, 30, 60, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    margin: 2rem auto 0;
    max-width: 900px;
}

.toc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 0.875rem;
    font-weight: 400;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.toc-link:hover {
    background: var(--surf-teal);
    color: white;
    transform: translateY(-2px);
}

/* Prompt Cards */
.prompt-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prompt-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prompt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.12);
}

.prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.prompt-number {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--surf-teal);
    opacity: 0.6;
}

.prompt-difficulty {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prompt-difficulty.easy {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.prompt-difficulty.medium {
    background: rgba(251, 191, 36, 0.1);
    color: #d97706;
}

.prompt-difficulty.advanced {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.prompt-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--surf-charcoal);
    font-weight: 400;
}

.prompt-content p {
    color: var(--surf-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.prompt-content p:last-child {
    margin-bottom: 0;
}

.prompt-tip {
    background: rgba(47, 142, 146, 0.08);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--surf-teal);
    font-size: 0.9rem;
}

.copy-btn {
    margin-top: 1rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 2px solid var(--surf-teal);
    color: var(--surf-teal);
    border-radius: 6px;
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--surf-teal);
    color: white;
}

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 100px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .prompts-toc {
        position: relative;
        top: 0;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        padding: 0.75rem;
    }
    
    .toc-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    .prompt-card {
        padding: 1.25rem;
    }
    
    .prompt-card h3 {
        font-size: 1.125rem;
    }
}

