/* PAK EARTHENWARES - Handmade Terracotta & Bricks Website */
:root {
  --terracotta: #c45c26;
  --terracotta-dark: #8b3a1a;
  --cream: #f5e6d3;
  --sand: #e8d5b7;
  --earth: #5c3d2e;
  --brick-red: #a0522d;
  --text: #2c1e14;
  --white: #fffaf5;
  --accent: #d2691e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Nav */
header {
  background: linear-gradient(135deg, var(--earth) 0%, var(--terracotta-dark) 100%);
  color: white;
  padding: 0.8rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.logo img {
  height: 48px;
  width: auto;
  border-radius: 6px;
}

.logo span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 1px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.25s ease;
  font-size: 0.95rem;
}

nav a:hover,
nav a.active {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  background: linear-gradient(rgba(44,30,20,0.55), rgba(44,30,20,0.7)),
              url('../images/page-01.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 6rem 1.5rem;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  background: var(--terracotta);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 1.05rem;
}

.btn:hover {
  background: var(--terracotta-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196,92,38,0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  margin-left: 1rem;
}

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

/* Sections */
main {
  flex: 1;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--earth);
  margin-bottom: 0.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--terracotta);
  margin: 0.6rem auto 1.5rem;
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: #6b5344;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

/* Cards & Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(92,61,46,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(92,61,46,0.2);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.4rem;
}

.card h3 {
  color: var(--terracotta-dark);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.card p {
  color: #5c4a3d;
  font-size: 0.95rem;
}

/* Product Showcase */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
}

.product-showcase img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-showcase.reverse {
  direction: rtl;
}

.product-showcase.reverse > * {
  direction: ltr;
}

.feature-list {
  list-style: none;
  margin-top: 1rem;
}

.feature-list li {
  padding: 0.45rem 0;
  padding-left: 1.6rem;
  position: relative;
}

.feature-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-size: 0.7rem;
  top: 0.7rem;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.92rem;
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e8d5b7;
}

th {
  background: var(--earth);
  color: white;
  font-weight: 600;
}

tr:nth-child(even) {
  background: #faf6f0;
}

tr:hover {
  background: #f5ebe0;
}

/* Bricks colors */
.brick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.brick-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  text-align: center;
}

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

.brick-card h3 {
  padding: 1rem 1rem 0.3rem;
  color: var(--earth);
}

.brick-card p {
  padding: 0 1rem 1.2rem;
  font-size: 0.9rem;
  color: #666;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}

.contact-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-top: 4px solid var(--terracotta);
}

.contact-card .icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.contact-card h3 {
  color: var(--earth);
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
}

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

/* About strip */
.about-strip {
  background: var(--earth);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.about-strip p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Footer */
footer {
  background: #2c1e14;
  color: #d4c4b0;
  padding: 2.5rem 1.5rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-content h4 {
  color: white;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.footer-content a {
  color: #d4c4b0;
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.footer-content a:hover {
  color: var(--sand);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #4a3728;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    min-height: 55vh;
    padding: 4rem 1rem;
  }
  
  .product-showcase {
    grid-template-columns: 1fr;
  }
  
  .product-showcase.reverse {
    direction: ltr;
  }
  
  .btn-outline {
    margin-left: 0;
    margin-top: 0.8rem;
  }
}

/* Page specific backgrounds */
.page-hero {
  background: linear-gradient(rgba(44,30,20,0.6), rgba(44,30,20,0.75)),
              url('../images/page-03.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 4rem 1.5rem;
}

.page-hero.bricks {
  background: linear-gradient(rgba(44,30,20,0.65), rgba(44,30,20,0.8)),
              url('../images/page-09.jpg') center/cover no-repeat;
}

.page-hero.contact {
  background: linear-gradient(rgba(44,30,20,0.7), rgba(44,30,20,0.85)),
              url('../images/page-14.jpg') center/cover no-repeat;
}

.page-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 0.5rem;
}

/* Image gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.gallery img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
  transition: transform 0.3s;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.03);
}

/* Certifications */
.certs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  opacity: 0.9;
}
