/* ===========================================
   Career Inspiration – Shared Stylesheet
   Reconstructed from careerinspiration.co.uk
   =========================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@400;700;900&display=swap');

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

:root {
  --orange:    #f39200;
  --black:     #000000;
  --white:     #ffffff;
  --pink:      #fc0350;
  --grey-light:#ebebec;
  --grey-mid:  #7a7a7a;
  --max-width: 1240px;
}

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--black);
  background: var(--white);
}

a { color: var(--orange); text-decoration: none; }
a:hover, a:focus { color: var(--black); }

ul { list-style: none; }

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

h1 { font-size: 3rem; font-weight: 400; font-family: 'Playfair Display', serif; text-transform: capitalize; color: var(--white); line-height: 1.2; }
h2 { font-size: 2.5rem; font-weight: 400; font-family: 'Playfair Display', serif; color: var(--black); line-height: 1.3; }
h3 { font-size: 1.5rem; font-weight: 400; font-family: 'Playfair Display', serif; color: var(--black); line-height: 1.9; }
h4 { font-size: 1.25rem; font-weight: 400; font-family: 'Playfair Display', serif; text-transform: uppercase; color: var(--black); }
h5 { font-size: 0.9375rem; font-weight: 900; font-family: 'Lato', sans-serif; text-transform: uppercase; color: var(--black); }
h6 { font-size: 0.75rem; font-weight: 400; font-family: 'Lato', sans-serif; text-transform: capitalize; color: var(--black); }
p  { margin-bottom: 1em; line-height: 1.7; }

/* ---- Layout ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ===================== HEADER ===================== */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease;
}
#masthead.scrolled {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 1.5rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
  transition: padding 0.3s ease;
}
#masthead.scrolled .header-inner { padding-top: 1rem; }

/* Logo */
.site-logo img { width: 180px; }
.logo-placeholder {
  width: 180px; height: 140px;
  background: rgba(255,255,255,0.15);
  border: 2px dashed rgba(255,255,255,0.4);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.75rem; text-align: center;
  padding: 0.5rem;
}
#masthead.scrolled .logo-placeholder {
  background: rgba(243,146,0,0.1);
  border-color: var(--orange);
  color: var(--orange);
}

/* Nav */
.main-nav { display: flex; align-items: center; }
.main-nav > ul { display: flex; gap: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 1.25rem 1.25rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  transition: color 0.2s;
}
#masthead.scrolled .main-nav > ul > li > a { color: var(--black); }
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a { color: var(--orange) !important; }

/* Dropdown */
.sub-menu {
  position: absolute;
  top: 100%; left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}
.main-nav > ul > li:hover .sub-menu,
.main-nav > ul > li:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu li a {
  display: block;
  padding: 0.6rem 1.2rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  border-bottom: 1px solid var(--grey-light);
  transition: background 0.15s, color 0.15s;
}
.sub-menu li:last-child a { border-bottom: none; }
.sub-menu li a:hover { background: var(--orange); color: var(--white); }

/* Sub-sub-menu */
.sub-menu .sub-menu {
  top: 0; left: 100%;
  transform: translateX(6px);
}
.sub-menu li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateX(0); }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem;
}
.menu-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--white); margin: 5px 0;
  transition: background 0.2s;
}
#masthead.scrolled .menu-toggle span { background: var(--black); }

/* ===================== HERO SECTION ===================== */
.hero-main {
  min-height: 100vh;
  position: relative;
  background:
    linear-gradient(
      to right,
      rgba(10, 15, 45, 0.92) 0%,
      rgba(10, 15, 45, 0.80) 45%,
      rgba(10, 15, 45, 0.55) 100%
    ),
    url('../images/ci-fp4b.jpeg') center 30% / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-logo {
  width: 260px;
  max-width: 100%;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}

.hero-right {
  flex: 1 1 auto;
}

.hero-right h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Legacy selectors for inner page hero fallback */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8rem 1.5rem 4rem; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%); }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }

@media (max-width: 768px) {
  .hero-main { padding: 6rem 0 3rem; min-height: 80vh; }
  .hero-inner { flex-direction: column; gap: 2rem; text-align: center; }
  .hero-left { justify-content: center; }
  .hero-logo { width: 180px; }
  .hero-right h1 { font-size: 1.75rem; }
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: var(--white);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--orange);
}
.btn-outline:hover { background: var(--orange); color: var(--white); }
.btn-white {
  background: var(--white); color: var(--orange); border-color: var(--white);
}
.btn-white:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

/* ===================== SECTIONS ===================== */
section { padding: 5rem 0; }
.section-title-prefix {
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  margin-bottom: 0.5rem;
  display: block;
}
.section-center { text-align: center; }
.section-center h2 { margin-bottom: 1rem; }
.section-center p { max-width: 700px; margin: 0 auto 2rem; }

/* ===================== INFO BOXES / CARDS ===================== */
.card-grid { display: grid; gap: 2rem; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  padding: 2rem;
  border: 1px solid var(--grey-light);
}

/* ===================== SIGNS LIST ===================== */
.signs-section { background: #f8f8f8; }
.signs-list { max-width: 800px; margin: 2rem auto 0; }
.signs-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--grey-light);
}
.signs-list li:last-child { border-bottom: none; }
.signs-list li h3 { font-size: 1.1rem; line-height: 1.5; }
.signs-list li h3 em { font-style: italic; }

/* ===================== TABS SECTION ===================== */
.tabs-section {
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
              url('../images/tabs-bg.jpg') center/cover no-repeat fixed;
  padding: 5rem 0;
}
.tabs-section-placeholder {
  background: linear-gradient(135deg, #2c3e50, #4a6741);
  padding: 5rem 0;
}
.tabs-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-bottom: 0; }
.tab-btn {
  padding: 0.75rem 1.5rem;
  font-family: 'Lato', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--orange); color: var(--white); }
.tabs-content { background: rgba(255,255,255,0.95); padding: 2.5rem 3rem; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel h3 { color: var(--black); margin-bottom: 1rem; }
.tab-panel p { color: #333; }

/* ===================== TESTIMONIALS ===================== */
.testimonials-section { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.testimonial-card {
  padding: 2rem;
  border-left: 4px solid var(--orange);
  background: #fafafa;
}
.testimonial-card blockquote {
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  color: #333;
}
.testimonial-card blockquote::before { content: '\201C'; font-size: 2rem; color: var(--orange); line-height: 0; vertical-align: -0.5rem; margin-right: 0.25rem; }
.testimonial-author { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange); }

/* ===================== ABOUT SNIPPET ===================== */
.about-snippet { text-align: center; padding: 4rem 0; background: var(--white); }
.about-snippet h5 { color: var(--orange); margin-bottom: 0.5rem; }
.about-snippet h2 { margin-bottom: 1.5rem; }
.about-snippet p { max-width: 700px; margin: 0 auto 2rem; font-style: italic; font-size: 1.1rem; line-height: 1.8; }

/* ===================== IMAGE PLACEHOLDER ===================== */
.img-placeholder {
  width: 100%; aspect-ratio: 3/1;
  background: #e8e8e8;
  border: 2px dashed #ccc;
  border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #888; font-size: 0.8rem; font-family: 'Lato', sans-serif;
  text-align: center; padding: 1rem;
  gap: 0.5rem;
}
.img-placeholder .img-icon { font-size: 2rem; }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  padding: 10rem 1.5rem 4rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: 2.5rem; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 1rem auto 0; font-size: 1.1rem; }

/* ===================== CONTENT AREA ===================== */
.content-area { padding: 5rem 0; }
.content-area h2 { margin-bottom: 1.5rem; }
.content-area h3 { margin-bottom: 1rem; }
.content-area p  { margin-bottom: 1.2rem; }
.content-area ul.styled-list { list-style: none; margin: 1.5rem 0; }
.content-area ul.styled-list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  border-bottom: 1px solid var(--grey-light);
  font-style: italic;
}
.content-area ul.styled-list li::before {
  content: '›';
  position: absolute; left: 0;
  color: var(--orange); font-size: 1.2rem; font-weight: 700;
}

