:root{
  --bg-soft:#faf7f2; --text:#3f3f3f; --muted:#6f6f6f; --accent:#c9a168;
  --radius:16px; --shadow:0 10px 30px rgba(0,0,0,.08);
}

nav.navbar { display: block !important; }

.header_section { background: var(--bg-soft); }

/* Brand logo scales nicely without inline styles */
.brand-logo{ height:64px; width:auto; display:block; }
@media (min-width:992px){ .brand-logo{ height:72px; } }

/* Nav links: subtle hover + active underline using accent */
.navbar .nav-link{
  position:relative; font-weight:500; color:var(--text);
  padding:.5rem .75rem;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus{ color:var(--text); }
.navbar .nav-link::after{
  content:""; position:absolute; left:.75rem; right:.75rem; bottom:.35rem;
  height:2px; background:transparent; border-radius:2px; transition:background .2s ease;
}
.navbar .nav-link:hover::after{ background:var(--accent); }

/* Accent button matches the rest of the site */
.btn-accent{
  background:var(--accent); color:#fff; border:none; border-radius:999px;
  padding:.6rem 1rem; font-weight:600; box-shadow: var(--shadow);
}
.btn-accent:hover{ filter:brightness(.95); color:#fff; }

:root {
  /* Dune-inspired neutrals */
  --bg-soft: #faf7f2;
  --text: #3f3f3f;
  --muted: #6f6f6f;
  --accent: #c9a168; /* sand-gold accent */
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2rem; --space-5: 3rem;
}

/* ─── Sections ───────────────────────────────────────────────────────────── */
.about_section,
.services_section,
.blog-gallery,
.connect_section,
.banner_section {
  color: var(--text);
  padding-top: 80px;
  padding-bottom: 80px;
}
.about_section,
.blog-gallery,
.connect_section { background: var(--bg-soft); }


.services_section,
.banner_section { background: #fff; }

/* Headings */
.section-title {
  font-weight: 700;
  margin-bottom: .25rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 72px; height: 3px;
  background: var(--accent);
  margin-top: .6rem;
  border-radius: 2px;
}
.section-title--center::after { margin-left: auto; margin-right: auto; }
.section-subtitle { color: var(--muted); margin-bottom: var(--space-4); }

/* ─── About ──────────────────────────────────────────────────────────────── */
.about_content p { line-height: 1.8; margin-bottom: var(--space-3); }
.about-image { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-quote {
  margin-top: var(--space-3);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
  font-style: italic;
}
.feature { margin-top: var(--space-4); }
.feature-title { font-weight: 600; margin-bottom: .4rem; }

/* ─── Services ───────────────────────────────────────────────────────────── */
.service-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--space-4);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.1); }
.service-title { font-weight: 600; }
.service-lead { margin-bottom: var(--space-2); }
.service-icon { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.service-list { list-style: none; padding-left: 0; margin: 0; }
.service-list li { position: relative; padding-left: 1.3rem; margin-bottom: .5rem; }
.service-list li::before {
  content: ""; position: absolute; left: 0; top: .55rem;
  width: .5rem; height: .5rem; border-radius: 50%; background: var(--accent);
}

/* ─── Blog Carousel (gallery) ────────────────────────────────────────────── */
#blogCarousel { position: relative; touch-action: pan-y; }
.blog-gallery .carousel-inner { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-soft); }
.testimonial-figure { margin: 0; text-align: center; padding: var(--space-4); }
.testimonial-image {
  width: 100%; max-height: 460px; object-fit: cover; border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.testimonial-caption { margin-top: var(--space-3); }
.testimonial-quote {
  position: relative; font-style: italic; line-height: 1.8;
  margin: 0 auto var(--space-2); max-width: 56ch;
}
/* opening quote */
.testimonial-quote::before{
  content: "\201C";
  position: absolute;
  left: -1.2rem;
  top: -0.4rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  opacity: .35;
  pointer-events: none;
}

/* closing quote */
.testimonial-quote::after{
  content: "\201D";
  position: absolute;
  right: -1.2rem;
  bottom: -0.6rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  opacity: .35;
  pointer-events: none;
}

.testimonial-cite { display: block; font-weight: 600; color: var(--text); }

/* Blog indicators (bottom-center, enlarged dots) */
#blogCarousel .carousel-indicators {
  position: absolute; left: 50%; bottom: 10px; top: auto;
  transform: translateX(-50%); gap: 12px; margin: 0;
}
#blogCarousel .carousel-indicators [data-bs-target] {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: 2px solid var(--accent);
  box-shadow: var(--shadow); opacity: 1;
}
#blogCarousel .carousel-indicators .active { background: var(--accent); }

/* ─── Connect (text slider + form) ──────────────────────────────────────── */
.text-slider-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display:flex; flex-direction:column; }
.slide-inner { padding: var(--space-4); height: 100%; display:flex; flex-direction:column; justify-content:center; }
#infoCarousel, #infoCarousel .carousel-inner, #infoCarousel .carousel-item { height: 100%; }

/* Info carousel indicators (small dots, consistent) */
#infoCarousel .carousel-indicators { margin-bottom: .75rem; gap: 10px; }
#infoCarousel .carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; background: #d9d1c4; border: 0; }
#infoCarousel .carousel-indicators .active { background: var(--accent); }

/* Form card */
.contact-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-4); }
.form-label { font-weight: 600; }
.form-control, .form-check-input { border-radius: 10px; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(201,161,104,.2); }
.btn-accent { background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: .75rem 1.25rem; font-weight: 600; }
.btn-accent:hover { filter: brightness(0.95); }
.form-note { color: var(--muted); font-size: .9rem; margin-top: var(--space-2); }

