/*
 * Custom stylesheet for the Lucido website clone.
 *
 * This file defines the layout, typography and components used across
 * the home page, blog pages, article pages and legal documents. The
 * design takes inspiration from the original Lucido site by using a
 * clean white backdrop with accents in a vibrant pink. Flexbox and
 * CSS grid are used to create responsive layouts that scale down
 * gracefully on small screens. Feel free to tweak colours or sizes
 * to match your own taste.
 */

/* Global resets and typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f5f7fa;
}

a {
  color: #ff2c55;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #e02248;
}

/* Navigation bar */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 96px;
  background: #f5f7fa;
  border-bottom: none;
  width: 100%;
  margin: 0 auto;
}

nav .logo {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1c1f24;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

nav li {
  font-weight: 500;
}

nav a {
  color: #1c1f24;
}

nav a:hover {
  color: #ff2c55;
}

nav ul li a {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #2a2f3a;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav .cta {
  border-bottom: none;
}

nav .nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  border: none;
  background: #ffffff;
  color: #1c1f24;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px 10px 46px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

nav .nav-toggle::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #1c1f24;
  transform: translateY(-50%);
  box-shadow: 0 -6px 0 #1c1f24, 0 6px 0 #1c1f24;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

nav.nav-open .nav-toggle {
  background: #ff2c55;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 44, 85, 0.24);
}

nav.nav-open .nav-toggle::before {
  background: #ffffff;
  box-shadow: 0 -6px 0 #ffffff, 0 6px 0 #ffffff;
}

/* style the CTA link to resemble the original pill with a vertical accent bar */
nav .cta a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 14px 40px 14px 76px;
  border-radius: 0;
  background: #ffffff;
  color: #2a2f3a;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  border: none;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

nav .cta a::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(135deg, #ff2c55 0%, #ea384c 100%);
  border-radius: 2px;
}

nav .cta a:hover {
  background: #ff2c55;
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(255, 44, 85, 0.3);
}

/* ------------------------------------------------------------------
 * Section titles
 * Add a vertical accent bar before each h2 in a section. This mimics
 * the red line used on the original Lucido site. Position the bar
 * absolutely relative to the heading and push the heading text to
 * the right using padding. The bar’s gradient matches the site’s
 * accent colours.
 */
.section h2 {
  position: relative;
  padding-left: 36px;
}
.section h2::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(135deg, #ff2c55 0%, #ea384c 100%);
  border-radius: 2px;
}

/* Talks & Tracks cards redesigned to more closely match the
 * original site. Each talk card shows an image on top with a
 * white information panel below. A thin red bar appears on the
 * left of the panel and commissioned text sits at the bottom. The
 * cards sit on a responsive flex row.
 */
.talk-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.talk-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex: 1 1 calc(33.333% - 24px);
  min-width: 280px;
  display: flex;
  flex-direction: column;
}
.talk-card img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.talk-card-body {
  padding: 20px 20px 20px 36px;
  position: relative;
}
.talk-card-body::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 24px;
  bottom: 24px;
  width: 4px;
  background: linear-gradient(135deg, #ff2c55 0%, #ea384c 100%);
  border-radius: 2px;
}
.talk-card-body h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.3rem;
  color: #1a1a1a;
}
.talk-card-body p {
  margin: 0;
  color: #444;
  line-height: 1.4;
}
.talk-card-body .commission {
  margin-top: 12px;
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.85rem;
}

/* Features cards enhanced with a vertical accent bar on the left. */
.feature-item {
  position: relative;
  padding: 20px 20px 20px 36px;
}
.feature-item::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 24px;
  bottom: 24px;
  width: 4px;
  background: linear-gradient(135deg, #ff2c55 0%, #ea384c 100%);
  border-radius: 2px;
}
.feature-item h3 {
  color: #1a1a1a;
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  font-weight: 600;
}
.feature-item p {
  color: #444;
  line-height: 1.5;
}

/* Contact & chat container used on the home and blog pages. The
 * layout positions the email form and chat side by side. */
.contact-chat-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}
.contact-form {
  flex: 1 1 45%;
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.contact-form h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #1a1a1a;
}
.contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}
.contact-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form button {
  background: #00b67a;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.contact-form button:hover {
  background: #00945f;
}

