/*
Theme Name: Mitroteam Projects
Theme URI: https://mitroteamprojects.com.au
Author: Mitroteam Projects
Author URI: https://mitroteamprojects.com.au
Description: Custom WordPress theme for Mitroteam Projects - Home Extension Builders Sydney
Version: 2.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mitroteam
Tags: construction, renovation, custom
*/

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --gold: #c8a45a;
  --gold-dark: #a07c30;
  --dark: #1a1a1a;
  --dark-2: #2c2c2c;
  --light-bg: #f8f8f8;
  --white: #ffffff;
  --text: #444444;
  --text-light: #777777;
  --border: #e0e0e0;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.18);
  --radius: 4px;
  --container: 1180px;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-dark); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--dark);
  line-height: 1.25;
  font-weight: 700;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* =========================================
   CONTAINER
   ========================================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: 13px 34px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,164,90,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* =========================================
   SECTION TITLES
   ========================================= */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 18px;
}

.section-title.light { color: var(--white); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 620px;
  margin-bottom: 40px;
}

.section-subtitle.light { color: rgba(255,255,255,0.75); }

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* =========================================
   HEADER / NAVIGATION
   ========================================= */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  /* background and padding are set dynamically via Customizer inline styles */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo img { height: 60px; width: auto; transition: height var(--transition); }
#site-header.scrolled .site-logo img { height: 48px; }

.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  border-radius: var(--radius);
  transition: all var(--transition);
  letter-spacing: 0.03em;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--gold);
}

.header-social {
  display: flex;
  gap: 12px;
}
.header-social a {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: color var(--transition);
}
.header-social a:hover { color: var(--gold); }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.mobile-menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =========================================
   HERO SECTION
   ========================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
#hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,0.75) 0%, rgba(26,26,26,0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 120px 24px 80px;
  animation: fadeUp 0.9s ease both;
}

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

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 22px;
  animation: fadeUp 0.9s 0.1s ease both;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 22px;
  line-height: 1.2;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  line-height: 1.75;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.9s 0.4s ease both;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.4);
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* =========================================
   SERVICES SECTION
   ========================================= */
#services {
  padding: 90px 0;
  background: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.service-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.06); }

.service-card-body {
  padding: 24px 28px 28px;
}

.service-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: var(--light-bg);
  font-size: 3rem;
  color: var(--gold);
  transition: background var(--transition);
}
.service-card:hover .service-card-icon { background: #f0e8d8; }

.service-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-card-body p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 18px;
}

/* =========================================
   ABOUT SECTION
   ========================================= */
#about {
  padding: 90px 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  width: 100%;
}

.about-image::before {
  content: '';
  position: absolute;
  top: -18px;
  left: -18px;
  right: 18px;
  bottom: 18px;
  border: 3px solid var(--gold);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.4;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 22px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-family: var(--font-heading);
}

.about-badge .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge .label {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.about-content { padding-right: 10px; }

.about-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--light-bg);
  border-left: 4px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0 28px;
}

.about-phone .phone-icon {
  font-size: 1.4rem;
  color: var(--gold);
}

.about-phone .phone-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  display: block;
}

.about-phone .phone-number {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--dark);
  display: block;
}

/* =========================================
   STATS BAR
   ========================================= */
#stats {
  background: var(--dark);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  border-right: 1px solid rgba(255,255,255,0.1);
  padding: 10px 20px;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  display: block;
}

/* =========================================
   TESTIMONIALS
   ========================================= */
#testimonials {
  padding: 90px 0;
  background: var(--dark-2);
  position: relative;
  overflow: hidden;
}

#testimonials::before {
  content: '"';
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 20rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}
.testimonial-card:hover {
  background: rgba(200,164,90,0.08);
  border-color: rgba(200,164,90,0.25);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '★★★★★';
  display: block;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.75;
  margin-bottom: 22px;
  font-style: italic;
}

.testimonial-author {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

/* =========================================
   SERVICES INCLUDE SECTION
   ========================================= */
#services-include {
  padding: 90px 0;
  background: var(--light-bg);
}

.services-include-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-top: 0;
}

.si-image img {
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  width: 100%;
}

.si-items {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 28px 0;
}

.si-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.si-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--white);
}

.si-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark);
}
.si-text p { font-size: 0.93rem; color: var(--text-light); margin: 0; }

/* =========================================
   FOOTER
   ========================================= */
#site-footer {
  background: var(--dark);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo img { height: 55px; margin-bottom: 18px; }
.footer-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  display: block;
  margin-bottom: 14px;
}

.footer-about p {
  color: rgba(255,255,255,0.6);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--gold);
  color: var(--white);
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-links a:hover { color: var(--gold); padding-left: 5px; }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-contact-item .icon { color: var(--gold); margin-top: 2px; }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #site-header { padding: 14px 0; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); padding: 16px 24px; flex-direction: column; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .mobile-menu-toggle { display: flex; }
  .about-grid, .services-include-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .about-badge { position: static; margin-top: 16px; display: inline-block; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
