/* ==========================================================
   Henare Construction — Luxury Overrides
   Elevates the template from plain to premium.
   Load AFTER ambed.css so these take precedence.
   ========================================================== */

/* ---- IMPORT PREMIUM FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CORRECTED COLOUR VARIABLES ---- */
:root {
  /* Official Henare Red: #C00000 */
  --ambed-base: #C00000;
  --ambed-base-rgb: 192, 0, 0;

  /* Corrected grey */
  --ambed-gray: #3a3a3a;
  --ambed-gray-rgb: 58, 58, 58;

  /* Corrected black */
  --ambed-black: #0a0a0a;
  --ambed-black-rgb: 10, 10, 10;

  /* White */
  --ambed-white: #ffffff;
  --ambed-white-rgb: 255, 255, 255;

  /* Warmer off-white for sections */
  --ambed-primary: #f7f5f3;
  --ambed-primary-rgb: 247, 245, 243;

  /* Softer border */
  --ambed-bdr-color: #e8e4e0;
  --ambed-bdr-color-rgb: 232, 228, 224;

  /* Luxury additions */
  --henare-charcoal: #1a1a1a;
  --henare-warm-grey: #6b6560;
  --henare-cream: #faf8f6;
  --henare-highlight: #C00000;
  --henare-gold-subtle: #b8a088;
}

/* ---- TYPOGRAPHY UPGRADE ---- */
body {
  font-family: 'Inter', 'Rubik', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ambed-gray);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--ambed-gray);
  transition: color 0.3s ease;
}

/* All headings get Playfair Display for a premium serif feel */
h1, h2, h3, h4, h5, h6,
.section-title__title,
.main-slider-three__title,
.why-choose-one__right-title,
.page-header__title,
.about-two__title,
.quality-work__title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  letter-spacing: -0.01em;
  font-weight: 700;
}

/* Section taglines — refined uppercase tracking */
.section-title__tagline,
.main-slider-three__sub-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ambed-base) !important;
}

/* ---- HERO SLIDER LUXURY ---- */
.main-slider-three .image-layer-three::before {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.2) 100%
  ) !important;
}

.main-slider-three__title {
  font-size: 58px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.main-slider-three__sub-title {
  font-size: 14px;
  letter-spacing: 0.3em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* ---- BUTTONS — PREMIUM FEEL ---- */
.thm-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 48px;
  border-radius: 0;
  box-shadow: none;
  background-color: var(--ambed-base) !important;
  color: #fff !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.thm-btn:after {
  background-color: var(--henare-charcoal) !important;
}

.thm-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(192, 0, 0, 0.25);
}

.thm-btn:active {
  transform: scale(0.98);
}

/* ---- SECTION SPACING — MORE BREATHING ROOM ---- */
.about-one,
.why-choose-one,
.services-one,
.feature-three,
.project-three,
.blog-one {
  padding-top: 100px !important;
  padding-bottom: 100px !important;
}

/* ---- FEATURE THREE (5 CIRCLES SECTION) ---- */
.feature-three {
  background-color: var(--henare-charcoal) !important;
}

.feature-three__top-inner {
  border-radius: 0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08) !important;
  padding: 55px 80px 22px !important;
}

