/*
Theme Name: Seaview Theme
Theme URI: https://seaviewitconsulting.ca
Author: Seaview IT Consulting
Author URI: https://seaviewitconsulting.ca
Description: Custom WordPress theme for Seaview IT Consulting — Raising Career Consciousness. Redefining Career Identity.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: seaview-theme
*/

/* ==========================================================================
   1. CUSTOM PROPERTIES
   ========================================================================== */
:root {
  --blue: #1B3FA0;
  --red: #CC2229;
  --color-accent-purple: #7B2D8B;
  --gradient: linear-gradient(135deg, #1B3FA0, #7B2D8B, #CC2229);
  --white: #FFFFFF;
  --navy: #1A1A2E;
  --grey-bg: #F8F9FC;
  --color-grey-text: #5A5F73;
  --color-border: #E4E7F0;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1200px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --header-height: 84px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--navy);
}

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

section { padding: 96px 0; }

@media (min-width: 1024px) {
  section { padding: 144px 0; }
}

.bg-white { background: var(--white); }
.bg-light { background: var(--grey-bg); }
.bg-dark { background: var(--navy); color: var(--white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-gradient { background: var(--gradient); color: var(--white); }
.bg-gradient h1, .bg-gradient h2, .bg-gradient h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.bg-dark .eyebrow, .bg-gradient .eyebrow { color: var(--white); opacity: 0.85; }

.section-head {
  max-width: 720px;
  margin: 0 0 4.5rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  font-size: 1.15rem;
  color: var(--color-grey-text);
}

.bg-dark .lead, .bg-gradient .lead { color: rgba(255,255,255,0.85); }

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(27, 63, 160, 0.25);
}
.btn-primary:hover { background: #16308a; box-shadow: 0 14px 32px rgba(27, 63, 160, 0.35); }

/* Hero CTA 1 — "Start Your Career Discovery": solid white pill, blue text */
.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover { background: transparent; color: var(--white); }

/* Hero CTA 2 — "Partner with Us": transparent pill, white border/text */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline-white:hover { background: var(--white); color: var(--blue); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ==========================================================================
   4. HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(20,20,50,0.06);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled { box-shadow: 0 4px 24px rgba(20,20,50,0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo img {
  max-height: 55px;
  width: auto;
  display: block;
}

/* Guard rail: the logo must only ever appear at nav scale, even if a raw
   <img> ends up outside .site-logo (e.g. a stray custom-logo widget).
   Excludes .hero-media/.section-media, which intentionally hold the
   ambient background photo. */
.hero > img,
.hero-inner img,
.hero > *:not(.hero-media):not(.hero-inner) img { display: none !important; }
.site-logo { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--navy); }

.main-nav {
  display: none;
}

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

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav li { position: relative; }

.main-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}

.main-nav > ul > li > a::before {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a {
  background: var(--grey-bg);
  color: var(--blue);
}

.main-nav > ul > li > a:hover::before,
.main-nav > ul > li.current-menu-item > a::before { transform: scaleX(1); }

.menu-item-has-children > a::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition: transform var(--transition);
}

.menu-item-has-children:hover > a::after { transform: rotate(225deg); }

.sub-menu {
  display: block;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  width: max-content;
  max-width: 360px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(20,20,50,0.15);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.sub-menu li { white-space: nowrap; }

.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu a {
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
}

.sub-menu a:hover { background: var(--grey-bg); color: var(--blue); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 12px 24px; font-size: 0.9rem; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  padding: 0;
}

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

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--white);
  z-index: 998;
  overflow-y: auto;
  padding: 24px 20px 40px;
}

.mobile-nav.is-open { display: block; }

@media (min-width: 1024px) { .mobile-nav { display: none !important; } }

.mobile-nav > ul > li {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
}

.mobile-nav .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  padding: 0 0 10px 14px;
  display: none;
}

.mobile-nav .sub-menu.is-open { display: block; }

.mobile-nav .sub-menu a { font-weight: 400; font-size: 0.95rem; padding: 10px 4px; }

.mobile-nav .header-cta { margin-top: 20px; flex-direction: column; }
.mobile-nav .header-cta .btn { width: 100%; }

/* ==========================================================================
   5. HERO
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 56px) 0 80px;
  min-height: 100vh;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60%;
  height: 140%;
  background: var(--gradient);
  opacity: 0.35;
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.rotating-text {
  position: relative;
  height: 2em;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.rotate-item {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rotate-item.active { opacity: 1; }

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.hero .lead { font-size: 1.2rem; max-width: 560px; margin-bottom: 2.25rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* Ambient motion background (Ken Burns photo + brand gradient overlay).
   Opt-in via .hero-media / .section-media so only the homepage hero and
   1-2 key sections use it, not every page. */
.hero-media,
.section-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-media img,
.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: seaviewKenBurns 26s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-media::after,
.section-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.93), rgba(27,63,160,0.82) 45%, rgba(204,34,41,0.6));
}

