/* 
   Still Tide Holdings Website Styles
   A clean, professional design with blues and neutrals
   to reflect the "tide" theme and convey stability
*/

/* Base Styles and Typography */
:root {
    --primary-color: #1a3a5f; /* Deep blue */
    --secondary-color: #4a6d8c; /* Medium blue */
    --accent-color: #8ba3b9; /* Light blue */
    --light-color: #e8f1f5; /* Very light blue/almost white */
    --dark-color: #0d1b2a; /* Very dark blue/almost black */
    --neutral-color: #f5f5f5; /* Light gray */
    --text-color: #333333; /* Dark gray for text */
    --footer-color: #0d1b2a; /* Dark blue for footer */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Header Styles */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 15px;
}

.logo img {
    max-height: 60px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.hero-content .subheadline {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Overview Section */
.overview {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.overview .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.overview-content {
    flex: 1;
}

.overview-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Pillars Section */
.pillars {
    padding: 5rem 0;
}

.pillars h3 {
    text-align: center;
    margin-bottom: 3rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pillar {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.pillar:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pillar img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.pillar h4 {
    margin-bottom: 1rem;
}

/* Page Header */
.page-header {
    position: relative;
    padding: 3rem 0;
    background-color: var(--light-color);
    text-align: center;
    overflow: hidden;
}

.header-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* About Page Styles */
.about-intro {
    padding: 5rem 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-image {
    margin: 3rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.approach {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.approach h3 {
    text-align: center;
    margin-bottom: 3rem;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.approach-item {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.approach-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.approach-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.philosophy {
    padding: 5rem 0;
}

.philosophy .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.philosophy-content {
    flex: 1;
}

.philosophy-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Page Styles */
.contact-info {
    padding: 5rem 0;
}

.contact-info .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.contact-content {
    flex: 1;
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
}

.contact-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form {
    padding: 5rem 0;
    background-color: var(--light-color);
}

.contact-form h3 {
    text-align: center;
    margin-bottom: 3rem;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

button.btn {
    border: none;
    cursor: pointer;
}

/* Legal Page Styles */
.legal-content {
    padding: 5rem 0;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h3 {
    margin-bottom: 1.5rem;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
    list-style-type: disc;
}

/* Footer Styles */
footer {
    background-color: var(--footer-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-logo, .footer-links, .footer-contact {
    margin-bottom: 2rem;
}

.footer-logo-img {
    max-height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--accent-color);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .overview .container,
    .philosophy .container,
    .contact-info .container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    nav ul li {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content .subheadline {
        font-size: 1rem;
    }
    
    .pillars-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }
}
