/* ==========================================================================
   Somani Graphics - Primary Stylesheet
   Replicated exactly from original WordPress Theme (MagZee & Specia)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Raleway:400,600,700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

/* --- Reset & Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  color: #283645;
  font-weight: 700;
  margin-bottom: 15px;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }

a {
  color: #1abb9c;
  text-decoration: none;
  transition: all 0.2s ease-out;
}

a:hover, a:focus {
  color: #12826c;
  text-decoration: none;
}

p {
  margin-bottom: 15px;
}

blockquote {
  padding: 15px 20px;
  margin: 20px 0;
  border-left: 5px solid #1abb9c;
  background-color: #f9f9f9;
  font-style: italic;
  color: #555555;
  font-size: 14px;
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.col-md-12 { flex: 0 0 100%; max-width: 100%; padding: 0 15px; }
.col-md-8  { flex: 0 0 66.666667%; max-width: 66.666667%; padding: 0 15px; }
.col-md-6  { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.col-md-4  { flex: 0 0 33.333333%; max-width: 33.333333%; padding: 0 15px; }
.col-md-3  { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }
.col-sm-6  { padding: 0 15px; }
.col-xs-12 { padding: 0 15px; }

.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* --- Header Top Bar --- */
.header-top-info-1 {
  background-color: #f8f8f8;
  border-bottom: 1px solid #e6e9ed;
  padding: 4px 0;
  font-size: 13px;
  color: #747474;
}

.header-top-info-1 .row {
  align-items: center;
  justify-content: space-between;
}

.header-top-info-1 ul.social {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 4px 0;
}

.header-top-info-1 ul.social li a i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  background: #747474;
  color: #ffffff;
  border-radius: 50%;
  font-size: 12px;
  transition: all 200ms ease-out;
}

.header-top-info-1 ul.social li a i:hover {
  background: #1abb9c;
  color: #ffffff;
}

.header-top-info-1 ul.info {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 4px 0;
}

.header-top-info-1 ul.info li a {
  color: #747474;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-top-info-1 ul.info li a:hover {
  color: #1abb9c;
}

/* --- Header Main Branding --- */
header[role="banner"] {
  background: #ffffff;
  padding: 15px 0 12px 0;
}

header .navbar-brand img {
  max-width: 190px;
  height: auto;
  display: block;
}

/* --- Navigation Bar --- */
.nav-magzee {
  background-color: #1abb9c;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: relative;
  z-index: 99;
}

.nav-magzee .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.navbar-header {
  display: none;
}

.navbar-toggle {
  background: transparent;
  border: 1px solid #ffffff;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #ffffff;
}

ul.navbar-nav {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

ul.navbar-nav > li > a {
  display: block;
  padding: 14px 20px;
  color: #ffffff;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: background 0.3s ease;
}

ul.navbar-nav > li > a:hover,
ul.navbar-nav > li.active > a {
  background-color: #1abb9c;
  color: #ffffff;
  font-weight: 700;
}

/* --- Breadcrumb Header --- */
.breadcrumb {
  background: #f8f8f8;
  color: #747474;
  padding: 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #e6e9ed;
  font-family: 'Open Sans', sans-serif;
}

.breadcrumb .container {
  padding: 5px 15px;
}

.breadcrumb h2 {
  color: #747474;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
  font-family: 'Open Sans', sans-serif;
  padding: 12px 0;
}

.page-breadcrumb {
  list-style: none;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  margin: 0;
  padding: 12px 0;
  justify-content: flex-end;
}

.page-breadcrumb a {
  color: #1abb9c;
}

.page-breadcrumb a:hover {
  color: #333333;
}

.page-breadcrumb .active {
  color: #747474;
}

/* --- Page Wrapper & Sidebar Layout --- */
.page-wrapper {
  padding: 40px 0;
  min-height: 400px;
}

.site-content {
  line-height: 1.8;
}

/* --- Sidebar Widget --- */
.sidebar aside {
  background-color: #f7f9fc;
  border: 1px solid #e7eaf1;
  padding: 15px 20px;
  border-radius: 3px;
  margin-bottom: 30px;
}

.sidebar .widget-title {
  font-size: 20px;
  font-weight: 500;
  color: #283645;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7eaf1;
  font-family: 'Open Sans', sans-serif;
}

.sidebar .title-border {
  height: 2px;
  width: 30px;
  background-color: #1abb9c;
  margin-top: -1px;
  margin-bottom: 15px;
}

.sidebar .textwidget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar .textwidget ul li {
  padding: 11px 0;
  border-bottom: 1px solid #e7eaf1;
  color: #505050;
  font-size: 13px;
  line-height: 1.5;
}

.sidebar .textwidget ul li:last-child {
  border-bottom: none;
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 35px;
  border-radius: 3px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.hero-slider .slides {
  display: flex;
  transition: transform 0.6s ease-in-out;
  width: 100%;
}

.hero-slider .slide-item {
  min-width: 100%;
  box-sizing: border-box;
}

.hero-slider .slide-item img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 15px;
  pointer-events: none;
}

.slider-nav button {
  pointer-events: auto;
  background: rgba(40, 54, 69, 0.7);
  color: #ffffff;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-nav button:hover {
  background: #1abb9c;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dots .dot.active {
  background: #1abb9c;
}

/* --- Services List Grid --- */
.services-section h4 {
  color: #283645;
  font-size: 18px;
  margin-top: 25px;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 8px;
}

.services-section h4 em strong {
  color: #1abb9c;
}

/* --- Portfolio Gallery --- */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.gallery-item {
  width: 50%;
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
}

.gallery-item img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.gallery-item img:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

/* --- Lightbox Modal --- */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #ffffff;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
}