/* ===================== TWO-COLUMN LAYOUT ===================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.two-col.reversed { direction: rtl; }
.two-col.reversed > * { direction: ltr; }

/* ===================== SUB-SERVICES CARDS ===================== */
.sub-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.sub-service-card {
  border: 1px solid var(--grey-light);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sub-service-card:hover { border-color: var(--orange); box-shadow: 0 4px 20px rgba(243,146,0,0.12); }
.sub-service-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.sub-service-card a { font-family: 'Lato', sans-serif; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--orange); }

/* ===================== CONTACT FORM ===================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info address { font-style: normal; line-height: 2; }
.contact-info address a { color: var(--orange); }
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form label { display: block; font-family: 'Lato', sans-serif; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; color: var(--black); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--orange); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ===================== FOOTER ===================== */
.footer-widgets {
  background: #f8f8f8;
  border-top: 1px solid #7a7a7a;
  padding: 3.5rem 0;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
.footer-widget h2.widget-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 0.5rem;
  display: inline-block;
}
.footer-widget address { font-style: normal; line-height: 2; font-size: 0.9rem; }
.footer-widget address a { color: var(--orange); }
.footer-widget address a:hover { color: var(--black); }
.footer-widget p { font-size: 0.9rem; color: #444; line-height: 1.7; }

.footer-logo-placeholder {
  width: 140px; height: 105px;
  background: rgba(243,146,0,0.08);
  border: 2px dashed #ddd;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: #999; font-size: 0.7rem; text-align: center; padding: 0.5rem;
}

.social-links { display: flex; gap: 1rem; margin-top: 0.5rem; }
.social-links a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 4px;
  transition: opacity 0.2s;
}
.social-links a:hover { opacity: 0.75; }
.social-links .linkedin { background: #007bb5; }
.social-links .facebook { background: #3b5998; }
.social-links svg { fill: white; }

.footer-bottom {
  background: var(--white);
  border-top: 1px solid var(--grey-light);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Lato', sans-serif; font-size: 0.875rem; color: var(--black);
}
.footer-bottom-inner a { color: var(--pink); }
.footer-bottom-inner a:hover { color: var(--black); }
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ===================== JOURNEY IMAGE ===================== */
.journey-image-wrap { text-align: center; padding: 3rem 0; }
.journey-img-placeholder {
  width: 100%; max-width: 900px; aspect-ratio: 2/1;
  background: #e8e8e8;
  border: 2px dashed #ccc;
  border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #888; font-size: 0.875rem; font-family: 'Lato', sans-serif;
  text-align: center; margin: 0 auto; padding: 2rem; gap: 0.75rem;
}

/* ===================== BLOG ===================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.blog-card { border: 1px solid var(--grey-light); }
.blog-card-img {
  width: 100%; aspect-ratio: 16/9;
  background: #e8e8e8;
  border: 2px dashed #ddd;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: 0.75rem; font-family: 'Lato', sans-serif;
}
.blog-card-body { padding: 1.5rem; }
.blog-card-body h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.blog-card-body p  { font-size: 0.9rem; color: #555; }
.blog-card-body .read-more { font-family: 'Lato', sans-serif; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--orange); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { gap: 2.5rem; }
  .card-grid-3, .sub-services, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 921px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .main-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem; }
  .main-nav.open > ul { flex-direction: column; }
  .main-nav.open > ul > li > a { color: var(--orange); padding: 0.75rem 1rem; }
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding-left: 1rem; display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .hero, .hero-placeholder-bg { min-height: 80vh; }
  .two-col { grid-template-columns: 1fr; }
  .card-grid-3, .sub-services, .testimonials-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
  .tabs-content { padding: 1.5rem; }
}
