/* ========= ROOT VARIABLES ========= */
:root {
  --brand: #d96913; /* Primary brand color (buttons, highlights) */
  --brand-contrast: #ffffff; /* Text/icon color on brand backgrounds */
  --accent: #e08c4b; /* Secondary accent (hover, subtle highlights) */
  --radius: 10px; /* Default border radius for components */
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.15); /* Default soft shadow */
}

/* ========= Light theme ========= */
:root[data-theme="light"] {
  --bg: #f2f2f2; /* Page background */
  --bg-contrast: #212121; /* Page Background Contrast */
  --surface: #e6ae83; /* Cards, header, nav, panels */
  --text: #0a111f; /* Primary text on light BG */
  --text-muted: rgba(10, 17, 31, 0.65); /* Secondary text on light BG */
  --border: #dd7b2f; /* Divider/border lines */
  --link: #a65316; /* Link color on light BG */
  --link-hover: #d96913; /* Link hover on light BG (brand) */
}

/* ========= Dark theme ========= */
:root[data-theme="dark"] {
  --bg: #050910; /* Page background (rich black) */
  --bg-contrast: #0d141f; /* Page Background Contrast */
  --surface: #0a111f; /* Cards, header, nav, panels */
  --text: #f2f2f2; /* Primary text on dark BG */
  --text-muted: rgba(242, 242, 242, 0.7); /* Secondary text on dark BG */
  --border: rgba(242, 242, 242, 0.12); /* Subtle borders on dark BG */
  --link: #dd7b2f; /* Link color on dark BG */
  --link-hover: #d96913; /* Link hover on dark BG (brand) */
}

/* Smooth transition between light and dark mode */
html,
body {
  transition: background-color 0.45s ease, color 0.45s ease;
}

header,
.navbar,
.dropdown-menu,
.card,
.panel {
  transition: background-color 0.45s ease, border-color 0.45s ease,
    color 0.45s ease;
}
a,
.btn,
.btn-primary,
.btn-outline {
  transition: color 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease;
}
svg,
.icon {
  transition: fill 0.45s ease, stroke 0.45s ease, color 0.45s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Sansation, sans-serif;
}

main {
  background-color: var(--bg);
}

.btn {
  display: inline-block;
  font-size: 1rem;
  text-align: center;
  background-color: var(--brand);
  padding: 0.75rem 1.5rem;
  margin: auto 0;
  color: #fff;
  border-radius: 9999px;
}

.btn:hover {
  color: #fff;
  background-color: var(--accent);
  cursor: pointer;
}

.btn:active {
  scale: 0.95;
}

.link-underline-animate {
  position: relative;
  display: inline-block;
}

.link-underline-animate::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background-color: var(--link-hover);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease, transform-origin 0s;
}

.link-underline-animate:hover::after,
.link-underline-animate:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.link-underline-animate:not(:hover)::after {
  transform-origin: right;
}

/* NAVBAR */
.navbar {
  background-color: var(--surface) !important;
}

.navbar-brand {
  color: #ffffff !important;
  font-weight: 900;
  font-size: 2rem;
  transition: scale 0.2s ease;
  line-height: 0.9;
  text-shadow: var(--shadow);
}

.scale:hover {
  scale: 1.05;
  cursor: pointer;
}

.scale:active {
  scale: 0.95;
}

.navbar-brand span {
  color: var(--brand);
}

.nav-link {
  color: var(--link) !important;
  font-weight: bold;
}

.navbar-toggler {
  color: #ffffff;
  background-color: var(--accent);
}

#theme-icon {
  font-weight: 900 !important;
  font-size: 1.3rem;
  position: relative;
  top: 3px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 767.98px) {
  .navbar-brand {
    white-space: normal;  /* allow “Renaissance Construction” to wrap */
    font-size: 1.5rem;    /* smaller, so it fits neatly on two lines */
    display: inline-block;/* ensures wrapping behaves nicely */
  }
}

/* ========= INDEX PAGE ========= */
/* HERO SECTION */
.hero-section {
  height: calc(100vh-56px) !important;
    animation: zoom 10s ease-in-out infinite alternate;

}

.hero-h1 {
  font-size: 3rem !important;
  font-weight: 1000;
  line-height: 1;
}

.brand-accent {
  color: var(--brand);
}

.hero-content {
  width: 400px !important;
}

.fa-chevron-down {
  color: var(--text-muted);
  font-size: 3rem;
  position: absolute;
  z-index: 10;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 1.8s infinite, fadePulse 3s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-12px);
  }
  60% {
    transform: translateX(-50%) translateY(-6px);
  }
}

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

/* FANCY SECTION */
.fancy-section {
  padding-top: calc(56px + 2rem);
  padding-bottom: 6rem;
}

.fancy-section img {
  max-width: 1200px;
}

.fs-row {
  max-width: 1200px;
  padding-top: 4rem;
}

.fs-col {
  color: var(--text);
}

.fs-col:first-child {
  max-width: 14ch;
  line-height: 0.95;
  font-size: 2.5rem;
  font-weight: 900;
}

.fs-col:nth-child(2) {
  padding-left: 1rem;
}

/* I-SERVICES SECTION */
.i-services-section {
  background-color: var(--bg-contrast);
  padding: 3rem 0;
}

.i-service-container {
  max-width: 1200px;
  margin: 0 auto;
}

.i-services-section .col-12 a,
.i-services-section .col-md-6 a {
  left: 1rem;
  bottom: 1rem;
}