/* Simple reCAPTCHA placeholder used on contact and blog forms */
.recaptcha-placeholder {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #444;
  background: #f8f8f8;
}
.recaptcha-placeholder input {
  width: 16px;
  height: 16px;
}

/* Inline chat overrides – when the chat widget is used within
 * the contact section (class inline-chat), remove fixed positioning
 * and hide toggle/close buttons. */
.inline-chat.chat-widget {
  position: static;
  width: 100%;
  height: 70vh;
  max-height: 500px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.inline-chat .chat-close,
.inline-chat + .chat-toggle {
  display: none !important;
}

/* Contact form for article pages (no chat). */
.contact-form-only {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  margin: 0 auto;
}
.contact-form-only h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #1a1a1a;
}
.contact-form-only label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}
.contact-form-only input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
.contact-form-only button {
  background: #00b67a;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 0;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.contact-form-only button:hover {
  background: #00945f;
}

/* Hero section */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 72px;
  padding: 140px 96px 120px;
  background: #f5f7fa;
  max-width: 1200px;
  margin: 0 auto;
}

/* vertical divider in hero section */
.hero-divider {
  width: 4px;
  height: 320px;
  background: linear-gradient(135deg, #ff2c55 0%, #ea384c 100%);
  border-radius: 2px;
  align-self: center;
}

.hero-image {
  flex: 0 0 380px;
  text-align: center;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hero-image img {
  max-width: 360px;
  width: 100%;
  height: auto;
  border-radius: 0;
  filter: drop-shadow(0 24px 45px rgba(17, 23, 41, 0.18));
}

.hero-content {
  flex: 1;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 32px;
  padding: 0;
}

.hero-content h1 {
  font-size: 4.2rem;
  line-height: 1.05;
  margin: 0;
  color: #11151f;
  letter-spacing: -0.01em;
}

.hero-content p {
  font-size: 1.4rem;
  font-weight: 600;
  color: #3b3f49;
  line-height: 1.4;
  margin: 0;
  max-width: 260px;
}

/* outline button to match original site call to action */
.btn-outline {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1f2430;
  padding: 14px 52px 14px 80px;
  border-radius: 0;
  border: none;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

/* Add vertical accent bar inside outline buttons (hero CTA) */
.btn-outline::before {
  content: "";
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(135deg, #ff2c55 0%, #ea384c 100%);
  border-radius: 2px;
}

.btn-outline:hover {
  background: #ff2c55;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(255, 44, 85, 0.35);
  transform: translateY(-2px);
}

.hero-content .btn-outline {
  align-self: flex-end;
}

.btn-primary {
  display: inline-block;
  background: #ff2c55;
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 0;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #e02248;
}

/* Generic section styling */
.section {
  padding: 80px 96px;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2.4rem;
  margin-bottom: 30px;
  color: #1a1a1a;
}

.section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #444;
}

.about-copy {
  display: grid;
  gap: 18px;
  background: #ffffff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(17, 23, 41, 0.08);
  border-left: 4px solid #ff2c55;
}

.about-copy h3 {
  font-size: 1.5rem;
  color: #11151f;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Talks & tracks cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  color: #ffffff;
  height: 260px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background-size: cover;
  background-position: center;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  z-index: 1;
}

.card p {
  font-size: 1rem;
  z-index: 1;
}

/* allow the entire card (now an anchor) to act as a link without changing colours */
.card {
  text-decoration: none;
}
.card:hover {
  transform: scale(1.03);
  transition: transform 0.2s ease;
  cursor: pointer;
}

/* Ensure clickable card links inherit colour and don't change on hover */
a.card {
  color: #ffffff;
  text-decoration: none;
}
a.card:hover {
  color: #ffffff;
  text-decoration: none;
}
a.card h3,
a.card p {
  color: inherit;
}

/* Features/In a nutshell section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature-item {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.feature-item h3 {
  margin-bottom: 10px;
  font-size: 1.4rem;
  color: #ff2c55;
}

/* Q&A section */
.qa-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.qa-item {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e6e9f2;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qa-item[open] {
  border-color: #ff2c55;
  box-shadow: 0 18px 40px rgba(255, 44, 85, 0.12);
}

.qa-item summary {
  position: relative;
  padding: 20px 56px 20px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #151821;
  cursor: pointer;
  list-style: none;
}

.qa-item summary::marker,
.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: #ff2c55;
  transition: transform 0.2s ease;
}

.qa-item[open] summary::after {
  content: "–";
  transform: translateY(-50%) rotate(180deg);
}

.qa-answer {
  padding: 0 28px 28px;
  color: #414553;
  line-height: 1.6;
  font-size: 1rem;
  display: grid;
  gap: 16px;
}

.qa-answer p {
  margin: 0;
}

/* Contact section */
.contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: flex-start;
}

.contact-section form {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact-section label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.contact-section input,
.contact-section textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

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

.contact-section button {
  background: #ff2c55;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.contact-section button:hover {
  background: #e02248;
}

/* Chat widget */
/* Chat widget container: positioned fixed bottom-right */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  max-height: 500px;
  background: #ffffff;
  border: 1px solid #e4ebf3;
  border-radius: 12px;
  box-shadow: 0 6px 30px rgba(228, 235, 243, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 0.9rem;
  z-index: 999;
}

/* chat header with vertical accent bar */
.chat-header {
  background: #ffffff;
  color: #1a1b1f;
  padding: 20px 24px 20px 44px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #e4ebf3;
  position: relative;
}
.chat-header::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 32px;
  background: linear-gradient(135deg, #ff2c55 0%, #ea384c 100%);
  border-radius: 0 2px 2px 0;
}

/* status indicator next to header text */
.chat-status {
  width: 8px;
  height: 8px;
  background: #00b67a;
  border-radius: 50%;
  animation: pulse 2s infinite;
  /* leave margin controlled by flex gap; do not push to edge */
  margin-left: 0;
}
.chat-status.rate-limited {
  background: #ff2c55;
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* messages container */
.chat-messages {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background: linear-gradient(to bottom, #f5f7fa 0%, #fafafa 100%);
}

/* individual message wrapper */
.message {
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
}
.message.user {
  justify-content: flex-end;
}
.message.warning {
  justify-content: center;
}

.message-content {
  max-width: 80%;
  padding: 16px 20px;
  border-radius: 12px;
  line-height: 1.5;
  font-size: 15px;
  white-space: pre-wrap;
}
.message.bot .message-content {
  background: #ffffff;
  border: 1px solid #e4ebf3;
  color: #1a1b1f;
  box-shadow: 0 2px 8px rgba(228, 235, 243, 0.3);
  position: relative;
  padding-left: 28px;
}
.message.bot .message-content::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 18px;
  width: 3px;
  height: 18px;
  background: linear-gradient(135deg, #ff2c55 0%, #ea384c 100%);
  border-radius: 2px;
}

/* Close button for the chat widget */
.chat-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #888;
  cursor: pointer;
}

.chat-close:hover {
  color: #ff2c55;
}

/* Floating button that allows the user to reopen the chat when it has been closed */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 20px;
  border: none;
  border-radius: 0;
  background: #ff2c55;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1001;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.chat-toggle:hover {
  background: #e02248;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.chat-toggle.hidden {
  display: none;
}
.message.user .message-content {
  background: #ff2c55;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(228, 235, 243, 0.3);
}
.message.warning .message-content {
  background: #fff5f7;
  color: #ff2c55;
  border: 1px solid #ff2c55;
  text-align: center;
}

/* typing indicator */
.message.bot.typing .message-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
}
.message.bot.typing .message-content::before {
  display: none;
}
.typing {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-start;
  align-items: center;
}
.typing .dot {
  width: 6px;
  height: 6px;
  background: #d9d9d9;
  border-radius: 50%;
  animation: blink 1s infinite linear;
}
.typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

/* chat form and rate limit info */
.chat-form {
  padding: 0 24px 20px;
}

.chat-form form {
  display: flex;
  gap: 12px;
  border-top: 1px solid #e4ebf3;
  padding-top: 12px;
}
.chat-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e4ebf3;
  border-radius: 4px;
  font-size: 1rem;
  outline: none;
}
.chat-form button {
  padding: 8px 16px;
  /* Green send button for the chat to match the original site */
  background: #00b67a;
  color: #ffffff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-weight: 600;
}

.rate-limit-info {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #666;
}
.rate-limit-info.warning {
  color: #ff2c55;
}

/* Close button in chat header */
.chat-close {
  background: none;
  border: none;
  /* use brand colour for the close icon */
  color: #ff2c55;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  position: absolute;
  top: 14px;
  right: 14px;
  margin-left: 0;
  padding: 0;
}
.chat-close:hover {
  color: #ff2c55;
}

/* Floating toggle button that appears when the chat is closed */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff2c55;
  color: #ffffff;
  border: none;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 998;
}
.chat-toggle.hidden {
  display: none;
}

