/* ==========================================================================
   Creative Edge Agency - Main Stylesheet
   Inspired by Skeleton V1.2 grid + custom agency styling
   ========================================================================== */

/* --- Variables --- */
:root {
  --accent: #FF4E00;
  --accent-dark: #e04500;
  --text-primary: #333;
  --text-secondary: #787878;
  --bg-light: #f5f5f5;
  --bg-white: #fff;
  --bg-dark: #1a1a1a;
  --bg-dark-lighter: #2a2a2a;
  --border-light: #e0e0e0;
  --max-width: 960px;
  --font-body: Arial, Helvetica, "Nimbus Sans L", sans-serif;
  --font-heading: Georgia, "Times New Roman", Times, serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.75em;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin: 0 0 1.25em;
}

a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

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

strong, b {
  font-weight: 700;
}

blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--accent);
  background: var(--bg-light);
  font-style: italic;
  color: var(--text-secondary);
}

ul, ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

li {
  margin-bottom: 0.4em;
}

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

hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 2em 0;
}

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

.section {
  padding: 60px 0;
}

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

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

.section--dark {
  background: var(--bg-dark);
  color: #ccc;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.card {
  background: var(--bg-white);
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  padding: 40px;
  margin-bottom: 30px;
}

/* --- Grid (Skeleton-inspired) --- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col {
  padding: 0 15px;
  flex: 1;
}

.col-half {
  width: 50%;
  padding: 0 15px;
}

.col-third {
  width: 33.333%;
  padding: 0 15px;
}

.col-two-thirds {
  width: 66.666%;
  padding: 0 15px;
}

.col-quarter {
  width: 25%;
  padding: 0 15px;
}

/* --- Header --- */
.site-header {
  background: var(--bg-white);
  border-top: 7px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.site-logo:hover {
  color: var(--accent);
}

.site-logo .logo-mark {
  display: inline-block;
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 4px;
  color: #fff;
  text-align: center;
  line-height: 36px;
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Navigation --- */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 5px;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  background: rgba(255, 78, 0, 0.06);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d2d 100%);
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 0.3em;
}

.hero .subtitle {
  font-size: 1.25rem;
  color: #bbb;
  margin-bottom: 1.5em;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .accent-text {
  color: var(--accent);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

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

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

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

.btn--small {
  padding: 8px 20px;
  font-size: 0.85rem;
}

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

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 15px auto 0;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  background: var(--bg-white);
  border-radius: 3px;
  padding: 30px 25px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.service-card .icon {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--accent);
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- Portfolio --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.portfolio-item {
  background: var(--bg-white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease;
}

.portfolio-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.portfolio-thumb {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-style: italic;
}

.portfolio-info {
  padding: 25px;
}

.portfolio-info h3 {
  font-size: 1.15rem;
  margin-bottom: 0.3em;
}

.portfolio-info .portfolio-category {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75em;
  display: block;
}

.portfolio-info p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.team-member {
  text-align: center;
}

.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-secondary);
}

.team-member h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2em;
}

.team-member .role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75em;
  display: block;
}

.team-member p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--bg-white);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.25s ease;
}

.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.blog-card-thumb {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.blog-card-body {
  padding: 25px;
}

.blog-card-body .blog-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  display: block;
}

.blog-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5em;
}

.blog-card-body h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.blog-card-body h3 a:hover {
  color: var(--accent);
}

.blog-card-body p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1em;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Blog Article --- */
.article-header {
  text-align: center;
  padding: 60px 0 30px;
}

.article-header .article-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  display: block;
}

.article-header h1 {
  font-size: 2.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.article-body h2 {
  margin-top: 2em;
  font-size: 1.6rem;
}

.article-body h3 {
  margin-top: 1.5em;
  font-size: 1.25rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5em;
}

.article-body li {
  margin-bottom: 0.5em;
}

/* --- Contact --- */
.contact-info {
  font-size: 1rem;
  line-height: 1.8;
}

.contact-info dt {
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1em;
}

.contact-info dd {
  margin-left: 0;
  color: var(--text-secondary);
}

.contact-map {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.cta-banner h2 {
  color: #fff;
  margin-bottom: 0.4em;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5em;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: #999;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 8px;
}

.footer-nav a {
  color: #999;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--bg-dark-lighter);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: #999;
}

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

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 15px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

.breadcrumb span {
  margin: 0 6px;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2d2d2d 100%);
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.page-header h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 0.3em;
}

.page-header p {
  color: #bbb;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1em; }
.mb-1 { margin-bottom: 1em; }
.mt-2 { margin-top: 2em; }
.mb-2 { margin-bottom: 2em; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .col-half,
  .col-third,
  .col-two-thirds,
  .col-quarter {
    width: 100%;
  }

  .row {
    flex-direction: column;
  }

  /* Mobile nav */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    z-index: 99;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .menu-toggle {
    display: block;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .article-header h1 {
    font-size: 1.7rem;
  }

  .card {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 15px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

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

  .section {
    padding: 40px 0;
  }

  .btn {
    display: block;
    width: 100%;
  }
}