.i-services-section img {
  width: 100%;
  height: 250px; 
  object-fit: cover;
  border-radius: 1rem;
}

/* RESPONSIVE DESIGN */
@media (min-width: 768px) {
  .i-services-section img {
    height: 350px; 
  }
}

/* FOOTER SECTION */
.footer {
  background: var(--surface);
  color: var(--text);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--accent);
}

.footer p {
  color: var(--brand);
  font-weight: 1000;
  font-size: 1.2rem;
  margin: auto 0;
}

.footer .social-icons {
  margin: 1rem 0;
}
.footer .social-icons a {
  color: var(--text);
  margin: 0 0.5rem;
  font-size: 1.5rem;
  transition: color 0.3s;
  text-decoration: none;
}

.footer .social-icons a:nth-child(1):hover {
  color: #1877f2;
}
.footer .social-icons a:nth-child(2):hover {
  color: #1da1f2;
}
.footer .social-icons a:nth-child(3):hover {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #405de6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer .footer-links {
  margin: 1rem 0;
}
.footer .footer-links a {
  color: var(--link);
  margin: 0 0.5rem;
  text-decoration: none;
  transition: color 0.3s;
}
.footer .footer-links a:hover {
  color: var(--link-hover);
}

/* ========= SERVICES PAGE ========= */
/* SERVICES SECTION */
.services-section {
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.services-header {
  color: var(--text);
  padding: calc(2.5rem + 56px) 1rem 2.5rem 1rem;
  width: auto;
  max-width: 1400px;
}

.services-header p {
  max-width: 55%;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 2.5rem 1rem;
  gap: 1rem;
}

.service {
  flex: 1 1 calc(50% - 1rem);
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
}

.service img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.service p {
  padding-bottom: 0.75rem;
}

.service-description-card {
  position: absolute;
  z-index: 2;
  height: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  background: rgba(23, 32, 42, 0.75);
  padding: 0.5rem 1.5rem;
  /* Start overlay card so additional info is hidden */
  transform: translateY(70%);
  transition: transform 320ms ease, background 200ms ease;
}

.service:hover .service-description-card,
.service:focus-within .service-description-card {
  /* Move overlay card so all info is visible  */
  transform: translateY(0);
  background: rgba(23, 32, 42, 0.9);
}

@media (max-width: 1375px) {
  .service-description-card h1 {
    font-size: 1.5rem;
  }
  .service-description-card p {
    font-size: 0.7rem;
    padding-bottom: 0.35rem;
  }
}

@media (max-width: 992px) {
  .service {
    flex: 100%;
  }
  .services-header {
    width: 100%;
    text-align: center;
  }
  .services-header p {
    max-width: unset;
  }
  .service-description-card {
    transform: translateY(87%);
  }
  .service-description-card p {
    font-size: 0.7rem;
    padding-bottom: 0.35rem;
  }
}
@media (max-width: 828px) {
  .service-description-card {
    transform: translateY(80%);
  }
}
@media (max-width: 576px) {
  .service-description-card h1 {
    font-size: 16px;
  }
  .service-description-card p {
    font-size: 0.5rem;
  }
}
@media (max-width: 445px) {
  .service-description-card {
    transform: translateY(76%);
  }
}
@media (max-width: 367px) {
  .service-description-card {
    transform: translateY(72%);
  }
}

/* ========= ABOUT PAGE ========= */
/* ABOUT SECTION * */
.about-card {
  color: var(--text);
}

.about-card h1 {
  font-weight: bold;
}

.about-img {
  min-height: 360px;
}

.rounded-4 {
  border-radius: 2rem !important;
}

@media (min-width: 1400px) {
  .container-xxl {
    max-width: 1400px;
  }
}
/* ========= CONTACT PAGE ========= */
/* CONTACT SECTION * */
.contact-section {
  padding: 6rem 0 !important;
}

.contact-left-side {
  color: var(--text);  
}

.contact-item-title {
  position: relative;
}
.contact-item-title::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0.3em;
  width: 4px;
  height: 1rem;
  background-color: var(--brand);
}

.form-title {color: var(--text); font-weight: 600;}

form { color: var(--text);}

.contact-panel {
  background-color: rgba(246, 186, 122, 0.448); 
  border-radius: 2rem;
}

.contact-control {
  background-color: rgba(246, 186, 122, 0.238);
  color: var(--text);
  border: none;
  border-radius: 8px;
  height: 2.5rem;
}
.contact-textarea { height: auto; padding-top: .75rem; }

.contact-control:focus {
  border: none;
  box-shadow: 0 0 12px rgba(0, 102, 255, 0.9);
  outline: none;
  background-color: rgba(246, 186, 122, 0.238);
}
.contact-control:valid {
  box-shadow: 0 0 12px rgba(0, 204, 68, 0.9);
  animation: validPulse 5s infinite;
}
.contact-control:invalid:not(:focus) {
  box-shadow: 0 0 12px rgba(255, 27, 27, 0.55);
}

@keyframes validPulse {
  0%   { box-shadow: 0 0 8px rgba(0, 204, 68, 0.6); }
  50%  { box-shadow: 0 0 12px rgba(0, 204, 68, 0.8); }
  100% { box-shadow: 0 0 8px rgba(0, 204, 68, 0.6); }
}

.btn-brand {
  background-color: #f08a22;
  color: #fff;
  border: none;
  border-radius: 999px;
}
.btn-brand:hover,
.btn-brand:focus { filter: brightness(0.95); }

@media (min-width: 1400px) {
  .container-xxl { max-width: 1400px; }
}