/* Metal Gate Works - Elegant Steel Landscaping Style */

/* Google Fonts - Libre Caslon Text (elegant serif) */
@import url('https://fonts.googleapis.com/css2?family=Libre+Caslon+Text:ital,wght@0,400;0,700;1,400&display=swap');

/* CSS Variables - Steel Landscaping Color Palette */
:root {
  --primary-color: #4f5750;      /* Dark sage green */
  --primary-hover: rgba(79,87,80,0.8);
  --secondary-color: #c29a5c;    /* Warm gold */
  --accent-color: #957777;       /* Muted mauve */
  --bg-light: #eaf5fb;           /* Light blue background */
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-body: #4f5750;
  --border-color: #dddddd;
  --white: #ffffff;
  --black: #000000;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 1.26px;
  color: var(--text-body);
  background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
  line-height: 1;
}

h2 {
  font-size: 1.75rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

h3 {
  font-size: 1.5rem;
  letter-spacing: 2.78px;
}

h4 {
  font-size: 1.25rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s linear;
}

a:hover {
  color: var(--secondary-color);
}

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

ul {
  list-style: none;
}

p {
  margin-bottom: 1.75em;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons - Square, bordered style */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: 3px solid var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s linear;
}

.btn:hover {
  background: var(--primary-hover);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
}

.btn-gold {
  border-color: var(--secondary-color);
  background: var(--secondary-color);
}

.btn-gold:hover {
  background: transparent;
  color: var(--secondary-color);
}

/* Header - Top Bar */
.header-top {
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 0;
  font-size: 0.875rem;
}

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

.header-top a {
  color: var(--white);
}

.header-top a:hover {
  color: var(--secondary-color);
}

/* Header - Main */
.header-main {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 2px;
  margin: 0;
  line-height: 1.2;
}

.logo h1 a {
  color: var(--primary-color);
}

.logo .tagline {
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-body);
  letter-spacing: 1px;
}

/* Navigation */
.nav-list {
  display: flex;
  gap: 30px;
}

.nav-list a {
  color: var(--primary-color);
  font-size: 1rem;
  letter-spacing: 1.2px;
  text-transform: capitalize;
  padding: 5px 0;
  position: relative;
}

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

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* Header CTA Button */
.header-cta .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(79,87,80,0.7), rgba(79,87,80,0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--white);
  padding: 60px 0;
}

.hero-content h2 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-transform: none;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero .btn {
  border-color: var(--white);
  background: transparent;
}

.hero .btn:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-light {
  background: var(--bg-light);
}

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

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  margin-bottom: 15px;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-body);
}

.section-title-left {
  text-align: left;
}

.section-title-left p {
  margin: 0;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 30px 20px;
}

.feature-card img {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  opacity: 0.8;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  margin-bottom: 25px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image img {
  width: 100%;
  height: auto;
}

/* Products/Services Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.product-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 25px;
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.product-info p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.7;
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-item:hover img {
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 15px;
}

.contact-info a {
  color: var(--secondary-color);
}

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

/* Opening Hours */
.opening-hours {
  background: var(--bg-light);
  padding: 25px;
  margin-top: 30px;
}

.opening-hours h4 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.hours-row:last-child {
  border-bottom: none;
}

/* Contact Form */
.contact-form {
  background: var(--bg-light);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: var(--white);
  padding: 40px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .caption {
  transform: translateY(0);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-section h3 {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-section p {
  margin-bottom: 10px;
  opacity: 0.9;
}

.footer-section a {
  display: block;
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-section a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-icons img {
  width: 28px;
  height: 28px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.social-icons img:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer-legal {
  margin-top: 10px;
  margin-bottom: 0;
}

.footer-legal a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--secondary-color);
}

/* Page Header */
.page-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
  margin-bottom: 0;
}

/* CTA Banner */
.cta-banner {
  background: var(--secondary-color);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 15px;
}

.cta-banner p {
  margin-bottom: 25px;
  opacity: 0.95;
}

.cta-banner .btn {
  border-color: var(--white);
  background: transparent;
}

.cta-banner .btn:hover {
  background: var(--white);
  color: var(--secondary-color);
}

/* Services List */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--border-color);
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.service-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.service-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.service-item h3 {
  margin-bottom: 12px;
}

.service-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.stat-item p {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .header-main .container {
    flex-direction: column;
    gap: 15px;
  }

  .nav-list {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-top {
    font-size: 0.75rem;
  }

  .header-top .container {
    flex-direction: column;
    gap: 5px;
  }

  .nav-list a {
    font-size: 0.875rem;
  }

  .hero-content h2 {
    font-size: 1.75rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
  }

  .contact-form {
    padding: 25px;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Terms & Conditions Page */
.terms-content {
  max-width: 900px;
  margin: 0 auto;
}

.terms-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.terms-section:last-of-type {
  border-bottom: none;
}

.terms-section h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.terms-section p {
  margin-bottom: 15px;
}

.terms-section p:last-child {
  margin-bottom: 0;
}

.terms-list {
  margin: 15px 0;
  padding-left: 25px;
}

.terms-list li {
  list-style: disc;
  margin-bottom: 10px;
  line-height: 1.7;
}

.terms-updated {
  text-align: center;
  color: var(--text-body);
  opacity: 0.8;
  margin-top: 40px;
}

/* Invoice Page */
.invoice-container {
  max-width: 900px;
  margin: 0 auto;
  min-height: 400px;
  background: var(--bg-light);
  padding: 40px;
}
