/* =============================================
   C-Link Consulting - Main Stylesheet
   ============================================= */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Josefin+Sans:wght@300;400;600;700&family=Dancing+Script:wght@600&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  color: #333;
  background: #fff;
  line-height: 1.7;
}

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

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

/* --- Color Variables --- */
:root {
  --green: #2d6a4f;
  --dark-green: #1b4332;
  --gold: #b5874a;
  --light-gray: #f8f8f8;
  --mid-gray: #e0e0e0;
  --dark: #222;
  --white: #fff;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--mid-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 80px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
}

.navbar-brand .brand-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.8rem;
  color: var(--dark);
  line-height: 1.1;
}

.navbar-brand .brand-tagline {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: #666;
  text-transform: uppercase;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 0;
}

.navbar-nav li a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #444;
  padding: 10px 18px;
  display: block;
  transition: color 0.2s;
  position: relative;
}

.navbar-nav li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--dark);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.navbar-nav li a:hover::after,
.navbar-nav li a.active::after {
  transform: scaleX(1);
}

.navbar-nav li a:hover,
.navbar-nav li a.active {
  color: var(--dark);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page {
  display: none;
  padding-top: 80px;
  min-height: 100vh;
}

.page.active {
  display: block;
}

/* =============================================
   HOME PAGE - HERO SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.slide-content {
  position: relative;
  z-index: 2;
  padding: 60px 80px;
  color: #fff;
  max-width: 700px;
}

.slide-content h1 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slide-content h1 em {
  font-style: normal;
  font-weight: 300;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slider-btn:hover {
  background: rgba(255,255,255,0.3);
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

.slider-dot.active {
  background: #fff;
}

/* Quick Links below slider */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #fff;
  border-top: 1px solid var(--mid-gray);
}

.quick-link {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  padding: 18px 40px;
  border-right: 1px solid var(--mid-gray);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.quick-link:last-child {
  border-right: none;
}

.quick-link:hover {
  background: var(--light-gray);
  color: var(--dark);
}

/* =============================================
   PAGE BANNER (inner pages)
   ============================================= */
.page-banner {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* =============================================
   WHY C-LINK PAGE
   ============================================= */
.why-banner {
  background-image: url('images/why_banner.jpg');
}

.why-intro-box {
  background: #1a1a2e;
  color: #fff;
  text-align: center;
  padding: 50px 60px;
}

.why-intro-box p {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.why-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 70px 40px;
}

.why-content p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 28px;
  line-height: 1.85;
}

.why-content p .brand-inline {
  font-family: 'Dancing Script', cursive;
  font-size: 1.3rem;
  color: #222;
}

/* =============================================
   SERVICES PAGE
   ============================================= */
.services-banner {
  background-image: url('images/services_banner.jpg');
}

.services-grid {
  max-width: 1000px;
  margin: 0 auto;
  padding: 70px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
}

.service-item {
  display: flex;
  flex-direction: column;
}

.service-number {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #aaa;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-number::before {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: #ccc;
}

.service-item p {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
}

.service-item p::first-letter {
  font-size: 1.6rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1;
  float: left;
  margin-right: 3px;
  margin-top: 2px;
  color: #222;
}

/* =============================================
   TEAM PAGE
   ============================================= */
.team-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 70px 40px;
}

.team-section h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 70px;
  color: #222;
}

.team-member {
  text-align: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--mid-gray);
}

.team-member:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.team-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--mid-gray);
}

.team-member h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 400;
  color: #222;
  margin-bottom: 4px;
}

.team-member .role {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: #666;
  margin-bottom: 14px;
}

.team-member .linkedin-link {
  display: inline-block;
  margin-bottom: 20px;
}

.team-member .linkedin-link img {
  width: 32px;
  height: 32px;
  margin: 0 auto;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.team-member .linkedin-link:hover img {
  opacity: 1;
}

.team-member p {
  font-size: 0.98rem;
  color: #444;
  text-align: left;
  line-height: 1.85;
  margin-bottom: 16px;
}

.team-member p a {
  color: var(--green);
  text-decoration: underline;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.contact-image {
  background-image: url('images/contact_crowd.jpg');
  background-size: cover;
  background-position: center;
  min-height: 400px;
}

.contact-form-wrapper {
  padding: 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-wrapper h2 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 30px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: #333;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #999;
  background: #fff;
}

.contact-form .full-width {
  margin-bottom: 16px;
}

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

.btn-send {
  display: inline-block;
  background: var(--dark);
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 40px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.btn-send:hover {
  background: #444;
}

.contact-map-wrapper {
  width: 100%;
  height: 350px;
}

.contact-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Form success message */
.form-success {
  display: none;
  background: #d4edda;
  color: #155724;
  padding: 14px 20px;
  border: 1px solid #c3e6cb;
  margin-top: 16px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.9rem;
}

/* =============================================
   BLOG PAGE
   ============================================= */
.blog-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 40px;
}

.blog-filters {
  display: flex;
  gap: 0;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--mid-gray);
}

.blog-filter-btn {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}

.blog-filter-btn.active {
  color: var(--green);
}

.blog-filter-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
}

.blog-card {
  border: 1px solid var(--mid-gray);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

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

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-card-meta .author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.blog-card h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
}

.blog-card-stats {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--mid-gray);
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: #f5f5f5;
  border-top: 1px solid var(--mid-gray);
  text-align: center;
  padding: 24px 40px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #888;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-image {
    min-height: 250px;
  }

  .contact-form-wrapper {
    padding: 40px 30px;
  }
}

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

  .navbar-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    border-bottom: 1px solid var(--mid-gray);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
  }

  .navbar-nav.open {
    display: flex;
  }

  .navbar-nav li a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--mid-gray);
  }

  .navbar-nav li a::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .slide-content {
    padding: 40px 30px;
  }

  .quick-links {
    flex-wrap: wrap;
  }

  .quick-link {
    padding: 14px 20px;
    flex: 1 1 33%;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .team-section {
    padding: 40px 24px;
  }

  .why-content {
    padding: 40px 24px;
  }

  .why-intro-box {
    padding: 40px 24px;
  }

  .blog-section {
    padding: 40px 24px;
  }

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

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

@media (max-width: 480px) {
  .slide-content h1 {
    font-size: 1.8rem;
  }

  .page-banner {
    height: 150px;
  }

  .navbar-brand .brand-name {
    font-size: 1.4rem;
  }
}