/* Footer */
footer {
  background: #1c1f24;
  color: #e5e7eb;
  padding: 72px 72px 48px;
  margin-top: 80px;
}

footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

footer h4 {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #ffffff;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 10px;
}

footer .socials {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

footer .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

footer .socials a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

footer .socials svg {
  width: 18px;
  height: 18px;
  fill: #1c1f24;
}

footer a {
  color: #d1d5db;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ff2c55;
}

footer .footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: #d1d5db;
}

/* Projects page */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.project-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(17, 23, 41, 0.08);
  border: 1px solid #eef1f6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-card-body {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
}

.project-card-body h3 {
  font-size: 1.6rem;
  margin: 0;
  color: #1a1d24;
}

.project-meta h4 {
  margin: 0 0 6px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ea384c;
}

.project-meta p {
  margin: 0;
  color: #3d4250;
  font-size: 1rem;
}

.project-tech {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: #2b313d;
  font-size: 0.98rem;
}

.project-link {
  margin-top: auto;
}

/* Blog listing */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  margin-top: 40px;
}

.blog-card {
  height: 100%;
}

.blog-card a {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 28px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(17, 23, 41, 0.08);
  border: 1px solid #eef1f6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
  text-decoration: none;
}

.blog-card a:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(17, 23, 41, 0.12);
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0;
}