.section-media img { filter: brightness(0.5) saturate(1.05); }
.hero-media img { filter: brightness(0.5) saturate(1.05); }

@keyframes seaviewKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img,
  .section-media img { animation: none; }
}

/* ==========================================================================
   6. CARDS & GRIDS
   ========================================================================== */
.grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(20,20,50,0.1); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--white);
  transition: transform var(--transition), border-radius var(--transition);
}

.card:hover .card-icon { transform: scale(1.08) rotate(-4deg); border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }

.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--color-grey-text); margin-bottom: 0; }

.bg-dark .card, .bg-dark .feature-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.bg-dark .card p, .bg-dark .feature-card p { color: rgba(255,255,255,0.75); }

.two-col {
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

.two-col h3 {
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--red);
  margin-bottom: 14px;
}

.bg-dark .two-col h3 { color: #ff8a8f; }

/* ==========================================================================
   Photos
   ========================================================================== */
.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(20,20,50,0.15);
  line-height: 0;
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  transition: transform 0.6s ease;
}

.photo-frame:hover .photo,
.photo-frame:focus-within .photo { transform: scale(1.05); }

.photo-frame.round { border-radius: 999px; }
.photo-frame.round .photo { border-radius: 999px; }

.card .photo-frame {
  margin-bottom: 20px;
  box-shadow: none;
  border: 1px solid var(--color-border);
}

.full-bleed-photo {
  margin: 48px 0;
  max-height: 420px;
}

.full-bleed-photo .photo,
.full-bleed-photo.photo-frame > img {
  height: 420px;
  object-fit: cover;
}

/* ==========================================================================
   Values showcase (photo + tabbed overlay card)
   Measurements matched to production (seaviewitconsulting.ca/about/),
   which builds this with Elementor nested-tabs (column-reverse, so the
   tab row renders below the photo despite coming first in the DOM).
   ========================================================================== */
.values-showcase {
  display: flex;
  flex-direction: column;
  margin-bottom: 12vh;
}

.values-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px 20px;
}

@media (min-width: 640px) {
  .values-photo { min-height: 80vh; padding: 30px; }
}

@media (min-width: 1024px) {
  .values-photo { min-height: 100vh; max-height: 900px; padding: 40px; }
}

.values-photo .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  z-index: 0;
}

.values-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

.values-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 640px;
  background: rgba(255,255,255,0.8);
  border-radius: 24px;
  padding: 20px 20px 12px;
}

@media (min-width: 1024px) {
  .values-card { padding: 30px 30px 15px; }
}

.values-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.values-card-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey-text);
  margin-bottom: 8px;
}

.values-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.values-card-icon svg { width: 15px; height: 15px; }

.values-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.values-card p { color: var(--color-grey-text); margin-bottom: 8px; }
.values-card p:last-child { margin-bottom: 0; }

.values-slide { display: none; }
.values-slide.is-active { display: block; animation: valuesFadeIn 0.35s ease; }

@keyframes valuesFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.values-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 5px;
  margin-bottom: 20px;
}

@media (min-width: 1024px) {
  .values-tabs { justify-content: flex-end; margin-bottom: 40px; }
}

.values-tab {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 12px 20px;
  border-radius: 40px;
  border: none;
  background: rgba(255,255,255,0.2);
  color: rgba(0,0,0,0.8);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

@media (min-width: 1024px) {
  .values-tab { padding: 10px 25px; }
}

.values-tab:hover,
.values-tab.is-active {
  background: #F6F5F2;
  color: var(--blue);
}

.values-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .values-slide.is-active { animation: none; }
}

.how-we-help {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.how-we-help h3 {
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  color: var(--red);
  text-transform: uppercase;
}
.bg-dark .how-we-help h3 { color: #ff8a8f; }

/* ==========================================================================
   7. LOGO STRIP
   ========================================================================== */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.logo-strip .logo-item {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-grey-text);
  opacity: 0.6;
  filter: grayscale(1);
  transition: opacity var(--transition);
}

.logo-strip .logo-item:hover { opacity: 1; }

/* ==========================================================================
   8. TESTIMONIALS
   ========================================================================== */
.testimonial-carousel { position: relative; max-width: 780px; margin: 0 auto; }

.testimonial-track { overflow: hidden; }

.testimonial-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  text-align: center;
  padding: 0 10px;
}

.testimonial-slide blockquote {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 24px;
}

.testimonial-slide cite {
  font-style: normal;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  display: block;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  padding: 0;
  transition: background var(--transition);
}

