/*
 * Signature Tiling Adelaide — luxury tiling website styles.
 *
 * This stylesheet implements a high‑end dark theme with gold accents.
 */

/* Root variables control the colour palette for easy tweaking */
:root {
  --primary-color: #000000; /* deep black for backgrounds */
  --secondary-color: #0a0a0a; /* slightly lighter black for alternating sections */
  --accent-color: #c5aa6a; /* warm gold accent colour */
  --text-color: #f5f5f5; /* off‑white text for contrast */
  --muted-text-color: #999999; /* muted grey for less prominent text */
  --border-radius: 6px;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--primary-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Containers keep content centred and constrained */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header and navigation */
header {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.5rem;
}

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

.license-number {
  font-size: 0.75rem;
  color: var(--muted-text-color);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding: 0.25rem 0;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover,
nav a:focus {
  color: var(--accent-color);
}

/* Hero section */
#hero {
  position: relative;
  background-image: url("images/project.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  transition: background-image 1.5s ease-in-out;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  max-width: 700px;
  padding: 1rem;
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0 0 0.5rem;
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(197, 170, 106, 0.7);
}

.hero-content p {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  color: var(--muted-text-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(197, 170, 106, 0.4);
}

.btn:hover,
.btn:focus {
  box-shadow: 0 0 20px rgba(197, 170, 106, 0.8);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Section backgrounds */
.dark {
  background-color: var(--secondary-color);
  padding: 4rem 0;
}

section:not(.dark) {
  background-color: var(--primary-color);
  padding: 4rem 0;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* Services */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service {
  flex: 1;
  min-width: 250px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--accent-color);
}

.service p {
  color: var(--muted-text-color);
}

.service:hover {
  box-shadow: 0 0 20px rgba(197, 170, 106, 0.3);
  transform: translateY(-4px);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 15px rgba(197, 170, 106, 0.5);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.testimonial {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(197, 170, 106, 0.25);
}

blockquote {
  font-style: italic;
  margin: 0 0 1rem;
  color: var(--muted-text-color);
  line-height: 1.8;
}

cite {
  display: block;
  font-weight: bold;
  color: var(--accent-color);
  font-style: normal;
}

.established {
  color: var(--accent-color);
  font-weight: 700;
  margin: 1rem 0 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

cite {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

/* Contact form */
form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: var(--border-radius);
  background-color: #222;
  color: var(--text-color);
  font-size: 1rem;
  box-sizing: border-box;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button {
  margin-top: 0.5rem;
}

.contact-info {
  margin-top: 2rem;
  color: var(--muted-text-color);
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.social-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social {
  justify-content: center;
  margin: 0 0 0.75rem;
}

.social-links a,
.footer-social a {
  color: var(--primary-color);
  background-color: var(--accent-color);
  border-radius: var(--border-radius);
  box-shadow: 0 0 10px rgba(197, 170, 106, 0.35);
  font-weight: 700;
  padding: 0.65rem 1rem;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.social-links a:hover,
.social-links a:focus,
.footer-social a:hover,
.footer-social a:focus {
  box-shadow: 0 0 18px rgba(197, 170, 106, 0.75);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-text-color);
}

/* Mobile bottom CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  padding: 0.5rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.8);
}

.mobile-cta .btn {
  flex: 1;
  margin: 0 0.5rem;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .mobile-cta {
    display: flex;
  }
  #hero {
    height: 60vh;
  }
}