/* --- Contact Us Page --- */
.contact-info-block {
  margin-bottom: 30px;
  font-size: 14px;
}

.contact-info-block p {
  margin-bottom: 10px;
}

.map-container {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

.contact-form-wrapper {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 4px;
  border: 1px solid #eaeaea;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #283645;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  border: 1px solid #cccccc;
  border-radius: 3px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #1abb9c;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  background-color: #283645;
  color: #ffffff;
  padding: 12px 28px;
  border: 2px solid #283645;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  background-color: #1abb9c;
  border-color: #1abb9c;
}

.alert-message {
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* --- Footer --- */
.footer-sidebar {
  background-color: #283645;
  color: #ffffff;
  padding: 60px 0 40px 0;
  border-top: 4px solid #1abb9c;
}

.footer-sidebar .widget-title {
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-family: 'Open Sans', sans-serif;
}

.footer-sidebar .widget .title-border {
  border-bottom: 2px solid #1abb9c;
  width: 30px;
  margin-top: -1px;
  margin-bottom: 18px;
}

.footer-sidebar p {
  color: #ffffff;
  font-size: 13px;
  font-weight: lighter;
  line-height: 1.7;
}

.footer-sidebar a {
  color: #ffffff;
}

.footer-sidebar a:hover {
  color: #1abb9c;
}

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

.footer-quick-links li {
  padding: 6px 0;
  font-size: 13px;
  color: #ffffff;
  position: relative;
  padding-left: 14px;
}

.footer-quick-links li::before {
  content: "\f054";
  font-family: 'FontAwesome';
  font-size: 9px;
  position: absolute;
  left: 0;
  top: 8px;
  color: #ffffff;
}

.footer-quick-links li a {
  color: #ffffff;
  font-weight: lighter;
}

.footer-quick-links li a:hover {
  color: #1abb9c;
}

/* --- Footer Copyright --- */
.footer-copyright {
  background-color: #1e2935;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-copyright p {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
}

/* --- Scroll To Top Button --- */
.top-scroll {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 40px;
  height: 40px;
  background: transparent;
  color: #1abb9c;
  border: 2px solid #1abb9c;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.top-scroll.visible {
  opacity: 1;
  visibility: visible;
}

.top-scroll:hover {
  background: #1abb9c;
  color: #ffffff;
}

/* --- Responsive Layout --- */
@media (max-width: 991px) {
  .col-md-8, .col-md-4, .col-md-3, .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

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

@media (max-width: 767px) {
  .navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 0;
  }

  .nav-magzee .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar-collapse {
    display: none;
    width: 100%;
  }

  .navbar-collapse.active {
    display: block;
  }

  ul.navbar-nav {
    flex-direction: column;
    width: 100%;
  }

  ul.navbar-nav > li > a {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

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

  .header-top-info-1 .row {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
