/* Cool Craftz - Landing Page Styles */

:root {
  --navy: #002855;
  --navy-dark: #001a3d;
  --red: #c41230;
  --red-hover: #a30f28;
  --gray-bg: #f2f2f2;
  --gray-text: #666;
  --gray-border: #ddd;
  --white: #fff;
  --utility-bg: #e8e8e8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility bar */
.utility-bar {
  background: var(--utility-bg);
  font-size: 13px;
  padding: 6px 0;
}

.utility-bar-inner {
  display: flex;
  justify-content: flex-end;
}

.utility-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 600;
}

.utility-phone:hover {
  color: var(--red);
}

.flag-icon {
  width: 20px;
  height: auto;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.header-actions {
  display: flex;
  gap: 32px;
}

.header-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  padding: 4px 8px;
}

.header-action i {
  font-size: 22px;
}

.header-action:hover {
  color: var(--red);
}

/* Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 201;
  padding: 60px 0 32px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
}

.drawer-contact {
  padding: 0 32px;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--navy);
  cursor: pointer;
}

.drawer-link {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  padding: 16px 0;
  background: var(--white);
}

.drawer-link:hover {
  color: var(--red);
}

/* Accordion dropdowns */
.drawer-accordion {
  border-bottom: 1px solid var(--gray-border);
}

.drawer-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}

.drawer-accordion-btn:hover {
  color: var(--red);
}

.accordion-icon {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--navy);
}

.drawer-accordion.open .accordion-icon::before {
  content: '−';
}

.drawer-accordion:not(.open) .accordion-icon::before {
  content: '+';
}

.drawer-accordion .accordion-icon {
  font-size: 0;
}

.drawer-accordion .accordion-icon::before {
  font-size: 22px;
}

.drawer-submenu {
  display: none;
  background: #e9e9e9;
  padding: 8px 0 16px;
}

.drawer-accordion.open .drawer-submenu {
  display: block;
}

.drawer-submenu a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  padding: 12px 0 12px 4px;
  line-height: 1.4;
}

.drawer-submenu a:hover {
  color: var(--red);
}

.drawer-contact {
  margin-top: 32px;
  font-size: 14px;
  color: var(--gray-text);
}

.drawer-contact p {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-contact a:hover {
  color: var(--red);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-hover);
}

/* Hero carousel */
.hero-carousel {
  padding: 48px 0 64px;
  background: var(--white);
}

.hero-carousel-inner {
  position: relative;
  min-height: 420px;
}

