/*
 * Brand Storytelling Digital Tool Template
 * Responsive CSS - Mobile-first responsive styles
 * No animations on mobile, conservative breakpoints
 */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .hero h1 {
    font-size: 2.5rem;
    padding-top: 100px;
}
  
  .service-card {
    padding: 2.5rem 2rem;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .hero {
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: 3rem;
    padding-top: 100px;
}
  
  .section {
    padding: 6rem 0;
  }
  
  .section-sm {
    padding: 4rem 0;
  }
  
  .navbar {
    padding: 1.5rem 0;
  }
  
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .service-card .card-img-top {
    width: 100px;
    height: 100px;
  }
  
  .team-photo {
    width: 160px;
    height: 160px;
  }
  
  .testimonial-card {
    padding: 3rem;
  }
  
  .price-plan-card {
    padding: 3rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
    padding-top: 100px;
}
  
  .section {
    padding: 8rem 0;
  }
  
  .section-sm {
    padding: 5rem 0;
  }
  
  .service-card {
    padding: 3rem 2rem;
  }
  
  .service-card .card-img-top {
    width: 120px;
    height: 120px;
  }
  
  .team-card {
    padding: 2rem;
  }
  
  .testimonial-text {
    font-size: 1.25rem;
  }
  
  .process-step {
    padding: 3rem 2rem;
  }
  
  .process-step-number {
    width: 80px;
    height: 80px;
    font-size: 1.75rem;
  }
  
  .timeline-item {
    padding: 2rem;
  }
  
  .career-card {
    padding: 3rem;
  }
  
  .case-study-card {
    padding: 3rem;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .hero h1 {
    font-size: 4rem;
    padding-top: 100px;
}
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .container {
    max-width: 1140px;
  }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Mobile-specific styles (up to 767px) */
@media (max-width: 767.98px) {
  /* Disable animations on mobile */
  .card,
  .gallery-item img,
  .blog-card,
  .btn,
  .form-control {
    transition: none !important;
    transform: none !important;
  }
  
  .card:hover,
  .blog-card:hover {
    transform: none !important;
    box-shadow: var(--box-shadow) !important;
  }
  
  .gallery-item:hover img {
    transform: none !important;
  }
  
  /* Conservative mobile typography */
  h1, .h1 {
    font-size: 1.875rem;
    line-height: 1.2;
  }
  
  h2, .h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  h3, .h3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  
  .hero {
    min-height: 70vh;
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-top: 100px;
}
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Mobile spacing */
  .section {
    padding: 3rem 0;
  }
  
  .section-sm {
    padding: 2rem 0;
  }
  
  /* Mobile navbar */
  .navbar {
    padding: 1rem 0;
  }
  
  .navbar-brand {
    font-size: 1.125rem;
  }
  
  .navbar-nav .nav-link {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  
  /* Mobile cards */
  .card-body {
    padding: 1rem;
    overflow-x: hidden;
}
  
  .service-card {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }
  
  .service-card .card-img-top {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
  
  .team-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .testimonial-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
  
  .faq-card {
    padding: 1rem;
  }
  
  .price-plan-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .price-plan-price {
    font-size: 2rem;
  }
  
  .process-step {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
  }
  
  .process-step-number {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .timeline-item {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .career-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .case-study-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .core-info-card {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .core-info-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .blog-card-img {
    height: 150px;
  }
  
  .gallery-item img {
    height: 200px;
  }
  
  /* Mobile forms */
  .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
  
  /* Mobile footer */
  .footer {
    padding: 2rem 0 1rem;
    text-align: center;
  }
  
  .footer .col-md-3,
  .footer .col-md-4 {
    margin-bottom: 2rem;
  }
  
  /* Mobile hero decorative elements - simplified */
  .hero::before {
    display: none;
  }
  
  /* Mobile grid adjustments */
  .row > [class*="col-"] {
    margin-bottom: 1rem;
  }
  
  .row > [class*="col-"]:last-child {
    margin-bottom: 0;
  }
}

/* Small mobile devices (up to 575.98px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
    padding-top: 100px;
}
  
  .service-card,
  .team-card,
  .testimonial-card,
  .price-plan-card,
  .career-card,
  .case-study-card,
  .core-info-card {
    padding: 1rem;
  }
  
  .process-step {
    padding: 1rem 0.5rem;
  }
  
  .timeline-item {
    padding: 0.75rem;
  }
  
  .price-plan-price {
    font-size: 1.75rem;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 767.98px) and (orientation: landscape) {
  .hero {
    min-height: 50vh;
    padding: 2rem 0;
  }
  
  .section {
    padding: 2rem 0;
  }
  
  .section-sm {
    padding: 1.5rem 0;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #0066CC;
    --color-secondary: #CC0066;
    --color-accent: #006600;
    --color-warm: #CC6600;
    --color-cool: #6600CC;
    --text-dark: #000000;
    --text-light: #FFFFFF;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
  }
  
  .card,
  .service-card,
  .team-card,
  .testimonial-card,
  .faq-card,
  .price-plan-card,
  .career-card,
  .case-study-card,
  .core-info-card,
  .blog-card {
    border: 2px solid var(--text-dark);
  }
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .btn,
  .gallery,
  #space {
    display: none !important;
  }
  
  .hero {
    min-height: auto;
    page-break-inside: avoid;
  }
  
  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }
  
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
  }
  
  p {
    orphans: 3;
    widows: 3;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
  
  * {
    scroll-behavior: auto !important;
  }
}
