/*   MM Attorneys Inc.
      
    Developer: Tshenolo Breadwin Makgetla
    Date: 13 September 2025

    Filename: styles.css
*/
//* l. CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* a. Background color for body */
body {
    background-color: #50C878;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* b. Positioning elements (example for layout) */
header, nav, main, footer, section {
    
position: relative;
    width: 100%;
}

/* c. Style the Navigation */
nav {
    background-color: #333;
    padding: 10px 0;
}

nav ul {
    
display: flex;
    justify-content: center;
    list-style: none;
}

nav li {
    margin: 0 15px;
    border-top: none; /* n. Remove top border */
}

nav li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    transition: background-color 0.3s;
}

nav li a:hover {
    background-color: #555;
    border-radius: 4px;
	
	
}

/* d. Make images responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* e. Style for main element */
main {
    background-color: #ffffff;
    padding: 20px;
    font-size: 1.1em;
}

/* f. Footer styling */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
}

/* g. Style rules for IDs on products page */
#products-header {
    font-size: 2em;
    color: #0066cc;
    margin-bottom: 20px;
}

#product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

/* h. Style rules for IDs on contact page */
#contact-form {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    background-color: #e9f5ff;
    border-radius: 8px;
}

#contact-info {
    text-align: center;
    margin-top: 20px;
}

/* i. Style the action class */
.action {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    text-align: center;
    display: inline-block;
    border-radius: 5px;
    text-decoration: none;
}

.action:hover {
    background-color: #218838;
}

/* j. Style the external-link class */
.external-link {
    color: #0066cc;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer;
}

.external-link:hover {
    color: #004080;
    text-decoration: none;
}

/* k. Style the map class */
.map {
    width: 100%;
    height: 400px;
    border: 2px solid #ccc;
    border-radius: 8px;
}

/* m. Sticky Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* p. Style rules for tel-link class */
.tel-link {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.tel-link:hover {
    text-decoration: underline;
}

/* q. Style rule for the hours class */
.hours {
    list-style: none;
    padding: 0;
    font-size: 1em;
    color: #333;
}

.hours li {
    margin-bottom: 5px;
}

/* r. Modify main element (already done in e) */

/* s. Style rule for the round class */
.round {
    border-radius: 50%;
    border: 2px solid #ccc;
}

/* t. Single column layout for product images */
#product-list img {
    width: 100%;
    max-width: 400px;
    margin: auto;
}

/* Logo styling */
#logo-container {
    text-align: left;
    padding: 20px 0;
    background-color: #ffffff;
    border-top: 2px solid #ccc;
}

.logo {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
	float: left
}

.info-section {
  margin-bottom: 40px;
}

.info-columns {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.info-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  margin-bottom: 15px;
}

.info-text {
  flex: 1;
  min-width: 250px;
  font-size: 1rem;
  line-height: 1.6;
  
}

.content-wrapper {
  max-width: 100%;
  padding: 0 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Responsive Design */

/* Mobile Phones (up to 600px) */
@media screen and (max-width: 600px) {
  body {
    font-size: 0.95em;
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .info-columns {
    flex-direction: column;
  }

  .info-text {
    width: 100%;
  }

  #logo-container {
    text-align: center;
  }

  .logo {
    float: none;
    margin: 0 auto;
  }
}

/* Tablets (601px to 1024px) */
@media screen and (min-width: 601px) and (max-width: 1024px) {
  body {
    font-size: 1em;
    padding: 15px;
  }

  .info-columns {
    flex-direction: column;
  }

  .info-text {
    width: 100%;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Desktops (1025px and up) */
@media screen and (min-width: 1025px) {
  body {
    font-size: 1.1em;
    padding: 20px;
  }

  .info-columns {
    flex-direction: row;
  }

  .info-text {
    flex: 1;
  }
}