.hero-slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-slide.active {
  display: grid;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  color: var(--gray-text);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-visual {
  background: var(--gray-bg);
  border-radius: 4px;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-visual-devices {
  position: relative;
  min-height: 380px;
}

.hero-visual-devices .device-img {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.device-1 {
  width: 200px;
  height: 260px;
  left: 10%;
  top: 10%;
  z-index: 1;
  transform: rotate(-5deg);
}

.device-2 {
  width: 180px;
  height: 240px;
  left: 35%;
  top: 5%;
  z-index: 3;
}

.device-3 {
  width: 160px;
  height: 220px;
  right: 15%;
  top: 20%;
  z-index: 2;
  transform: rotate(8deg);
}

.carousel-dots {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.carousel-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
}

.carousel-dots .dot.active {
  background: var(--red);
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-alt {
  background: var(--gray-bg);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
}

/* Four column grid */
.four-col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.service-card {
  padding: 0 8px;
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: 40px;
  position: relative;
}

.service-icon i {
  color: var(--navy);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
  margin-bottom: 16px;
  line-height: 1.65;
}

.learn-more {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

.learn-more:hover {
  color: var(--red);
}

/* Two column about */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.col-text .section-title {
  margin-bottom: 20px;
}

.col-text p {
  color: var(--gray-text);
  font-size: 1rem;
}

.tech-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tech-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Platforms box */
.platforms-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: var(--white);
  padding: 48px;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.platforms-text {
  flex: 1;
}

.platforms-text .section-title {
  margin-bottom: 16px;
}

.platforms-text p {
  color: var(--gray-text);
  max-width: 700px;
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.insight-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 16px;
}

.insight-meta {
  font-size: 12px;
  color: var(--gray-text);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.insight-tag {
  font-weight: 600;
}

.insight-date::before {
  content: ' | ';
}

.insight-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
}

.insight-card p {
  font-size: 0.9rem;
  color: var(--gray-text);
}

.read-more {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-top: 8px;
  display: inline-block;
}

.read-more:hover {
  color: var(--red);
}

/* Contact section */
.section-contact {
  background: var(--gray-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
}

.contact-form-wrap {
  position: relative;
  padding-left: 48px;
}

.dot-pattern {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 100%;
  background-image: radial-gradient(circle, #ccc 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.contact-form input {
  padding: 16px 20px;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
}

.contact-form input::placeholder {
  color: #999;
}

.contact-form input:focus {
  outline: 2px solid var(--navy);
  outline-offset: 0;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 80px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.contact-item i {
  font-size: 22px;
}

.contact-item:hover {
  color: var(--red);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-top: 56px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 0.8fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--white);
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.locations-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 24px;
  font-size: 14px;
}

.social-icons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  transition: background 0.2s, border-color 0.2s;
}

.social-icons a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-decoration: underline;
}

.footer-links a:hover {
  opacity: 0.85;
}

/* About page */
.breadcrumb-bar {
  padding: 20px 0 8px;
}

.breadcrumb {
  font-size: 15px;
}

.breadcrumb a {
  color: var(--navy);
}

.breadcrumb-sep {
  color: var(--navy);
  margin: 0 8px;
  font-weight: 700;
}

.breadcrumb-current {
  color: var(--gray-text);
}

.about-intro {
  padding: 24px 0 56px;
}

.about-intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro-text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 24px;
}

.about-intro-text p {
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.75;
}

.about-intro-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.about-stats {
  padding: 48px 0 56px;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.stat-item p {
  font-size: 1rem;
  color: var(--gray-text);
}

.about-expertise-story {
  padding-top: 64px;
}

.about-collage {
  position: relative;
  min-height: 360px;
}

.collage-img {
  position: absolute;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.collage-1 {
  width: 55%;
  height: 200px;
  left: 0;
  top: 0;
  z-index: 2;
}

.collage-2 {
  width: 45%;
  height: 160px;
  right: 0;
  top: 20px;
  z-index: 3;
}

.collage-3 {
  width: 50%;
  height: 180px;
  left: 10%;
  bottom: 0;
  z-index: 1;
}

.collage-4 {
  width: 40%;
  height: 150px;
  right: 5%;
  bottom: 30px;
  z-index: 4;
}

.about-awards {
  background: var(--gray-bg);
}

.awards-slider {
  position: relative;
}

.awards-slide {
  display: none;
}

.awards-slide.active {
  display: block;
}

.awards-inner.two-col {
  align-items: start;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.award-badge {
  background: var(--white);
  border: 1px solid var(--gray-border);
  padding: 20px 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}

.awards-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.awards-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
}

.awards-dots .dot.active {
  background: var(--red);
}

.expertise-grid-8 {
  grid-template-columns: repeat(4, 1fr);
}

.about-categories {
  padding-bottom: 80px;
}

.categories-title {
  text-align: center;
  margin-bottom: 40px;
}

.category-pills {
  list-style: none;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.category-pills li {
  background: #e9e9e9;
  border-radius: 50px;
  padding: 18px 32px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.category-pills li:hover {
  background: #ddd;
}

/* Responsive */
@media (max-width: 1024px) {
  .expertise-grid-8 {
    grid-template-columns: repeat(2, 1fr);
  }

  .awards-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-intro-inner {
    grid-template-columns: 1fr;
  }
  .four-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .insights-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-social {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .stats-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .awards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-intro-image img {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .hero-slide.active {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .four-col {
    grid-template-columns: 1fr;
  }

  .insights-grid {
    grid-template-columns: 1fr;
  }

  .platforms-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    padding-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .locations-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-actions {
    gap: 16px;
  }

  .logo-text {
    font-size: 16px;
  }

  .locations-list {
    grid-template-columns: 1fr;
  }
}
