/**
 * Horsepower Hobbies - Mobile Styles
 * Targets phones only (max-width: 767px)
 * Add this file AFTER style.css in your HTML
 */

/* ==========================================================================
   MOBILE ONLY STYLES (Phones - under 768px)
   ========================================================================== */

@media screen and (max-width: 767px) {

  /* -------------------------------------------------------------------------
     LAYOUT: Stack the two-column layout vertically
     ------------------------------------------------------------------------- */
  
  /* Reverse the visual order so logo/subscribe (left-home) appears first */
  .row {
    display: flex;
    flex-direction: column;
  }
  
  /* Logo section comes first on mobile */
  .left-home {
    order: 1;
    height: auto !important;
    min-height: auto;
    padding: 40px 15px 30px;
  }
  
  /* Countdown/content section comes second */
  .right-home {
    order: 2;
    height: auto !important;
    min-height: auto;
    padding: 30px 15px 40px;
  }
  
  /* Make columns full width */
  .col-lg-6.left-home,
  .col-lg-6.right-home,
  .col-sm-6.left-home,
  .col-sm-6.right-home {
    width: 100%;
    float: none;
  }

  /* -------------------------------------------------------------------------
     NAVIGATION
     ------------------------------------------------------------------------- */
  
  /* Keep hamburger menu accessible */
  .nav-toggle {
    top: 15px;
    right: 15px;
    left: auto;
  }
  
  .navicon {
    right: 15px;
    left: auto;
  }
  
  /* Stack overlay menu items vertically */
  .overlay ul li {
    float: none;
    display: block;
    margin: 10px 0;
  }
  
  .overlay ul li a {
    min-width: 200px;
    padding: 20px 15px;
  }
  
  .navbar-btn-info {
    font-size: 20px;
    margin-top: 15%;
    padding: 0 20px;
  }

  /* -------------------------------------------------------------------------
     LOGO SECTION
     ------------------------------------------------------------------------- */
  
  .logo img {
    max-width: 280px;
    width: 80%;
    height: auto;
  }
  
  .notified {
    margin-top: 30px;
    font-size: 15px;
    padding: 0 10px;
  }
  
  .fadeinleft span.span-first,
  .fadeinleft span.span-second {
    line-height: 24px;
    font-size: 15px;
  }

  /* -------------------------------------------------------------------------
     EMAIL SUBSCRIBE FORM
     ------------------------------------------------------------------------- */
  
  .subscribe {
    margin-top: 25px;
  }
  
  /* Stack email input and button */
  .subscribe .col-lg-7,
  .subscribe .col-lg-5,
  .subscribe .col-sm-12 {
    width: 100%;
    padding: 0 15px;
  }
  
  .subscribe .col-lg-5 {
    margin-top: 15px;
  }
  
  /* Make button full width and touch-friendly */
  .hvr-ripple-out {
    display: block;
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    min-height: 48px; /* Touch-friendly size */
  }
  
  /* Better input sizing for mobile */
  .form-control {
    font-size: 16px !important; /* Prevents iOS zoom on focus */
    height: 44px !important;
    padding: 10px 0;
  }

  /* -------------------------------------------------------------------------
     COUNTDOWN SECTION
     ------------------------------------------------------------------------- */
  
  .countdown-style div {
    font-size: 24px;
    margin-left: 5px;
  }
  
  .countdown-style div span {
    font-size: 10px;
  }
  
  .countdown .day {
    font-size: 72px;
  }
  
  .countdown .day-text {
    font-size: 36px;
  }
  
  .launch-heading {
    font-size: 28px;
  }
  
  .home-sec {
    padding: 0 10px;
  }

  /* -------------------------------------------------------------------------
     ABOUT SECTION (Product Categories)
     ------------------------------------------------------------------------- */
  
  .about-sec,
  .contact-sec {
    padding: 0 10px;
  }
  
  .about-heading h2 {
    font-size: 24px;
  }
  
  /* Product category circles - 2 per row on mobile */
  .about-grid li {
    width: 80px;
    height: 80px;
    margin: 10px;
  }
  
  .img-circle {
    width: 80px;
    height: 80px;
  }
  
  .about-item h5 {
    font-size: 11px;
    margin-top: 5px;
  }
  
  .profile-content p {
    font-size: 14px;
    padding: 15px 10px 0;
    margin-top: 20px;
  }

  /* -------------------------------------------------------------------------
     CONTACT FORM
     ------------------------------------------------------------------------- */
  
  .contact-form {
    margin-top: 20px;
    padding: 0 10px;
  }
  
  /* Stack form fields */
  .contact-form .col-lg-6,
  .contact-form .col-md-6 {
    width: 100%;
    padding: 0 15px;
  }
  
  /* Full width submit button */
  .send-btn button {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  #submitForm {
    width: 100%;
    padding: 0 15px;
  }
  
  .send-btn.submit {
    width: 100%;
  }

  /* -------------------------------------------------------------------------
     DECORATIVE LINES
     ------------------------------------------------------------------------- */
  
  .line {
    padding-top: 1.5em;
  }
  
  .line-bottom-wrap {
    padding: 0 20px;
  }
  
  .center .fa {
    font-size: 20px;
    margin-top: -10px;
  }

  /* -------------------------------------------------------------------------
     SOCIAL ICONS
     ------------------------------------------------------------------------- */
  
  .socials-icons {
    padding-top: 1em;
  }
  
  .socials-icons-list .icon1,
  .socials-icons-list .icon2,
  .socials-icons-list .icon3,
  .socials-icons-list .icon4 {
    height: 40px;
    width: 40px;
    font-size: 18px;
    padding: 8px;
    margin: 8px;
  }

  /* -------------------------------------------------------------------------
     COPYRIGHT / FOOTER
     ------------------------------------------------------------------------- */
  
  .copyright {
    font-size: 12px;
    margin-top: 20px;
    padding-bottom: 20px;
  }

  /* -------------------------------------------------------------------------
     GENERAL TYPOGRAPHY ADJUSTMENTS
     ------------------------------------------------------------------------- */
  
  h2, .h2 {
    font-size: 24px;
  }
  
  h3, .h3 {
    font-size: 20px;
  }
  
  p {
    font-size: 14px;
    padding-top: 15px;
  }

  /* -------------------------------------------------------------------------
     UTILITY: Prevent horizontal scroll
     ------------------------------------------------------------------------- */
  
  body, html {
    overflow-x: hidden;
  }
  
  .container-fluid {
    padding-left: 0;
    padding-right: 0;
  }
  
  /* Ensure images don't overflow */
  img {
    max-width: 100%;
    height: auto;
  }

  /* -------------------------------------------------------------------------
     TABLE DISPLAY FIX
     ------------------------------------------------------------------------- */
  
  /* Override the table display that causes issues on mobile */
  .align-middle {
    display: block;
    height: auto;
  }
  
  .wrap-info {
    display: block;
  }

}

/* ==========================================================================
   EXTRA SMALL PHONES (under 360px)
   ========================================================================== */

@media screen and (max-width: 359px) {

  .logo img {
    max-width: 220px;
  }
  
  .countdown .day {
    font-size: 56px;
  }
  
  .countdown .day-text {
    font-size: 28px;
  }
  
  .launch-heading {
    font-size: 22px;
  }
  
  .about-grid li {
    width: 70px;
    height: 70px;
    margin: 8px;
  }
  
  .img-circle {
    width: 70px;
    height: 70px;
  }
  
  .notified {
    font-size: 14px;
  }
  
  .overlay ul li a {
    min-width: 160px;
    font-size: 13px;
  }

}
