/* Shared stylesheet for the site
   Theme: Main #e35a27, Secondary #eac585
   Font: Montserrat
*/
:root{
  --main:#e35a27;
  --accent:#eac585;
  --dark:#121212;
  --muted:#6b6b6b;
  --bg:#f7f5f2;
  --card:#ffffff;
  --radius:14px;
  --container:1100px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:'Montserrat',system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  background:var(--bg);
  color:#222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* container utility */
.container{
  width:90%;
  max-width:var(--container);
  margin:0 auto;
}

/* Header */
.site-header{
  background:transparent;
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(6px);
  padding:12px 0;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:90%;
  max-width:var(--container);
  margin:0 auto;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.logo-img{
  width:46px;
  height:46px;
  object-fit:contain;
  border-radius:8px;
  background:transparent;
}
.brand-text{
  font-weight:700;
  color:var(--main);
  font-size:1.05rem;
  letter-spacing:0.2px;
}

/* Nav */
.main-nav{display:flex; gap:18px; align-items:center}
.nav-link{
  text-decoration:none;
  color:#222;
  font-weight:600;
  padding:6px 10px;
  border-radius:8px;
  transition:color .18s, background .18s, transform .12s;
}
.nav-link:hover{ color:var(--main); }
.nav-link.active{
  color:var(--main);
  background:rgba(227,90,39,0.06);
}

/* Page header small */
.page-header.small{
  padding:36px 0 12px;
  background:transparent;
  text-align:center;
}
.page-header.small h1{ margin:6px 0 6px; color:var(--main); font-weight:700}
.page-header.small p{ margin:0; color:var(--muted) }

/* HERO */
.hero{
  padding:48px 0 28px;
}
.hero-card {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
  background: transparent; /* Removes the white/gray box */
  border-radius: 0;         /* Removes rounded white edges */
  padding: 28px 0;          /* Less padding for tighter layout */
  display: flex;
  gap: 24px;
  align-items: center;
  box-shadow: none;         /* Remove shadow for a flat design */
  overflow: visible;
}

.hero-left{flex:1; padding:14px}
.hero-right{width:360px; display:flex; flex-direction:column; gap:12px; align-items:center}
.hero h1{
  font-size:2rem;
  margin:6px 0 12px;
  font-weight:800;
  color:#111;
}
.hero .accent{ color:var(--main); }
.lead{ color:var(--muted); margin:0 0 16px; font-weight:400}

/* CTA buttons */
.btn{
  display:inline-block;
  padding:10px 18px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
  border:0;
}
.btn-primary{
  background:var(--main);
  color:#fff;
  box-shadow: 0 6px 18px rgba(227,90,39,0.18);
}
.btn-ghost{
  background:transparent;
  color:var(--main);
  border:2px solid rgba(227,90,39,0.08);
  margin-left:10px;
}
.btn:hover{ transform:translateY(-3px) }

/* hero-right items */
.hero-features{
  display:flex;
  gap:10px;
  width:100%;
  justify-content:space-between;
}
.feature{
  background:var(--dark);
  color:#fff;
  padding:12px;
  border-radius:12px;
  width:48%;
  text-align:center;
  box-shadow:0 6px 18px rgba(0,0,0,0.12);
}
.feature h4{ margin:0 0 6px; font-size:1rem }
.feature p{ margin:0; font-size:.85rem; color:#f1f1f1 }

/* hero image */
.hero-image{
  width:100%;
  margin-top:6px;
}
.hero-image img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:10px;
  border:6px solid #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

/* Sections common */
/* ===== Modern Featured Products ===== */
.featured-products {
  background: var(--bg);
  text-align: center;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.featured-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #fff;
}

.featured-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.featured-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.8);
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 25px;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.05));
  color: #fff;
  transition: all 0.4s ease;
}

.overlay h3 {
  font-size: 1.3rem;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--accent);
}

.overlay p {
  margin: 0;
  font-size: 0.95rem;
  color: #f2f2f2;
}

/* Hover: lift and lighten */
.featured-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

@media (max-width: 768px) {
  .featured-card img {
    height: 200px;
  }
}


/* Hover effects */
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.service-card:hover img.service-bg {
  transform: scale(1.1);
  opacity: 0.35; /* make background image a bit clearer on hover */
}


/* Portfolio */
.port-item {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.port-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}

/* visible by default */
.port-item .port-front {
  opacity: 1;
  z-index: 2;
}

.port-item .port-back {
  z-index: 1;
}

/* fade overlay */
.port-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: black;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 3;
  pointer-events: none;
}

/* elegant fade to black */
.port-item.fading::before {
  opacity: 0.9; /* almost full black */
}

/* toggle image visibility */
.port-item.faded .port-front {
  opacity: 0;
}

.port-item.faded .port-back {
  opacity: 1;
}




