/* ============================================================
   Epoxy Floors Sydney v3 — Complete Stylesheet
   Brand: Purple #23145D | Orange #F17515 | Dark #1a1a2e
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px; line-height: 1.7; color: #2d3436;
  background: #fff; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: #d45e10; }
ul, ol { padding-left: 1.2rem; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* --- Variables --- */
:root {
  --purple: #23145D;
  --purple-dark: #180e42;
  --purple-light: #3b2a7a;
  --orange: #F17515;
  --orange-dark: #d45e10;
  --orange-light: #ff9f4a;
  --dark: #1a1a2e;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-600: #6c757d;
  --gray-900: #212529;
  --white: #fff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(35,20,93,0.10);
  --shadow-lg: 0 8px 40px rgba(35,20,93,0.15);
  --transition: all 0.3s ease;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; color: var(--purple); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
p { margin-bottom: 16px; }
.highlight { color: var(--orange); }

/* --- Utilities --- */
.section { padding: 80px 0; }
.section-dark { background: var(--purple); color: var(--white); }
.section-dark h2 { color: var(--white); }
.section-gray { background: var(--gray-100); }
.text-center { text-align: center; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary {
  background: var(--orange); color: var(--white); border-color: var(--orange);
}
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--white); border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--purple); }
.btn-outline-dark {
  background: transparent; color: var(--purple); border-color: var(--purple);
}
.btn-outline-dark:hover { background: var(--purple); color: var(--white); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* --- Header --- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(35,20,93,0.08);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(35,20,93,0.10); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--purple); text-decoration: none; }
.logo-img { height: 40px; width: auto; object-fit: contain; }
.logo-img-white { height: 32px; width: auto; object-fit: contain; }
.logo:hover { color: var(--purple); }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, var(--purple), var(--orange)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .nav-link {
  padding: 8px 16px; color: var(--gray-900); font-weight: 500; font-size: 0.9rem;
  border-radius: var(--radius-sm); transition: var(--transition);
  text-decoration: none; cursor: pointer;
}
.nav a:hover, .nav .nav-link:hover { background: rgba(241,117,21,0.08); color: var(--orange); }
.nav a.active { color: var(--orange); }
.nav-cta { background: var(--orange) !important; color: white !important; padding: 10px 20px !important; }
.nav-cta:hover { background: var(--orange-dark) !important; color: white !important; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--white); border-radius: var(--radius-sm);
  min-width: 220px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: var(--transition); z-index: 100;
  padding: 8px;
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 16px; color: var(--gray-900);
  font-size: 0.88rem; border-radius: 6px;
}
.dropdown-menu a:hover { background: rgba(241,117,21,0.08); color: var(--orange); }
.dropdown::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 0.65rem; margin-left: 4px; color: var(--gray-600);
}

/* Mobile Nav */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 24px; height: 2.5px; background: var(--purple); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 999; padding: 24px; overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 14px 0; font-size: 1.05rem; font-weight: 500; color: var(--gray-900); border-bottom: 1px solid var(--gray-200); }
.mobile-nav .nav-section { font-weight: 700; color: var(--purple); padding-top: 16px; }
.mobile-nav .mobile-cta { display: block; margin-top: 24px; text-align: center; }

/* --- Hero --- */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  overflow: hidden; margin-top: 72px;
}
.hero-inner { min-height: 50vh; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(35,20,93,0.92), rgba(59,42,122,0.85));
  z-index: 1;
}
.hero-pattern {
  position: absolute; right: -10%; top: -20%; width: 60%; height: 140%;
  background: radial-gradient(ellipse at center, rgba(241,117,21,0.08) 0%, transparent 70%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-content h1 { color: var(--white); margin-bottom: 16px; }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 600px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-ctas .btn { min-width: 180px; justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(241,117,21,0.15); color: var(--orange-light);
  padding: 8px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 24px;
}
.hero-stats { display: flex; gap: 40px; margin-top: 48px; }
.hero-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--purple); padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.trust-bar-inner { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 500; }
.trust-item i { color: var(--orange); font-size: 1.2rem; }

/* --- Sections --- */
.section-label {
  display: inline-block; color: var(--orange); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px;
}
.section-title { margin-bottom: 8px; }
.section-subtitle { color: var(--gray-600); font-size: 1.1rem; margin-bottom: 48px; max-width: 600px; }

/* --- Cards --- */
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow);
  transition: var(--transition); border: 1px solid rgba(35,20,93,0.05);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--gray-600); font-size: 0.95rem; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* --- Service Cards (Image style) --- */
.service-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  height: 320px; cursor: pointer;
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
}
.service-card-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.3; transition: transform 0.5s ease;
}
.service-card:hover .service-card-bg { transform: scale(1.05); }
.service-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px; z-index: 2;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.service-card-content h3 { color: var(--white); margin-bottom: 4px; }
.service-card-content p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin: 0; }
.service-card-content .btn { margin-top: 12px; }

/* --- Sector Grid --- */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sector-item {
  padding: 24px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--gray-200);
  text-align: center; transition: var(--transition);
  cursor: pointer; text-decoration: none; display: block;
}
.sector-item:hover { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow); }
.sector-item i { font-size: 2rem; color: var(--orange); margin-bottom: 8px; }
.sector-item h4 { font-size: 0.95rem; margin: 0; }

/* --- Projects / Gallery Grid --- */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 4/3; background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden;
}
.project-placeholder {
  width: 100%; height: 100%; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-600); font-size: 0.85rem;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}
.project-item-overlay {
  position: absolute; inset: 0; background: rgba(35,20,93,0.8);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
  color: white; font-weight: 600; text-align: center; padding: 16px;
}
.project-item:hover .project-item-overlay { opacity: 1; }