.testimonial-dots button.is-active { background: var(--white); }

/* ==========================================================================
   9. CONTACT / CTA SECTION
   ========================================================================== */
.contact-cta .section-head { max-width: 640px; }

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

@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.8fr 1.2fr; } }

.contact-info-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.contact-page .contact-info-list li { border-bottom-color: var(--color-border); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--navy);
  box-shadow: 0 30px 60px rgba(20,20,50,0.18);
}

.contact-page .contact-form { box-shadow: none; border: 1px solid var(--color-border); }

.form-row { display: grid; gap: 18px; margin-bottom: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row.split { grid-template-columns: 1fr 1fr; } }

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--grey-bg);
  transition: border-color var(--transition), background var(--transition);
}

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

.form-field textarea { resize: vertical; min-height: 130px; }

.form-note { margin-top: 20px; text-align: center; color: rgba(255,255,255,0.85); }
.contact-page .form-note { color: var(--color-grey-text); }

.form-success, .form-error {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}
.form-success { background: #e6f7ec; color: #1a7d40; }
.form-error { background: #fdeaea; color: var(--red); }

.newsletter-bar {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.newsletter-bar p { margin: 0; max-width: 420px; font-weight: 500; }

.newsletter-form { display: flex; gap: 10px; flex: 1; max-width: 420px; min-width: 260px; }
.newsletter-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-form input:focus { outline: none; border-color: var(--white); }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer { background: var(--navy); color: var(--white); padding: 80px 0 0; }

.footer-grid {
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
  padding-bottom: 56px;
}

@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }

.footer-logo img { height: 40px; margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.7); max-width: 280px; }

.social-icons { display: flex; gap: 12px; margin-top: 20px; }
.social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
}
.social-icons a:hover { background: var(--blue); border-color: var(--blue); }
.social-icons svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }

.footer-col .btn { margin-top: 6px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a:hover { color: var(--white); }

/* ==========================================================================
   11. PAGE HERO (interior pages)
   ========================================================================== */
.page-hero {
  padding: 120px 0 64px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  height: 160%;
  background: var(--gradient);
  opacity: 0.3;
  filter: blur(90px);
  border-radius: 50%;
  z-index: 1;
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 620px; font-size: 1.15rem; }

/* ==========================================================================
   12. SERVICES PAGE
   ========================================================================== */
.service-block {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: start;
  padding: 64px 24px;
  border-bottom: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-block:hover {
  background: var(--grey-bg);
  box-shadow: 0 20px 50px rgba(20,20,50,0.08);
  transform: translateY(-2px);
}

.service-block:last-child { border-bottom: none; }

@media (min-width: 900px) { .service-block { grid-template-columns: 0.9fr 1.1fr; } }

.service-block .card-icon { width: 64px; height: 64px; border-radius: 16px; }
.service-block .card-icon svg { width: 30px; height: 30px; }

.service-block h2 { font-size: 1.7rem; margin-top: 18px; }

.service-list { margin: 22px 0 28px; }
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  color: var(--color-grey-text);
}

.service-list li svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }

/* ==========================================================================
   13. INSIGHTS / BLOG
   ========================================================================== */
.insights-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

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

.insight-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.insight-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(20,20,50,0.1); }

.insight-card .insight-thumb {
  aspect-ratio: 16/10;
  background: var(--gradient);
  overflow: hidden;
}

.insight-card .insight-thumb img { width: 100%; height: 100%; object-fit: cover; }

.insight-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.insight-category {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.insight-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.insight-card .insight-excerpt { color: var(--color-grey-text); font-size: 0.95rem; flex: 1; }

.insight-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
}

.insight-meta .insight-date { color: var(--color-grey-text); }
.insight-meta .read-more { font-weight: 600; color: var(--blue); }

.insights-empty {
  text-align: center;
  padding: 80px 20px;
  max-width: 480px;
  margin: 0 auto;
}

.insights-empty h2 { margin-bottom: 12px; }
.insights-empty p { color: var(--color-grey-text); margin-bottom: 28px; }

.pagination-nav { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.pagination-nav a, .pagination-nav span {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-weight: 600;
}
.pagination-nav .current { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ==========================================================================
   14. ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card:hover,
  .card:hover .card-icon,
  .service-block:hover,
  .btn:hover,
  .btn:active,
  .photo-frame:hover .photo,
  .photo-frame:focus-within .photo { transform: none; }
}

/* ==========================================================================
   15. UTILITIES
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Defensive: hide any generic page/entry title a page-builder or plugin
   template part might render above our own hero sections. */
body.page > .page-title,
body.page > .entry-title,
.hero + .page-title,
.hero + .entry-title,
main > .page-title,
main > .entry-title { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