.blog-card h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  color: #1a1d24;
  margin: 0;
  transition: color 0.2s ease;
}

.blog-card .date {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ea384c;
  display: block;
}

.blog-card a:hover h3 {
  color: #ff2c55;
}

/* Article page */
.article-header {
  width: 100%;
  max-height: 350px;
  overflow: hidden;
}

.article-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.article-content h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.article-content h2 {
  font-size: 1.6rem;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #ff2c55;
}

.article-content p {
  margin-bottom: 20px;
  line-height: 1.6;
  color: #444;
}

.article-content ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content strong {
  color: #1a1a1a;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  nav {
    padding: 20px 24px;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  nav .logo {
    font-size: 2.4rem;
  }
  .hero {
    flex-direction: column;
    padding: 72px 24px 80px;
    gap: 32px;
  }
  .hero-divider {
    display: none;
  }
  .hero-image {
    flex: 0 0 auto;
  }
  .hero-image img {
    max-width: 280px;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
    gap: 24px;
  }
  .hero-content p {
    font-size: 1.2rem;
    max-width: none;
  }
  .hero-content .btn-outline {
    align-self: center;
  }
  .blog-card a {
    padding: 24px;
  }
  .blog-card img {
    height: 200px;
  }
  .qa-item summary {
    padding: 18px 52px 18px 20px;
    font-size: 1rem;
  }
  .qa-answer {
    padding: 0 20px 24px;
  }
  nav .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  nav .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding-top: 16px;
  }
  nav.nav-open .nav-links {
    display: flex;
  }
  nav .cta {
    margin-top: 8px;
  }
  nav .cta a {
    padding: 12px 32px 12px 60px;
    letter-spacing: 0.12em;
  }
  nav .cta a::before {
    left: 22px;
  }
  .section {
    padding: 60px 24px;
  }
  footer {
    padding: 60px 24px 36px;
  }
  .chat-widget {
    width: 90%;
    right: 5%;
  }
}

#hp, input[name="honeypot"] {
  position: absolute;
  left: -10000px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}
.form-status { margin-top: .5rem; font-size: .95rem; }
