/* Global Styles and Theme for Instrument Ghar */
/* Google Font is loaded from HTML <head> */

:root {
  --bg: #ffffff;
  --text: #0f0f0f;
  --muted: #666666;
  --accent: #ffd54f; /* soft yellow */
  --accent-strong: #ffc107; /* stronger yellow */
  --border: #eaeaea;
  --shadow: 0 8px 24px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 5px;;
  padding: 20px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Poppins', 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.logo {
  font-weight: 700;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  text-transform: uppercase;
}

.logo::after { content: none; display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  transition: all .2s ease;
  background-image: linear-gradient(var(--accent-strong), var(--accent-strong));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
  font-size: 1rem;
}

.nav-links a:hover {
  background: var(--border);
  background-size: 100% 2px;
}

.nav-links a.active {
  color: #000;
  background: linear-gradient(0deg, rgba(255,209,77,0.22), rgba(255,209,77,0.22));
  box-shadow: inset 0 -2px 0 var(--accent-strong);
  background-size: 100% 2px;
  font-weight: 700;
}

/* Utility spacing around fixed header */
main {
  padding-top: 84px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 18px;
  background: var(--accent);
  color: #111;
  font-weight: 600;
  border: 1px solid #f0c13b;
  border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
  box-shadow: 0 6px 14px rgba(255, 193, 7, 0.24);
}

.btn:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--accent-strong);
}

.btn.outline:hover {
  background: rgba(255, 193, 7, 0.12);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
  gap: 36px;
  padding: 36px 0 14px;
}

.hero .title {
  font-size: clamp(1.8rem, 2.8vw + 1rem, 3rem);
  line-height: 1.15;
  margin: 0 0 12px 0;
}

.hero .subtitle {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero .image-wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 320px;
  max-height: 480px;
  aspect-ratio: 16 / 10;
}

.hero .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.hero .image-wrapper:hover img {
  transform: scale(1.04);
}

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

.card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}

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

.card .thumb { aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }

.card:hover .thumb { transform: scale(1.04); }

.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card-title {
  margin: 0 0 6px 0;
  font-size: 1.05rem;
}

.card-text { color: var(--muted); font-size: .95rem; }

.card-price { font-weight: 700; margin: 10px 0; display: inline-block; padding: 6px 10px; background: rgba(255, 193, 7, 0.16); border: 1px solid rgba(255, 193, 7, 0.35); border-radius: 999px; }

.card-actions { display:flex; gap:10px; margin-top: auto; }

/* Section spacing */
.section {
  padding: 32px 0;
}

.section-header {
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 1.6rem;
}

.section-subtitle { color: var(--muted); }

/* Footer */
.footer {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer .inner {
  text-align: center;
  padding: 22px 0 28px;
}

.footer-links,
.footer-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 8px 0;
}

.footer small { color: var(--muted); }

.footer a:hover { color: var(--accent-strong); }

/* Forms */
.form {
  display: grid;
  gap: 14px;
  max-width: 720px;
}

.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}

.textarea { min-height: 140px; resize: vertical; }

.input:focus, .textarea:focus { border-color: var(--accent-strong); box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.18); outline: none; }

/* Responsive */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero .image-wrapper {
    max-height: 360px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 680px) {
  .nav { flex-wrap: wrap; gap: 10px; }
  .nav-links { gap: 8px; }
  .nav-links a { padding: 8px 10px; font-size: .9rem; letter-spacing: normal; text-transform: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 440px) {
  .grid { grid-template-columns: 1fr; }
}

/* Larger screens: give tabs more breathing room */
@media (min-width: 1024px) {
  .nav-links { gap: 24px; }
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.contact-card h3 { margin: 0 0 8px 0; }

.info-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.info-list strong { color: var(--text); }

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

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map-img { height: 220px; }
}