/* Why Choose Us */
.why-choose {
  background: #fff;
  color: #333;
  text-align: center;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.section-subtitle {
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 1rem;
  color: #666;
}

.why-item {
  background: #f9f9f9;
  border-radius: 14px;
  padding: 30px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.why-item i {
  font-size: 2.5rem;
  color: #e35a27; /* brand color */
  margin-bottom: 14px;
  transition: transform 0.4s ease, color 0.4s ease;
}

.why-item h3 {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 10px;
  font-weight: 700;
}

.why-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
}

/* Hover effects */
.why-item:hover {
  transform: translateY(-8px);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.why-item:hover i {
  color: #ff6b3a;
  transform: scale(1.2);
}



/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-info {
  padding: 18px 12px 22px;
}

.product-info h3 {
  color: #e35a27;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-info .price {
  color: #222;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-info .muted {
  color: #555;
  font-size: 0.9rem;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}


/* About */
.about-grid{ display:grid; grid-template-columns:1fr 360px; gap:24px; align-items:start }
.about-text p{ color:#333; margin-bottom:12px; font-weight:400 }
.about-logo-small{ width:90px; height:auto; display:block; margin-bottom:12px }

/* mission-vision */
.mission-vision .card{ background:var(--card); padding:14px; border-radius:12px; box-shadow:0 10px 28px rgba(0,0,0,0.06); margin-bottom:12px }

/* Team */
.team-grid {
  display: grid;
  gap: 24px;
  margin-top: 24px;
  justify-items: center;
}
/* Center team section title and grid */
.team {
  text-align: center;
}

.team .section-title {
  text-align: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Desktop layout */
@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* First two (JM + Vonn) centered on top */
  .team-member:nth-child(1),
  .team-member:nth-child(2) {
    grid-row: 1;
  }

  .team-member:nth-child(1) {
    grid-column: 2;
  }

  .team-member:nth-child(2) {
    grid-column: 3;
  }

  /* Remaining 4 below */
  .team-member:nth-child(3),
  .team-member:nth-child(4),
  .team-member:nth-child(5),
  .team-member:nth-child(6) {
    grid-row: 2;
  }
}

/* Mobile layout — 1 per row */
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}


/* Contact */
.contact-grid{ display:grid; grid-template-columns:1fr 360px; gap:22px; align-items:start }
.contact-form{ background:var(--card); padding:18px; border-radius:12px; box-shadow:0 10px 28px rgba(0,0,0,0.06) }
.contact-form label{ display:block; margin-top:8px; font-weight:600; font-size:.9rem }
.contact-form input, .contact-form textarea{
  width:100%; padding:10px; margin-top:6px; border-radius:8px; border:1px solid #e6e6e6; font-size:.95rem;
}

/* Footer */
.site-footer{ margin-top:36px; background:var(--main); color:#fff; padding:18px 0 }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; gap:8px; width:90%; max-width:var(--container); margin:0 auto; font-size:.95rem }

/* Responsiveness */
@media (max-width:900px){
  .hero-card{ flex-direction:column; padding:20px }
  .hero-right{ width:100% }
  .about-grid, .contact-grid{ grid-template-columns:1fr; }
  .header-inner{ padding:0 12px }
  .footer-inner{ flex-direction:column; text-align:center; gap:6px }
}
@media (max-width:480px){
  .hero h1{ font-size:1.5rem }
  .hero-image img{ height:120px }
  .logo-img{ width:40px; height:40px }
  .brand-text{ font-size:.95rem }
}



/* ====== Scroll Animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ====== Hover Accent Effects ====== */
.section-title {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--main);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.section-title:hover::after {
  width: 40%;
}

/* === Portfolio Gallery (rectangular with flip + grayscale hover) === */
.portfolio {
  text-align: center;
  padding: 60px 0;
  background: #fff;
}

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

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row */
  gap: 15px;
  justify-content: center;
  align-items: center;
}

/* Each portfolio item */
.port-item {
  position: relative;
  width: 100%;
  height: 220px; /* rectangular shape */
  perspective: 1000px;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}

/* Front and back images */
.port-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;       /* fills the box without black bars */
  object-position: center; /* keeps subject centered */
  backface-visibility: hidden;
  border-radius: 10px;
  filter: grayscale(100%);
  transition: transform 1s ease, filter 0.6s ease;
}


/* Back image starts hidden (rotated) */
.port-item .back {
  transform: rotateY(90deg);
  opacity: 0;
}

/* Flip animation */
.port-item.flippedY .front {
  transform: rotateY(90deg);
  opacity: 0;
}
.port-item.flippedY .back {
  transform: rotateY(0deg);
  opacity: 1;
}
.port-item.flippedX .front {
  transform: rotateX(90deg);
  opacity: 0;
}
.port-item.flippedX .back {
  transform: rotateX(0deg);
  opacity: 1;
}

/* Hover: remove grayscale */
.port-item:hover img {
  filter: grayscale(0%);
}

/* Responsive layout */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