.feature-three__top-icon {
  height: 90px;
  width: 90px;
  background-color: var(--ambed-base) !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-three__top-icon span {
  font-size: 48px;
}

.feature-three__top-title {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 16px;
}

/* ---- ABOUT SECTION ---- */
.about-one {
  background-color: var(--henare-cream);
}

.about-one__text-1 {
  font-size: 17px;
  line-height: 1.8;
  color: var(--henare-warm-grey);
}

.about-one__points-content-box {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---- WHY CHOOSE US ---- */
.why-choose-one-shape-1 {
  background-color: var(--henare-cream) !important;
  border-radius: 0 !important;
}

.why-choose-one__img {
  border-radius: 0 !important;
  overflow: hidden;
}

.why-choose-one__img img {
  border-radius: 0 !important;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.why-choose-one__img:hover img {
  transform: scale(1.03);
  border-radius: 0 !important;
}

.why-choose-one__img:hover {
  border-radius: 0 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

.why-choose-one__img:before {
  border-radius: 0 !important;
}

.why-choose-one__right-list li {
  font-size: 16px;
  line-height: 1.7;
}

/* ---- SERVICES SECTION ---- */
.services-one {
  background-color: var(--henare-charcoal) !important;
}

.services-one .section-title__title {
  color: #fff !important;
}

.services-one .section-title__tagline {
  color: var(--ambed-base) !important;
}

.services-one__single {
  border-radius: 0 !important;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.services-one__single:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.services-one__content h3 {
  font-family: 'Playfair Display', serif !important;
  font-size: 22px;
  font-weight: 600;
}

/* ---- PROJECTS / COMPLETED WORKS ---- */
.project-three {
  background-color: var(--henare-cream);
}

/* ---- PAGE HEADER (BREADCRUMB) ---- */
.page-header {
  position: relative;
}

.page-header-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
}

.page-header__title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

/* ---- FOOTER — ELEVATED ---- */
.site-footer {
  background-color: #0a0a0a !important;
}

.site-footer-bg {
  opacity: 0.15 !important;
}

.footer-widget__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-widget__title:before {
  background-color: var(--ambed-base) !important;
}

.footer-widget__title:after {
  background-color: var(--ambed-base) !important;
}

.footer-widget__about-text,
.footer-widget__explore-list li a,
.footer-widget__services-list li a,
.footer-widget__contact-list li .text p,
.site-footer__bottom-inner p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

.site-footer__social a {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.site-footer__social a:hover {
  transform: translateY(-2px);
}

/* ---- HEADER LOGO — BIGGER ---- */
.main-menu-three__left {
  grid-gap: 40px !important;
}

.main-menu-three__logo-box {
  width: auto !important;
  float: none !important;
  flex-shrink: 0 !important;
}

.main-menu-three__logo .light-logo {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  max-height: 70px !important;
}

.main-menu-three__logo img {
  width: auto !important;
  max-height: 70px !important;
}

/* Sticky header logo */
.sticky-header .main-menu-three__logo .light-logo,
.sticky-header .main-menu-three__logo img {
  max-height: 55px !important;
}

/* ---- FOOTER LOGO — SMALLER ---- */
.footer-widget__logo {
  max-width: 110px !important;
}

.footer-widget__logo img {
  width: 100%;
  height: auto;
}

/* ---- NAVIGATION — REFINED ---- */
.main-header-three__top {
  background-color: var(--henare-charcoal) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.main-menu-three__main-menu-box .main-menu__list > li > a {
  font-family: 'Inter', sans-serif !important;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.main-header-three__bottom {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

/* Get A Quote button in nav */
.main-header-three__btn .thm-btn {
  padding: 12px 32px;
  font-size: 12px;
  letter-spacing: 0.15em;
}

/* ---- ACCREDITATION STRIP ---- */
.brand-one {
  background-color: var(--henare-cream) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ---- BLOG CARDS (HOMEPAGE) ---- */
.blog-one__single {
  border-radius: 0 !important;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-one__single:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.blog-one__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 600;
}

/* ---- BLOG LISTING PAGE — MAGAZINE GRID ---- */
/* Force all blog cards to be visible (override WOW.js hidden state) */
.blog-listing-shell .blog-card.wow {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
  -webkit-animation: none !important;
}

.blog-listing-shell {
  background: var(--henare-cream, #faf8f6) !important;
  padding: 80px 0 100px !important;
}

.blog-cards-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
}

.blog-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0 !important;
  border-bottom: none !important;
  border-top: none !important;
  background: #fff;
  border-radius: 0 !important;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.blog-card[style*="display: none"] {
  display: none !important;
}

.blog-card:first-child {
  border-top: none !important;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.blog-card__image {
  width: 100% !important;
  height: 200px !important;
  border-radius: 0 !important;
  flex-shrink: 0;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.05);
}

.blog-card__body {
  padding: 24px 28px 28px !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ambed-base, #C00000);
  margin: 20px 0 12px 24px;
  padding: 4px 12px;
  background: rgba(192, 0, 0, 0.06);
  width: fit-content;
}

/* ---- BLOG FILTER BAR ---- */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
  padding: 0 20px;
}

.blog-filter-btn {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid #ddd;
  background: #fff;
  color: var(--henare-charcoal, #1a1a1a);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-filter-btn:hover {
  border-color: var(--ambed-base, #C00000);
  color: var(--ambed-base, #C00000);
}

.blog-filter-btn.active {
  background: var(--henare-charcoal, #1a1a1a);
  color: #fff;
  border-color: var(--henare-charcoal, #1a1a1a);
}

/* ---- BLOG SEE MORE BUTTON ---- */
.blog-see-more-wrap {
  text-align: center;
  margin-top: 48px;
}

.blog-see-more-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 40px;
  background: var(--henare-charcoal, #1a1a1a);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-see-more-btn:hover {
  background: var(--ambed-base, #C00000);
}

.blog-card--hidden {
  display: none !important;
}

.blog-card__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  color: var(--henare-charcoal, #1a1a1a) !important;
  margin: 0 0 12px !important;
}

.blog-card__title a {
  color: inherit !important;
}

.blog-card__title a:hover {
  color: var(--ambed-base, #C00000) !important;
}

.blog-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--henare-warm-grey, #6b6560);
  margin-top: auto;
}

.blog-card__excerpt {
  color: var(--henare-warm-grey, #6b6560) !important;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.blog-card__arrow {
  display: none !important;
}

.blog-card__meta {
  display: none !important;
}

/* Blog toggle button - hidden since all cards show in grid */
.blog-archive-toggle {
  display: none !important;
}

.blog-archive-toggle-UNUSED {
  background: var(--henare-charcoal, #1a1a1a) !important;
  color: #fff !important;
  border: none !important;
  padding: 16px 36px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
  margin-top: 40px !important;
}

.blog-archive-toggle:hover {
  background: var(--ambed-base, #C00000) !important;
  color: #fff !important;
}

.blog-archive-controls {
  margin: 0 !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* Blog disclaimer */
.blog-disclaimer {
  background: var(--henare-charcoal, #1a1a1a) !important;
  color: #fff !important;
  border-radius: 0 !important;
  margin-top: 48px !important;
  padding: 32px 40px !important;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.8;
}

/* Blog listing responsive */
@media (max-width: 991px) {
  .blog-cards-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
  }
}

@media (max-width: 600px) {
  .blog-cards-container {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .blog-card__image {
    height: 180px !important;
  }
  
  .blog-card__body {
    padding: 20px !important;
  }
  
  .blog-filter-bar {
    gap: 8px;
  }
  
  .blog-filter-btn {
    font-size: 11px;
    padding: 8px 14px;
  }
}

/* ---- CONTACT FORM ---- */
.contact-page__form-input input,
.contact-page__form-input textarea {
  border-radius: 0 !important;
  border: 1px solid #e0dcd8;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 14px 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-page__form-input input:focus,
.contact-page__form-input textarea:focus {
  border-color: var(--ambed-base);
  box-shadow: 0 0 0 3px rgba(192, 0, 0, 0.08);
  outline: none;
}

/* ---- SUBTLE ANIMATIONS ---- */
.section-title {
  animation: fadeInUp 0.6s ease-out;
}

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

/* ---- SCROLLBAR STYLING ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ambed-base);
}

/* ---- IMAGE TREATMENTS ---- */
.about-two__img img,
.quality-work__img img {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.about-two__img:hover img,
.quality-work__img:hover img {
  transform: scale(1.02);
}

/* ---- SELECTION COLOUR ---- */
::selection {
  background-color: var(--ambed-base);
  color: #fff;
}

::-moz-selection {
  background-color: var(--ambed-base);
  color: #fff;
}

/* ---- BLOG POST CONTENT ---- */
.blog-details__text-1,
.blog-details__text-2,
.blog-details__text-3 {
  font-size: 17px;
  line-height: 1.85;
  color: var(--henare-warm-grey);
}

.blog-details__title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700;
}

/* ---- CFS PAYMENTS PAGE ---- */
.cfs-payments h2,
.cfs-payments h3 {
  font-family: 'Playfair Display', serif !important;
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- RESPONSIVE REFINEMENTS ---- */
@media (max-width: 991px) {
  .main-slider-three__title {
    font-size: 40px;
  }
  
  .page-header__title {
    font-size: 36px;
  }
  
  .section-title__title {
    font-size: 34px;
    line-height: 42px;
  }
  
  .about-one,
  .why-choose-one,
  .services-one,
  .feature-three,
  .project-three,
  .blog-one {
    padding-top: 70px !important;
    padding-bottom: 70px !important;
  }
}

@media (max-width: 767px) {
  .main-slider-three__title {
    font-size: 32px;
  }
  
  .page-header__title {
    font-size: 28px;
  }
  
  .section-title__title {
    font-size: 28px;
    line-height: 36px;
  }
  
  .feature-three__top-inner {
    padding: 35px 30px 15px !important;
  }
  
  .thm-btn {
    padding: 14px 36px;
  }
}
