/* ====================================
   AMTAR - Main Stylesheet
   Pixel-perfect match to Figma design
   ==================================== */

/* Trajan Pro Font */
@font-face {
  font-family: "Trajan Pro";
  src: url("../fonts/TrajanPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Trajan Pro";
  src: url("../fonts/TrajanPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables - Updated to match Figma colors */
:root {
  --primary-color: #380606;
  --primary-dark: #2a1810;
  --secondary-color: #8b7355;
  --accent-color: #f3c986;
  --gold-color: #f3c986;
  --text-dark: #000000;
  --text-light: #ffffff;
  --text-muted: #6c757d;
  --bg-light: #f8f5f0;
  --bg-white: #ffffff;
  --bg-dark: #1a1a1a;
  --bg-page: #ededed;
  --border-color: #e0d8d0;
  --font-heading: "Trajan Pro", "Cinzel", serif;
  --font-body: "Tajawal", "Poppins", sans-serif;

  /* Consistent section spacing */
  --section-spacing: 80px;
}

/* Override Bootstrap container max-width so content stretches at all resolutions */
.container {
  max-width: 100% !important;
  padding-left: 23px;
  padding-right: 23px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-page);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
}

p {
  margin-bottom: 1rem;
  line-height: 22px;
}

/* Section Styling */
.section-padding {
  padding: var(--section-spacing) 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0;
}

.section-line {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 auto;
}

.section-line.dark {
  background-color: var(--primary-color);
  opacity: 0.3;
}

.title-underline {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
  margin: 0 auto;
}

.title-underline.light {
  background: linear-gradient(90deg, var(--accent-color), var(--gold-color));
}

/* ====================================
   HEADER / NAVIGATION
   ==================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
}

.header .navbar {
  padding: 20px 0;
  background: transparent;
}

.header .navbar > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.logo {
  height: 64px;
  width: auto;
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-color);
  padding: 10px 20px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-color);
  opacity: 0.8;
}

.btn-contact {
  background-color: var(--accent-color);
  color: #000 !important;
  padding: 10px 30px !important;
  border-radius: 5px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  border: none;
  transition: all 0.3s ease;
}

.btn-contact:hover {
  background-color: #e0b86e;
  color: #000 !important;
}

/* ====================================
   HERO BANNER
   ==================================== */
.hero-banner {
  position: relative;
  height: 717px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--text-light);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ====================================
   OUR PROJECTS SECTION
   ==================================== */
.our-projects-section {
  background-color: var(--bg-page);
  padding: 40px 0;
}

.our-projects-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.our-projects-section .section-title {
  color: var(--text-dark);
  letter-spacing: 3px;
  margin-bottom: 0;
}

.our-projects-section .section-header {
  margin-bottom: 0;
}

/* ====================================
   PROJECT CARD STYLES (Figma-accurate)
   ==================================== */
.project-card {
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card-img {
  position: relative;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

.project-card-info {
  padding: 15px 0 5px;
}

.project-card-info h5 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.project-card-info p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* ====================================
   COMMERCIAL SECTION
   ==================================== */
.commercial-section {
  position: relative;
  background-color: var(--primary-color);
  background-image: url("../home/section-bg.png");
  background-size: cover;
  background-position: center;
  padding: var(--section-spacing) 0;
}

.commercial-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.commercial-section .section-title {
  color: var(--accent-color);
  letter-spacing: 3px;
}

.commercial-section .project-card-info h5 {
  color: var(--accent-color);
}

.commercial-section .project-card-info p {
  color: var(--accent-color);
}

/* ====================================
   RESIDENTIAL SECTION
   ==================================== */
.residential-section {
  background-color: var(--bg-page);
  padding: var(--section-spacing) 0;
}

.residential-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.residential-section .section-title {
  color: var(--text-dark);
}

/* ====================================
   INTERIOR DESIGN SECTION
   ==================================== */
.interior-section {
  position: relative;
  background-color: var(--primary-color);
  background-image: url("../home/section-bg.png");
  background-size: cover;
  background-position: center;
  padding: var(--section-spacing) 0;
}

.interior-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.interior-section .section-title {
  color: var(--accent-color);
}

.interior-section .project-card-info h5 {
  color: var(--accent-color);
}

.interior-section .project-card-info p {
  color: var(--accent-color);
}

/* ====================================
   SERVICES SECTION
   ==================================== */
.services-section {
  background-color: var(--bg-page);
  padding: var(--section-spacing) 0;
}

.services-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.services-section .section-title {
  color: var(--text-dark);
}

.services-staggered-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  align-items: start;
}

.service-card-new {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  cursor: pointer;
}

.service-card-new img {
  width: 100%;
  height: 411px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.service-card-new:hover img {
  transform: scale(1.05);
}

.service-card-new.offset-down {
  margin-top: 37px;
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  padding: 60px 15px 20px;
}

.service-overlay h5 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-light);
  margin: 0;
  letter-spacing: 0.5px;
}

.services-dots {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  margin-bottom: 0;
  padding: 0;
}

.services-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  opacity: 0.25;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  padding: 0;
  margin: 0;
  text-indent: 0;
}

.services-dots .dot.active {
  opacity: 1;
  background-color: var(--primary-color);
}

.services-dots .dot:hover {
  opacity: 0.6;
}

/* ====================================
   TESTIMONIALS SECTION
   ==================================== */
.testimonials-section {
  background-color: var(--bg-page);
  padding: 40px 0;
}

.testimonials-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.testimonials-section .section-title {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.testimonial-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-nav {
  display: contents;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-arrow img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

.testimonial-arrow:hover {
  opacity: 0.7;
}

.testimonial-arrow-left {
  left: -60px;
}

.testimonial-arrow-right {
  right: -60px;
}

/* Carousel nav arrows (services, gallery) */
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-arrow img {
  width: 50%;
  height: 50%;
  object-fit: contain;
}

.carousel-arrow:hover {
  opacity: 0.7;
}

#testimonialCarousel {
  flex: 1;
  width: 100%;
}

.testimonial-content {
  padding: 20px 0;
}

.quote-open,
.quote-close {
  font-family: var(--font-body);
  font-size: 36px;
  color: var(--primary-color);
  line-height: 1;
  vertical-align: middle;
}

.quote-open {
  margin-right: 4px;
}

.quote-close {
  margin-left: 4px;
}

.testimonial-text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 22px;
  margin-bottom: 25px;
  text-align: center;
  max-width: 773px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-author h5 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0;
  letter-spacing: 2px;
  text-align: center;
  line-height: 1.4;
}

/* ====================================
   GALLERY SECTION (no background color - just image)
   ==================================== */
.gallery-section {
  background-image: url("../home/gallery-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--section-spacing) 0;
  margin-bottom: 5rem;
  position: relative;
}

.gallery-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.gallery-section .section-title {
  color: var(--primary-color);
}

.gallery-card {
  text-align: left;
  cursor: pointer;
}

.gallery-image {
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 368px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-card:hover .gallery-image img {
  transform: scale(1.05);
}

.gallery-caption {
  padding: 15px 0 0;
}

.gallery-caption h5 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

/* ====================================
   FOOTER
   ==================================== */
.footer {
  background-color: var(--primary-color);
  padding: 25px 0;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 380px;
  height: 100%;
  background-image: url("../footer/decoration.png");
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.footer > .container {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.footer-logo {
  height: 66px;
  margin-bottom: 20px;
}

.footer-description {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(204, 204, 204, 0.8);
  line-height: 22px;
  margin-bottom: 0;
  max-width: 383px;
}

.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.footer-social a {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent-color);
}

.footer-links h5 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: #ccc;
  margin-bottom: 15px;
}

.footer-links ul li {
  margin-bottom: 4px;
}

.footer-links ul li a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: rgba(204, 204, 204, 0.8);
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent-color);
}

/* ====================================
   OLD CARD STYLES (kept for projects/services pages)
   ==================================== */
.project-card-new {
  background-color: var(--bg-light);
  border-radius: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.project-card-new:hover {
  transform: translateY(-0px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.project-card-image {
  position: relative;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* .project-card-new:hover .project-card-image img {
  transform: scale(1.05);
} */

.project-card-content {
  padding: 20px;
  text-align: left;
  background-color: var(--bg-light);
}

.project-card-content h5 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.project-card-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 22px;
  margin-bottom: 15px;
}

.btn-see-more {
  display: inline-block;
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--primary-color);
  background-color: transparent;
  border: 1px solid var(--primary-color);
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-see-more:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* ====================================
   RESPONSIVE STYLES
   ==================================== */

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  :root {
    --section-spacing: 70px;
  }

  .section-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 32px;
    letter-spacing: 4px;
  }

  .service-card-new img {
    height: 350px;
  }

  .gallery-image img {
    height: 300px;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  :root {
    --section-spacing: 60px;
  }

  .our-projects-section {
    padding: 30px 0;
  }

  .navbar-collapse {
    background-color: var(--primary-color);
    padding: 20px;
    margin-top: 15px;
    border-radius: 8px;
  }

  .navbar-nav .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .btn-contact {
    margin-top: 15px;
    display: inline-block;
  }

  .hero-banner {
    height: 60vh;
    min-height: 450px;
  }

  .hero-subtitle {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .section-title {
    font-size: 24px;
  }

  /* Services: 2 cards per slide on tablet */
  .services-tablet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .services-tablet-grid .service-card-new img {
    height: 300px;
  }

  .testimonial-wrapper {
    flex-direction: column;
    max-width: 100%;
  }

  .testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
  }

  .testimonial-arrow {
    position: relative;
    top: auto;
    left: auto !important;
    right: auto !important;
    transform: none;
  }

  /* Gallery: 2 cards per slide on tablet */
  .gallery-tablet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-tablet-grid .gallery-image img {
    height: 250px;
  }

  .testimonial-text {
    font-size: 16px;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  :root {
    --section-spacing: 50px;
  }

  .our-projects-section {
    padding: 25px 0;
  }

  .section-title {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .hero-banner {
    height: 50vh;
    min-height: 400px;
  }

  .hero-subtitle {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .logo {
    height: 45px;
  }

  /* Cards: 1 per row on mobile (except services) */
  .commercial-section .row > [class*="col-"],
  .residential-section .row > [class*="col-"],
  .interior-section .row > [class*="col-"],
  .gallery-section .row > [class*="col-"] {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .project-card-img img {
    aspect-ratio: 16 / 10;
  }

  /* Services: 1 card per slide on mobile */
  .services-mobile-single {
    display: flex;
    justify-content: center;
    padding: 0 20px;
  }

  .services-mobile-single .service-card-new {
    width: 100%;
    max-width: 350px;
  }

  .services-mobile-single .service-card-new img {
    height: 280px;
  }

  /* Gallery: 1 card per slide on mobile */
  .gallery-mobile-single {
    display: flex;
    justify-content: center;
    padding: 0 20px;
  }

  .gallery-mobile-single .gallery-card {
    width: 100%;
    max-width: 350px;
  }

  /* Reset wide containers on mobile */
  .header .navbar > .container,
  .our-projects-section > .container,
  .commercial-section > .container,
  .residential-section > .container,
  .interior-section > .container,
  .services-section > .container,
  .testimonials-section > .container,
  .gallery-section > .container,
  .footer > .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .service-card-new img {
    height: 220px;
  }

  .service-card-new.offset-down {
    margin-top: 20px;
  }

  .service-overlay h5 {
    font-size: 13px;
  }

  .gallery-image img {
    height: 220px;
  }

  .gallery-caption h5 {
    font-size: 14px;
  }

  .quote-open,
  .quote-close {
    font-size: 28px;
  }

  .testimonial-text {
    font-size: 15px;
  }

  .testimonial-author h5 {
    font-size: 14px;
  }

  .footer {
    padding: 30px 0;
  }

  .footer-logo {
    height: 50px;
  }

  .footer-description {
    font-size: 14px;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  :root {
    --section-spacing: 40px;
  }

  .section-title {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .logo {
    height: 40px;
  }

  .hero-banner {
    height: 50vh;
    min-height: 350px;
  }

  .hero-subtitle {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .services-staggered-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .service-card-new img {
    height: 180px;
  }

  .service-card-new.offset-down {
    margin-top: 15px;
  }

  .gallery-image img {
    height: 180px;
  }

  .footer-logo {
    height: 45px;
  }
}

/* ====================================
   UTILITY CLASSES
   ==================================== */
.text-accent {
  color: var(--accent-color);
}

.bg-primary-dark {
  background-color: var(--primary-dark);
}

.transition-all {
  transition: all 0.3s ease;
}

/* Smooth animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}