/* --- Testimonials --- */
.testimonial-card {
  background: var(--white); padding: 32px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
}
.testimonial-stars { color: #f1c40f; margin-bottom: 12px; }
.testimonial-text { font-style: italic; color: var(--gray-600); margin-bottom: 16px; }
.testimonial-author { font-weight: 600; color: var(--purple); }
.testimonial-role { font-size: 0.85rem; color: var(--gray-600); }

/* --- FAQ --- */
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  padding: 18px 24px; background: var(--white);
  font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.faq-question:hover { background: var(--gray-100); }
.faq-question i { transition: var(--transition); color: var(--orange); }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }
.faq-answer p { color: var(--gray-600); margin: 0; }

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--purple), var(--purple-light));
  text-align: center;
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.cta-contact-row {
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 24px;
}
.cta-or { color: rgba(255,255,255,0.5); font-weight: 500; }

/* --- Colour Studio Section --- */
.colour-studio-promo {
  display: flex; align-items: center; gap: 48px;
  background: linear-gradient(135deg, #f8f4ff, #fff4e6);
  border-radius: var(--radius); padding: 48px;
  margin: 32px 0;
}
.colour-studio-promo-content { flex: 1; }
.colour-studio-promo-content h3 { font-size: 1.5rem; }
.colour-studio-promo-visual { width: 200px; height: 200px; border-radius: var(--radius); background: linear-gradient(135deg, var(--orange), var(--purple)); display: flex; align-items: center; justify-content: center; color: white; font-size: 3rem; flex-shrink: 0; }

/* --- APC Badge --- */
.apc-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(0,58,66,0.05); padding: 12px 20px;
  border-radius: var(--radius-sm); border: 1px solid rgba(0,58,66,0.1);
  font-size: 0.9rem;
}
.apc-badge strong { color: #003a42; }

/* --- Breadcrumbs --- */
.breadcrumbs { padding: 12px 0; background: var(--gray-100); font-size: 0.85rem; }
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs span { color: var(--gray-400); margin: 0 6px; }

/* --- Page Content --- */
.page-content { padding: 48px 0; }
.page-content h2 { margin-top: 32px; }
.page-content ul { margin-bottom: 24px; }
.page-content li { margin-bottom: 8px; }

/* Info box */
.info-box {
  background: #f0f4ff; border-left: 4px solid var(--purple);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 24px 0;
}

/* --- Blog --- */
/* Blog Grid — centred cards on homepage */
.blog-grid { 
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 24px; 
  max-width: 960px; 
  margin: 0 auto; 
}
.blog-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-img { height: 200px; display: flex; align-items: center; justify-content: center; }
.blog-info { padding: 24px; }
.blog-date { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 8px; }
.blog-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-info p { color: var(--gray-600); font-size: 0.9rem; }
.blog-read-more { color: var(--orange); font-weight: 600; font-size: 0.9rem; }

.blog-article { padding: 48px 0; }
.blog-meta { display: flex; gap: 24px; margin-bottom: 24px; color: var(--gray-600); font-size: 0.9rem; }
.blog-article-content h2 { margin-top: 32px; }
.blog-article-content ul, .blog-article-content ol { margin-bottom: 24px; }

/* --- Footer --- */
.footer {
  background: var(--purple-dark); color: rgba(255,255,255,0.8);
  padding: 64px 0 32px;
}
.footer h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--orange); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-about p { font-size: 0.9rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 0.9rem; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 12px; font-size: 0.9rem; }
.footer-contact-item i { color: var(--orange); width: 20px; text-align: center; margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; margin-top: 40px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }
.apc-credit { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* --- Back to Top --- */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--orange); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: var(--transition);
  z-index: 999; text-decoration: none; border: none; cursor: pointer;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--orange-dark); color: white; transform: translateY(-3px); }

/* --- Suburb Grid --- */
.suburb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.suburb-link { padding: 6px 12px; display: flex; align-items: center; gap: 8px; font-size: 0.88rem; border-radius: 6px; transition: var(--transition); }
.suburb-link:hover { background: var(--gray-100); }
.suburb-link i { color: var(--orange); font-size: 0.75rem; }
a.suburb-link { color: var(--gray-900); text-decoration: none; }
a.suburb-link:hover { color: var(--orange); }

/* --- Process Steps --- */
.process-steps { counter-reset: step; }
.process-step { display: flex; gap: 20px; margin-bottom: 24px; }
.process-number {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--orange));
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.process-step-content h4 { margin-bottom: 4px; }
.process-step-content p { color: var(--gray-600); font-size: 0.9rem; margin: 0; }

/* --- Contact Form --- */
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem;
  transition: var(--transition); background: var(--white);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--orange);
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.contact-form textarea { margin-bottom: 16px; resize: vertical; }
.btn-submit { width: 100%; justify-content: center; }

/* --- Enhanced Form Fields --- */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 6px; }
.form-field label i { color: var(--orange); font-size: 0.8rem; }
.form-field .required { color: var(--orange); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 14px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.95rem;
  transition: var(--transition); background: var(--off-white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--orange); background: var(--white);
  box-shadow: 0 0 0 4px rgba(241,117,21,0.1);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--gray-400); }

/* --- Section Divider (connector) --- */
.connector { text-align: center; padding: 16px 0; color: var(--gray-300); font-size: 1.5rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 70vh; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .trust-bar-inner { flex-direction: column; align-items: center; gap: 16px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .colour-studio-promo { flex-direction: column; text-align: center; }
  .colour-studio-promo-visual { width: 120px; height: 120px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .suburb-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { min-height: 40vh; }
}

@media (max-width: 480px) {
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .suburb-grid { grid-template-columns: 1fr; }
}

/* --- Fade-in Animation --- */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