/* Contact header + LinkedIn */
.contact-card-header .social-link.linkedin { display:inline-flex; align-items:center; gap:.5rem; text-decoration:none; color: var(--text); opacity:.85; }
.contact-card-header .social-link.linkedin:hover { opacity:1; }
.social-link.linkedin svg { width:24px; height:24px; }

/* Alerts + Busy state */
.form-alert { margin-top: var(--space-2); padding: .75rem 1rem; border-radius: 10px; display:none; }
.form-alert.is-visible { display:block; }
.form-alert.success { background:#e8f5e9; border:1px solid #b6e0bd; color:#1b5e20; }
.form-alert.error { background:#fdecea; border:1px solid #f5c6cb; color:#7a1c1c; }
.btn-accent[aria-busy="true"] { position: relative; pointer-events: none; }
.btn-accent[aria-busy="true"]::after {
  content: ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.input-group .input-group-text { background: #fff; border-top-left-radius: 10px; border-bottom-left-radius: 10px; }

/* Equal heights on desktop for slider & form */
@media (min-width: 992px) {
  .text-slider-card, .contact-card { min-height: clamp(420px, 52vh, 560px); }
}

/* ─── Hero / Banner (numbered indicators preset) ────────────────────────── */
.banner_section { /* already has background/padding via section rules */ }
.hero-image { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; width: 100%; }
.banner_text { line-height: 1.8; }

/* Numbered indicators utility (works for BS5 buttons or BS4 li) */
.carousel-indicators--numbers { gap: 10px; margin-bottom: 1rem; }
.carousel-indicators--numbers button,
.carousel-indicators--numbers li {
  text-indent: 0 !important;
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 44px; height: 34px; padding: 0 .75rem;
  border-radius: 999px; border: 1px solid var(--accent);
  background: rgba(255,255,255,.9); color: var(--text);
  font-weight: 600; font-size: .95rem; line-height: 1;
  box-shadow: var(--shadow); opacity: 1;
}
.carousel-indicators--numbers .active {
  background: var(--accent); color: #fff; border-color: var(--accent);
}

/* ─── Generic carousel controls (shared) ────────────────────────────────── */
.carousel-control-prev, .carousel-control-next { width: 3rem; }
.control-chevron {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: #fff; border-radius: 50%; box-shadow: var(--shadow);
  font-size: 1.6rem; line-height: 1; color: var(--text);
}
.carousel-control-prev:hover .control-chevron,
.carousel-control-next:hover .control-chevron { transform: translateY(-1px); }

/* Accessibility & motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-item { transition: none !important; }
}

/* ─── Responsive tweaks ─────────────────────────────────────────────────── */
@media (max-width: 991.98px) { .section-subtitle { margin-bottom: var(--space-3); } }
@media (max-width: 575.98px) {
  .about_section, .services_section, .blog-gallery, .connect_section, .banner_section { padding-top: 56px; padding-bottom: 56px; }
  .about-quote { padding: var(--space-3); }
  .testimonial-image { max-height: 320px; }
}

/* Only use transform transition when NOT fading */
.carousel:not(.carousel-fade) .carousel-item {
  transition: transform .45s ease-in-out;
}

/* Fade transition (works for BS5 + BS4) */
.carousel.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity .45s ease-in-out;
}
.carousel.carousel-fade .carousel-item.active,
.carousel.carousel-fade .carousel-item-next.carousel-item-start,   /* BS5 */
.carousel.carousel-fade .carousel-item-prev.carousel-item-end,     /* BS5 */
.carousel.carousel-fade .carousel-item-next.carousel-item-left,    /* BS4 */
.carousel.carousel-fade .carousel-item-prev.carousel-item-right {  /* BS4 */
  opacity: 1;
}
.carousel.carousel-fade .active.carousel-item-start,               /* BS5 */
.carousel.carousel-fade .active.carousel-item-end,                 /* BS5 */
.carousel.carousel-fade .active.carousel-item-left,                /* BS4 */
.carousel.carousel-fade .active.carousel-item-right {              /* BS4 */
  opacity: 0;
}


/* === Fix for Gallery Section === */

.gallery_img {
  width: 100%;
  height: 220px;             /* Set a consistent height */
  object-fit: cover;         /* Ensures image fills box without stretching */
  border-radius: 10px;       /* Rounded corners */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  display: block;
}

.gallery_section {
  padding-top: 60px;         /* Space from previous section */
  padding-bottom: 60px;      /* Space before footer */
  background-color: #fff;    /* Optional: cleaner separation */
}

.gallery_section .row {
  margin-top: 20px;
  margin-bottom: 20px;
}

#gallery {
  margin-top: 60px;          /* Fallback in case padding doesn't separate */
}


.experience_intro {
    background-color: #fffafc;
    padding: 60px 0;
}

.experience_intro .gallery_text {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.experience_intro h1.gallery_title {
    font-size: 36px;
    color: #373736;
    font-weight: bold;
    margin-bottom: 30px;
}

.experience_intro .gallery_text p {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}

.section_title_underline {
  position: relative;
  display: block;
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 40px;
  font-weight: bold;
  color: #373736;
}

.section_title_underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 6px;
  background-color: #ffd6e1;
  border-radius: 4px;
}

.section_title_centered {
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  font-size: 40px;
  font-weight: bold;
  color: #373736;
}

.section_title_centered::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background-color: #ffd6e1;
  border-radius: 4px;
}
