/* responsive.css */

/* ==================== TABLET STYLES (768px - 1024px) ==================== */
@media screen and (max-width: 1024px) {
  .container {
    width: 95%;
  }

  .banner-text h2 {
    font-size: 32px;
  }

  .banner-text p {
    font-size: 16px;
  }

  .section-title {
    font-size: 36px;
  }

  .services-title {
    font-size: 28px;
  }

  .services-txt {
    font-size: 13px;
  }
}

/* ==================== MOBILE LANDSCAPE (768px and below) ==================== */
@media screen and (max-width: 768px) {
  /* Navigation */
  .navbar {
    padding: 10px 0;
  }

  .logo-img {
    width: 120px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  nav a {
    margin-left: 0;
    font-size: 14px;
  }

  /* Hero Banner */
  .hero-banner {
    padding: 30px 0;
    margin-top: 80px; /* Account for fixed navbar */
  }

  .banner-content {
    flex-direction: column;
    gap: 30px;
  }

  .banner-text h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  .banner-text p {
    font-size: 15px;
    margin-bottom: 25px;
  }

  .banner-actions {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }

  .btn {
    width: auto;
    padding: 12px 25px;
    font-size: 14px;
  }

  /* Sections */
  .section {
    padding: 30px 0;
    gap: 30px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  /* Services */
  .services-wrapper {
    max-height: none;
  }

  .services-content {
    flex-direction: column;
  }

  .services-side {
    flex: 1 1 100%;
    max-height: none;
  }

  .services-txt-wrapper {
    padding: 25px;
    text-align: center;
  }

  .services-title {
    font-size: 24px;
  }

  .services-txt {
    font-size: 14px;
    margin-top: 15px;
    margin-bottom: 25px;
  }

  .services-btn {
    padding: 12px 18px;
    font-size: 14px;
  }

  .services-img-wrapper {
    display: none;
  }

  .services-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Contact Section */
  .contact_main {
    width: 90%;
  }

  .contact-input,
  .contact-textarea {
    font-size: 16px;
    padding: 15px 0px 0px 0px;
  }

  .contact-input {
    height: 50px;
  }

  .contact-textarea {
    height: 80px;
  }

  .contact-btn__wrapper .btn {
    padding: 12px 30px;
    font-size: 14px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-about,
  .footer-contact {
    width: 100%;
  }

  .footer-contact-items {
    flex-direction: column;
    gap: 15px;
  }

  .footer-link {
    justify-content: center;
  }

  .footer-bottom p {
    font-size: 11px;
    padding: 12px 0;
  }

  .favors-container {
    flex-direction: column;
    gap: 0;
  }

  .favors-box {
    margin-top: 0;
    margin-bottom: 50px;
  }

  .favors-details__wrapper,
  .contact-section__details,
  .work-section__details,
  .price-section__details,
  .portfolio-section__details {
    padding-top: 70px;
  }

  .price-intro {
    max-width: 100%;
    margin: 30px 15px 20px;
    font-size: 14px;
  }

  .price-list {
    max-width: 100%;
    margin: 0 15px 30px;
  }

  .price-item {
    padding: 12px 0;
    font-size: 16px;
  }

  .price-name {
    font-size: 15px;
  }

  .price-title {
    font-size: 18px;
  }

  .price-price {
    font-size: 15px;
  }

  .price-sub {
    padding: 6px 0;
  }

  .price-note {
    max-width: 100%;
    margin: 20px 15px 0;
    font-size: 13px;
  }

  .portfolio-intro {
    margin: 15px 10px 25px;
    font-size: 14px;
  }

  .portfolio-price-highlight {
    margin: 0 10px 30px;
    padding: 15px;
    font-size: 15px;
  }

  .portfolio-price-small {
    font-size: 13px;
  }

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

  .portfolio-gallery a {
    height: 200px;
  }

  .portfolio-text {
    margin: 30px 10px;
    font-size: 14px;
  }

  .portfolio-contact {
    padding: 0 10px;
  }

  .portfolio-contact li {
    font-size: 14px;
  }

  .portfolio-contact-note {
    font-size: 13px;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 20px;
    gap: 20px;
    transition: right 0.3s ease;
  }

  .nav-menu a {
    display: block;
    padding: 12px 0;
    font-size: 18px;
  }

  .nav-menu.active {
    right: 0;
  }

  .services-content {
    flex-direction: column;
  }

  .services-side {
    flex: 1 1 100%;
    max-height: none;
  }

  .services-img-wrapper {
    height: auto;
  }
}

@media (min-width: 769px) {
  .nav-menu {
    display: flex;
  }

  .services-icon-wrapper {
    display: none;
  }
}

/* ==================== MOBILE PORTRAIT (480px and below) ==================== */
@media screen and (max-width: 480px) {
  .favors-details__wrapper,
  .contact-section__details,
  .work-section__details,
  .price-section__details,
  .portfolio-section__details {
    padding-top: 70px;
  }

  /* Container */
  .container {
    width: 95%;
  }

  /* Navigation */
  .navbar .container {
    gap: 10px;
  }

  .logo-img {
    width: 100px;
  }

  nav {
    gap: 10px;
  }

  nav a {
    font-size: 13px;
    padding: 5px 8px;
  }

  /* Hero Banner */
  .hero-banner {
    padding: 20px 0;
    margin-top: 110px; /* Account for fixed navbar */
  }

  .banner-content {
    gap: 20px;
  }

  .banner-text h2 {
    font-size: 24px;
  }

  .banner-text p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .banner-actions {
    gap: 12px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  /* Sections */
  .section {
    padding: 25px 0;
    gap: 25px;
  }

  .section-title {
    font-size: 24px;
  }

  /* Services */
  .services-txt-wrapper {
    padding: 20px;
  }

  .services-title {
    font-size: 22px;
  }

  .services-txt {
    font-size: 13px;
    margin-top: 12px;
    margin-bottom: 20px;
  }

  .services-btn {
    padding: 10px 15px;
    font-size: 13px;
  }

  .services-icon {
    width: 16px;
    height: 16px;
    margin-top: 3px;
  }

  .services-img-wrapper {
    height: 200px;
  }

  /* Contact Section */
  .contact_main {
    width: 95%;
  }

  .form-group {
    margin-bottom: 25px;
  }

  .contact-input,
  .contact-textarea {
    font-size: 15px;
    padding: 12px 0px 0px 0px;
  }

  .contact-input {
    height: 45px;
  }

  .contact-textarea {
    height: 75px;
  }

  .contact-btn__wrapper .btn {
    padding: 10px 25px;
    font-size: 13px;
  }

  /* Footer */
  .footer-inner {
    gap: 15px;
  }

  .footer-contact-items {
    gap: 12px;
  }

  .footer-link {
    font-size: 14px;
  }

  .footer-icon {
    width: 18px;
  }
}

/* ==================== SMALL MOBILE (360px and below) ==================== */
@media screen and (max-width: 360px) {
  .container {
    width: 98%;
  }

  .logo-img {
    width: 90px;
  }

  .banner-text h2 {
    font-size: 20px;
  }

  .banner-text p {
    font-size: 13px;
  }

  .section-title {
    font-size: 20px;
  }

  .services-title {
    font-size: 20px;
  }

  .services-txt {
    font-size: 12px;
  }

  .services-img-wrapper {
    height: 180px;
  }

  .contact_main {
    width: 98%;
  }

  .contact-input,
  .contact-textarea {
    font-size: 14px;
  }

  .footer-link {
    font-size: 13px;
  }
}

@media screen and (min-width: 120px) and (max-width: 500px) {
  .hero-banner {
    margin-top: 75px;
  }

  .favors-details__wrapper,
  .contact-section__details,
  .work-section__details,
  .price-section__details,
  .portfolio-section__details {
    padding-top: 70px;
  }
}

/* ==================== LANDSCAPE ORIENTATION ==================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero-banner {
    padding: 15px 0;
    margin-top: 110px; /* Account for fixed navbar */
  }

  .section {
    padding: 20px 0;
    gap: 20px;
  }

  .services-wrapper {
    max-height: none;
  }

  .services-img-wrapper {
    height: 200px;
  }
}

/* ==================== HIGH DPI DISPLAYS ==================== */
@media screen and (-webkit-min-device-pixel-ratio: 2),
  screen and (min-resolution: 192dpi) {
  .logo-img,
  .services-img,
  .banner-image img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ==================== HOVER STATES FOR TOUCH DEVICES ==================== */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .btn-blue:hover,
  .btn-yellow:hover,
  nav a:hover,
  .footer-contact a:hover {
    /* Remove hover effects on touch devices */
    background-color: inherit;
    color: inherit;
  }

  /* Add active states instead */
  .btn:active {
    opacity: 0.8;
  }
  .btn-blue:active {
    background-color: #10607a;
  }
  .btn-yellow:active {
    background-color: #9d0303;
  }
  nav a:active {
    color: rgb(22, 112, 139);
  }
  .footer-contact a:active {
    color: #0d5368;
  }
}

/* ==================== ACCESSIBILITY IMPROVEMENTS ==================== */
@media screen and (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==================== PRINT STYLES ==================== */
@media print {
  .navbar,
  .banner-actions,
  .contact-section,
  footer {
    display: none;
  }

  .hero-banner {
    background-color: white;
    color: black;
  }

  .services-wrapper {
    background-color: white;
  }

  .services-title,
  .services-txt {
    color: black;
  }
}

@media (min-width: 768px) {
  .banner-image img {
    padding-top: 80px;
  }
}
