/* Chawdhry Design — site styles */

:root {
  --ink: #272727;
  --muted: #5f5f5f;
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --dark: #10151b;
  --red: #e96656;
  --red-dark: #cb4332;
  --green: #1e9e6b;
  --green-dark: #187f56;
  --brand: #7a1414;
  --radius: 4px;
  --max: 1170px;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
}

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

a { color: var(--red-dark); }
a:hover, a:focus { color: var(--green-dark); }

h1, h2, h3 { font-family: var(--font); line-height: 1.2; margin: 0 0 .5em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--dark); color: #fff; padding: 10px 16px;
}
.skip-link:focus { left: 10px; top: 10px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.brand img { width: 120px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a {
  font-family: var(--font); font-size: 14px; text-transform: uppercase;
  text-decoration: none; color: var(--ink); letter-spacing: .5px;
}
.site-nav a:hover, .site-nav a:focus, .site-nav a[aria-current] { color: var(--red); }

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; box-shadow: 0 6px 8px rgba(0, 0, 0, .1);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; padding: 14px 20px; border-top: 1px solid #eee; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(80vh, 760px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff;
  background: var(--dark) url("../images/hero.jpg") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4.5rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.hero p { font-size: 1.15rem; margin: 0 0 2em; }

.buttons { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.btn {
  display: inline-block; min-width: 220px; padding: 16px 32px;
  font-family: var(--font); font-size: 1rem; text-transform: uppercase;
  color: #fff; text-decoration: none; border-radius: var(--radius);
  transition: background-color .2s;
}
.btn:hover, .btn:focus { color: #fff; }
.btn-red { background: var(--red); }
.btn-red:hover, .btn-red:focus { background: var(--red-dark); }
.btn-green { background: var(--green); }
.btn-green:hover, .btn-green:focus { background: var(--green-dark); }

/* Sections */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; text-transform: uppercase; }
.section-header p { color: inherit; opacity: .8; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 40px; align-items: start; }
.big-intro {
  font-family: var(--font); font-size: 2.4rem; font-weight: 700; line-height: 1.2;
  text-transform: uppercase;
}
.skills { list-style: none; margin: 0; padding: 0; }
.skills li { margin-bottom: 18px; }
.skills h3 { font-size: .95rem; text-transform: uppercase; margin: 0; color: var(--red); }
.skills p { margin: 0; opacity: .85; }

@media (max-width: 991px) {
  .about { grid-template-columns: 1fr; text-align: center; }
}

/* Affiliates */
.affiliates {
  display: grid; gap: 30px;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}
.affiliate {
  background: #fff; border-radius: var(--radius); padding: 30px 20px; text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.affiliate img {
  width: 140px; height: 140px; object-fit: contain; margin: 0 auto 20px;
  border-radius: 50%; background: #fff; border: 1px solid #eee; padding: 10px;
}
.affiliate h3 {
  font-size: 1.05rem; padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 2px solid var(--red); display: inline-block;
}
.affiliate ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .92rem; }

/* Lightbox */
a.lightbox { cursor: zoom-in; display: block; }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 40px 20px; background: rgba(0, 0, 0, .9);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img { max-width: 100%; max-height: 85vh; width: auto; box-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.lightbox-overlay p { color: #fff; margin: 12px 0 0; text-align: center; }
.lightbox-close {
  position: absolute; top: 12px; right: 16px; background: none; border: 0;
  color: #fff; font-size: 2.5rem; line-height: 1; cursor: pointer;
}

/* Footer */
.site-footer { background: var(--dark); color: #ccc; padding: 60px 0 30px; text-align: center; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 40px; }
.footer-item svg { width: 36px; height: 36px; margin: 0 auto 10px; display: block; }
.footer-item.red svg { color: var(--red); }
.footer-item.green svg { color: var(--green); }
.footer-item.blue svg { color: #3ab0e2; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { color: var(--red); }
.social { list-style: none; display: flex; gap: 16px; justify-content: center; margin: 0 0 20px; padding: 0; }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.copyright { font-size: .85rem; margin: 0; }
.copyright a { color: #ccc; text-decoration: underline; }
